@media (prefers-color-scheme:light) {
    :root {
        --gamebackground: #ffffff;
        --gamecolor: #ff900d;
        --gamebuttoncolor: #c65b46;
        --gamebuttonhovercolor: #e86652;
        --gamebuttonbordercolor: #9b2d14;
        --gameBG: #8ba9d050;
        --gameBGBorder: #3188ae;
        --elementcolor: linear-gradient(#84cdf7, #61a2df);
        --elementhovercolor: linear-gradient(#a6d8f5, #83b8ea);
        --elementbordercolor: #49acd6;
    }
}

@media (prefers-color-scheme:dark) {
    :root {
        --gamebackground: #111111;
        --gamecolor: #ff900d;
        --gamebuttoncolor: #c65b46;
        --gamebuttonhovercolor: #e86652;
        --gamebuttonbordercolor: #9b2d14;
        --gameBG: #8ba9d050;
        --gameBGBorder: #3188ae;
        --elementcolor: linear-gradient(#84cdf7, #61a2df);
        --elementhovercolor: linear-gradient(#a6d8f5, #83b8ea);
        --elementbordercolor: #49acd6;
    }
}

#suikaSection {
    width: 100vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#suikaBGAndContainer {
    position: relative;
    /* height: calc(100% - 2rem); */
    width: 550px;
    aspect-ratio: 9/14;
}

#suikaGameContainerBG {

    background-color: #8ba9d050;
    border: 2px solid #3188ae;

    border-radius: 24px;
    z-index: -12300;
    display: flex;
    justify-content: end;
    align-items: end;
    box-sizing: border-box;
    margin: 0;
    transition: background-color 0.5s, border-color 0.5s;

}

#suikaFloor {
    width: 100%;
    background-image: linear-gradient(#3e90c0, #2a6091);
    /* border: 2px solid var(--gameBGBorder); */
    border-radius: 22px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    /* position: absolute; */
    bottom: 0;
    height: 50px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: -123122;
}

#suikaGameContainer {

    border-radius: 24px;
    /* z-index: -12300; */
}

#suikaGameContainerBG,
#suikaGameContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#suikaStats {
    position: absolute;
    flex-direction: column;
    right: 2em;
    width: 13em;
    min-width: fit-content;
    background: var(--elementcolor);
    top: 1em;
    padding: 1em;
    border-radius: 0.25em;
    border: 2px solid var(--elementbordercolor);
    display: flex;
    box-shadow: 0.25em 0.5em 1em var(--shadowcolor);
    z-index: 100;

}

.suikaStatImg {
    width: 28px;

}

.counter {
    font-weight: bold;
    right: 0;
    font-size: 1rem;
    color: black;
}

.suikaStatSingle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.suikaImageTitle {
    display: flex;
    flex-direction: row;
    align-items: center;

}

.counterTitle {
    font-size: 1rem;
    color: black;
}

#balanceBoth {
    display: flex;
    flex-direction: column;
}

#suikaThreshold {
    width: calc(100% + 4px);
    position: absolute;
    top: 0px;
    height: 100px;
    transform: translateX(2px) translateY(-2px);
    border-radius: 24px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    background-color: #8ba9d050;
    border: 2px solid #3188ae;

    transition: opacity 0.4s;
    aspect-ratio: 550/160;

    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.5s, border-color 0.5s;
}

#goldMelonStat,
#solidGoldStat {
    display: none;
}

#suikaTitle {
    padding: 0;
    margin: 0;
    padding-bottom: 0.25em;
}

#suikaBalanceTitle,
#suikaBalanceTitle2 {
    font-size: 1rem;
    padding: 0;
    margin: 0;
    color: black;
}

#suikaBalance,
#cash {
    padding: 0;
    margin: 0;
    color: black;
}

.topline {
    border-top: 2px solid var(--elementbordercolor);
}

.bottomline {
    border-bottom: 2px solid var(--elementbordercolor);
    margin-bottom: 0.5em;
}

#suikaBalanceStack {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
}


#suikaAllTitle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

dialog::backdrop {
    /* background: rgba(255, 0, 0, 0.25); */
    backdrop-filter: blur(1em);
    pointer-events: all;
}

#suikaCircle {
    width: 220px;
    height: 220px;
    top: 5em;
    left: 3em;
    position: absolute;

}

#circleImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;

    object-fit: contain;
}



#rotatingWatermelon {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    transform: translateX(70px) translateY(70px);

    object-fit: contain;
}


#restartGameDialog {
    flex-direction: column;
    text-align: center;
    z-index: 102;
    background: var(--elementcolor);
    border-color: var(--elementbordercolor);
    box-sizing: border-box;
    align-items: center;
    min-width: 200px;
    max-width: 400px;
    width: auto;
}

.casualBtn {
    width: 7em !important;
    text-wrap: nowrap;
}

.switcherBtn {
    display: flex;
}

#gameModeSwitcher {
     background: var(--elementcolor);
    border-color: var(--elementbordercolor);
}


@media (max-width: 1024px) {
    .suikaStatSingle {
        /* display: none; */
        flex-direction: column;
    }

    .counterTitle {
        display: none;
    }

    #suikaStats {
        position: relative;
        width: calc(100vw - 2em);
        box-sizing: border-box;
        margin: 2em;
        width: auto;
        top: auto;
        right: auto;
        left: auto;
        bottom: 1em;
        /* flex-direction: row; */
    }

    #suikaList {
        display: grid;
        grid-template-columns: auto auto auto auto auto auto;
    }

    #suikaBalanceStack {

        padding-right: 0.75em;
        padding-right: 0.75em;
    }

    .topline {
        border-top: none;

        border-left: 2px solid var(--elementbordercolor);
        padding-left: 1em;
    }

    .bottomline {
        border-bottom: none;
        margin-bottom: 1.5em;
    }

    #balanceBoth {
        flex-direction: row;
    }

    #suikaSection {
        height: auto;
        margin-bottom: 3em;
        margin-top: 3em;
    }

    #suikaCircle {
        display: none;
    }

}

@media (max-height: 1000px) {

    #suikaBGAndContainer {
        width: 450px;
    }

}

@media (max-height: 750px) {

    #suikaBGAndContainer {
        width: 400px;
    }

    #suikaThreshold {

        height: 80px;

    }

}

@media (max-width: 650px) {
    #suikaBGAndContainer {
        width: 350px;
    }

    #suikaList {
        display: grid;
        grid-template-columns: auto auto auto auto;
    }

    #suikaThreshold {

        height: 90px;

    }
}


@media (max-width: 1300px) {
    #suikaCircle {
        scale: 0.65;
        left: 0em;
        top: 2em;
    }
}
.volumeButtons svg {
  width: 1.5em;
  height: 1.5em;
  fill: var(--textcolorblack);
}