body{
    font-family: 'Poppins';
    background-color: #1a1a2e;
    color: #e6e6e6;
    margin: 0;
    padding: 0;
    max-height: 100%;
    text-align: center;
}

.three-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: 
        "section1 section2 section3";
    gap: 10px;
    height: 96vh;
    padding: 20px;
}

.section-1 {
    grid-area: section1;
    background-color: #16213e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
}

.section-2 {
    grid-area: section2;
    background-color: #16213e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.section-3 {
    grid-area: section3;
    background-color: #16213e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

h1, h3, h4 {
    color: #4ecca3;
    margin: 5px 0;
}

.section-1 img { 
    cursor: pointer;
    max-width: 40%;
    transition: transform 0.1s;
    margin-top: 10vh;
}

.section-1 img:hover {
    transform: scale(1.05);
}

.section-1 img:active {
    transform: scale(0.95);
}

.underline {
    text-decoration: underline;
    color: #f05454;
}

.stats{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background-color:#0f3460;
    border-radius: 30px;
}

.stats-item{
    padding: 10px 0;
}

.stats-name {
    font-weight: bold;
    padding: 10px;
}

/* Upgrade items styling */
.upgrade-item {
    background-color: #0f3460;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upgrade-item:hover {
    background-color: #1f5c8c;
    transform: translateY(-2px);
}

.upgrade-info {
    text-align: left;
}

.upgrade-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #e94560;
    margin-bottom: 5px;
}

.upgrade-description {
    font-size: 0.9rem;
    color: #b2b2b2;
}

.upgrade-cost {
    background-color: #e94560;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.upgrade-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.badge {
    background-color: #4ecca3;
    color: #1a1a2e;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.info, .info a {
    font-size: 0.9rem;
    color: #894c30;
    margin-top: auto;
    margin-bottom: 10px;
    padding-top: 20px;
}

/* Achievement styles */
.achievement-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}


.achievement-item {
    position: relative;
    display: flex;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    background-color: #0f3460;
    cursor: pointer;
    transition: all 0.3s ease;
}

.achievement-item img {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.achievement-item .achievement-name {
    font-weight: bold;
}

.achievement-item .achievement-description {
    display: none;
    font-size: 0.8rem;
    color: #666;
}

.achievement-item:hover {
    background-color: #1f5c8c;
    box-shadow: 0 0 5px rgba(0, 100, 255, 0.3);
}

.achievement-item:hover .achievement-description {
    display: block;
    position: absolute;
    background-color: #1f5c8c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    white-space: nowrap;
}

/* Locked/Unlocked states */
.achievement-item.locked {
    filter: grayscale(100%);
    opacity: 0.7;
}

.achievement-item.locked img {
    filter: brightness(0.5);
}

.achievement-item.unlocked {
    background-color:#2c6c9d;
    box-shadow: 0 0 5px rgba(0, 100, 255, 0.3);
}

.achievement-item.unlocked img {
    filter: brightness(1.2);
}

/* Achievement notification */
.achievement-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 1000;
    animation: slideIn 0.5s ease, fadeOut 0.5s ease 2.5s;
    transition: opacity 1s ease;
}

.achievement-notification img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.notification-title {
    font-weight: bold;
    color: gold;
    margin-bottom: 3px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 768px) {
    .three-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "section1"
            "section3"
            "section2";
    }
}
