ter:root {
    --element-width: 90vw;  /* 90% of viewport width */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.input-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
    width: var(--element-width);
    max-width: 500px;  /* Optional: Limit maximum width */
}

label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    text-align: left;
}

select {
    width: var(--element-width);  
    max-width: 500px;  /* Optional limit */
    height: 35px;
    font-size: 14px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
}

input {
    max-width: 500px;  /* Optional limit */
    height: 30px;
    font-size: 14px;
    padding: 3px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
}

button {
    width: var(--element-width);
    max-width: 500px;
    height: 40px;
    font-size: 16px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center; 
}

button:hover {
    background-color: #0056b3;
}

/* Ensure table and descriptions are also 90% of the screen width */
table, .zone-description {
    width: var(--element-width);
    max-width: 600px;
    margin: 10px auto;
    margin-left: 0px;
    font-size: 14px;
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: white;
}

/* Zone background colors */
.zone1 { background-color: #d4edda; }  /* Light green */
.zone2 { background-color: #cce5ff; }  /* Light blue */
.zone3 { background-color: #fff3cd; }  /* Light yellow */
.zone4 { background-color: #f8d7da; }  /* Light red */
.zone5 { background-color: #e2e3e5; }  /* Light gray */

@media (max-width: 600px) {
    select, input, button, table, .zone-description {
        width: 90vw; /* Maintain 90% width on small screens */
    }
}
