.mainmodal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mainmodal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-maincontent {
    background-color: #fff;
    margin: auto;
    padding: 25px;
    border-radius: 12px;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.modal-close {
    color: #414141;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

#modalTitle {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

/* Стили для движущейся ленты */
.moving-strip-maincontainer {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px; 
    width: 100%; 
    margin: 0 auto; 
}

.moving-strip {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.moving-strip-image {
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
    flex-shrink: 0;
}

.moving-strip.animated {
    animation: moveStrip 30s linear infinite;
}

.moving-strip.paused {
    animation-play-state: paused;
}

/* Анимация движения ленты */
@keyframes moveStrip {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
}

#modalDescription {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.details-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.details-button:hover {
    background-color: #2473a8;
}