body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('/static/img/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1em;
}

nav a {
    color: #fff;
    margin-right: 1em;
    text-decoration: none;
}

main {
    padding: 2em;
}

footer {
    background-color: #eee;
    padding: 1em;
    text-align: center;
}

/* === Gif справа внизу === */
.bottom-right-gif {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 150px;
    height: auto;
    z-index: 1000;
}

/* === Кольцо слева внизу === */
.bottom-left-carousel {
    position: fixed;
    bottom: -200px; /* было 0px — сдвигаем чуть ниже от края */
    left: 200px;   /* было 0px — сдвигаем чуть правее от левого края */
    width: 300px;
    height: 300px;
    z-index: 1000;
}

.carousel {
    perspective: 1200px;
    width: 100%;
    height: 100%;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s infinite linear;
}

.carousel-item {
    position: absolute;
    width: 120px;
    height: 40px;
    background: #1e293b;
    line-height: 40px;
    text-align: center;
    border-radius: 8px;
    color: #38bdf8;
    font-weight: bold;
    transform-style: preserve-3d;
    transition: transform 0.5s, background 0.3s;
}

.carousel-item:hover {
    background: #334155;
    transform: scale(1.1);
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}
