*:not(span) {
  box-sizing: border-box;
}

h2 {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 20px;
}

.nav {
  display: flex;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
}

.section-sec {
  display: none;
}

.timer {
  display: flex;
  gap: 20px;
}

.timer__days,
.timer__hours,
.timer__minutes,
.timer__seconds {
  width: 100px;
  height: 50px;
  background-color: rgb(75, 248, 53);
  font-size: 30px;
  text-align: center;
  line-height: 50px;
}

.desc {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.desc__days,
.desc__hours,
.desc__minutes,
.desc__seconds {
  width: 100px;
  height: 50px;
  background-color: rgb(75, 248, 53);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 50px;
}

.wrapper-timer,
.wrapper-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  margin-top: 10vh;
}

.deleteButton,
.changeButton {
  margin-bottom: 40px;
}

#form,
#form1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

input {
  width: 160px;
}

button {
  background-color: rgb(97, 243, 29);
  width: 160px;
  cursor: pointer;
}

.desc-main {
  width: 460px;
  height: 20px;
  background-color: rgb(97, 243, 29);
  margin-bottom: 20px;
  border: 1px solid black;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding-top: 3px;
}

.button-box {
  display: flex;
  gap: 10px;
}

.modal,
.modal-change {
  display: none;
  position: fixed; /* Фиксированное положение */
  z-index: 1; /* Находится поверх всего */
  left: 0;
  top: 0;
  width: 100%; /* Полная ширина */
  height: 100%; /* Полная высота */
  overflow: auto; /* Включаем прокрутку, если нужно */
  background-color: rgba(0, 0, 0, 0.4); /* Черный фон с прозрачностью */
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: #fefefe;
  margin: 15% auto; /* 15% сверху и по центру */
  padding: 20px;
  border: 1px solid #888;
  border-radius: 12px;
  width: 80%; /* Может быть больше или меньше, в зависимости от размера экрана */
  max-width: 600px;

  h2 {
    margin: 20px;
  }
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  text-align: center;
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  visibility: hidden;
  border: 3px solid #aaa;
  border-radius: 50%;
}

.close:hover {
  color: #ff0000;
  border-color: #ff0000;
}

@media (max-width: 500px) {
  .wrapper {
    width: 340px;
  }

  .desc-main {
    width: 390px;
  }

  .timer__days,
  .timer__hours,
  .timer__minutes,
  .timer__seconds {
    width: 90px;
    height: 50px;
    font-size: 25px;
    line-height: 50px;
  }

  .desc__days,
  .desc__hours,
  .desc__minutes,
  .desc__seconds {
    width: 90px;
    height: 50px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 50px;
  }

  .timer {
    gap: 10px;
  }

  .desc {
    gap: 10px;
  }
}
