html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

:root {
    --primary-color: #FFFFFF;
    --secondary-color: #492092;
    --tertiary-color: #FFC700;
}

body {
    font-family: sans-serif;
    margin: 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    overflow-x: hidden;
}

a:not(.button) {
    color: var(--tertiary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:not(.button):hover {
    color: #ED09BC;
}

header-component, footer-component {
    background-color: var(--secondary-color);
}

header-component {
    position: sticky;
    top: 0;
    z-index: 100;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

main > p,
main > ul,
main > ol {
    text-align: left;
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    line-height: 1.6;
}

main > ol {
    padding-left: 3rem; /* Align with text above */
}

main > ol > li {
    margin-bottom: 1rem;
}

/* Adjust main section height for pages without a header/footer */
body:not(:has(header-component)) main {
    min-height: 100vh;
}

.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-section h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0 1rem 2rem;
}

.hero {
    padding: 2rem;
}

.logo h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.logo-image {
    width: 120px;
    margin-bottom: 1rem;
}

.location-prompt {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.location-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem; /* Increased spacing */
    flex-wrap: wrap;
}

.button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
}

.button:hover {
    background-color: var(--tertiary-color);
    color: var(--primary-color);
}

.view-menu-button {
    background-color: #ED09BC;
    color: var(--primary-color);
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.view-menu-button:hover {
    background-color: var(--tertiary-color);
    color: var(--secondary-color);
}

.age-confirmation {
    font-size: 1rem; /* Increased font size */
    color: #A9A9A9;
    margin-top: 2rem; /* Added vertical spacing */
    margin-bottom: 1rem;
}

.intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    align-items: flex-start;
    padding: 1rem;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 5px;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: left;
}

.faq-item[open] {
    background-color: #f0f0f0;
}

.faq-question {
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
    }
    
    .hero-section {
        aspect-ratio: 4 / 3;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    body:not(:has(header-component)) main {
        justify-content: flex-start;
        padding-top: 8rem;
        padding-bottom: 2rem;
        box-sizing: border-box;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        aspect-ratio: 1 / 1;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}
