html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    user-select: none;
    display: flex;
    flex-direction: column;
	position: relative;
}
body::after, body::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: contain; /* Измените на cover, если хотите, чтобы изображение заполнило весь контейнер */
    opacity: 0.5; /* Установите прозрачность, если нужно */
}

body::after {
  content: '';
  background-image: url('../image/shigo.webp');
  background-repeat: no-repeat;
  background-position: right bottom;
  width: 300px;
  height: 300px;
  position: absolute;
  bottom: 100px;
  right: 150px;
  transform: scaleX(-1); /* Зеркальное отражение по горизонтали */
}

body::before {
  content: '';
  background-image: url('../image/shigo.webp');
  background-repeat: no-repeat;
  background-position: left bottom;
  width: 300px;
  height: 300px;
  position: absolute;
  bottom: 100px;
  left: 150px;
}

h1 {
    text-align: center;
    font-family: 'headerst';
    font-size: 2.5em; /* Крупный размер текста для заголовка */
    margin: 20px 0; /* Отступы сверху и снизу */
    color: #333; /* Цвет текста заголовка */
}

main {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем блоки */
    align-items: center;
    padding: 20px;
}
.noscroll {
    overflow: hidden; /* Блокируем прокрутку */
}
.day-block {
    width: calc(30% - 20px); /* Уменьшаем ширину, чтобы вмещать 3 блока в ряд */
    height: calc(30% - 5px); /* Высота блока */
    margin: 10px; /* Отступ между блоками */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid gray; /* Серая обводка */
    background-color: white; /* Белый фон */
    color: #333; /* Темный цвет текста для лучшей читабельности */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Небольшая тень */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s; /* Плавные переходы */
    font-size: 2.1em; /* Увеличенный размер текста */
    font-family: 'headerst';
	z-index: 2;
}

.day-block:hover {
    background-color: rgba(128, 128, 128, 0.1); /* Лёгкое затемнение при наведении */
    color: black; /* Цвет текста при наведении */
    transform: translateY(-3px); /* Небольшое поднятие блока наводке для эффекта */
}

.current-day {
    border-color: #00b8ff; /* Цвет рамки для текущего дня */
    background-color: rgba(20, 253, 229, 0.2); /* Легкий фон для текущего дня */
}

.toggle-button {
    display: block;
    padding: 17px 30px;
    width: fit-content;
    font-weight: 800;
    font-size: 22px;
    line-height: 20px;
    background: #000000;
    margin: 5px auto 30px; /* верх, боковые, низ */ /* Центрируем кнопку и отступы */
    color: #000;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #000000;
    box-shadow: 2px 2px 2px #3b1f10b3;
    transition: 0.5s;
    text-align: center; /* Выровнять текст по центру */
}


.toggle-button:hover {
    transform: scale(1.03); /* Увеличиваем масштаб */
}
.toggle-button:active{
    transform: scale(0.9); /* Увеличиваем масштаб */
}

.popup {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
	z-index: 3;
}

.popup-content {
    position: relative; /* Задаем для фиксации кнопки внутри */
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    width: 595px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-content-scroll {
    max-height: 80vh;
    overflow-y: scroll;
    -ms-overflow-style: none;  /* Для Internet Explorer и Edge */
    scrollbar-width: none;  /* Для Firefox */
}

.popup-content-scroll::-webkit-scrollbar {
    display: none; /* Для Chrome, Safari и Opera */
}


.close-btn {
    position: absolute; /* Позиционируем относительно .popup-content */
    top: 5px; /* Отступ сверху */
    right: 10px; /* Отступ справа */
    font-size: 36px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    z-index: 1001;
}

.close-btn:hover {
    color: black;
}

.popup-title {
    font-weight: bold; /* Жирный заголовок */
    font-size: 1.5em; /* Более крупный шрифт для заголовка */
    margin: 0 0 5px 0;
    text-align: center; /* Заголовок выравнен по центру */
	font-family: 'headerst';
}

.popup-info {
    margin-top: 5px;
    line-height: 1.5; /* Для лучшей читаемости */
    font-size: 1.2em; /* Увеличиваем размер текста */
}

/* Стили для мобильных устройств */
@media (max-width: 993px) {
    .day-block {
        width: 100%; /* Ширина блока 100% для мобильных устройств */
        height: 100px; /* Высота блока на мобильных устройствах */
        margin: 5px 0; /* Отступы между блоками */
        font-size: 2em; /* Уменьшаем размер текста на мобильных */
    }
	.popup-content-scroll {
		max-height: 77vh;
		overflow-y: scroll;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}
    body::after, body::before {
        display: none; /* Скрываем изображения на мобильных устройствах */
    }
}
