body {
    font-family: Arial, sans-serif;
    background: linear-gradient(270deg, #F5EFEB, #577C8E);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    padding: 20px;
    color: #000;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.wave {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }
    25% {
        transform: translateX(-25%);
    }
    50% {
        transform: translateX(-50%);
    }
    75% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(1);
    }
}



.container {
    text-align: center;
    margin-bottom: 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.63);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

header .navbar
{
    img{
        display: flex;
        align-items: left;
        height: 20%;
        width: 20%;
    }
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.navbar .menu-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.navbar a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.navbar a:hover {
    color: #577C8E;
}

.navbar-menu.active {
    color: #577C8E;
    font-size: large;
}

#menu-button
{
    color:#000;
    cursor: pointer;
    display: none;
}

#menu-button:hover
{
    color: #577C8E;
}

#close-menu-button
{
    position: absolute;
    top: 20px;
    right: 20px;
    color:#000;
    cursor: pointer;
    display: none;
}

#close-menu-button:hover
{
    color: #577C8E;
}

.logo,
.logoMapping {
    display: block;
    margin: 0 auto;
}

.logo {
    width: 300px;
    height: auto;
}

.logoMapping {
    width: 600px;
    height: auto;
}

.container1 {
    text-align: center;
    padding: 30px;
    background-color: #F5EFEB;
    color: #2f4156;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex; /* mengganti position: flex dengan display: flex */
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-bottom: 20px;
}

.seat-map-container {
    width: 100%;
    overflow-x: auto; /* Mengaktifkan scroll horizontal jika elemen terlalu lebar */
}

.seat-map {
    display: inline-block;
    white-space: nowrap; /* Menjaga elemen agar tidak terpotong dan memungkinkan scroll */
}

.column-header, .seat-row {
    display: flex;
    white-space: nowrap; /* Memastikan baris kursi tidak turun ke baris berikutnya */
}

.empty-header {
    width: 30px; /* Adjust to the width of the row numbers */
}

.col-number {
    width: 40px; /* Adjust to the width of each seat */
    text-align: center;
    font-weight: bold;
    margin-right: 5px; /* Adjust spacing between columns */
}

.seat-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* Space between seat rows */
}

.row-number {
    width: 30px; /* Adjust to the width of the row numbers */
    font-weight: bold;
    margin-right: 10px; /* Space between row number and the seat */
    text-align: center;
}

.seat {
    width: 40px; /* Adjust to the size of each seat */
    height: 40px;
    margin-right: 5px; /* Space between seats */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

/* Responsive styles */
@media (min-width: 1024px) {
    .col-number, .seat {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .row-number, .empty-header {
        width: 40px;
    }
}

@media (max-width: 768px) {
    .col-number, .seat {
        width: 35px;
        height: 35px;
        margin-right: 7px;
    }

    .row-number, .empty-header {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .col-number, .seat {
        width: 30px;
        height: 30px;
        margin-right: 3px;
    }

    .row-number, .empty-header {
        width: 25px;
    }

    .seat-row {
        margin-bottom: 3px;
    }
}

.available {
    background-color: #28a745;
}

.occupied {
    background-color: #00BFFF;
}

.no-use {
    background-color: #343a40;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button-container button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #577C8E;
    color: white;
    border: none;
    border-radius: 5px;
}

.button-container button:hover {
    background-color: #0056b3;
}

/* Responsive Styles */
@media screen and (max-width: 768px)
{
    header.show-mobile-menu::before
    {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(5px);
        background-color: rgba(0, 0, 0, .1);
    }

    #menu-button, #close-menu-button
    {
        display: block;
    }
    .navbar .menu-links
    {
        position: fixed;
        left: -350px;
        top: 0;
        flex-direction: column;
        width: 260px;
        height: 100vh;
        background: #fff;
        padding: 70px 40px 0;
        transition: left 0.2s ease;
    }

    header.show-mobile-menu .navbar .menu-links
    {
        left: 0;
    }

    .navbar a
    {
        color: #000;
    }

    .container1 {
        padding: 40px;
        max-width: 90%;
    }
}

@media (min-width: 768px) {
    .container1 {
        padding: 50px;
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container1 {
        padding: 20px;
        max-width: 100%;
        border-radius: 5px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .container1 {
        width: 100vw; /* Menggunakan seluruh lebar layar */
        height: 100vh; /* Menggunakan seluruh tinggi layar */
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Memastikan isi berada di tengah */
    }

    .seat-map-container {
        width: 100vw; /* Gunakan seluruh lebar layar */
        height: 80vh; /* Membatasi tinggi seat map agar tidak melebihi layar */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .seat-map {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); /* Grid menyesuaikan jumlah kursi */
        gap: 5px;
        justify-content: center;
        width: 90vw; /* Pastikan seat map sesuai dengan layar */
        height: 100%; /* Gunakan tinggi maksimal */
    }

    .col-number, .seat {
        width: 100%; /* Gunakan seluruh lebar grid */
        height: auto;
        aspect-ratio: 1 / 1; /* Pastikan kotak tetap persegi */
        font-size: 14px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .row-number {
        width: 40px;
        font-size: 14px;
    }
}
