@font-face {
    font-family: "Akony";
    src: url("../fonts/AKONY.otf");
}
@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Regular.ttf");
}
@font-face {
    font-family: 'Constructicum';
    src: url("../fonts/Constructium.ttf");
}
@font-face {
    font-family: 'Trajan';
    src: url("../fonts/TrajanPro-Regular.ttf");
}
@font-face {
    font-family: 'Trajan';
    src: url("../fonts/TrajanPro-Bold.otf");
    font-weight: bold;
}
h1{
    font-family: "Trajan";
    letter-spacing: 1px;
    cursor: default;
}
h2{
    font-family: "Trajan";
    font-weight: bold;
}
p{
    font-family: "Constructicum";
    cursor: default;
}
button{
    font-family: "Roboto";
}
:root{
    --primary: #fff;
    --secondary1:#1e2747;
    --secondary2:  #0d89db;
    --accent: #050204;
    --primaryT: #ffffffc8;
    --secondary1T:#1e2747c8;
    --secondary2T:  #0d89dbE6;
    --accentT: #050204c8;
} 
h1,
h2,
label,
p{
    -webkit-user-select: none;
    -ms-user-select: none; 
    user-select: none;
}
#logo{
    font-family: "Akony";
    letter-spacing: 1px;
    cursor: default;
    z-index: 2;
    padding-top: 5px;
    margin: 0;
    font-style: oblique;
    color: var(--primary);  
    cursor: default;
    text-shadow: -3px 0 0 var(--secondary1);
    white-space: nowrap;
    cursor: pointer;
}
#logoPic{
    width: 40px;
    height: 40px;
    margin: 5px;
    margin-right: 2%;
}
#logo.desktop::before{
    width: 6vh; 
    height: 6vh;
    margin-left: 2%;
    margin-right: 2%;
    content:"";
}
#logoPic,
#logo.desktop::before{
    background-image: url("../assets/proto-icons/icon_no_text_blue.png");
    background-size: contain;
    display: inline-block;
}
#logo.desktop{
    justify-self: start;
    align-self: center;
    font-size: 1.2vw;
    background-color: var(--secondary2);
}
#logo.mobile{
    height: fit-content;
    text-align: center;
    font-size: 3.5vw;
}

@media only screen and (max-width: 600px){
    #logo.desktop{
        display: none;
    }
}
button{
    cursor: pointer;
}
body{
    padding: 0;
    margin: 0;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}
#contentOutlet{
    flex: 1;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}
#header{
    flex: 0;
    width: 100%;
    background-color: var(--secondary2);
}
#header.desktop{
    display: grid;
    grid-template-columns: 50% repeat(4, 1fr);
    justify-items: stretch;
    align-items: stretch;
}
#header.desktop button{
    padding-bottom: 1%;
    background: transparent;
    border: 0;
    height: 100%;
    color: var(--primary);
    font-size: larger;
    transition: all 0.3s ease-out;
}
#header.desktop button:hover{
    background: linear-gradient(110deg, 
        var(--secondary1) 10%, transparent 10%, 
        transparent 20%, var(--secondary1) 20%,
        var(--secondary1) 30%, transparent 30%, 
        transparent 40%, var(--secondary1) 40%, 
        var(--secondary1) 50%, transparent 50%, 
        transparent 60%,var(--secondary1) 60%,
        var(--secondary1) 70%, transparent 70%, 
        transparent 80%, var(--secondary1) 80%,
        var(--secondary1) 90%, transparent 90%, 
        transparent 100%, var(--secondary1) 100% );
    text-shadow: 3px 3px 1px var(--accent);

}

#header.desktop button.active{
    box-shadow: inset 0 -10px 0 var(--primary);
}
#header.desktop button.active:hover{
    box-shadow: inset 0 -10px 0 var(--secondary1);
}

#header.mobile{
    width: 100%;
    height: 50px;
    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    z-index: 2;
}
#header.mobile .hamburger{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    height: 40px;
    width: 40px;
    margin: 5px
}

#header.mobile .hamburger input,
#header.mobile .hamburger::before,
#header.mobile .hamburger::after {
    content: "";
    width: 100%;
    height: 5px;
    background-color: var(--primary);
    /* border-radius: 20px; */
    border-radius: 0;
}
#header.mobile .hamburger::before,
#header.mobile .hamburger::after {
    transition: transform 0.5s ease-in-out;
}
#header.mobile .hamburger input{
    transition: opacity 0.25s ease-in-out, width 0.25s ease-in-out ;
}

#header.mobile .hamburger::before {
    transform-origin: top left;
}
#header.mobile .hamburger::after{
    transform-origin: bottom left;
}

#header.mobile .hamburger input{
    appearance: none;
    padding: 0;
    margin: 0;
    outline: 0;
}
#header.mobile .hamburger:has(input:checked)::before{
    transform: rotate(45deg) scaleX(calc(sqrt(1.7)));
}
#header.mobile .hamburger:has(input:checked)::after{
    transform: rotate(-45deg) scaleX(calc(sqrt(1.7)));
}

#header.mobile .hamburger input:checked{
    transition: opacity 0.25s ease-in-out, width 0.25s ease-in-out ;
    opacity: 0;
    width: 0;
}

#header.mobile:has(> .hamburger > input:checked) + #sideNav{
    transform: translateX(0);
}


.appear{
    animation-name: appear;
    animation-duration: 1.25s;
}
h1.appear{
    animation-duration: 0.75s;
}
p.appear{
    animation-duration: 1s;

}
@keyframes appear {
    from {opacity: 0; transform: translateY(-100px);}
    to {opacity: 1; transform: translateY(0);}
}


@media only screen and (max-width: 600px){
    #header.desktop{
        display: none;
    }
    #header.mobile{
        display: flex;
    }
    #sideNav.mobile{
        display: flex;
    }
}
#sideNav{
    display: none;
}
#sideNav.mobile{
    position: absolute;
    
    top: 0;
    left: 0;

    height: 100%;
    width: 60%;

    z-index: 1;

    flex-direction: column;

    animation-name: cycleBackground;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-fill-mode: forwards;

    background-image: linear-gradient(var(--secondary1) 50%, var(--secondary1T) ), url('../assets/Textures/finnish-grey-brick-flemish-1035-mm-architextures.jpg');

    transform: translateX(-100%);

    transition: transform 0.5s ease-out;
}
@keyframes cycleBackground {
    from{background-position-y: 0, 0px;}
    to{background-position-y: 0, 400px;}
}
#sideNav.mobile.open{
    transform: translateX(0);
}

#sideNav.mobile #header button p{
    margin: 0;
    padding: 0;
    transform: scaleX(165%);
}

#sideNav.mobile #buttonContainer{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1em;
    margin-top: 1em;
}
#sideNav.mobile #buttonContainer button{
    margin: 0;
    background: transparent;
    padding: 0.3em;
    border: 0;
    color: var(--primary);
    text-shadow: -1px 1px 1px var(--accent);
    text-align: left;
    font-size: 7vw;
    border-bottom: var(--primary) solid 2px;
    transition: border  0.2s ease-in;
}
#sideNav.mobile #buttonContainer button.active{
    border-bottom: var(--primary) solid 5px;
    background-color: var(--secondary2);
    background: linear-gradient(110deg, var(--secondary2), transparent );
}


.reveal{
    transition: transform 0.4s ease-out, opacity 0.4s ease-in;
    transform: translateY(100%);
    opacity: 0;
}
.reveal.left{
    transform: translateX(-100%);
}
.reveal.right{
    transform: translateX(100%);
}
.reveal.active{
    transform: translate(0);
    opacity: 1;
}