body {
    font-family: sans-serif;
    margin: 0px;
    padding: 0px;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1px 0;
    text-align: center;
    display: flex;
    align-items: center;
}

main {
    padding: 10px;
}

main h4 {
    text-align: center;
    margin: 0px;
}

#slide-container {
    width: 100%;
    overflow: hidden;
}

#slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.result-container {
    min-width: 100%;
    max-height: 250px;
    text-align: center;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-item {
    min-width: 100%;
    text-align: center;
    padding: 10px 0;
}

.switch-candy-guinda a {
    background-color: #993730; 
}
.switch-candy-guinda input:checked + label {
    color: #fff !important;
}
.switch-toggle.switch-candy-guinda label {
    color: #e5a2a2;
}

#camera-section, #file-section, #plate-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#video {
    width: 320px;
    height: 240px;
    background-color: #eee;
}

#canvasCam, #canvasImg, #file-preview {
    width: 320px;
    height: 240px;
}

#canvasImg, #file-preview {
    object-fit: contain;
}
#send-button {
    display: block;
    margin: 5px auto;
    padding: 5px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

#slide-controls {
    display: flex;
    justify-content: center;
}

.switch-toggle {
    width: 20em;
}
  
.switch-toggle label:not(.disabled) {
    cursor: pointer;
}


.boton-camara {
    top: 15px;
    background-color: #e0e0e0; /* Gris claro de fondo */
    border: none;
    border-radius: 50%; /* Forma circular */
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra suave */
    position: relative; /* Para posicionar el icono */
    overflow: hidden; /* Para recortar el icono si es necesario */
}

.lente {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ca1919; /* color para el lente */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrar el lente */
    box-shadow: 1px 1px 3px rgba(255, 255, 255, 0.2) inset; /* Brillo en el lente */
}

.boton-camara:hover {
    background-color: #d0d0d0; /* Gris un poco más oscuro al pasar el mouse */
}

.boton-camara:active {
    background-color: #c0c0c0; /* Gris más oscuro al hacer clic */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Sombra más pequeña al hacer clic */
}



#file-upload, #plate-input-container, #video-container, #image-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column; 
    align-items: center; /* Centrar horizontalmente */
    gap: 10px;
    width: 90%;
    max-width: 340px;
    min-height: 400px;
    justify-content: center;
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra suave */
    border: 1px solid #ccc; /* Borde gris */

}
#image-container {
    min-height: 266px;
}

#file-upload, #plate-input-container {
    justify-content: flex-start;
    padding-top: 20px;
}

#file-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

#file-upload label {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
}

#send-button, button[type="submit"] {
    background-color: #007bff;
    padding: 10px 20px;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: flex;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

#send-button:hover, button[type="submit"]:hover {
    background-color: #0069d9;
}

#send-button:disabled, button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

input[type="text"],
input[type="password"] {
    width: calc(100% - 12px); /* Account for padding and border */
    max-width: 320px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

h1 {
    text-align: center;
    margin-top: 20px;
}

p[style="color: red;"] {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

#image-container img {
    display: block;
    margin: 10px auto;
    max-width: 320px;
    max-height: 240px;
    height: auto;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

table {
    width: 90%;
    max-width: 340px;
    margin: 20px auto;
    border-collapse: collapse;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

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

th {
    background-color: #f2f2f2;
    text-align: center;
    font-weight: bold;
}

td {
    text-align: left;
}

button {
    background-color: #007bff;
    padding: 10px 20px;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: block;
    margin: 20px auto;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #0069d9;
}

.loginBlock, .signupBlock {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
}

header a {
    text-align: center;
    width: 100%;
    text-decoration: none;
    color: white;

}

header .main-btn {
    position: absolute;
    right: 5px;
    display: flex;
}

.main-btn a {
    right: 5px;
    background-color: #007bff;
    padding: 10px;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: block;
    margin: 0 10px 0 auto;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: fit-content;
}

.main-btn a:hover {
    background-color: #0069d9;
}

