body {
    font-family: "XO Thames", serif;
}

.slider_animation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.big {
    width: 1000px;
    height: 282px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.small {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.small a img {
    border: none;
    width: 10px;
    height: 10px;
}

.animation {
    position: absolute;
    top: 65%;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #6B8E23;
    width: 100%;
    height: 100%;
}

.card {
    width: 300px;
    height: 300px;
    border: 1px solid;
    perspective: 1000px;
}

.front, .backend {
    /*Помещаем надписи (span) в левый верхний угол карты, при этом span занимает всю область карточки*/
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: 5s;
    backface-visibility: hidden; /*Скрывает заднюю часть*/
    border-radius: 360px;
}

.front {
    background-color: #DCDCDC;
}

.backend {
    background-color: #87CEEB;
    transform: rotateY(180deg); /*Разворачиваем по оси Y*/
}

.card:hover .front {
    transform: rotateY(180deg); /*При наведении мыши разворачиваем фронт карты*/
}

.card:hover .backend {
    transform: rotateY(360deg);
}
