* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #051a0a 0%, #072e11 50%, #051a0a 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.birthday-title {
    font-size: 3rem;
    color: #4a90e2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
    font-weight: bold;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 2px 2px 20px rgba(74, 144, 226, 0.7); }
}

.challenge-message {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 8px rgba(255, 215, 0, 0.2);
    font-weight: 500;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    width: 120px;
    height: 180px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card.completed {
    background-image: url('trophy.png'), var(--original-bg) !important;
    border-color: #28a745;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: #072e11;
}

.card:active {
    transform: translateY(-2px);
}



.complete-btn {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a2e;
    color: #ffd700;
    border: none;
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 0.6rem;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.card:hover .complete-btn {
    opacity: 1;
}

.complete-btn:hover {
    background: #1a1a4a;
    color: #fff;
}

.card.completed .complete-btn {
    background: #0a0a2e;
    color: #ffd700;
    opacity: 1;
}

.card.completed .complete-btn:hover {
    background: #1a1a4a;
    color: #fff;
}

.card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background: #072e11;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #0a3d16;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #0a0a2e;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffd700;
}

.close {
    color: #ffd700;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.modal-content h2 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.modal-content p {
    color: #ffd700;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

.complete-btn {
    background: #0a0a2e;
    color: #ffd700;
    border: none;
    border-radius: 15px;
    padding: 8px 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

.complete-btn:hover {
    background: #1a1a4a;
    color: #fff;
}

.complete-btn.completed {
    background: #6c757d;
    color: #ffd700;
}

.complete-btn.completed:hover {
    background: #5a6268;
    color: #fff;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .birthday-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .challenge-message {
        font-size: 1.1rem;
        margin-bottom: 30px;
        line-height: 1.4;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
        max-width: 100%;
    }
    
    .card {
        width: 90px;
        height: 135px;
    }
    

    
    .complete-btn {
        font-size: 0.5rem;
        padding: 3px 6px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .birthday-title {
        font-size: 1.8rem;
    }
    
    .challenge-message {
        font-size: 1rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
    }
    
    .card {
        width: 80px;
        height: 120px;
    }
    

    
    .complete-btn {
        font-size: 0.45rem;
        padding: 2px 5px;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 15px;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
    
    .modal-content p {
        font-size: 0.9rem;
    }
}
