/* Custom Fonts */
@font-face {
    font-family: 'YourChristmasFont';
    src: url('fonts/mul1.ttf') format('woff2'), 
         url('fonts/mul.ttf') format('woff');
}

@font-face {
    font-family: 'Your24Font';
    src: url('fonts/stm.otf') format('woff2'), 
         url('fonts/Your24Font.woff') format('woff');
}

/* Smooth scrolling for all scrolling elements */
html {
    scroll-behavior: smooth;
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    overflow-x: hidden;
}

/* Logo Text Styles */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    font-family: sans-serif;
    font-size: 1rem;
    color: #ffffff;
    z-index: 20;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards 1.9s;
}

/* Fade-in Animation for Logo */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Bounce and Fade-in Animation for Menu Button */
@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) translateY(10px);
    }
    70% {
        opacity: 0.8;
        transform: scale(0.95) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Menu Button Styles */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 20;
    animation: fadeIn 0.6s ease-out forwards 2.3s; /* Duration set to 2 seconds */
    opacity: 0;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Menu open animation */
.menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Popup Menu Styles */
.popup-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
    z-index: 19;
}

.popup-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.popup-menu ul li {
    margin: 15px 0;
}

.popup-menu ul li a {
    color: #e1d3c6;
    font-size: 2rem;
    text-decoration: none;
}

/* Show menu when open */
.popup-menu.show {
    opacity: 1;
    pointer-events: auto;
}

/* Background squares */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: height 1s ease;
    z-index: 1;
}

.background.shrink {
    height: 8vh;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.square {
    width: 100vw;
}

.top {
    background-color: #7B7C58;
    height: 100vh;
    z-index: 13;
}

.bottom {
    background-color: #ffffff;
    height: 0vh;
}

/* Scrollable Container */
.scroll-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    max-height: 100vh;
    padding-top: 90px;
}

/* Seat Grid */
.seat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px auto; /* Center the grid */
    max-width: 500px; /* Set a max-width for centering */
    justify-content: center; /* Aligns items in the center */
    margin-left: -22px;
}

/* Seat Item Styles */
.seat-item {
    padding: 10px;
    background-color: #e1d3c6;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.selected-seat {
    background-color: #7B7C58;
    color: white;
}

/* CSS to lock the form container scroll position */
.fixed-scroll {
    position: fixed;
    top: 10vh; /* Locks form container at 10vh from the top */
    width: 100%; /* Maintain full width */
}


.seat-count {
    font-weight: bold;
}

.form-note {
    color: #7B7C58;
    font-weight: normal;
}

.form-note strong {
    font-weight: bold;
}

.form-title {
    font-size: 24px; /* Adjust font size as desired */
    font-family: 'YourChristmasFont', sans-serif; /* Replace with your preferred font */
    color: #7B7C58; /* Change color if needed */
    font-weight: bold; /* Optional, for bold text */
}

/* Form Container */
.form-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow-y: scroll; /* Vertical scroll only */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-height: 80vh;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling on mobile */
    transform: translateZ(0); /* Enable hardware acceleration */
    z-index: 10;
}

/* Form Styles */
.form-container .scrollable-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Labels */
.form-container .scrollable-form label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Input Fields */
.form-container .scrollable-form input,
.form-container .scrollable-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    width: 100%;
}

/* Submit Button */
.form-container .scrollable-form button {
    padding: 12px;
    background-color: #7B7C58;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container .scrollable-form button:hover {
    background-color: #5a5b45;
}

/* Image Styling */
.form-image {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border-radius: 8px;
}

/* Footer Bottom Styles */
.footer-bottom {
    width: 100%;
    padding: 1px;
    background-color: #7B7C58;
    color: #ffffff;
    text-align: center;
    position: fixed;
    bottom: 0;
    font-size: 0.6rem;
    z-index: 20;
}

