@font-face {
    font-family: "AnotherFlight";
    src: url("assets/fonts/another_flight.woff2") format("woff2");
    font-style: normal;
    font-display: swap;
}

@keyframes website-appear{
    0%{
        z-index: 9999;
        opacity: 1;
    }
    50%{
        opacity: 1;
    }
    99%{
        z-index: 9999;
    }
    100%{
        opacity: 0;
        z-index: -9999;
    }
}
@keyframes logo-move{
    0%{
        translate: 2px,0px;
        rotate: 2deg;
    }
    12%{
        translate: -10px,-7px;
        rotate: -1deg;
    }
    25%{
        translate: 4px,-3px;
        rotate: -2deg;
    }
    37%{
        translate: -6x,2px;
        rotate: 2deg;
    }
    50%{
        translate: -1px,5px;
        rotate: -1deg;
    }
    62%{
        translate: 7px,-2px;
        rotate: 3deg;
    }
    75%{
        translate: 4px,-12px;
        rotate: 0deg;
    }
    87%{
        translate: -8x, 6px;
        rotate: -1deg;
    }
}
@keyframes zigzag-iframe-enter{
    0%{
        transform: translate(0vw,100vh);
    }
    100%{
        transform: translate(0vw,0vh);
    }
}
@keyframes zigzag-darken-bg{
    0%{
        background-color: rgba(0, 0, 0, 0);
    }
    100%{
        background-color: rgba(0, 0, 0, 0.7);
    }
}

@keyframes detail-box-appear{
    0%{
        transform: translate(0px, 240vh) rotate(30deg);
        transform-origin: right center;
    }
    100%{
        transform: translate(0px, 0vh) rotate(0deg);
    }
}

body {
    background-color: #0e0e0e;
    background-image: url(assets/zig.gif);
    background-position: center; 
    padding: 0px;
    margin: 0px;

    overflow: hidden;
}

/* Basic elements */
#black-screen{
    position: absolute;

    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background-color: black;
    animation-name: website-appear;
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
    z-index: -9999;
}
#container01{
    display: flex;
    justify-content: center;
    height: 100vh;
    width: 100vw;
}
#container02{
    display: flex;
    justify-content: center;
    flex-direction: column;
}
#logo {
    width: 40vw;
    animation-name: logo-move;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: step-start;

    margin-left: auto;
    margin-right: auto;
}
#exit-button{
    position: absolute;
    top: 10px;
    left: 10px;
    width: 48px;
    height: 48px;
}
#exit-button:hover{
    cursor: pointer;
}

/* Sections */
#section{
    background-color: rgba(0, 0, 0, 0.836);
}

/* Zigzag */
#zigzag-button{
    display: block;
    opacity: 0.12;
    position: absolute;
    bottom: -4px;
    left: -4px;
    scale: 0.4;

    transition: opacity 0.7s;
    transition-timing-function: ease-in-out;
}
#zigzag-button:hover{
    opacity: 0.5;
    cursor: pointer;
}

#zigzag{
    width: 1366px;
    height: 768px;
    z-index: 9998;
    border: none;
    opacity: 1;

    margin-left: auto;
    margin-right: auto;

    transform: translate(0vw,100vh);

    animation: zigzag-iframe-enter;
    animation-delay: 0.5s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0,0,0,1);
}
#zigzag:hover{
    cursor: pointer;
}

#zigzag-background-darken{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;

    z-index: 9996;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0);

    animation: zigzag-darken-bg;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

/* Rows and text */
.row-big{
    margin-left: auto;
    margin-right: auto;

    width: 70%;
    display: flex;
    justify-content: center;
}
.row-small{
    margin-left: auto;
    margin-right: auto;
    
    width: 70%;
    display: flex;
    justify-content: center;
    
}
.button {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
}
.button img{
    margin-left: auto;
    margin-right: auto;
}
.button:hover{
    cursor: pointer;
}

h1, h2, h3, h4{
    text-align: center;
    font-family: "AnotherFlight";
    color: white;
}

p{
    font-family: 'Courier New', monospaced;
    color: white;
    text-align: center;
    font-weight: 600;
}

/* detal box */
#detail-box {
    background-color: black;
    position: absolute;
    bottom: -2px;
    left: 15vw;
    overflow-y: scroll;
    width: 70vw;
    height: 90vh;

    z-index: 990;


    border-style: solid;
    border-width: 2px;
    border-color: white;

    animation-name: detail-box-appear;
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    
}