* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    min-height: 100vh;
    background: whitesmoke;
    background-size: cover;
    background-position: center;
}

.header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header::before {
    content: "";
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #d0d1dc50;
    backdrop-filter: blur(50px);
    z-index: -1;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    width: 20%;
}

.separator {
    width: 100%;
    margin-top: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;

}

.filter-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.filter-container label {
    margin-right: 15px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 20px;
    margin-top: -28px;
}

.filter-container select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-top: -28px;
}

.gallery {
    display:flex;
    flex-wrap:wrap;
    justify-content: center;
}

.gallery img {
    cursor: pointer;
}

h1 {
    text-align: center;
    font-size: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    color: #333;
    margin-top: 1rem;
}

.card {
    flex: 0 0 calc(16.666% - 20px);
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.description {
    margin-bottom: 10px;
    color: #666;
}

.favorite {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ri-heart-fill {
    color: red;
}

/*img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    /* Añadir transición a las imágenes */
/*}*/

.card:hover img {
    transform: scale(1.05);
    /* Efecto de zoom al pasar el ratón sobre la imagen */
}

#eliminar,
#actualizar,
#agregar {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    object-position: center;
}

#agregar {
    display: flex;
    justify-content: flex-start;
}

.floating-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    padding: 40px;
    background-color: #f2f2f2;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
    overflow: auto;
}

form {
    display: flex;
    flex-direction: column;
}

input[type="file"],
input[type="text"],
textarea,
button,
input[type="number"] {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease;
}

input[type="file"]:hover,
input[type="text"]:hover,
textarea:hover,
button:hover,
input[type="number"]:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

input[type="file"],
button {
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

input[type="file"]:hover,
button:hover {
    background-color: #0056b3;
}

#closeFormButton {
    background-color: #dc3545;
    color: white;
}

#closeFormButton:hover {
    background-color: #bd2130;
}

#eliminar:hover,
#actualizar:hover,
#agregar:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 767px) {
    .card {
        flex: 0 0 calc(50% - 20px);
    }

    #eliminar,
    #agregar,
    #actualizar {
        font-size: 14px;
        padding: 10px;
    }

    .filter-container select,
    .filter-container label {
        font-size: 14px;
        padding: 10px;
    }
}

@media screen and (max-width: 479px) {
    .card {
        flex: 0 0 calc(100% - 20px);
    }

    #eliminar,
    #agregar,
    #actualizar {
        font-size: 12px;
        padding: 8px;
    }

    .filter-container select {
        font-size: 12px;
        padding: 8px;
    }

    .filter-container label {
        font-size: 15px;
        padding: 8px;
    }
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding: 2% 0%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: inherit;
    background-color: #fefefe;
    border: 1px solid #888;
}

.modal-content,
.caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    font-size: 30px;
    font-weight: bold;
    padding: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}