/* Общие стили для всего сайта */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Шапка сайта */
header {
    background-color: #4CAF50;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.2em;
}

header p {
    margin: 5px 0 0;
    font-size: 1.1em;
}

/* Навигационное меню */
nav {
    background-color: #333;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

/* Основное содержимое */
.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Галерея изображений */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    max-width: 500px;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Подвал сайта */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    margin-top: 20px;
}

/* Стили для страницы рулетки */
.roulette-container {
    text-align: center;
    padding: 30px 20px;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 30px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 5px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: rotate(0deg);
    background-color: white;
}

.section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    left: 0;
    top: 0;
    border: 1px solid rgba(255,255,255,0.5);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 2;
    font-size: 12px;
    padding: 5px;
    word-break: break-word;
    text-align: center;
    overflow: hidden;
}

.section span {
    transform: rotate(45deg);
    display: inline-block;
    max-width: 100%;
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid red;
    z-index: 10;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.spin-btn {
    padding: 12px 24px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.spin-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.spin-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.result {
    margin: 20px auto;
    font-size: 24px;
    font-weight: bold;
    min-height: 30px;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.7);
    display: inline-block;
    max-width: 80%;
}

/* Адаптивность */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    
    .gallery img {
        height: 400px;
    }
    
    .wheel-container {
        width: 250px;
        height: 250px;
    }
}

/* Анимации */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s;
}

/* Стили для кнопки "Назад" */
.back-btn {
    padding: 12px 24px;
    font-size: 18px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 10px;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* Контейнер для кнопок рулетки */
.roulette-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}