/* :root{
    --background: #2E3440;
    --light: #ECEFF4;
    --accent1: #D08770;
    --accent2: #81A1C1;
    --accent3: #8FBCBB;
    --accent4:#B48EAD;
    --accent5:#BF616A;
    --text-color: #D8DEE9;
}
*/

:root{
    --background: #051622;
    --light: #8296A4;
    --white: #F7F7F7;
    --accent1: #124259;
    --accent2: #1BA098;
    --accent3: #14D1A0;
    --accent4: #DA92A4;
    --accent5: #701E2A;
    --text-color: #DEB992;
}

/* :root{
    --background: #1e1e2e;
    --light: #cdd6f4;
    --accent1: #fab387;
    --accent2: #fab387;
    --accent3: #cba6f7;
    --accent4:#74c7ec;
    --accent5:#89b4fa;
    --text-color: #f5e0dc;
} */


@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;1,700&display=swap');

/* GENERICS */

*{
    padding: 0;
    margin: 0;
    color: var(--text-color);
    scroll-behavior: smooth;
}

hr{
    border-color:var(--light);
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--accent2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--accent1);
    border-radius: 10px;
}

body{
    background-color: var(--background);
    font-family: 'JetBrains Mono', monospace;
}

.btn-link{
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--light);
    border-radius: 10px;
    background-color: var(--accent1);
    color: var(--white);
    padding: 15px;
    margin-top: 20px;
}

.btn-link:hover{
    color: var(--light);
    border: 2px solid var(--accent1);
    background-color: var(--background);
    box-shadow: 5px 10px 8px 0px rgba(255,255,255,0.3);
    transition: 500ms;
}

a{
    text-decoration: none;
    color: var(--accent2);
    font-weight: bold;
}

a:hover{
    color: var(--accent1);
    transition: 500ms;
}

a.disabled {
  pointer-events: none;
  cursor: default;
}

b{
    color: var(--accent2);
    font-size: larger;
}

.section-devider{
    height: 60vh;
}

.load-line{
    width: 0%;
    animation: lineDraw ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.subheader{
    color: var(--accent3);
}
.subheader i{
    color: var(--accent2);
}

@media only screen and (max-width: 600px) {
    body{
        font-size: 85%;
    }

    .btn-link{
        padding: 10px;
        margin-top: 20px;
    }
}

/* MENU ELEMENTS */

.top-header{
    width: 100%;
    height: 60px;
    transition: all 1s;
    position: fixed;
    /* box-shadow: 0px 8px 7px 0px rgba(0,0,0,0.2); */
}

.top-header ul{
    margin-right: 2vw;
    white-space: nowrap;
}

.top-header ul > li{
    margin-top: 20px;
    padding-left: 5px;
    display: inline-block;
    animation: waveOut linear 3s;
    animation-iteration-count:1;
    animation-fill-mode: forwards;
}

.left-sticky{
    margin-top: 100vh;
    animation: leftSticky ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 500ms;
    width: 20px;
    position: fixed;
    z-index: 2;
}
.left-sticky li{
    margin-top: 15px;
    margin-left: 10px;
}
#left-sticky-end::after{
    margin-left: 5px;
    content: "";
    display: block;
    width: 1px;
    height: 100vh;
    background-color: var(--text-color);
}
#hide-when-scrolled{
    opacity: 0;
}

.intro-section{
    opacity: 0;
    padding-top: 20vh;
    width: 40%;
    margin-right:auto;
    margin-left:auto;
    animation: fadeIn ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
#intro-icon{
    position: absolute;
    opacity: 0;
    margin-top: 30px;
    font-size: 4rem;
    transition: all 1s;
}

#portfoliopic{
    float:right;
    max-height: 15vh;
    border:5px solid var(--text-color);
    border-radius: 100px;
}

.center-wrapper{
    display: grid;
    place-items: center;
}

.center-element{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.pop-in{
    filter: blur(0);
    opacity: 1;
    transform: translateX(0);
}

@media only screen and (max-width: 600px) {
    .top-header{
        display: none;
    }

    .left-sticky{
        margin-top: 100vh;
        animation: leftStickyMobile ease 1s;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
        animation-delay: 500ms;
        width: 20px;
        position: fixed;
        z-index: 2;
    }
}

/* MODAL */

/* The Modal (background) */
#tool-modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
}
.modal-content {
    background-color: var(--background);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--light);
    border-radius: 10px;
    width: 80%; 
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* INDIVIDUAL SECTION */

#intro-header{
    text-align: center;
}
#intro-header-mobile{
    display: none;
}
#intro-content{
    opacity: 0;
    text-align: left;
    color: var(--text-color);
    animation: fadeIn ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 1s;
}
#intro-content ul{
    list-style-type: circle;
    font-size: smaller;
    padding-left: 50px;
}
#intro-link{
    margin-top: 2rem;
    text-align: right;
}

#intro-toolbox-btn{
    opacity: 0;
    animation: fadeIn ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 2s;
}

#about{
    width: 60%;
}
#about-content{
    padding-left: 30px;
}

#toolbox{
    padding-left: 30vw;
}

#toolbox-tool-list{
    list-style: none;
}
.toolbox-grid-buttons{
    padding-bottom: 40px;
}
#toolbox-tool-list ul > li{
    list-style: none;
    display: inline-block;
}

.project p,.project h3{
    color: var(--white);
}
.project-tools-list{
    list-style: none;
    font-style: italic;
}
.project i{
    margin-left: 20px;
}
.project i:hover{
    color: var(--background);
    transition: 500ms;
}

.project-tools-list li{
    color: var(--text-color);
}
#nog-wat-app, #homelab{
    padding: 50px;
    width:20vw;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    background-color: var(--accent1);
    margin-left: 50px;
    margin-top: 20px;
    text-align: center;
}
#quiz-app, #p1oneer{
    padding: 40px;
    width:40vw;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    background-color: var(--accent1);
    margin-top: 30px;
    margin-left: 0px;
    text-align: center;
}

#work-experience{
    padding-left: 90px;
    width: 80vw;
}

#gopher{
    position: absolute;
    top: 110vh;
    right: 10px;
    height: auto;
    width:3%;
    opacity:0;
    animation: fadeIn ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 1s;
}

@media only screen and (max-width: 600px) {

    .intro-section{
        padding-top: 2vh;
        width: 80%;
        margin-right: 10px;
    }

    #intro-header{
        display: none;
    }

    #intro-header-mobile{
        display: block;
        text-align: center;
    }

    #about, #toolbox, #hobby-projects, #work-experience{
        padding-left: 0;
        width: 80%;
    }
        
    #nog-wat-app,#quiz-app,#solento{
        width: 60%;
    }

    #gopher{
        width: 10%;
    }

}


/* animations */
  
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
     }
}

@keyframes fadeInOut {
    0%{
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

@keyframes lineDraw {
    0%{
        width: 0%;
    }
    100%{
        width: 50%;
    }
}

@keyframes leftSticky{
    0%{
        margin-top: 100vh;
    }
    100%{
        margin-top: 65vh;
    }
}

@keyframes leftStickyMobile{
    0%{
        margin-top: 100vh;
    }
    100%{
        margin-top: 50vh;
    }
}


@media(prefers-reduced-motion) {
    .center-section{
        transition: none;
    }
}
