:root {
    --primary-color: #ff477e;
    --secondary-color: #ff85a1;
    --accent-color: #fbb1bd;
    --bg-color: #0f0c29;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

#app-container {
    width: clamp(800px, 95%, 1500px);
    padding: 2rem;
    text-align: center;
}

header {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #ff477e, #fbb1bd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

#subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

#quiz-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: clamp(5px, 3rem, 10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.8s ease-out;
}

#question-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 30%));
    justify-content: center;
    gap: 1.5rem;
}

.option-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    aspect-ratio: 4/5;
    border: 3px solid transparent;
}

.option-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.option-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.option-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

/* .option-card:hover .overlay {
    background: rgba(0, 0, 0, 0.4);
} */

.option-card .card-description {
    color: white;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    pointer-events: none;
}

.option-card:hover img {
    filter: brightness(1.1);
}

.hidden {
    display: none !important;
}

/* Result Screen */
#result-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

#result-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) blur(5px);
    transition: opacity 1s ease;
}

#result-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

#result-content p {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

#gift-name {
    font-size: 6rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(255, 71, 126, 0.5);
    animation: scaleIn 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#gift-description {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    animation: fadeInUp 1.5s ease-out;
}

#restart-btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 71, 126, 0.3);
}

#restart-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 71, 126, 0.5);
    background: #ff5e8e;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    #gift-name {
        font-size: 3.5rem;
    }

    #quiz-container {
        padding: 1.5rem;
    }

    #question-area {
        grid-template-columns: 1fr;
    }
}