/* Основной фон страницы */
body {
    background-color: #1E2A44;
    background-image: url('./back.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: white;
    overflow: hidden;
}


/* Контейнер для всех экранов */
.container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    background: rgba(30, 42, 68, 0.85);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Стили для экранов */
.screen {
    padding: 25px;
    border-radius: 15px;
}

/* Анимация для монет */
.coins {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
}

.coin {
    width: 100px;
    height: 100px;
    cursor: pointer;
    animation: shake 2s infinite ease-in-out;
    transition: transform 0.3s;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.coin:hover {
    transform: scale(1.1);
}

@keyframes shake {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
}

/* Элементы формы */
input {
    padding: 15px;
    font-size: 18px;
    width: 80%;
    margin: 20px 0;
    border-radius: 10px;
    border: 2px solid #4a5d8c;
    background: #2a3a5a;
    color: white;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #5d7cbf;
}

button {
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(135deg, #43A047, #1B5E20);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Анимация результата */
@keyframes winPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#result-screen {
    animation: winPulse 2s infinite;
}

#win-amount {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin: 20px 0;
}

/* Анимация для экрана неудачи */
#fail-screen {
    animation: failShake 0.5s ease-in-out;
}

@keyframes failShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}