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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: white;
    width: 510px;
    padding: 40px 30px 35px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

header h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

h2 {
    padding-top: 10px;
    padding-bottom: 10px;
}

section.registration-type button,
button {
    background-color: #28a745;
    color: white;
    padding: 10px;
    margin: 10px;
    border: none;
    cursor: pointer;
    width: 90%;
    border-radius: 5px;
}

button:hover {
    background-color: #218838;
}

section#registration-form, section#id-validation {
    display: none;
}

input, select{
    width: 95%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Booth setup */

.container .boothcont {
    text-align: center;
}

/* Fixed Legend */
.booth-legend {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.booth-legend .booth {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 2px;
    border-radius: 5px;
}
.booth.selected .booth.booked .booth.available{
    margin-right: 20px;
 }

/* Fixed Legend Styles (Legend colors stay the same) */
.booth-legend-item {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    margin-left: 10px;
    border-radius: 5px;
}

.legend-selected {
    background-color: #28a745; /* Pink for selected in legend */
}

.legend-booked {
    background-color: #007BFF; /* Dark blue for booked in legend */
}

.legend-available {
    background-color: #B0C4DE; /* Light blue for available in legend */
}

/* Booth Colors */
.booth.selected {
    background-color: #28a745; /* Pink for selected */
}
.booth.booked {
    background-color: #007BFF; /* Dark blue for booked */
}
.booth.available {
    background-color: #B0C4DE; /* Light blue for available */
    margin: 1px;
}

/* Grid Wrapper with a fixed max height and scrolling */
.booth-grid-wrapper {
    max-height: 400px; /* Set a max height */
    overflow-y: scroll; /* Enable vertical scrolling if booths overflow */
    margin-bottom: 20px;
    padding-right: 10px;
}

/* Booth Grid and Row Layout */
.booth-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns as per image */
    grid-gap: 5px;
}

.booth {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
}
.booth:hover {
    opacity: 0.8;
}

/* If more booths, ensure rows are spaced well */
.booth-row {
    display: flex;
    justify-content: space-around;
}

/* Industry dropdown styling */
.industry-dropdown-wrapper {
    margin-bottom: 20px;
    text-align: left;
}
.industry-dropdown {
    width: 100%; /* Ensure the dropdown takes up full width on small screens */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
    .booth-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens */
    }
}

@media (max-width: 768px) {
    .booth-grid {
        grid-template-columns: repeat(3, 1fr); /* 2 columns for tablets */
    }
    /* Adjust the industry dropdown for tablets */
    .industry-dropdown {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .booth-grid {
        grid-template-columns: repeat(2, 1fr); /* 1 column for small screens */
    }
    /* Make sure the dropdown is responsive on small screens */
    .industry-dropdown {
        font-size: 14px;
        padding: 8px;
    }
}
