.bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #E69E4C 50%, #FFFFFF 50%);
    bottom: 0;
    left: -50%;
    opacity: 0.7;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -10;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
    background-image: linear-gradient(-60deg, #F9DF92 50%, #FFFFFF 50%);
}

.bg3 {
    animation-duration: 5s;
    background-image: linear-gradient(-60deg, #FFFFD1 50%, #FFFFFF 50%);
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}

/* The Modal (background) */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 5;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling when modal is open */
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
}

/* Modal Content */
.modal-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Transparent background */
    padding: 0;
    border: none;
}

/* Close Button */
.close {
    color: #fff;
    position: absolute;
    top: 10px; /* Ajusta la posición desde la parte superior */
    right: 20px; /* Ajusta la posición desde el borde derecho */
    font-size: 40px;
    font-weight: bold;
    z-index: 10; /* Asegura que esté por encima del contenido */
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Image */
.modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}