/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 10px;
}

/* Контейнер для картинки */
.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: 60vh;
    overflow: hidden;
}

img {
    max-width: 80%;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

/* Контейнер с кнопками */
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Стили для кнопок */
button {
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    transition: 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Поле ввода скорости */
input[type="number"] {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Чекбокс и таймер */
label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

/* Увеличиваем картинку в полноэкранном режиме */
@media screen and (fullscreen),
       screen and (-webkit-full-screen),
       screen and (-moz-full-screen),
       screen and (-ms-fullscreen) {
    .image-wrapper img {
        max-width: 100%;
        max-height: 90vh;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        gap: 8px;
    }

    button {
        font-size: 14px;
        padding: 10px;
        width: 100%;
    }

    img {
        max-width: 90%;
        max-height: 50vh;
    }
}
