/* Общие стили для body и html */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    width: 100%;
    min-height: 100px;
    background-color: brown;
    justify-content: center;
    align-items: center;
}

.title {
    margin: 0;
    font-size: 48px;
    color: aliceblue;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.game {
    flex: 1;
}

.footer {
    display: flex;
    bottom: 0;
    width: 100%;
    min-height: 150px;
    background-color: brown;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 30px;
}   

.rules, .start, .next, .delete {
    font-family: 'Montserrat', sans-serif;
    border: 0;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

.rules, .next {
    width: 150px;
    height: 45px;
    font-size: 24px;
}

.start {
    width: 200px;
    height: 60px;
    font-size: 32px;
    border-radius: 40px;
}

.delete {
    width: 150px;
    height: 45px;
    font-size: 24px;
    background-color: black;
    color: white;
}

.rules:hover, .start:hover, .next:hover, .delete:hover {
    filter: brightness(0.9);
}

.rules:active, .start:active, .next:active, .delete:active {
    transform: translateY(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete:active {
    transform: scale(0.95);
    background-color: #ff4d4d;
}

.next:active {
    transform: scale(0.95);
    background-color: #ff4d4d;
}

.speed-value {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 24px;
}

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
}

.close:hover {
    color: red;
}