﻿.map-wrapper {
    /* We'll use traditional red and gold for borders/shadows */
    border: 4px solid #b30000; /* Deep red border */
    border-radius: 8px;
    padding: 8px; /* A small inner padding "frame" */
    background-color: #fff; /* White background to make the map pop */
    /* Using box-shadow for a layered, festive feel */
    box-shadow: 0 0 15px rgba(0,0,0,0.1), 0 0 5px #ffd700; /* Subtle shadow + gold glow */
}

.map-responsive {
    width: 100%;
    /* This is the key to responsiveness:
       - 75vh = 75% of the viewport (screen) height
       - min-height = ensures it's not too small on desktop
       - max-height = ensures it's not too large on tall monitors
    */
    height: 75vh;
    min-height: 400px;
    max-height: 700px;
    border-radius: 4px; /* Slightly rounded inner corners */
}

.map-page-white-bg {
    background: linear-gradient(to bottom, #ffffff, #f0f8ff);
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* 3. Themed Button */
.btn-ukr-confirm {
    background-color: #A00000; /* Deeper, richer red */
    color: #FFD700; /* Gold text - unchanged, but now contrasts better */
    border: 2px solid #FFD700; /* Gold border */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px; /* Slightly more padding for a bolder look */
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 15px rgba(160, 0, 0, 0.4); /* Stronger, more elegant shadow */
    font-size: 1.1em; /* Slightly larger text */
}

    .btn-ukr-confirm:hover,
    .btn-ukr-confirm:focus {
        background-color: #FFEB3B; /* Softer, slightly lighter gold on hover */
        color: #8B0000; /* Darker red text on hover */
        border-color: #8B0000; /* Darker red border on hover */
        box-shadow: 0 8px 18px rgba(255, 215, 0, 0.5); /* Enhanced shadow on hover */
        transform: translateY(-3px); /* Slightly more pronounced lift */
        cursor: pointer;
    }

/* New: General text improvements for contrast if needed */
.text-ukr-gold {
    color: #FFD700; /* Gold text for emphasis */
}

.text-ukr-red {
    color: #A00000; /* Deep red text for emphasis */
}

/* Container */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

/* Each snowflake wrapper (handles sway) */
.snowflake-wrapper {
    position: absolute;
    top: 0;
    animation: sway var(--sway-duration) ease-in-out infinite;
}

/* The actual snowflake image (handles fall) */
.snowflake {
    width: var(--size);
    height: var(--size);
    background: url('https://i.ibb.co/jk2Dgcwq/Pngtree-white-snowflake-free-illustration-4450872.png') no-repeat center;
    background-size: contain;
    opacity: var(--opacity);
    animation: fall var(--fall-duration) linear infinite;
}

/* Vertical falling motion */
@keyframes fall {
    0% {
        transform: translateY(var(--start-offset));
    }

    100% {
        transform: translateY(100vh);
    }
}

/* Horizontal side-to-side sway */
@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px);
    }
}


.modal-reminder {
    font-style: italic;
    color: #444;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid #FFD700; /* Gold accent bar */
    background: #fffbea; /* Soft warm background */
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    font-family: 'Lora', serif;
    line-height: 1.5;
}

    .modal-reminder::before {
        content: "📌 ";
        font-size: 1.2em;
    }

.festive-title {
    text-shadow: 2px 2px 6px rgba(160, 0, 0, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}


.map-page-white-bg {
    background-color: #ffffff; /* Pure white */
}

.text-ukr-red {
    color: #A00000; /* Deep red from our theme */
}

/* --- NEW MODAL STYLES --- */

.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000; /* On top of snow, under modal */
}

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 500px;
    z-index: 2001; /* On top of everything */
    font-family: 'Lora', serif;
}

.custom-modal-content {
    background-color: #fcfaf5; /* Warm off-white */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 4px solid #FFD700; /* Gold border for success */
}

    .custom-modal-content.modal-error {
        border-color: #A00000; /* Red border for error */
    }

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #FFD700;
}

.custom-modal-content.modal-error .custom-modal-header {
    border-bottom-color: #A00000;
}

.custom-modal-title {
    font-family: 'Merriweather', serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #333;
}

.custom-modal-content.modal-error .custom-modal-title {
    color: #A00000; /* Red title for error */
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    color: #aaa;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

    .custom-modal-close:hover {
        color: #333;
    }

.custom-modal-body {
    padding: 1.5rem;
    font-size: 1.1rem;
    color: #333;
}

.modal-subtitle {
    font-style: italic;
    color: #555;
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 1rem;
}

.custom-modal-footer {
    padding: 1rem 1.5rem;
    text-align: right;
    border-top: 1px solid #eee;
}

/* New error button style */
.btn-ukr-confirm-error {
    background-color: #A00000; /* Red bg */
    color: #FFEB3B; /* Light gold text */
    border: 2px solid #FFEB3B;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

.btn-ukr-confirm-error:hover {
    background-color: #FFEB3B;
    color: #A00000;
    border-color: #A00000;
}

.title-ukr{
    padding-top: 15px;
}

.language-switcher {
    display: inline-flex;
    background-color: #FFD700;
    border-radius: 9999px;
    padding: 2px;
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    z-index: 10;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.language-switcher button {
    font-family: 'Lora', serif;
    border: none;
    border-radius: 9999px;
    background-color: transparent;
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
}

.language-switcher button:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.4);
}

.language-switcher button:disabled {
    background-color: white;
    font-weight: bold;
    cursor: default;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.map-legend {
    background-color: #fff8f0;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Lora', serif;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem auto;
    padding: 0.75rem 1rem;
}

    .map-legend p {
        margin: 0.2rem 0;
    }
/* 📱 Responsive font scaling for small screens */
@media (max-width: 768px) {
    h1.festive-title {
        font-size: 1.6rem;
    }

    h2, .form-label, .map-legend p {
        font-size: 0.9rem !important;
    }

    .btn-ukr-confirm,
    .btn-ukr-confirm-error {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .custom-modal-title {
        font-size: 1.2rem;
    }

    .custom-modal-body {
        font-size: 1rem;
    }

    .language-switcher button {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* 📱 Even smaller adjustments for very small phones */
@media (max-width: 480px) {
    h1.festive-title {
        font-size: 1.3rem;
    }

    h2, .form-label, .map-legend p {
        font-size: 0.8rem !important;
    }

    .btn-ukr-confirm,
    .btn-ukr-confirm-error {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .custom-modal-title {
        font-size: 1rem;
    }

    .custom-modal-body {
        font-size: 0.9rem;
    }
}

.instruction-img {
    max-height: 70px; /* never taller than 70px */
    width: 100%; /* scale to container width */
    height: auto; /* keep aspect ratio */
    object-fit: contain; /* prevent cropping */
    display: block;
    margin: 0 auto; /* center on page */
}
