header {
    text-align: center;
    width: 80%;
    margin: 0 auto;
    position: relative;
}

footer {
    text-align: center;
    color: #b6b6b6;
    position: relative;

}

body {
    font-family: "Chakra Petch", sans-serif;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    min-height: 100vh; /* Full viewport height */
    background-color: #f9f1f1;
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */

}

img {
    max-width: 200px;
    min-width: 200px;
    opacity: 0.8;
    border: 1px solid #333333;
    border-radius: 20px;
    gap: 10px;
}

main {
    flex: 1;
    flex-grow: 0;
}

.form-step {
    margin-bottom: 20px;
    text-align: center;

}

.form-step p {
    margin-bottom: 5px; /* Reduced bottom margin for paragraph elements */
}

.status-update {
    background-color: #e2f8e2;
    padding: 10px;
    border: 1px solid #333333; /* Remove borders */
    color: #333333;
    border-radius: 10px;
    width: 500px;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 5px;
    }

.status-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
#videoForm {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#videoForm input, #videoForm select, #videoForm button {
    box-sizing: border-box; /* Add this line */
    width: 70%;
    border-radius: 10px;
    padding: 10px;
    margin-top: 5px; /* Reduced margin-top for input, select, and button elements */
}

#controls button {
    margin: 5px; /* Space between control buttons */
}

#controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}



.image-grid {
    margin: 0 auto;
    width: 80%;
    max-width: 700px;
    display: grid;
    border:#333333;
    grid-template-columns: repeat(3, 1fr); /* Default to 4 columns */
    grid-gap: 10px; /* Add some space between grid items */
    margin-bottom: 40px;
    align-items: center;
    justify-items: center;

}

#imageGrid {
    margin: 0 auto;
    width: 80%;
    max-width: 700px;
    display: grid;
    border:#333333;
    grid-template-columns: repeat(3, 1fr); /* Default to 4 columns */
    grid-gap: 10px; /* Add some space between grid items */
    margin-bottom: 40px;
    align-items: center;
    justify-items: center;

}

#response .image-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for larger screens */
}

#response img {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#response img.show {
    opacity: 0.85;
}

.container {
    flex-grow: 1;
    width: 100%;
    min-width: 600px;
    margin: auto;
    display: flex;
    color:#777777;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
}

h3 {
    color:#b6b6b6
}

button {
    font-family: inherit; /* Inherit the font from the parent element */
    font-weight: 400;
    margin: 0 5px; /* Optional: Adds space between buttons */
    padding: 6px; /* Adds some padding inside the inputs */
    text-align: center; /* Center the text inside the button */
    text-decoration: none; /* Remove underlines */
    display: inline-block; /* Align buttons next to each other */
    border: 1px solid #333333; /* Remove borders */
    border-radius: 10px; /* Rounded corners */
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: background-color 0.3s ease; /* Smooth transition for background color */
}

.start-button { background-color: #66de87; }
.stop-button { background-color: #de6666; }
.resume-reset-button { background-color: #41a6f2; }

button:hover {
    opacity: 0.75;
}

/* Media Queries for Responsive Grid */
@media (max-width: 1200px) {
    #imageGrid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for smaller screens */
        /* Other styles */
    }
}

@media (max-width: 800px) {
    #imageGrid {
        grid-template-columns: 1fr; /* 1 column for very small screens */
        /* Other styles */
    }
}