:root {
    --qudo-yellow: #FCD902;
    /* QUDO-Yellow */
    --qudo-darkgrey: #282725;
    /* QUDO-DarkGrey */
    --qudo-blue: #1867FF;
    /* QUDO-Blue */
    --max-width: 450px;
    --welcome-font-size: clamp(16px, 3vw, calc(3 * var(--max-width)/100));
    --airdrop-font-size: clamp(12px, 2.6vw, calc(3.9 * var(--max-width)/100));
    /* "x.x * " is a tested value, if max-width changes, change this */
    --header-height: 3em;
}

body,
html {
    margin: 0;
    padding: 0;
    /*height: 100%; /* this seems to break telegram. or maybe it doesnt...*/
}

body {
    background-color: #282725f3;
    background-image: url('public/background-darker.gif');
    font-family: 'Space Mono', monospace;
    -webkit-text-size-adjust: 100%;
}



[class] {
    /*background-color: #6d35c613; /* - */
    /*border: 1px solid #b80000d8; /* - */
}


.hide {
    display: none !important;
}

.pulsate {
    animation: pulsate 2s ease-in-out infinite;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.96);
        /* Grow by 20% */
    }

    100% {
        transform: scale(1);
        /* Shrink by 3% */
    }
}


.header {
    background-color: var(--qudo-yellow);
    /* QUDO-Yellow */
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}

a.header {
    text-decoration: none;
    color: inherit;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1em;
}

.header img {
    height: 2em;
    /* Match the font size of the text */
    object-fit: contain;
}

.header-text {
    font-weight: 700;
    font-size: 1.5em;
    text-align: center;
    color: var(--qudo-darkgrey);
    /* QUDO-DarkGrey */
    font-family: 'Space Mono', monospace;
}



.main {
    display: flex;
    justify-content: center;
    padding-bottom: 5vh;
    /* for bit of scroll confort + background to fill the screen */
    margin-top: var(--header-height);
}



.content {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 16px;
    margin: 0px 2%;

}



.welcome,
.airdrop,
.game {
    max-width: 100%;
}


.welcome {
    color: white;
    font-size: calc(var(--welcome-font-size) * 1.1);
    overflow: hidden;

    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.4em;

    margin-top: 32px;

}

.welcome #username {
    font-size: var(--welcome-font-size);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.airdrop {
    padding: 16px;
    border: 1px solid white;
    margin-top: 16px;
    background-color: var(--qudo-blue);
    box-sizing: border-box;
}

.airdrop hr {
    margin: 6px 4px;
}

.airdrop-text {
    text-align: center;
    color: white;
    font-size: calc(var(--airdrop-font-size) + 0.2vw);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.airdrop-text-mid {
    font-size: var(--airdrop-font-size);
}

.airdrop-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    color: var(--qudo-yellow);
}

.airdrop-bottom img {
    height: calc(var(--airdrop-font-size) * 3);
    /* ratio font-image */
}

.airdrop-bottom-left {
    margin-left: 8px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
}

.airdrop-bottom-right {
    margin-right: 8px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
}

.airdrop-bottom-desc {
    font-size: calc(var(--airdrop-font-size) * 0.8);
    font-weight: 400;
}

.airdrop-bottom-value {
    font-size: calc(var(--airdrop-font-size) * 1.5);
    font-weight: 700;
}

.game {
    margin-top: 32px;
}

.game-name {
    padding: 4px 8px;
    color: var(--qudo-darkgrey);
    font-size: calc(var(--welcome-font-size) * 1.1);
    font-weight: 700;
    background-color: var(--qudo-yellow);
}

.game-image {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
    overflow: hidden;
    /* Ensure no overflow */
}

.game-image-background {
    width: 100%;
    height: fit-content;
    /* */
    max-height: 485px;
    aspect-ratio: 2 / 1;
    /* 970 x  485h */
    object-fit: cover;
    z-index: -2;
    display: block;
    /* Ensure the image is displayed as a block element */
}

.game-image-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    max-width: 10%;
}

.game-energy {
    background-color: white;
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 4px 0;
}

.game-energy img {
    width: auto;
    height: 26px;
}

.game-energy-full,
.game-energy-empty {
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid black;
}

.game-energy-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 10px;
}

.game-energy-full {
    background-color: var(--qudo-blue);
    border: 1px solid var(--qudo-blue);
}

.game-energy-timer {
    font-weight: 600;
    font-size: clamp(14px, 2vw, 18px);
}

.game-highscore {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;

    line-height: 1.2;
    color: #FCD902;
    font-weight: bold;
    background-color: #282725;
    height: auto;
    width: 128px;
    padding: 4px 0px;
}

.game-highscore span {
    font-size: 1.8rem;
    line-height: 1.2;
}

@media (max-width: 498px) {
    .game-highscore {
        width: 104px;

        font-size: 0.8rem;
        margin: 7px;
    }

    .game-highscore span {
        font-size: 1.5rem;
    }
}

#unity-container {
    height: 100vh;
}

.hydro#unity-container {
    height: calc(100dvh - 50px);
}

.hydro .unity-mobile {
    height: calc(100dvh - 50px);
    width: 98dvw;
}

@media (max-width: 498px) {
    .header-content.hydro .header-text {
        font-size: 1em;
    }
}

#ai-playground {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
}

.aiP-logo{
    margin-right: 12px;
    height: 26px; /* This is forced by game-energy.img.height */
}

.aiP-stars{
    margin-right: 52px; /* aiP-logo.width*2 */

    height: 26px;
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aiP-star{
    color: black;
    font-size: 28px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.full-screen {
    width: 100%;
    border: none;
    /*height: 100vh;*/
    /* new (untested) change for .no-scroll */
    height: 100dvh;
    border: none;
    overflow: hidden !important;
    touch-action: none;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

.no-scroll {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    touch-action: none;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}