@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500&display=swap');


body {
    display: grid;
    place-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color:#2C2C2C;
    color:azure;
    user-select: none;
    position: relative;
    font-family: 'Quicksand', sans-serif;
}


.main {
    display: flex;
    gap: 200px;
    margin-bottom: 100px;
}

.left {
    text-align: center;
    font-size: 30px;
    margin-bottom: 50px;
}

.right-nav-bar {
    display: flex;
    font-weight: bold;
}

.right-nav-bar>div {
    width: 140px;
    height: 40px;
    background-color: rgb(95, 0, 107);
    text-align: center;
    padding-top: 15px;
}

.right-nav-bar>div:hover {
    opacity: 0.6;
    cursor: pointer;
}

.right-nav-bar>:first-child {
    background: rgb(0, 0, 107);
}

.right-nav-bar>:nth-child(2) {
    background: rgb(107, 0, 0);
}

#upgrades-container {
    max-height: 400px;
    width: 500px;
    padding: 20px;
    overflow-y: scroll;
    border: 2px rgb(150, 150, 150) solid;
    border-radius: 4px;
    box-shadow: 2px 2px 4px rgb(140, 140, 140);
    position: relative;
}

.yellow-text {
    font-size: 32px;
    color: rgb(230, 243, 115);
    font-weight: 1000;
    text-shadow: 2px 2px 3px rgb(90,90,90);
}

.red-text {
    font-size: 32px;
    color: rgb(255, 0, 0);
    font-weight: 1000;
    text-shadow: 2px 2px 3px rgb(90,90,90);
}

.cost-text {
    font-size: 18px;
}

.coin-img  {
    width: 350px;
    position: relative;
}

.coin-img:hover {
    opacity: 0.9;
    cursor: pointer;
}

.coin-img:active {
    opacity: 0.8;
    transform: scale(1.03);
}

.upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 330px;
    height: 80px;
    border: 4px solid white;
    padding: 10px 20px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    margin-bottom: 15px;
}

.upgrade:hover {
    opacity: 0.85;
    cursor: pointer;
}

.type-skill {
    display: none;
}

.type-artifact {
    display: none;
}

.upgrade-img {
    width: 40px;
}

.coin-img-container {
    position: relative;
}

.coin-image {
    height: 25px;
    width: 25px;
}

.relic-image {
    height: 30px;
    width: 30px;
    display: none;
}

.cost-info {
    display: flex;
    align-items: center;
}

.next-level-info  {
    position: absolute;
    right: -105px;
    background-color: rgb(90,89,90);
    width: 100px;
    height: 105px;
    text-align: center;
    display: none;
    font-size: 14px;
    border-radius: 3px;
}

.right-section {
    display: block;
}

.upgrade:hover .next-level-info {
    display: block;
}

.statistics {
    position: absolute;
    bottom: 0;
    width: 750px;
    padding: 30px;
    border: 2px white solid;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    left: 50%;
    transform: translate(-50%);
}

.texts {
    display: flex;
    gap: 50px;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
}

.util-buttons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.util-button {
    padding: 8px 13px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
}

.util-button:hover {
    opacity: 0.8;
    cursor: pointer;
}

.relic {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px; 
}

.relic-img {
    width: 30px;
    height: 30px;
    display: flex;
}

.fade-up {
    animation: fade-up 1s;
}

@keyframes fade-up {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    10% {
        transform: translateY(-2px);
        opacity: 0.95;
    }
    20% {
        transform: translateY(-5px);
        opacity: 0.9;
    }
    30% {
        transform: translateY(-8px);
        opacity: 0.82;
    }
    40% {
        transform: translateY(-13px);
        opacity: 0.75;
    }
    50% {
        transform: translateY(-19px);
        opacity: 0.65;
    }
    60% {
        transform: translateY(-25px);
        opacity: 0.55;
    }
    70% {
        transform: translateY(-31px);
        opacity: 0.22;
    }
    80% {
        transform: translateY(-42px);
        opacity: 0.3;
    }
    90% {
        transform: translateY(-55px);
        opacity: 0.15;
    }
    100% {
        transform: translateY(-65px);
        opacity: 0;
    }
    
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}