img {
    display: block;
    margin: auto;
    margin-top: 30vh;
    transition: 0.1s;
}

main {
    align-items: center;
}

main>div {
    display: flex;
}

p {
    display: block;
    margin: auto;
}

.upgrade-shop {
    position: absolute;
    width: 15vw;
    right: 0;
    border-left: 2px solid #440000;
    border-bottom: 2px solid #440000;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

#upgrade-shop {
    top: 6svh;
    height: calc(59svh - 2px);
    border-top: 2px solid #440000;
}

#onetime-upgrade-shop, #clicker-upgrade-shop {
    top: 4svh;
    height: calc(100% - 4svh);
    align-items: center;
}

#clicker-upgrade-shop {
    display: none;
}

#clicker-onetime-shops-container {
    position: absolute;
    top: 66svh;
    height: 31svh;
    right: 0;
    width: 15vw;
    border-top: 2px solid #440000;
    border-left: 2px solid #440000;
}

#pc-other-shops-container {
    display: flex;
    margin: 0;
    padding: 0;
    height: 4svh;
    width: 100%;
    justify-content: space-around;
}

.pc-upgrade-category-button {
    width: 100%;
    background-color: var(--melon-tab-unfocused);
    border-bottom: 2px solid #440000;
}

.upgrade-shop::-webkit-scrollbar {
    display: none;
}

.upgrade-button {
    width: 100%;
    height: fit-content;
    padding-bottom: 10px;
    margin-bottom: 2px;
    display: flex;
    flex-direction: row;
    margin-bottom: 1%;
}

.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;
}

.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: 8svh;
    left: 2vw;
    width: 8vw;
    height: 3svh;
    background-color: var(--melon-tab-unfocused);
    border: 2px solid #00ACAA;
    display: none;
}

.status-effect-text {
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 3svh;
    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.png");
    width: clamp(16px, 8vw, 32px);
    height: clamp(16px, 8vw, 32px);
    position: absolute;
    top: 6svh;
}

#settings-window {
    width: 40vw;
    height: 60svh;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.setting-bg-container {
    width: 100%;
    align-items: left;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.setting-text {
    text-align: left;
    margin: 0;
    font-size: large;
    margin-top: 5px;
}

#settings-close-button {
    width: clamp(16px, 8vw, 16px);
    height: clamp(16px, 8vw, 16px);
    position: absolute;
    background-image: url("/assets/cross.png");
    object-fit: fill;
    left: calc(30vw);
    top: 20.5svh;
}

#compact-click-text {
    color: #888;
}

#texts-container {
    flex-direction: column;
}

@keyframes blurIn {
    0% {
        backdrop-filter: blur(0px);
    }
    100% {
        backdrop-filter: blur(10px);
    }
}

@keyframes expandInfoWindow {
    0% {
      transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes deExpandInfoWindow {
    0% {
      transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes blurOut {
    0% {
        backdrop-filter: blur(10px);
    }
    100% {
        backdrop-filter: blur(0px);
    }
}

@media screen and (max-width: 767px) {
    .upgrade-shop {
        width: calc(100% - 4px);
        left: 0;
        border: 2px solid var(--melon-shop-border);
    }

    #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);
        border: 2px solid var(--melon-shop-border);
        display: flex;
    }
    
    #mobile-multibuy-text {
        margin: 0;
        line-height: 100%;
    }

    #global-settings-button {
        top: 10svh;
    }

    #settings-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;
    }
}