/* 

    * Name: Jonas sin portfolio nettside
    * Version: 1.0
    * Author: Jonas Laksana
    * Instagram: @jonaspl_
    * Discord: striker437

*/

html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    background-color: rgb(6, 6, 6);
    cursor: url("/assets/img/cursor.png"), default; /* Custom cursor */
    scroll-behavior: smooth;
}

#header {
    height: 100vh;
    width: 100%;
}

.container {
    padding: 10px 10%;
}

/* Navbar */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgb(6, 6, 6);;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav ul {
    margin-top: 20px;
    margin-right: 15%;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
    position: relative;
}

nav ul li::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: cyan;
    transition: width 0.3s;
}

nav ul li:hover::before {
    width: 100%;
}

nav ul li a {
    display: block;
    height: auto;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.sidebar {
    position: fixed;
    top: -20px;
    right: 0;
    margin-right: 0px;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #0a0a0a;
    box-shadow:  -10px 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateX(100%);
    opacity: 0;
}

.sidebar.visible {
    transform: translateX(0);
    opacity: 1;
}

.sidebar svg {
    position: relative;
    margin-top: 30px;
    transform: translateY(-50%);
    left: 170px; /* Adjust this value as needed */
}


.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
}

.menu-button {
    display: none;
}

/* Overskrift */

.header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    color: #fff;
    font-size: 30px;
}

.header-text h1 {
    animation: fade-up 1.0s;
    -webkit-animation: fade-up 1.0s;
    font-size: 60px;
    margin-top: 20px;
    max-width: 600px;
}


/* Timeplan */

.timeplan-container {
    display: flex;
    overflow-x: auto;
    justify-content: center;
    margin: 40px 40px 40px;
}

.timeplan h1 {
    color: #fff;
    text-align: center;
}

.timeplan-container {
    display: flex;
    overflow-x: auto;
    justify-content: center;
    margin: 40px 10px;
    padding-bottom: 20px; 
}

.timeplan {
    width: 100%;
    max-width: 1000px;
}

.timeplan h1 {
    color: #fff;
    text-align: center;
}

table {
    animation: fade-up 1.0s;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}
th, td {
    color: #fff;
    border: 1px solid rgb(6, 6, 6);
    padding: 15px;
    padding-bottom: 40px;
    text-align: center;
    word-wrap: break-word;
}
th {
    color: #fff;
    background-color: rgb(6, 6, 6);;
}

/* Forskjellige bakgrunnsfarger for timene */

.gym {
    color: black;
    background-color: #a2ff6d;
}
.norsk {
    color: black;
    background-color: #c6e2ff;
}
.kjemi {
    color: black;
    background-color: #baffc9;
}
.informasjonsteknologi {
    color: black;
    background-color: #ffd966;
}
.fri {
    color: black;
    background-color: #c5c3c3;
}
.matte {
    color: black;
    background-color: #ff8888;
}
.historie {
    color: black;
    background-color: #ff5353;
}
.tysk {
    color: black;
    background-color: #fc801b;
}
.biologi {
    color: black;
    background-color: #b15454;
}
.norsk-tysk {
    color: black;
    background: linear-gradient(to right, #c6e2ff, #fc801b);
}

.auto-type {
    color: cyan;
    position: absolute;
    max-width: 600px;
}

.header-text h1 span {
    color: cyan;
}

.auto-type {
    color: white !important;
}

.row {
    padding-bottom: 80px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.container h1 {
    color: #fff;
    padding-bottom: 10px;
}

.page-title {
    color: #fff !important;
    text-align: center;
    margin: 50px;
    border-bottom: 1px solid cyan;
}

.about-container {
    animation: fade-up 1.0s;
    background: rgba(38, 38, 38, 0.30);
    box-shadow: 5px 10px rgb(44, 44, 44);
    border-radius: 16px;
    width: 500px;
    margin: 40px auto;
    margin-bottom: 70px;
    padding: 50px;
}

.about-col-1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-col-1 img {
    color: rgb(78, 78, 78);
    max-height: 130px;
    max-width: 130px;
    border: 5px solid;
    border-radius: 50%;
}

.about-col-2 h1 {
    padding: 5px;
    font-size: 22px;
    color: #fff;
    text-align: center;
}

.about-col-2 p {
    padding: 5px;
    color: #fff;
    text-align: center;
}

.about-col-2 h3 {
    padding: 5px;
    color: #fff;
    text-align: center;
}

.col-1 {
    flex-basis: 35%;
}

.col-1 {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 15px;
}

.col-1 img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.col-1:hover img {
    transform: scale(1.7);
}


.col-2 {
    flex-basis:60%;
}

.tab-container {
    display: flex;
    padding-top: 80px;
    justify-content: center;
}

/* Tab til prosjektene */

.tab {
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    font-family: 'Poppins', sans-serif;
    justify-content: center;
}

.tab-label {
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
}

.tab-content {
    animation: fade-up 1.0s;
    -webkit-animation: fade-up 1.0s;
    padding-top: 20px;
    order: 1;
    width: 100%;
    color: #fff;
    line-height: 1.5;
    font-size: 0.9em;
    display: none;
}

.tab-radio {
    display: none;
}

.tab-radio:checked + .tab-label {
    font-weight: bold;
    color: #fff;
    border-bottom: 2px solid #fff;
}

.tab-radio:checked + .tab-label + .tab-content {
    display: block;
}

/* Mine prosjekter */

.prosjekt-title {
    font-size: 30px;
    font-weight: 600;
    color: #fff;
}

.prosjekt-description {
    color: #fff;
    margin-bottom: 40px;
    max-width: 500px;
}

.prosjekt-knapper {
    padding-top: 30px;
    color: #fff;
    display: flex;
    margin: 20 0 40px;
}

.prosjekt-links {
    color: #fff;
    margin-right: 50px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease;
}

.prosjekt-links-disabled {
    color: #727272dd;
    margin-right: 50px;
    font-size: 18px;
    position: relative;
}

.prosjekt-links:hover {
    transform: scale(1.1);
}

.prosjekt-status {
    display: flex;
    align-items: center;
}

.finished-circle {
    width: 20px;
    height: 20px;
    background-color: rgb(81, 255, 81);
    border-radius: 50%;
    margin-right: 25px;
}

.ongoing-circle {
    width: 20px;
    height: 20px;
    background-color: yellow;
    border-radius: 50%;
    margin-right: 25px;
}

.text {
    color: #fff;
    font-weight: bold;
}

/* Footer */

#footer {
    padding-top: 50px;
}

#footer p {
    text-align: center;
    color: #fff;
}

#footer p span {
    color: red;
}

#footer-socials {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 3rem 0;
}

#footer-socials li {
    margin: 0 10px;
}

#footer-socials a {
    font-size: 20px;
    color: #fff;
}

#footer-socials a:hover {
    color: cyan;
}

/* Custom animasjoner */

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Responsitivitet */
@media only screen and (max-width: 737px) {

    /* Navbar */

    nav {
        left: 0;
        right: 0;
    }

    nav ul {
        margin-right: 0%;
    }
    
    .hideNavbar {
        display: none;
    }

    .menu-button {
        display: block;
    }

    /* Header */

    .container {
        padding: 10px 10%;
    }
    .header-text h1 {
        font-size: 27px;
    }

    /* Prosjekt tabs */

    .col-1 {
        flex-basis: 90%;
    }

    .tab-content {
        margin: 50px;
    }

    .tab-content h1 {
        padding-top: 10px;
        font-size: 15px;
    }

    .tab-content p {
        max-width: 700px !important;
        font-size: 16px;
    }
    
    .prosjekt-links {
        font-size: 14px !important;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .prosjekt-links-disabled {
        font-size: 14px !important;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* Om meg */

    .about-container {
        width: 300px;
        height: 550px;
        padding: 20px;
    }

    .about-col-2 h1 {
        font-size: 16px;
    }
    
    .about-col-2 p {
        font-size: 14px;
    }
    
    .about-col-2 h3 {
        font-size: 15px;
    }

    /* Timeplan */

    .timeplan h1 {
        font-size: 23px;
    }

    th {
        font-size: 12px;
    }

    tr {
        font-size: 9px;
    }
}