* {
    font-family: sans-serif;
    scrollbar-width: 5px;
    scroll-behavior: smooth;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    max-height: 100%;
    max-width: 100%;
    background: black; 
    color: white;
    font-weight: 100;  
}
::-webkit-scrollbar { width: 2px;}
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 4px;}
::-webkit-input-placeholder { color: white; }

#close-overlay-window-button {
    position: relative;
    top: 5vh;
    z-index: 1;
    margin: 0;
    left: 50%;
    height: 16px;
    width: 16px;
    background-image: url("../assets/gui/close.svg");
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
}

#close-overlay-window-button:hover { transform: scale(1.2); }
button { cursor: pointer; }
main {
    position: absolute;
    display: flex;
    flex-direction: column;
    height: calc(85vh * 10);
    min-height: max-content;
    gap: 0;
    width: 100%;
    top: 0;
}
em { font-style: normal; color: red; margin-bottom: 5px;}
main > .main-page { position: relative; max-width: 100%; scroll-margin-top: 15vh; }
strong { font-size: 1.2rem; text-align: right; }

details > p:has(strong) {
    font-weight: 500;
    margin-bottom: 5px;
    margin-right: 0;
    position: relative;
    right: 5px;
    width: 100%;
    text-align: right;
}

@media (orientation: portrait) {
    main { min-height: max-content; }
    main > .main-page {
        max-height: 170vh;
        height: 85vh;
        top: 15vh;
        scroll-margin-top: 15vh;
        position: relative;
        margin: auto;
    }

    #faq,
    #fees,
    #contact { max-height: none; height: 170vh; overflow: visible; }

    .main-page-ui-header {
        height: 15vh;
        max-width: 85vw;
        margin: auto;
        color: white;
        text-align: left;
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 5vh;
        top: 0;
        position: relative;
    }

    .main-page-ui {
        transition: all 0.6s ease-in-out;
        position: relative;
        box-sizing: border-box;
        width: 80vw;
        display: flex;
        flex-direction: column;
        height: 85vh;
        top: 0;
    }

    .main-page-ui > button { margin: auto; }
    .main-page-ui-img {
        max-height: 80vh;
        max-width: 75vw;
        position: absolute;
        top: calc(50% + 15vh);
        left: 50%;
        object-fit: contain;
        transform: translate(-50%, calc(-50% - 15vh));
    }

    #main-page-ui-element-right {
        width: 80vw;
        margin: auto;
        height: fit-content;
        max-height: 85vh;
        overflow-y: scroll;
        position: relative;
    }

    .main-page#about.active { transition: all 0.6s ease-in-out; }
    .main-page#about { height: fit-content; padding-bottom: 0vh; margin: auto; }
}

@media (orientation: landscape) {

    main { height: fit-content; }
    .main-page {
        height: 85vh;
        max-height: 170vh;
        position: absolute;
        top: 15vh;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
    }

    .main-page-ui-img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 70vh;
        max-width: 40vw;
        height: auto;
    }

    .main-page-ui {
        top: 50%;
        transform: translateY(-50%);
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    #main-page-ui-element-left {
        position: relative;
        left: 0;
        width: 45vw;
        height: 85vh;
        object-fit: cover;
    }

    #main-page-ui-element-right {
        position: absolute;
        width: 45vw;
        max-width: 50vw;
        left: 50%;
        height: 65vh;
    }

    #main-page-ui-element-right > * { max-width: 49vw; margin: auto; }
    .main-page-ui > button { margin: auto; }
    .grid {
        display: flex;
        justify-content: space-between;
        padding-left: 3vh;
        padding-right: 3vh;
        position: absolute;
        top: 0%;
        gap: 3vh;
        height: 79vh;
        border: unset;
        width: 100%;
        margin: auto;
        align-items: center;
        background: black;
        margin: auto;
        padding: 0;
        overflow-x: scroll;
        
    }

    .grid img { min-width: 29vw; max-height: 100%; transition: filter 0.3s ease; object-fit: cover; }
    .grid video { min-width: 29vw; max-height: 100%; transition: filter 0.3s ease; object-fit: cover; }
    .grid img:hover {  filter: brightness(1.12); backdrop-filter: blur(10px); }
    .grid video:hover {  filter: brightness(1.12); backdrop-filter: blur(10px); }
    
}

.main-page > .main-page-footer { position: absolute; bottom: 2vh; }

.overlay {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50%));
    padding: 1%;
    
    width: 450px;
    color: white;
    z-index: 0;
}

header > div > button {
    padding: 1rem;
    font-weight: 300;
    font-size: 18px;
    border: solid 1px rgb(135, 135, 135);
    color: white;
    position: unset;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(50%, -50%);
    background-size: 420px;
}

header > div > p {
    all: unset;
    transition: all 0.3s ease-in-out;
    max-height: 4vh;
    color: white;
    margin: auto;
    font-weight: 100;
    margin-top: 2px;
    opacity: 1;
    visibility: visible;
}

header > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

header > div > h1 {
    transition: all 0.45s ease-in-out;
    transform: scale(1);
    padding: 0;
    margin: 0;
    max-height: 6vh;
    margin-bottom: 2px;
    cursor: pointer;
}

header > div > h1:hover {
    margin-bottom: unset;
    margin: auto;
    padding: auto;
    transform: scale(1.2);
    color: rgb(167, 0, 0);

}

header > div > h1:hover > p {
    visibility: hidden;
    height: 0;
    opacity: 0;
}

button {
    padding: 1rem;
    font-weight: 300;
    font-size: 18px;
    border: solid 1px white;
    color: white;
    width: 150px;
    margin: auto;
}

html {
    position: absolute;
    left: 0.5%;
    top: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 99%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    position: absolute;
    top: 0vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

main.blur { filter: blur(15px) saturate(0) brightness(0.6); }

header {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    min-height: fit-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    height: 15vh;
    max-height: 15vh;
    transition: all 0.25s ease-in-out;
    object-fit: scale-down;
}

header > h1 {
    flex: 1;
    color: white;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}

header > nav { width: 25%; display: flex; justify-content: space-around; }

#toggle-nav {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 2.5vw;
    width: 16px;
    height: 16px;
    display: block;
    
    padding: 0;
    margin: 0;
    border: none;
}

header.hidden { opacity: 0; visibility: hidden; }

#toggle-nav:hover { cursor: pointer; }

@media (orientation: portrait) {
    #toggle-nav { visibility: visible; opacity: 1; }
    #toggle-nav.active {
        position: absolute;
        background-image: url("../assets/gui/close.svg");
        bottom: 5vh;
        left: 50%;
        background-color: transparent;
    }

    header.active > div {
        visibility: collapse;
        opacity: 0;
        height: 0;
        position: unset;
        display: none;
    }

    header.active {
        max-height: unset;
        position: unset;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        height: 100vh;
        max-width: 100%;
        display: block;
        flex-direction: column;
        justify-content: space-around;
        background: transparent;
    }

    header > nav.active {
        opacity: 1;
        visibility: visible;
        flex-direction: column;
        position: relative;
        margin: 0;
        line-height: 4.5vh;
        background: transparent;
        left: 50%;
        top: 42.5%;
        transform: translate(-50%, -50%);
        width: 50%;
        font-size: 18px;
    }

    header > nav.active > * {
        text-align: left;
        margin-right: 0;
        width: fit-content;
        flex-direction: column;
        position: relative;
        background: transparent;
    }

    header > nav {
        opacity: 0;
        visibility: hidden;
        flex: 0;
        position: unset;
        font-weight: 700;
    }

    .grid {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;

        gap: 10vh;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
        height: 80vh;
        border: unset;
        /* max-width: fit-content; */
        max-width:unset;
        min-width: 100%;
        margin: auto;
        padding:auto;
        padding:1%;
        align-items: center;
        overflow-x: scroll;
    }

    .grid img {
        position: relative;
        /* max-width: 95%; */
        max-width:unset;
        width: 90vw;
        max-width: 80vw;
        height: auto;
        transition: filter 0.3s ease;
        object-fit: cover;
        margin: auto;
        cursor: none;
    }
    .grid img:hover { filter: brightness(1.10); }
}

a {
    all: unset;
    line-height: 4.5vh;
    font-size: 18px;
    cursor: pointer;
    color: unset;
    color: white;
    background-color: transparent;
}

a:hover { transform: scale(1.1); padding: 0.3rem; }

form {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    text-align: center;
    gap: 10px;
    margin: auto;
    margin: 0;
    max-width: 80vw;
    width: 100%;
    min-height: fit-content;
    backdrop-filter: blur(10px);
}

input,
textarea {
    padding: 0.5rem;
    border-radius: -1px;
    width: 350px;
    height: 2vh;
    margin: auto;

    margin-bottom: 2vh;
    font-weight: 200;
    border: solid 1px rgb(26, 26, 26);
    border-bottom: solid 1px  rgb(135, 135, 135);

}

textarea {
    border: solid 1px rgb(135, 135, 135);
}

input[type="submit"] {
    border: solid 1px  rgb(135, 135, 135);
    margin: auto;
    padding: 1rem;
    font-weight: 600;
    width: 170px;
    position: relative;
    left: 0%;
    padding: 1rem;
}

@media(orientation:portrait) {

    input,
    textarea {
        width: 48vw;
        margin-left: 0;
        text-align: left;
    }
    textarea {
        padding: 1rem;
        padding-right: 0;
        width: 100%;
        max-width: 75vw;
    }
}

textarea { margin-top: 5px; margin-bottom: 5px; height: 150px; }

input[type="submit"] {
    all: unset;
    border: solid 1px white;
    margin: auto;
    padding: 1rem;
    font-weight: 600;
    width: 100px;
    border-radius: 2px;
    cursor: pointer;
}


button#toggle-nav {
    background-image: url("../assets/gui/menu.svg");
    background-position: center;
    background-size: 16px;
}

section {
    max-height: 60vh;
    min-height: fit-content;
    overflow: visible;
    line-height: 2.4vh;
    
}

.faq-button {
    width: 16px;
    height: 16px;
    margin: auto;
    cursor: pointer;
    margin-right: 1rem;
    background-image: url("../assets/gui/dropdownwhite.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.1s ease-in-out;
}

details[open] summary >.faq-button { background-image: url("../assets/gui/pullupwhite.svg"); }

details { transition: all 0.3s ease-in-out; }

.overlay-window.active {
    opacity: 1;
    visibility: visible;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 1);
    overflow: hidden;
}

.overlay-window {
    display: block;
    top: 15vh;
    left: 0%;
    height: 85vh;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: all 0.2s ease-in-out;
    opacity: 0;
    visibility: hidden;
    position: unset;
    position: fixed;
}


.overlay-window.active>form {
    position: relative;
    top: 15vh;
    left: 50%;
    height: 50%;
    max-width: 99vw;
    width: 450px;
    transform: translate(-50%, 0%);
}

.overlay-window.active { overflow: hidden; }

.overlay-window.active > form > input {
    margin: auto;
    color: white;
    font-weight: 300;
    width: 80%;
}



main { animation: fadeIn 0.67s ease-out forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.grid img { transition: transform 0.6s ease, filter 0.4s ease; }
.grid img:hover { transform: scale(1.02); filter: brightness(1.08); }
.grid img { transition: transform 0.6s ease, filter 0.4s ease; }

.grid img:hover {
    transform: scale(1.02);
    filter: brightness(1.08);
}

details,
summary {
    line-height: 2.5vh;
    border-top: black solid 1px;
}
summary:hover > *,summary:hover {
    cursor: pointer;
    background-color: rgb(93, 93, 93);
}


summary > h3{cursor: pointer;}
.aperture {
    position: absolute;
    inset: 0px;
    border: 6px solid #e3e3e3;
    border-radius: 50%;
    overflow: hidden;
    height: 110px;
    width: 110px;
    left: 0;
    top: 0;
    margin: auto;
    animation: aperture-scale 1.8s ease-in-out infinite;
    z-index:1;
    background-color: white;
}

.blade {
    position: absolute;
    width: 55px;
    height: 55px;
    background: #000000;
    top: 0%;
    left: 50%;
    transform-origin: 0% 100%;
    clip-path: polygon(0% 100%, 100% -25%, 100% 100%);
    animation: iris 1.8s ease-in-out infinite;
}

.blade:nth-child(1) { --r: 0deg; }
.blade:nth-child(2) { --r: 60deg; } 
.blade:nth-child(3) { --r: 120deg; }
.blade:nth-child(4) { --r: 180deg; }
.blade:nth-child(5) { --r: 240deg; }

.blade:nth-child(6) {
    --r: 300deg;
}

.outer.loading {
    opacity: 1;
    visibility: visible;
    transition: all 1.1s ease-in-out;
}

.outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.33);
    display: block;
    width: 130px;
    height: 130px;
    border: 0px solid  rgb(135, 135, 135);
    background-color: rgba(245, 245, 245, 0.367);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 1.1s ease-in-out;
}

@keyframes aperture-scale {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(0.55) rotate(360deg);}
    100% { transform: scale(1) rotate(540deg);}
}

@keyframes iris {
    0% { transform: rotate(calc(var(--r) + 90deg)) translate(50%, 50%) scaleX(0.5); }
    50% { transform: rotate(calc(var(--r) - 90deg)) translate(0%, 0%) scale(2.5,2.5); clip-path: polygon(0% 100%, 100% -105%, 100% 100%);}
    100% { transform: rotate(calc(var(--r) + 90deg)) translate(50%, 50%) scaleX(0.5); }
}
.red-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    
    
    width: 105px;
    height: 105px;
    transform:translate(-50%, -50%);
    border-radius: 50%;
    border: solid rgb(152, 152, 152) 20px;
    background-color: hsla(0, 0%, 100%, 0.271);
    z-index:0;
}

@keyframes center {
    0% { transform: scale(1) translate(-50%, -50%) }
    50% {transform: scale(0.45)}
    100% { transform: scale(1) translate(-50%, -50%) }
}

video{
    margin:auto;
    position: relative;
    left:50%;
    transform: translateX(-50%);
    min-height: 100vh;
}

.main-page{
    overflow-y: scroll;
}
