* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    background-color: #ffffff;
    flex-direction: column; /* Ensure content flows vertically */
}


.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
}

input[type="text"], input[type="password"] {
    display: block;
    width: 60%;
    padding: 10px;
    margin: 10px auto;
    border: 2px solid #800909;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #640505;
    outline: none;
}

#separator-line-header,#separator-line-middle,#separator-line {
    border: none;          /* Remove default border */
    height: 2px;           /* Set the height of the line */
    background-color: #800909; /* Red color for the line */
    margin: 20px 0;        /* Space above and below the line */
    width: 100%;           /* Make the line span the full width */
}
#buttons button {
    display: block;
    width: 60%;
    padding: 10px;
    margin: 10px auto;
    background-color: #800909;
    border-radius: 5px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

#logout,#login-btn,#previous-btn button {
    display: block;
    width: 50%;
    padding: 10px;
    margin: 20px auto;
    background-color: #800909;
    border-radius: 5px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

#nav-buttons button{
    display: inline;
    width: 60%;
    padding: 10px;
    margin: 20px auto;
    background-color: #800909;
    border-radius: 5px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

#nav-buttons button:disabled{
    background-color: lightgray;
    color: #000;
}


#buttons button:hover, #previous-btn button:hover, #logout:hover, #login-btn:hover {
    background-color: #640505;
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.image-container #img_element {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 10px;
    cursor: pointer;
}

.image-container .btn-delete {
    align-self: flex-end;
    cursor: pointer;
    width: 24px;
    height: auto;
}
#logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 150px;
    height: auto;
    cursor: pointer;
}

form {
    margin: 20px auto;
    width: 80%;
    max-width: 400px;
    text-align: center; /* Center-align form content */
}

form input[type="text"], form input[type="password"] {
    width: 100%; /* Make input fields take full width */
}

form button {
    width: 100%; /* Make the button take full width */
}
