/* Скрытый элемент */

.hidden {
    display: none;
}

button.hidden {
    display: none;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#upload-container {
    margin-bottom: 30px;
    text-align: center;
}

#container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#intro-text-container {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #45a049;
}

img {
    width: 100%;
    max-width: 300px;
    height: auto;
    cursor: pointer;
    border: 2px solid #000;
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.05);
}

.winner {
    border: 5px solid gold;
}

#description {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

#restartButton, #shareButton {
    display: none;
    margin-top: 20px;
}

#stepCounterContainer {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
    text-align: center;
}

#stepCounter {
    font-size: 18px;
    font-weight: bold;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        padding: 15px;
    }
}
