/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('beer.jpg') no-repeat center center fixed;
    background-size: cover;
}

.header-container {
    background-color: rgba(52, 58, 64, 0.8);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
}

.logo {
    font-size: 2em;
    margin: 0;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.background-image {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.container {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin: auto;
}

.camera-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border-radius: 10px;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 640px;
    height: 480px;
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure video is below the overlay */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    z-index: 2; /* Ensure overlay is above the video */
    border: 4px solid red; /* Default border color */
    transition: border-color 0.3s; /* Smooth transition for border color */
}

.button-group {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.capture-btn, .close-btn, .image-btn, .start-btn, .save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px; /* Adjust the width as needed */
    height: 60px; /* Adjust the height as needed */
    padding: 10px;
    margin: 10px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    color: #ffffff;
    background: linear-gradient(135deg, #D2691E, #C1541B); /* Gradient from brown-orange to darker brown-orange */
}

.image-btn:hover, .save-btn:hover {
    background: linear-gradient(135deg, #C1541B, #A13916); /* Darker gradient on hover */
}

.start-btn, .capture-btn, .close-btn {
    background: linear-gradient(135deg, #F5F5F5, #E0E0E0); /* Gradient from smoke white to darker smoke white */
    color: #000; /* Change text color to black for better contrast */
}

.start-btn:hover {
    background: linear-gradient(135deg, #E0E0E0, #CFCFCF); /* Slightly darker gradient on hover */
}

.uniform-btn {
    width: 200px; /* Adjust the width as needed */
    height: 60px; /* Adjust the height as needed */
}

.buttons-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-container {
    background-color: rgba(52, 58, 64, 0.8);
    color: #ffffff;
    text-align: center;
    padding: 10px;
    flex-shrink: 0;
}

.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ensure responsive design */
@media (max-width: 768px) {
    .video-container {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3; /* Maintain the aspect ratio */
    }

    .buttons-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Specific styles for the input.html page */
.form-title {
    color: #ffffff;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

label {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    max-width: 300px; /* Set a maximum width for consistency */
    padding: 10px;
    font-size: 1.2em; /* Increase font size */
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box; /* Ensures padding and border are included in element's total width and height */
}

input[type="number"], select {
    font-size: 1.2em; /* Increase font size for number inputs and select box */
}

.save-btn {
    background-color: #D2691E; /* Brown-orange color */
    color: #ffffff;
    margin-top: 20px; /* Add some margin to separate the button from the inputs */
    align-self: center; /* Center the button */
}

/* Add these styles to your styles.css */

/* Notification styles */
.notification {
    display: none;
    position: fixed;
    top: 20px; /* Change bottom to top */
    left: 50%;
    transform: translateX(-50%);
    background-color: #323232;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s;
}

.notification.show {
    display: block;
    opacity: 1;
}
/* Add these styles to your styles.css */

.tilted-image {
    position: fixed;
    top: 120px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    width: 100px; /* Adjust the size as needed */
    height: auto; /* Maintain aspect ratio */
    transform: rotate(30deg);
    z-index: 1000; /* Ensure it's on top of other elements */
}

.header-container .logo a {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5em; /* Adjust the size as needed */
}
