*,*::after,*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    /* font-family: DynaPuff, Tahoma, sans-serif; */
    font-family: "Playpen Sans", Tahoma, sans-serif;
    user-select: none;
}

html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

: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;
    --highlight-low: rgba(255,255,255,0.2);
    --highlight-mid: rgba(255,255,255,0.5);
    --highlight-high: rgba(255,255,255,0.8);
}

body {
    position: relative;
    background-color: var(--back-color);
    width: 100vw;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    background-image: url(/assets/homebackground.png);
}
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 220vh;
    width: 100vw;
    z-index: -1;
    overflow: hidden;
}
.background-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: .5;
}
.main-header {
    position: fixed;
    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;
}
.other-header-buttons {
    width: 80%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.page-title img {
    width: auto;
    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%;
    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;
}
.other-header-dropdown:hover {
    background-color: rgba(255,255,255,0.7);
}
.dropdown-links-container {
    overflow: hidden;
    height: 0;
    display: none;
    /* transition: height 100ms ease-in-out; */
}
.dropdown-links-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60%;
    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%;
    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);
}
.other-header-link.pulse {
    animation: pulse 1000ms infinite ease-in-out;
}
@keyframes pulse {
    0% {
        scale: 1;
        background-color: var(--highlight-mid);
    }
    50% {
        scale: 1.2;
        background-color: var(--highlight-high);
    }
    100% {
        scale: 1;
        background-color: var(--highlight-mid);
    }
}
/* .dropdown-links-container {
    position: absolute;
    width: 50%;
    max-width: 300px;
    top: 10%;
    right: 10%;
    height: 40%;
    background-color: pink;
    z-index: 10;
} */
.landing-page {
    margin-top: 10vh;
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    height: 90%;
    /*margin-bottom: 10vh;*/
}
.landing-top {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 40%;
}
.landing-top-right {
    height: 100%;
    width: 60%;
}
.landing-logo {
    height: 100%;
    width: auto;
    max-width: 50vw;
}
.landing-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2em;
    width: 100%;
    height: 70%;
}
.display-reel-buttons {
    height: 20%;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.reel-button {
    width: 45%;
    height: 90%;
    box-shadow: var(--main-shadow);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    background-color: rgba(255,255,255,0.3);
}
.reel-button.reel-showing {
    background-color: rgba(255,255,255,0.8);
}
.reel-button:hover {
    background-color: var(--first-color);
}
.landing-display-tab.brand-new {
    background-color: var(--highlight-high);
}
.landing-bottom {
    height: 50%;
    overflow: hidden;
    position: relative;
}

.display-reel-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding-left: 5px;
    padding-right: 5px;
    overflow-x: scroll;
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: rgba(255,255,255,0.5) transparent;
    }
}
.display-reel-container::-webkit-scrollbar {
    background-color: transparent;
}
.display-reel-container::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.5);
    border-radius: 10px;
    cursor: pointer;
}
.display-reel-navigation-button {
    position: absolute;
    height: 95%;
    width: 5%;
    min-width: 30px;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 200ms ease-in-out;
    top: 2.5%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    cursor: pointer;
}
.display-reel-navigation-button > img {
    height: 10%;
    width: 50%;
    opacity: 0.1;
    transition: opacity 200ms ease-in-out;
}
.display-reel-navigation-left {
    left: 0;
}
.display-reel-navigation-right {
    right: 0%;
}
.display-reel-navigation-button:hover {
    background-color: rgba(0, 0, 0, 0.4);
}
.display-reel-navigation-button:hover > img {
    opacity: .8;
}
.landing-display-tab {
    width: 40%;
    height: 95%;
    min-width: 330px;
    box-shadow: 1px 1px 3px 1px black;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.3);
}
.display-tab-image {
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.display-tab-text {
    margin: 0 auto;
    width: 80%;
    height: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-wrap: balance;
}
.display-tab-video {
    height: 80%;
    width: auto;
    max-width: 90%;
    border-radius: 10px;
}
.display-tab-link {
    height: 10%;
    width: 60%;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: var(--main-shadow);
    border: 3px solid white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}
.add-container {
    height: fit-content;
    min-height: 20vh;
    width: fit-content;
    min-width: 80%;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 10vh;
}
.outer-box {
    height: 80vh;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.outer-box-popup-container {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    transition: transform 300ms ease-in-out;
    z-index: 100;
}
.outer-box-popup-container.show {
    transform: translate(0);
}
.inner-box {
    width: 200%;
    height: 15vh;
    display: flex;
    flex-wrap: nowrap;
    overflow: visible;
    transition: transform ease-in-out 0.5s;
    margin-bottom: 1vh;
    padding-left: 5vw;
}


.first-view {
    width: 90vw;
    background-color: var(--main-button);
    color: black;
    font-size: var(--main-text);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--main-shadow);
    border-radius: 10px;
    cursor: pointer;
}
.inner-box.clicked {
    transform: translateX(-50%);
}
.second-view {
    width: 100vw;
    margin-left: 5vw;
    display: flex;
    flex-wrap: nowrap;
    padding-left: 1%;
    padding-right: 1%;
    justify-content: flex-start;
    align-items: center;
    gap: 2.5%;
    overflow-x: scroll;
    border-radius: 10px;
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: var(--main-button) rgba(255,255,255,0.3);
    }
}
.second-view::-webkit-scrollbar {
    height: 14px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
}
.second-view::-webkit-scrollbar-thumb {
    background: var(--main-button);
    border-radius: 14px;
    cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
    @supports ( animation-timeline: view()) {
        .landing-page {
            animation: fade-out linear forwards;
            animation-timeline: view();
            animation-range: cover 60%;
        }
        .outer-box {
            opacity: 0;
            animation: fade-in linear forwards;
            animation-timeline: view();
            animation-range: entry;
        }
    }
    
}
@keyframes fade-in {
    to { opacity: 1;}
}
@keyframes fade-out {
    to { opacity: 0;}
}
.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: fit-content; */
    max-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;
}
.popup-background {
    z-index: 99;
    position: absolute;
    top: 0%;
    left: 0%;
    background-color: rgba(255,255,255,0.5);
}
.pre-game-popup {
    z-index: 100;
    position: absolute;
    width: 92%;
    height: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background-color: var(--main-button);
    border-radius: 10px;
    /* transition: height ease-in 0.5s; */
    overflow: hidden;
}
.pre-game-popup-header {
    height: 10%;
    width: 100%;
    display: flex;
    position: relative;
}
.pre-game-popup-header-title {
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: var(--button-text);
}
.pre-game-popup-header-close {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 2%;
    right: 0.5%;
    box-shadow: 1px 1px 2px 1px black;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.pre-game-popup.unhidden {
    height: 100%;
}
.pre-game-text {
    position: relative;
    /* display: flex;
    justify-content: center;
    align-items: flex-start; */
    padding: 2%;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-size: var(--button-text);
    height: 75%;
}
.pre-game-text::-webkit-scrollbar {
    display: none;
}
.popup-controls {
    height: 15%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.popup-game-button {
    height: 90%;
    box-shadow: var(--main-shadow);
    color: black;
    border: 3px solid white;
    width: 50%;
    min-width: fit-content;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    text-align: center;
    font-size: var(--button-text);
    cursor: pointer;
}
.popup-game-button:hover {
    background-color: var(--first-color);
}
.popup-button {
    box-shadow: var(--light-shadow);
    border: 1px solid grey;
    border-radius: 8px;
    height: 90%;
    width: 15%;
    min-width: fit-content;
    padding-left: 2px;
    padding-right: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.popup-button:hover {
    background-color: var(--first-color);
}
.other-tabs {
    position: absolute;
    top: 97%;
    width: 100vw;
    border-top: 3px solid grey;
    border-radius: 10px;
    box-shadow: var(--main-shadow);
    transition: transform ease-in-out 0.5s;
}
.news-tab {
    z-index: 7;
}
.news-posts {
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: var(--second-color) var(--main-button);
    }
}
.news-posts::-webkit-scrollbar {
    background: var(--second-color);
    border-radius: 4px;
}
.news-posts::-webkit-scrollbar-thumb {
    background: var(--main-button);
    border: 1px solid black;
    border-radius: 4px;
}
.about-tab {
    z-index: 5;
}
.support-tab {
    z-index: 3;
}
.index-tab {
    z-index: 1;
}
.tab-title {
    background-color: var(--main-button);
    position: absolute;
    width: 25vw;
    height: 10%;
    top: -8%;
    border-top: 3px solid grey;
    border-left: 3px solid grey;
    border-right: 3px solid grey;
    border-radius: 10px 10px 0 0;
    font-size: var(--tab-title);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5px;
    text-align: center;
    cursor: pointer;
}
.news-title {
    left: 1%;
    z-index: 8;
}
.about-title {
    left: 25.5%;
    z-index: 6;
}
.support-title {
    left: 50%;
    z-index: 4;
}
.index-title {
    left: 74.5%;
    z-index: 2
}
.tab-body {
    position: relative;
    padding-top: 1%;
    padding-bottom: 3%;
    background-color: var(--main-button);
    height: 55vh;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}
.news-posts {
    margin-top: 3%;
    overflow-y: scroll;
}
.news-text {
    width: 100%;
    height: fit-content;
    padding-left: 5%;
    padding-right: 4%;
}
.news-post-title {
    height: fit-content;
}
.news-ul {
    height: fit-content;
}
.news-li {
    height: fit-content;
}
.about-text {
    margin-top: 1%;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 10%;
    height: 100%;
    text-align: start;
    overflow-y: scroll;
    -ms-overflow-style: none;
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: var(--second-color) var(--main-button);
    }
}
.about-text::-webkit-scrollbar {
    background: var(--second-color);
}
.about-text::-webkit-scrollbar-thumb {
    background: var(--main-button);
    border: 1px solid black;
    border-radius: 4px;
}
.support-text {
    margin-top: 2%;
    padding-left: 5%;
    padding-right: 5%;
    text-align: start;
    overflow-y: scroll;
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: var(--second-color) var(--main-button);
    }
}
.support-text::-webkit-scrollbar {
    background: var(--second-color);
    border-radius: 4px;
}
.support-text::-webkit-scrollbar-thumb {
    background: var(--main-button);
    border: 1px solid black;
    border-radius: 4px;
}
.about-text ul {
    list-style: none;
    height: fit-content;
}
.index-list {
    padding: 3%;
    padding-bottom: 10%;
    width: 95%;
    height: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2%;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: var(--second-color) var(--main-button);
    }
}
.index-list::-webkit-scrollbar {
    background: var(--second-color);
    border-radius: 4px;
}
.index-list::-webkit-scrollbar-thumb {
    background: var(--main-button);
    border: 1px solid black;
    border-radius: 4px;
}
.index-list li {
    font-size: var(--tab-title);
    width: fit-content;
    padding-left: 1vw;
    padding-right: 1vw;
    height: 5vh;
    background-color: var(--back-color);
    border: 1px solid grey;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.index-li:hover {
    background-color: var(--first-color);
}
.tab-close {
    position: absolute;
    height: fit-content;
    background-color: var(--back-color);
    width: 10vmax;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20%;
    border-radius: 10px;
    border: 1px solid grey;
    text-align: center;
    font-size: var(--tab-title);
    cursor: pointer;
    box-shadow: var(--light-shadow);
}
.other-tabs.opened {
    transform: translateY(-50%);
}
.new-game-dialog {
    position: absolute;
    height: 50vh;
    width: 50vw;
    background-color: var(--back-color);
    border: 4px solid silver;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 25;
    box-shadow: 1px 1px 3px 1px white;
}
.new-game-dialog-interior {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.isolate-backdrop {
    position: absolute;
    top: 0%;
    left: 0%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 19;
    height: 100%;
    width: 100vw;
    pointer-events: all;
    transition: opacity 350ms ease-in-out;
}
.new-game-dialog-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 20%;
}
.new-game-dialog-buttons {
    height: 80%;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.new-game-dialog-button {
    height: 20%;
    cursor: pointer;
}
.new-game-dialog-button-close {
    min-width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--main-shadow);
    border-radius: 8px;
}
.new-game-dialog-go-to-game {
    height: 45%;
}
.new-game-dialog-button-noshow {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 50px;
    box-shadow: var(--light-shadow);
    padding: 5px;
}
.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: 80%;
}
.noshow-button {
    width: 20%;
    outline: none;
}
.noshow-button-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 70%;
    font-size: var(--small-text);
}
.isolate-backdrop.nobackdrop {
    pointer-events: none;
    opacity: 0;
}
/* @media (orientation: portrait) {
    .new-game-dialog {
        width: 90vw;
    }
    .new-game-dialog-buttons {
        width: 90%;
    }
    .new-game-dialog-go-to-game > div {
        width: 80%;
    }
    .new-game-dialog-button-close, .new-game-dialog-button-noshow {
        width: 80%;
    }
} */
@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;;
}