body {
    background-color: #1a1a1a;
    font-family: sans-serif;
    padding: 1vw;
    margin: 0;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

.content{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vw 0;
}

.content-1{
    width: min(90vw, 600px);
    min-height: min(40vh, 300px);
    border-radius: 2vw;
    background-color: #2a2a2a;
    padding: min(5vw, 40px);
    box-shadow: 0 1vw 3vw rgba(0, 0, 0, 0.5);
}

.content-1 h1{
    text-align: center;
    color: #ffcc00;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0 0 2vw 0;
}
	
.date-box {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2vw;
    font-family: sans-serif;
}

.date-box label {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #ffffff;
}

.date-box input[type="date"] {
    padding: 1.5vw;
    border: 2px solid #ccc;
    border-radius: 0.5vw;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.date-box button {
    align-self: center;
    padding: 2vw 3vw;
    background-color: #f7c04a;
    color: black;
    border: none;
    border-radius: 1vw;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 25vw;
}

.date-box button:hover {
    background-color: #e0a800;
}

/* กรอบร้าน */

.content-2{
    padding: 2vw;
    display: flex;
    justify-content: center;
}

.content-2-1{
    padding: 1vw;
    border: solid rgb(56, 56, 56);
    border-radius: 1.5vw;
    display: none;
    width: 95vw;
    max-width: 1200px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #f7c04a #2a2a2a;
}
/* แผงร้าน */

.box-1{
    padding: 2vw;
    display: inline-flex;
    min-width: fit-content;
}

.out-1{
    padding: 2vw;
}

.out-1-1{
    display: grid;
    gap: min(8vw, 80px);
}

/* ZONE C */

.zone-c{
    padding: 1vw;
    min-width: fit-content;
}

.zone-c1{
    padding: 1vw;
    display: flex;
    justify-content: space-between;
    min-width: 25vw;
}

.zone-c1-box{
    margin-left: min(6vw, 60px);
    margin-right: min(6vw, 60px);
}

.zone-c2{
    padding: 1vw;
    display: flex;
    gap: 1vw;
    width: fit-content;
    flex-wrap: wrap;
    justify-content: center;
}

/* stage other */

.stage{
    padding: 2vw;
    background-color: black;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: min(12vw, 100px);
    width: min(20vw, 200px);
    font-size: clamp(0.7rem, 2vw, 1rem);
    border-radius: 1vw;
    min-width: 150px;
}

.space{
    padding: 1vw;
    min-width: 2vw;
}

.wall-1{
    background-color: black;
    height: min(25vw, 250px);
    width: min(2vw, 20px);
    min-height: 200px;
    min-width: 15px;
}

.bar-wall{
    background-color: black;
    height: min(29vw, 290px);
    width: min(5vw, 50px);
    min-height: 250px;
    min-width: 30px;
}

/* ZONE A */

.zone-a1{
    padding: 2vw;
    margin-top: min(7.5vw, 75px);
    gap: 1vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zone-a2{
    padding: 0.5vw;
    display: grid;
    gap: 1vw;
}

.zone-a2-1{
    padding: 1vw;
    display: flex;
    justify-content: space-between;
    gap: 1vw;
    flex-wrap: wrap;
}

.zone-a2-1-1{
    padding: 1vw;
    justify-content: space-between;
    display: flex;
    gap: 1vw;
    flex-wrap: wrap;
}

/* ZONE B */

.zone-b{
    padding: 1vw;
    min-width: fit-content;
}

.zone-b1{
    padding: 1vw;
    display: flex;
    gap: min(2vw, 20px);
    margin-top: 2vw;
    flex-wrap: wrap;
    justify-content: center;
}

.zone-b2{
    padding: 0.5vw;
    display: grid;
    gap: 1vw;
}

.zone-b2-1{
    padding: 1vw;
    display: flex;
    gap: min(2vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
}

/* BAR */

.bar-1{
    padding: min(2vw, 20px);
    margin-left: 2vw;
}

.bar-1-1{
    display: grid;
    gap: 0.5vw;
}

/* ปุ่มโตีะ */

.btn-2 {
    padding: min(1.5vw, 15px);
    font-size: clamp(0.6rem, 1.8vw, 0.8rem);
    background-color: #333;
    color: white;
    border: none;
    border-radius: 1vw;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 8vw;
    min-height: 6vw;
    max-width: 80px;
    max-height: 60px;
    white-space: nowrap;
}

.btn-2:hover {
    background-color: #555;
}

.btn-2:disabled {
    background-color: red !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

#form-container {
    display: none;
    width: min(90vw, 400px);
    margin: 2vw auto;
    padding: min(4vw, 30px);
    border-radius: 2vw;
    background-color: #2a2a2a;
    color: #ffffff;
    box-shadow: 0 1vw 3vw rgba(0, 0, 0, 0.5);
    flex-direction: column;
    gap: 2vw;
    font-family: sans-serif;
    top: 50%;
    left: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
}

#form-container label {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
}

#form-container input {
    padding: 1.5vw;
    border: 2px solid #ccc;
    border-radius: 0.5vw;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    width: 100%;
    box-sizing: border-box;
}

#form-container button {
    align-self: center;
    padding: 2vw 4vw;
    background-color: #f7c04a;
    color: black;
    border: none;
    border-radius: 1vw;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 25vw;
}

#form-container button:hover {
    background-color: #e0a800;
}

#selected-table {
    font-weight: bold;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

#count-member {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    margin: 1vw 0;
    text-align: center;
}

.btn-loading {
    width: min(6vw, 48px);
    height: min(6vw, 48px);
    border: min(0.6vw, 5px) solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    align-self: center;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    min-width: 30px;
    min-height: 30px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Media Queries สำหรับหน้าจอขนาดต่างๆ */

@media (max-width: 768px) {
    .content-2-1 {
        overflow-x: scroll;
        padding: 2vw;
    }
    
    .box-1 {
        padding: 1vw;
        min-width: 350px;
    }
    
    .zone-c1 {
        min-width: 200px;
    }
    
    .zone-c1-box {
        margin-left: 3vw;
        margin-right: 3vw;
    }
    
    .stage {
        min-width: 120px;
        height: min(15vw, 80px);
        width: min(25vw, 150px);
    }
    
    .btn-2 {
        min-width: 12vw;
        min-height: 8vw;
        font-size: clamp(0.5rem, 2.5vw, 0.7rem);
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5vw;
    }
    
    .content-1 {
        width: 95vw;
        padding: 4vw;
    }
    
    .box-1 {
        min-width: 300px;
        padding: 2vw;
    }
    
    .btn-2 {
        min-width: 15vw;
        min-height: 10vw;
        padding: 2vw;
    }
    
    .zone-c2, .zone-b2-1, .zone-a2-1 {
        justify-content: flex-start;
        gap: 2vw;
    }
}

@media (min-width: 1200px) {
    .content-2-1 {
        max-width: 1400px;
    }
    
    .btn-2 {
        min-width: 60px;
        min-height: 45px;
        font-size: 0.75rem;
    }
    
    .stage {
        height: 80px;
        width: 160px;
        font-size: 0.9rem;
    }
}