*,*::after,*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* font-family: DynaPuff, Tahoma, sans-serif; */
    font-family: "Playpen Sans", Tahoma, sans-serif;
    user-select: none;
}

:root {
    --back-color: #eef7f5;
    --first-color: palegreen;
    --second-color: lightblue;
    --light-shadow: 1px 1px 3px 2px grey;
    --small-text: clamp(0.5rem,2vmin,1rem);
    --vsmall-text: clamp(0.5rem,1.5vmin,0.8rem);
    --button-text: clamp(0.8rem, 3vmin, 2rem);
    --tab-title: clamp(0.5rem, 3vmin, 2rem);
    --main-text: clamp(1rem, 4vmin, 2rem);
    --main-button: #98fce5;
    --main-shadow: 2px 2px 9px 2px black;
}

body {
    position: relative;
    background-color: var(--back-color);
    width: 100vw;
    height: 100svh;
    overflow: hidden;
    background-image: url(/assets/homebackground.png);
}
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    object-fit: cover;
}
.background-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: .5;
}
.main-header {
    z-index: 10;
    height: 9%;
    width: 100%;
    padding-top: 1%;
    padding-left: 5%;
    padding-right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.page-title {
    /* width: fit-content; */
    height: 80%;
    width: 15%;
    min-width: 120px;
    display: flex;
    align-items: center;
}
.about-contact-links-container {
    padding: 5px;
    height: 10vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.about-contact-link {
    width: 20%;
    height: 100%;
    border-radius: 10px;
    box-shadow: var(--light-shadow);
    cursor: pointer;
}
.about-contact-link > a {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.link-image {
    height: 90%;
    width: auto;
    max-width: 100%;
}

.other-header-buttons {
    width: 80%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.page-title img {
    width: auto;
    height: 100%;
    border-radius: 8px;
    padding: 2px;
    box-shadow: 1px 1px 2px 1px grey;
    margin-right: 5px;
}
.other-header {
    height: 80%;
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--small-text);
}
.other-header-link {
    color: black;
    outline: none;
    text-decoration: none;
    height: fit-content;
    width: fit-content;
    padding: 10px 20px 10px 20px;
    border-radius: 10px;
}
.other-header-link:hover {
    box-shadow: 0 0 3px 1px white;
}
.other-header-dropdown {
    width: 20%;
    height: 100%;
    flex-grow: 1;
    margin-right: 5%;
    background-color: rgba(255,255,255,0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    display: none;
    z-index: 10;
}
.other-header-dropdown:hover {
    background-color: rgba(255,255,255,0.7);
}
.dropdown-links-container {
    overflow: hidden;
    height: 0;
    display: none;
    width: 100%;
    /* transition: height 100ms ease-in-out; */
}
.dropdown-links-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60%;
    width: 100%;
    max-height: 50px;
}
.droppeddown:hover {
    background-color: rgba(255,255,255,0.3);
}
.dropdown-links-button > img {
    width: 50px;
    height: auto;
    transition: transform 200ms ease-in-out;
}
.other-header-dropdown.extend {
    height: 600%;
    background-color: rgba(0,150,150,.9);
}
.other-header-dropdown.extend > .dropdown-links-container {
    height: 90%;
}
.dropdown-link {
    height: 15%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.dropdown-link-text {
    width: 70%;
    height: 100%;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.7);
    outline: none;
    text-decoration: none;
    text-wrap: balance;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.dropdown-link-text:hover {
    background-color: rgba(255,255,255,0.9);
}
.other-header-dropdown.extend > .dropdown-links-button > img {
    transform: rotate(180deg);
}
.about-window {
    margin: 0 auto;
    height: 90%;
    width: 92%;
    padding-right: 2%;
    overflow-y: scroll;
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: var(--second-color) var(--main-button);
    }
}
.about-window::-webkit-scrollbar {
    background: var(--second-color);
    border-radius: 4px;
}
.about-window::-webkit-scrollbar-thumb {
    background: var(--main-button);
    border-radius: 4px;
}
.game-button {
    width: 20vmax;
    min-width: 20vmax;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-button);
    color: black;
    font-size: var(--button-text);
    box-shadow: var(--main-shadow);
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
}
.game-button:hover, .new-game-dialog-button-close:hover {
    background-color: var(--first-color);
}
[data-tooltip] {
    position: relative;
}
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    font-size: var(--vsmall-text);
    width: 80%;
    max-height: 30%;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
}
.news-game-button {
    width: max-content;
    padding: 0 2% 0 2%;
    left: 50%;
    transform: translateX(-50%);
    min-height: 12vh;
    border: 3px solid white;
}
.about-text {
    margin-bottom: 5vh;
}
.other-tabs {
    margin-bottom: 5vh;
}
.main-footer {
    width: 100%;
    padding-left: 5%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: var(--vsmall-text);
    width: 95%;
}

@media (orientation:portrait) {
    .main-header {
        justify-content: space-around;
    }
    .other-header, .other-header-buttons {
        display: none;
    }
    .other-header-dropdown {
        display: flex;
    }
    .dropdown-links-container {
        display: flex;
        gap: 2%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .landing-text {
        height: 50%;
    }
    .display-reel-buttons {
        flex-direction: column;
        height: 50%;
    }
    .reel-button {
        height: 40%;
        width: 80%;
        font-size: 0.7em;
    }
}
.behind { 
    display: none;
    z-index: -20;;
}