body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#nameForm, #dateForm {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://s1.1zoom.me/b5050/947/Russia_Mountains_Lake_Forests_Altai_Kucheklinskoe_556804_2048x1152.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
    transition: filter 0.5s ease;
}

.content {
    position: relative;
    width: 100%;
    height: 100vh; /* Высота равна высоте экрана */
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-messages {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
    height: 100px; /* Фиксированная высота */

}
.message {
    font-size: 2rem;
    margin-bottom: 20px;
    display: none;
}

.form-container {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.message-container {
    width: 80vw; /* Ширина контейнера (80% от ширины экрана) */
    height: 80vh; /* Высота контейнера (80% от высоты экрана) */
    max-width: 800px; /* Максимальная ширина */
    max-height: 600px; /* Максимальная высота */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    overflow-y: auto; /* Прокрутка, если контент не помещается */
    box-sizing: border-box; /* Учитываем padding в размерах */
    position: absolute;
    top: 50%; /* Сдвигаем контейнер на 50% вниз */
    left: 50%; /* Сдвигаем контейнер на 50% вправо */
    transform: translate(-50%, -50%); /* Центрируем контейнер */
    display: none; /* Скрываем по умолчанию */
    scrollbar-width: none; /* Скрываем ползунок в Firefox */
}

/* Скрываем ползунок в браузерах на WebKit (Chrome, Safari) */
.message-container::-webkit-scrollbar {
    display: none;
}

.content-home {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}
.welcome-message-home {
    font-size: 2rem;
    margin-bottom: 20px;
    display: none;
    color: white;
}

.welcome-message {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    display: none;
    text-shadow: 1px 1px 2px black;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.1s linear;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(0px) translateY(0px);
    cursor: pointer;
    white-space: nowrap;
    pointer-events: auto;
    height: 50px; /* Фиксированная высота (примерно) */
    line-height: 50px; /*  Выравниваем текст по вертикали внутри welcome-message */
}

.welcome-message.visible {
    opacity: 1;
    display: block;
}
.welcome-message.visible {
    opacity: 1;
    display: block;
}
input {
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 100%;
    width: calc(100% - 20px); /* Делаем поле ввода шире */
    text-align: center; /* Центрируем текст */
}

button {
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background-color: #007d34;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #007d34;
}
