:root {
    --gradient: linear-gradient(135deg,
            rgba(0, 200, 83, 1) 0%,
            rgba(255, 90, 170, 1) 100%);
    --border-radius: 10px;

    --correct-green: #0DC357;
}

@font-face {
    font-family: "Nunito";
    src: url("https://assets.kvejp.dev/Fonts/Nunito/Nunito.ttf") format("truetype");
}

@font-face {
    font-family: "Fredoka";
    src: url("https://assets.kvejp.dev/Fonts/Fredoka/Fredoka.ttf") format("truetype");
}

#watermelon {
    display: block;
    margin: auto;
    margin-top: 30vh;
    transition: 0.175s cubic-bezier(.55, .76, .37, 1.2)
}

#watermelon:hover {
    cursor: pointer;
}

p,
span,
div {
    font-family: "Fredoka";
    font-size: 16px;
}

.total-melon-count-container {
    width: 100vw;
    display: flex;
    align-items: end;
    justify-content: center;
    margin-top: 7vh;
}

.maintext {
    font-size: 3svh;
    height: 3svh;
    line-height: 3svh;
    margin: 0;
    display: flex;
    align-items: center;
    font-family: "Fredoka";
}

.counter-melon-icon {
    height: 3vh;
    /* padding-top: 10px; */
}

body {
    overflow: hidden;
}

main {
    align-items: center;
}

main>div {
    display: flex;
}

p {
    display: block;
    margin: auto;
}

.upgrade-shop {
    position: absolute;
    width: 15vw;
    min-width: 205px;
    right: 20px;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.upgrade-shop::before,
#pc-other-shops-container::before,
#mobile-multibuy-button::before,
#upg-hover::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;

    border-radius: var(--border-radius);
    background: var(--gradient);

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

#upgrade-shop {
    border-radius: var(--border-radius);
    top: 6svh;
    height: calc(59svh - 2px);
}

#onetime-upgrade-shop,
#clicker-upgrade-shop {
    top: 40px;
    height: calc(100% - 40px);
    align-items: center;
    right: 0;
}

#clicker-upgrade-shop {
    display: none;
}

#clicker-onetime-shops-container {
    position: absolute;
    top: 66svh;
    height: 31svh;
    right: 20px;
    width: 15vw;
    min-width: 205px;
}

* {
    overscroll-behavior: none;
}

#pc-other-shops-container {
    display: flex;
    margin: 0;
    padding: 0;
    height: 40px;
    width: 100%;
    justify-content: space-around;
}

.pc-upgrade-category-button {
    width: 100%;
    background-color: var(--melon-tab-unfocused);
}

.upgrade-shop::-webkit-scrollbar {
    display: none;
}

.upgrade-button {
    width: calc(100% - 4px);
    height: fit-content;
    padding-bottom: 10px;
    margin-bottom: 2px;
    display: flex;
    flex-direction: row;
    margin-bottom: 1%;
    margin-left: 2px;
}

.upgrade-button:hover:not(.onetime-upgrade-purchased) {
    filter: brightness(110%);
    cursor: pointer;
}

.upgrade-button:active:not(.onetime-upgrade-purchased) {
    filter: brightness(90%);
    /* cursor: grabbing; */
}

.upgrade-container {
    display: flex;
    flex-direction: column;
}

.upgrade-owned {
    text-align: right;
    margin-right: 10%;
}

.upgrade-title {
    width: 100%;
    height: 0;
    background-color: var(--melon-tab-unfocused);
    margin-bottom: 2px;
    display: flex;
    flex-direction: row;
    margin-bottom: 1%;
    padding-bottom: 3svh;
}

.upgrade-title-text {
    padding-top: 0;
    text-align: center;
    line-height: 3svh;
}

.upgrade-shop-container {
    width: 100%;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.button>p {
    padding-left: 0;
    line-height: 3svh;
    padding-top: 0;
}

.mobile-upgrade-category-container {
    display: none;
}

#melonnav {
    color: var(--selected-nav);
    text-decoration: underline;
    font-weight: bold;
}

#melonnav:hover {
    filter: brightness(60%);
}

.pc-upgrade-category-container {
    display: flex;
    position: absolute;
    top: 60svh;
    height: 5svh;
    width: 100vw;
    margin: 0;
    left: 0;
    justify-content: space-around;
}

.pc-upgrade-category-button:hover {
    background-color: #181818;
    cursor: pointer;
}

.active {
    color: var(--melon-text-selected-tab);
    background-color: var(--melon-selected-tab);
    font-weight: bold;
}

.click-text {
    position: absolute;
    animation: textAnimation 4s forwards;
    font-size: 22px;
    pointer-events: none;
}

.drop-image {
    position: absolute;
    animation: dropAnimation 4s forwards;
    pointer-events: none;
    margin: 0;
    width: 25px;
    height: auto;
    pointer-events: none;
}

.upgrade-container>p {
    margin-left: 5px;
}

#status-effect-container {
    position: absolute;
    top: 6rem;
    left: 1vw;
    min-height: 3svh;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    min-width: 175px;
    background-color: var(--melon-tab-unfocused);
    border: 2px solid #00ACAA;
    display: none;
    grid-template-columns: 5;
    grid-template-rows: 5;

}

.status-effect-text {
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.4rem;
    font-size: 0.9rem;
    padding-left: 2px;
    padding-right: 2px;
}

.info-window-closing {
    animation: deExpandInfoWindow 0.1s linear;
}

.blur-closing {
    animation: blurOut 0.1s linear;
}

.blur-open {
    animation: blurIn 0.1s linear;
}

.info-window-open {
    animation: expandInfoWindow 0.1s linear;
}

.bg-blur-full {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.164);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
}

.info-window-container {
    width: fit-content;
    height: fit-content;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    padding-top: 1rem;
    background-color: black;
    margin: auto;
    border: 2px solid #f44;
}

.info-window-title {
    padding-top: 1rem;
    font-size: xx-large;
}

.info-window-description {
    padding-top: 1rem;
    font-size: larger;
    max-width: 40vw;
    word-wrap: normal;
    overflow-wrap: normal;
}

.info-window-div {
    width: calc(fit-content + 4%);
    height: calc(fit-content + 4%);
    margin: 2%;
    padding: 2%;
    transition: background-color 0.2s;
}

.info-window-div:hover {
    cursor: pointer;
}

.info-window-accept-div {
    background-color: rgb(54, 143, 54);
}

.info-window-cancel-div {
    background-color: rgb(177, 31, 31);
}

.info-window-accept-div:hover {
    background-color: rgb(39, 105, 39);
}

.info-window-cancel-div:hover {
    background-color: rgb(121, 23, 23);
}

.info-window-text {
    line-height: 100%;
    padding: 0;
    pointer-events: none;

}

.info-window-buttons-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.onetime-upgrade-purchased {
    cursor: not-allowed;
}

#mobile-multibuy-button {
    display: none;
}

#global-settings-button {
    background-image: url("/assets/settings_wheel_new.svg");
    filter: invert() brightness(90%);
    background-size: 80%;
    background-repeat: no-repeat;
    width: clamp(16px, 8vw, 32px);
    height: clamp(16px, 8vw, 32px);
    position: absolute;
    top: 3.2rem;
}

#global-settings-button:hover {
    filter: invert() brightness(80%);
    cursor: pointer;
}

#compact-click-text {
    color: #888;
}

#texts-container {
    flex-direction: column;
}

@media screen and (max-width: 767px) {
    .upgrade-shop {
        width: calc(100% - 4px);
        left: 0;
    }

    #upgrade-shop {
        top: 65svh;
        height: 30svh;
    }

    #onetime-upgrade-shop {
        display: none;
        top: 65svh;
        height: 30svh;
    }

    #clicker-upgrade-shop {
        display: none;
        top: 65svh;
        height: 30svh;
    }

    img {
        margin-top: 20svh;
    }

    .upgrade-title {
        display: none;
    }

    .mobile-upgrade-category-container {
        display: flex;
        position: absolute;
        top: 60svh;
        height: 5svh;
        width: 100vw;
        margin: 0;
        left: 0;
        justify-content: space-around;
    }

    .mobile-upgrade-category-button {
        background-color: var(--melon-tab-unfocused);
        width: 100%;
    }

    .mobile-upgrade-category-button:hover {
        background-color: #181818;
    }

    #status-effect-container {
        display: none;
    }

    .info-window-description {
        padding-top: 1rem;
        font-size: larger;
        max-width: 100vw;
        word-wrap: normal;
        overflow-wrap: normal;
    }

    #mobile-multibuy-button {
        width: 4rem;
        position: absolute;
        right: 0;
        top: 55svh;
        height: 2rem;
        background-color: var(--melon-tab-unfocused);
        display: flex;
    }

    #mobile-multibuy-text {
        margin: 0;
        line-height: 100%;
    }

    #global-settings-button {
        top: 10svh;
    }

    .settings-window-window {
        width: 100vw;
    }

    .setting-text {
        font-size: normal;
    }

    #settings-close-button {
        left: calc(10vw);
        top: 20.5svh;
    }
}

@keyframes textAnimation {
    0% {
        font-size: var(--text-size);
        transform: translateY(0) rotate(var(--rotation));
        opacity: 1;
    }

    100% {
        transform: translateY(-300px) rotate(0deg);
        opacity: 0;
        font-size: 14px;
    }
}

@keyframes dropAnimation {
    0% {
        width: 25px;
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        width: 10px;
        transform: translateY(350px);
        opacity: 0;
    }
}

#upg-hover {
    background-color: var(--melon-tab-unfocused);
    display: none;
    color: #ccc;
    width: fit-content;
    padding: 8px;
    position: absolute;
    top: 2px;
    z-index: 999999999;
    /* white-space: pre-line; */
}

/* -- NEW SETTINGS -- */

.settings-window-background {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

.settings-window-window {
    margin: auto;
    width: 50vh;
    height: 50vh;
    background-color: black;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid gray;
}

.settings-window-close-btn {
    width: 20px;
    aspect-ratio: 1;
    background-color: red;
    position: absolute;
    top: calc(20px + 31px / 2 - 20px / 2);
    border-radius: 5px;
    background-image: url("/assets/x.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.4rem;
    cursor: pointer;
}

.settings-window-title {
    font-size: 1.4rem;
    width: 100%;
    text-align: center;
}

.settings-window-close-btn {
    background-color: red;
    position: absolute;
}

.settings-content-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.settings-setting-container {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    overflow: scroll;
}

.settings-button {
    background-color: #4F378B;
    padding-block: 8px;
    padding-left: 8px;
    margin-bottom: 5px;
    color: #D0BCFF;
    border-radius: 16px;
    cursor: pointer;
}

.settings-button:hover {
    filter: brightness(90%);
}

.settings-button-danger {
    background-color: #ed3215;
    color: #3e0800;
}

.settings-setting-title {
    text-align: left;
    font-size: 0.9rem;
    line-height: 52px;
    padding: 0;
    margin: 0;
}

#playing-other-tab-bg {
    background-color: #0000008f;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;

    display: flex;
    justify-content: center;
    align-items: center;
}

.playing-other-tab {
    color: red;
    font-size: large;
    text-align: center;
}

.pc-other-shops-container {
    min-height: 40px;
}

.upgrade-title {
    min-height: 30px;
    padding: 0;
}

.flex-row {
    display: flex;
}
