* {
    box-sizing: border-box;

    margin: 0;

    transition: font-size .2s;
}

a, img, video, svg, object {
    user-select: none;
}

html { 
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: "Cascadia Code", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;

    background-color: black;

    padding-bottom: env(safe-area-inset-bottom);
}

::-webkit-scrollbar {
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

main {
    width: 100%;
    height: 100dvh;

    overflow-y: scroll;

    scroll-snap-type: y proximity;    
    scroll-behavior: smooth;

    background-color: #040D12;

    scrollbar-width: none;
}

main::-webkit-scrollbar {
    display: none;
}

#navbar {
    position: fixed;
    z-index: 100;
    top: 0;

    height: 100px;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    background-color: transparent;

    transition: .2s ease-out;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, .1);
    backdrop-filter: blur(15px);

    transition: .4s ease-out;
}

#navbar h1 {
    text-align: center;
    color: white;
    font-size: 3rem;

    transition: .2s;
}

#navbar nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

#navbar nav a {
    text-align: center;
    color: white;
    text-decoration: underline;
    text-decoration-thickness: .1px;
    text-underline-offset: 5px;

    font-size: 1rem;
    font-weight: lighter;

    padding: 0 20px;
    border-right: white solid 1px;

    transition: .2s;
}

#navbar.scrolled a {
    padding: 0 3rem;
    transition: .4s ease-out;
}

#navbar.scrolled h1 {
    font-weight: normal;
    transition: .4s ease-out;
}

#navbar nav a:last-of-type {
    border-right: none;
}

#navbar nav a:hover {
    color: #D9D9D9;
    letter-spacing: 1px;

    transition: .2s;
}

#elevator {
    position: fixed;
    z-index: 1;
    bottom: 2rem;
    right: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    cursor: pointer;

}

#elevator .elevatorbutton {
    width: 3rem;
    height: 3rem;

    transition: .2s;
}

#elevator .elevatorbutton:first-of-type {
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
}

#elevator .elevatorbutton:last-of-type {
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
}

#elevator .elevatorbutton:hover {    
    background-color: rgba(0, 0, 0, .1);
    backdrop-filter: blur(15px);

    transition: .2s;
}

#elevator object {
    width: 3rem;
    height: 3rem;

    pointer-events: none;
}

.slide {
    position: relative;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    overflow-y: hidden;
    overflow-x: auto;

    height: 100dvh;
    width: 100%;
}

.extendingslide {
    scroll-snap-align: start;
    scroll-snap-stop: always;

    min-height: 100vh;
    height: auto;
}

.slidepadding {
    padding: 150px 50px 150px 50px;
}

#intro {
    position: relative;

    background-image: url("/img/intro.jpg");
    background-size: cover;

    background-position: center;

    z-index: 10;
}

.center {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#introtext {
    position: absolute;

    color: white;
    font-size: 10rem;

    text-align: center;

    z-index: 1;
}

#lastupdate {
    position: absolute;
    bottom: 5px;
    right: 10px;

    color: white;
    font-size: .8rem;

    z-index: 1;
}

#arrowindicator {
    position: absolute;
    bottom: 10px;
    width: 100%;

    display: flex;
    justify-content: center;

    z-index: 101;

    color: white;
    font-size: 3rem;

    animation: bounce 2s infinite;
}

#arrowindicator object {
    width: 5rem;
    height: 5rem;

    pointer-events: none;
}

.selectionpanels {    
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.panel {
    z-index: 1;
    position: relative;
    overflow: hidden;

    flex-grow: 1;
    flex-basis: 0;

    user-select: none;

    transition: .2s;
}

.panelImage {
    position: absolute;
    top: 0;

    width: auto;
    height: 100%;

    z-index: -1;
}

.panel:first-of-type .panelImage {
    left: 0;
}

.panel:last-of-type .panelImage {
    right: 0;
}

.panelText {
    background-color: rgba(0, 0, 0, .4);
    color: white;
    font-size: 3rem;

    text-decoration: none;

    transition: .2s;
}

.panel:hover .panelText {
    background-color: rgba(0, 0, 0, .2);
    letter-spacing: 10px;
    transition: .2s;
}

.panel:hover {
    flex-grow: 2;
    transition: .8s;
}

#container:has(.panel:hover) .panel:not(:hover) .panelText {
    background-color: rgba(0, 0, 0, .8);
    transition: .2s;
}


footer {
    position: fixed;
    bottom: 0;

    width: 100%;
    font-size: .75rem;
    text-align: center;
    padding: 3px;

    background-color: rgba(0, 0, 0, .1);
    backdrop-filter: blur(15px);

    color: white;
}

.hyperlink {
    color: #5C8374;
    text-decoration: underline;
    font-size: 1rem;

    display: inline-block;
    text-align: center;
}

.hyperlink:hover {
    color: #93B1A6;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(2deg); }
    20% { transform: rotate(-2deg); }
    30% { transform: rotate(2deg); }
    40% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@media (max-width: 1200px) {
    html {
        font-size: 80%;
    }

    #navbar h1 {
        font-size: 2.5rem;
    }

    #introtext {
        font-size: 7rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 60%;
    }

    #navbar h1 {
        font-size: 2rem;
    }

    #introtext {
        font-size: 5rem;
    }

    .slidepadding {
        padding: 150px 20px 150px 20px;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 50%;
    }

    #navbar h1 {
        font-size: 1.5rem;
    }

    #introtext {
        font-size: 4rem;
    }
}