body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}

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

.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
    border-radius: 8px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    z-index: 10000;
}

.overlay .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10001;
}

.overlay .basket {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10001;
}

.basket:hover {
    transform: scale(1.2);
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Чтобы видео не перекрывало контент */
}

.spoiler {
    background-color: #f0f0f029;
    padding: 10px;
    border: 1px solid #cccccc75;
    cursor: pointer;
}

.spoiler-content {
    display: block;
    margin-top: 10px;
    background-color: #e0e0e000;
    padding: 10px;
}

.spoiler.close .spoiler-content {
    display: none;
}

.link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    flex: 1 1 33.33%; /* Каждый элемент занимает 50% ширины контейнера */
    box-sizing: border-box; /* Учитывает padding и border в ширине */
}

.links-container {
    display: flex;
    flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку */
}

a.btn {
    font-size: 1.5rem;
    padding: 1rem 3rem;
    color: #ffffff;
    text-transform: uppercase;
}

.btn {
    text-decoration: none;
    border: 1px solid rgb(146, 148, 248);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    box-shadow: 1px 1px 25px 10px rgba(146, 148, 248, 0.4);
    background: #23c931a8;
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(146, 148, 248, 0.4),
            transparent);
    transition: all 650ms;
}

.btn:hover:before {
    left: 100%;
}

.video {
    position: relative;
    margin-top: 10px;
    block-size: auto;
    overflow: hidden;

}

.player {
    display: inline-block;
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background: #618fd480;
    color: rgb(0, 0, 0);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: Arial, sans-serif;
}

button {
    background: #4223b49a;
    border: none;
    color: rgb(255, 255, 255);
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}

button:hover {
    background: #23c931a8;
}

.volume-control {
    margin-top: 10px;
    color: rgb(0, 0, 0);
    font-size: 14px;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.flex-container-advert {
    display: flex;
    gap: 16px; /* Расстояние между колонками */
}

.flex-item-advert {
    flex: 1; /* Равномерное распределение пространства */
    border: 1px solid #ccc; /* Опционально: рамка для наглядности */
    padding: 16px; /* Отступы внутри каждого блока */
    border-radius: 12px; /* Скругление углов */
}

.heart.voted {
    color: #ff4500; /* Подсветка красным */
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}