@font-face {
    font-family: Lidja;
    src: url("../fonts/Lidja.ttf") format("truetype");
}
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
html{
    box-sizing: border-box;
    font-size: 62.5%;
    font-family: Lidja;
    height: 100dvh;
    
}
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #D2A24C;
    border: solid black 3px;
    border-right: none;
}

::-webkit-scrollbar-thumb:hover {
background: #73BDA8;
}
@keyframes grow{
    to{
        scale: 1.05;
    }
}
#cv{
    animation: grow alternate infinite 1s linear;
}
#cursor{
    position: fixed;
    width: 40px;
    height: 40px;
    background: url("../imgs/cursor.png");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
    pointer-events: none;
}
#cursor-popup{
    padding: 1rem;
    color: black;
    font-size: 1.3rem;
    border: solid black 3px;
    width: 150px;
    background: #ECE6C2;
    border-radius: 30px;
    position: absolute;
    top: 100%;
    left: 100%;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s;
    scale: 0;
}
#cursor-popup.active {
    scale: 1;
}
::selection{
    background: #73BDA8;
    color: #ECE6C2;
}
a{
    cursor: none;
}
button{
    cursor: none;
}
p, figcaption, textarea, footer nav{
    font-family: 'Roboto Mono', monospace;
}
header .hour{
    font-size: 3rem;
    margin: 3rem;
    font-weight: bold;
}
body{
    background: url("../imgs/background.png"), #ECE6C2;
    background-size: cover;
    color: black;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100vw;
    overflow: hidden;
    cursor: none;
}
main{
    flex-grow: 1;
    background: url("../imgs/lucas.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    position: relative;
    height: 100%;
    overflow: hidden;
}
main > #title{
    text-transform: uppercase;
    font-size: 4vh;
    color: #ECE6C2;
    letter-spacing: 5px;
    transform: rotate(-1deg);
    white-space: nowrap;
    z-index: 0;
    margin-bottom: 5rem;
    position: absolute;
    left: 50%;
    bottom: 0;
}
main > #title h1{
    padding: 1rem 4rem;
    width: fit-content;
    box-shadow: black 15px 15px;
}
main > #desktop{
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    width: fit-content;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
}
main > #desktop > .file{
    height: 27.5%;
    aspect-ratio: 1/1;
    width: auto;
    position: relative;
    z-index: 1;
    
}
.file:hover{
    background-color: rgba(210, 163, 76, 0.2);
}
.file.active{
    background-color: rgba(210, 163, 76, 0.5);
}
main > #desktop > .file figure{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    height: 100%;
}
main > #desktop > .file figure figcaption{
    font-size: 2rem;
    margin-top: 1rem;
    font-weight: bold;
}
main > #desktop > .file a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}
main > #desktop > .file img{
    height: 50%;
}
main > #title h1:nth-child(1){
    background-color: #73BDA8;
}
main > #title h1:nth-child(2){
    background-color: #D2A24C;
}

footer > div.computer > div:not(#menu){
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #73BDA8;
    position: relative;
    z-index: 2;
    padding-block: 0.25rem;
}
footer > div.computer > #menu > div:nth-child(2){
    background-color: #73BDA8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    position: relative;
}
footer > div.computer > div:not(#menu) > nav{
    width: 80%;
    display: flex;
    margin-inline: 3rem;
}
footer > div.computer > div:not(#menu) > nav div{
    display: flex;
    align-items: center;
    background-color: #ECE6C2;
    width: fit-content;
    padding: 0.5rem 2rem;
    border-radius: 15px;
    box-shadow: 5px 3px black;
    cursor: none;
    margin-right: 1rem;
}
footer > div.computer > div:not(#menu) > nav div:hover{
    background: #D2A24C;
}
footer > div.computer > div:not(#menu) > nav span{
    font-size: 1.5rem;
    display: block;
    margin-left: 1rem;
    font-weight: bold;
}
footer > div.computer > div:not(#menu) > nav img{
    width: 30px;
}
footer .timestamp{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 3rem;
}
footer .hour{
    font-size: 2.5rem;
    font-weight: bold;
}
footer .date{
    font-size: 2rem;
    font-weight: bold;
}
footer .computer #home{
    position: relative;
    width: fit-content;
    margin-left: 20px;
}
footer .computer #home img{
    width: 50px;
    position: relative;
    z-index: 1;
}
footer .computer #home::after{
    content: "";
    width: 75px;
    height: 75px;
    background-color: #ECE6C2;
    border-radius: 100%;
    transform: translate(-50%,-50%);
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    box-shadow: 5px 3px black;
}
footer .computer #home:hover::after{
    background: #D2A24C;
}

#selection{
    position: absolute;
    background-color: rgba(115, 189, 168, 0.5);
}
 footer #menu{
    position: absolute;
    bottom: 60px;
    left: 0;
    background-color: #73BDA8;
    padding: 1rem;
    padding-bottom: 2rem;
    border-top-right-radius: 15px;
    overflow: hidden;
    display: flex;
    transform-origin: bottom;
    z-index: 1;
    transition: all 0.2s;
    border-top: solid black 3px;
    border-right: solid black 3px;
    box-shadow: 8px 5px black;
 }

 footer #menu.hidden{
    transform: translateY(100%);

 }

 footer #menu > div:first-child{
    display: flex;
    flex-direction: column;
 }

 footer #menu .files{
    display: flex;
    flex-direction: column;
    max-height: 400px;
    height: 60vh;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: #ECE6C2;
    border-radius: 15px;
    min-width: 250px;
    border: solid black 3px;
 }
 footer #menu .files .file{
    padding: 1rem;
    padding-right: 2rem;
    width: 100%;
    cursor: none;
 }
 footer #menu .files .file figure{
    margin: 0;
    display: flex;
    align-items: center;
    width: fit-content;
 }
 footer #menu .files .file a{
    text-decoration: none;
    color: inherit;
 }

 footer #menu .files .file figure figcaption{
    font-size: 2rem;
    font-weight: bold;
    margin-left: 3rem;
 }
 footer #menu .files .file img{
    height: 50px;
    aspect-ratio: 1/1;
    object-fit: contain;
    width: auto;
 }
 footer #menu > div:nth-child(1) > div:last-child{
    display: flex;
    margin-top: 1rem;
    justify-content: space-between;
    align-items: center;
 }
 footer #menu input{
    border: none;
    font-size: 1.5rem;
    outline: none;
    background-color: #ECE6C2;
    padding: 1rem;
    border-radius: 15px;
    border: solid black 3px;
    width: 100%;
 }
 footer #menu button{
    background: none;
    border: none;
    cursor: none;
 }
 footer #menu button img{
    width: 50px;
 }
 footer #menu .profil{
    display: flex;
    flex-direction: column;
    align-items: center;
 }
 footer #menu .profil figure img{
    width: 100px;
    border-radius: 100%;
    border: solid black 3px;
 }
 footer #menu .profil .social_networks{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
 }
 footer #menu .profil .social_networks a{
    display: block;
    margin-bottom: 3rem;
 }
 footer #menu .profil .social_networks img{
    width: 40px;
 }
 footer #menu .profil .social_networks a:hover{
    filter: brightness(0) saturate(100%) invert(97%) sepia(48%) saturate(364%) hue-rotate(334deg) brightness(98%) contrast(88%);

 }


 #loader{
    position: fixed;
    min-width: 100vw;
    min-height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
    background: url("../imgs/background.png");
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
 }
#loader .title h1{
    padding: 1rem 4rem;
    width: fit-content;
    box-shadow: black 15px 15px;
    font-size: 8rem;
    color: #ECE6C2;
}
#loader .title{
    rotate: -1deg;
}
#loader .title h1:first-child{
    background-color: #73BDA8;
}
#loader .title h1:last-child{
    background-color: #D2A24C;
}
#loader .progress_bar{
    width: 200px;
    height: 20px;
    border: solid black 3px;
    margin-top: 5rem;
    border-radius: 30px;
    background-color: #ECE6C2;
    position: relative;
    overflow: hidden;
}
@keyframes progress {
    to{
        left: 100%;
    }
    
}
#loader .progress_bar::before{
    content: "";
    width: 20%;
    height: 100%;
    position: absolute;
    left: -20%;
    top: 0;
    background: #73BDA8;
    animation: progress infinite 1s linear;
    border-radius: 5px;

}

*.computer{
    display: block;
}
*.mobile{
    display: none;
}

@media screen and (max-width: 900px){
    html{
        font-size: 50%;
    }
    #loader .title h1{
        font-size: 5rem;
    }
    #cursor{
        display: none;
    }
    *.computer{
        display: none;
    }
    *.mobile{
        display: block;
    }
    main > #desktop{
        flex-direction: row;
        height: fit-content;
        width: 100%;
        justify-content: space-between;
    }
    main > #desktop > .file{
        width: 27.5%;
        height: auto;
    }
    main > #desktop > .file img{
        padding: 1rem;
        border: solid black 3px;
        border-radius: 15px;
        background: #ECE6C2;
    }
    main > #desktop > .file:active img{
        background: #73BDA8;
    }
    main > #desktop > .file figure figcaption{
        font-size: 1.5rem;
    }
    main{
        background-size:  auto 65%;
        background-position: bottom right;
    }
    main > #title{
        left: 3rem;
        bottom: 12rem;
        translate: 0 0;
        margin-bottom: 0;
    }
    footer{
        position: fixed;
        left: 50%;
        bottom: 1rem;
        translate: -50% 0;
    }
    footer .mobile nav{
        display: flex;
        width: fit-content;
        align-items: center;
        justify-content: center;
        margin-inline: auto;
        background: rgba(0, 0, 0, 0.5);
        padding: 1.5rem;
        border-radius: 15px;
     }
     footer .mobile nav div{
        background: #ECE6C2;
        padding: 1rem;
        border-radius: 15px;
     }
     footer .mobile nav div:nth-child(2){
        margin-inline: 2rem;
     }
     footer .mobile nav img{
        width: 35px;
        height: 35px;
        object-fit: contain;
        
     }
     footer .mobile nav div:active{
        background: #73BDA8;
     }
     #phoneMenu{
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 5;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        scale: 0;
        opacity: 0;
        display: flex;
     }
     #phoneMenu.active{
        opacity: 1;
        scale: 1;
     }
     #searchMenu{
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100%;
        display: flex;
        flex-direction: column;
        z-index: 5;
        translate: -100% 0;
        transition: all 0.5s;
        background: #ECE6C2;
        justify-content: space-between;
     }
     #searchMenu.active{
        translate: 0;
     }
     #searchMenu .files{
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        padding-block: 3rem;
        overflow-y: scroll;
     }
     #searchMenu .file{
        width: 33%;
        aspect-ratio: 1/1;
        height: auto;
     }
     #searchMenu .file img{
        width: 50px;
        height: 50px;
        object-fit: contain;
        padding: 1rem;
        border: solid black 3px;
        border-radius: 15px;
     }
     #searchMenu .file:active img{
        background: #73BDA8;
     }
     #searchMenu .file figure{
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
     }
     #searchMenu .file a{
        text-decoration: none;
        color: black;
     }
     #searchMenu .file figcaption{
        font-size: 1.5rem;
        text-align: center;
        margin-top: 1rem;
     }
     #searchMenu .search{
        width: 100%;
        padding-block: 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #D2A24C;
        border-top: solid black 3px;
     }
     #searchMenu input{
        background: #ECE6C2;
        border: solid black 3px;
        outline: none;
        padding: 1rem;
        font-size: 2rem;
        border-radius: 30px;
        font-family: 'Roboto Mono', monospace;
        width: 300px;
     }
     main > #title h1{
        font-size: 7rem;
     }
     .file:hover{
        background: none;
     }

    
}
@media screen and (max-width: 500px){
    main > #title h1{
        font-size: 4rem;
        letter-spacing: 0px;
        padding: 1rem 3rem;
        
    }
    
}




