@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Montserrat:wght@400;500;600&display=swap');

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    background: linear-gradient(135deg, rgba(79, 1, 1, 0.829) 0%, #1a1a1a 40%, #0f0f0f 100%);
    background-attachment: fixed;
    color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
}

h1 {
    color: #FFD700;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    letter-spacing: 2px;
    margin-top: 30px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    animation: fadeZoom 1.5s ease forwards;
    animation-delay: 0.2s;
}

h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, #FFD700, #D4AF37);
    border-radius: 2px;
}

nav {
    width: 90%;
    height: 50px;
    margin: 50px auto;
    background-color: #540101;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: slideDown 1.2s ease forwards;
}

nav a {
    flex: 1;
    color: #e5e5e5;
    line-height: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #ffd700;
    color: #2c3e50;
    font-weight: bolder;
}

nav a.active {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #000000;
    font-weight: 700;
    box-shadow: inset 0 0 10px rgba(255,215,0,0.6);
}

h2 {
    color: #FFD700;
    background-color: #540101;
    border-bottom: 3px solid #D4AF37;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
    padding: 10px 10px;
    margin: 15px 0 30px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 30px;
    text-shadow: 0 0 6px rgba(186, 181, 158, 0.718);
    position: relative;
    display: block;
    border-radius: 5px;
}

.card {
    background-color: #E5E5E5;
    padding: 18px;
    margin: 18px 0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card h3 {
    color: #630D0D;
    margin-bottom: 8px;
}

.hidden {
    display: none !important;
}

.winner {
    border: 4px solid gold;
    box-shadow:
        0 0 15px rgba(255,215,0,0.6),
        0 0 30px rgba(255,215,0,0.3);
}

figcaption {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #ddd;
}


footer::before {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 0 auto 10px;
    background: linear-gradient(90deg, #FFD700, #D4AF37);
    border-radius: 2px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #FFD700;
    font-size: 14px;
}

footer a {
    color: #ffd700;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}

@keyframes fadeZoom {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    #box1 {
        flex-direction: column !important;
    }
    .noms {
        flex-wrap: wrap !important;
        justify-content: center;
    }
    .noms figure {
        width: 45% !important;
        margin-bottom: 15px;
    }
    #pinterest {
        column-count: 2 !important;
    }
}

@media (max-width: 480px) {
    .noms figure {
        width: 90% !important;
    }
    #pinterest {
        column-count: 1 !important;
    }
}

