/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative; /* Necessary for the pseudo-element */
    z-index: 1;
    color: #ffffff;
}

/* Fixed background layer to solve mobile scrolling issues */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Keeps your gradient overlay + image */
    background: linear-gradient(rgba(18, 18, 18, 0.4), rgba(18, 18, 18, 0.5)), 
                url('menu-bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1; /* Pushes background behind content */
    pointer-events: none; /* Allows clicks to pass through */
}

/* Container styling */
.welcome-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Menu Page Layout Container */
.menu-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Introduction Text */
h1 {
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    color: #ffffff;
}

/* Flag Grid Styling */
.flag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Flag Card Links */
.flag-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: rgba(26, 26, 26, 0.5);
    padding: 20px 15px;
    border-radius: 12px;
    border: 1px solid rgba(42, 42, 42, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.flag-card img {
    width: 80px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.flag-card span {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

/* Hover Effects */
.flag-card:hover {
    transform: translateY(-5px);
    border-color: #cda45e;
    background-color: rgba(34, 34, 34, 0.7);
}

.flag-card:hover span {
    color: #cda45e;
}

/* Responsive Layout changes */
@media (max-width: 600px) {
    .flag-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    h1 {
        font-size: 1rem;
    }
}