* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  margin: 20px;
  background: url('./pic/1669978424_55-kartinkin-net-p-fon-dlya-prezentatsii-mramor-oboi-56.jpg');
  font-family: 'Roboto', sans-serif;
}

.wrapper {
  min-width: 80%;
  padding: 12px 15px;
  border-radius: 7px;
  background: url('./pic/1625892405_30-kartinkin-com-p-travertin-tekstura-besshovnaya-krasivo-32.jpg');
  /* background-color: rgb(131, 128, 87); */
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.05);
}

form .row label,
form .container-point-properties label,
form .sec label,
form .speed label,
form .select-point label,
form .form-pitch label,
.select-point label,
.form-properties label {
  font-size: 14px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: rgb(40, 25, 4);
}

/*--------------------------------------------------------------------------------*/

.wrapper form {
  margin: 35px 0 20px;
}

.wrapper header {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.textareas,
.button,
.flex-container,
.container-point-properties,
.select-point,
.form-properties,
.block-button-1 {
  display: flex;
  margin: 5px 0;
  gap: 5px;
}

form .row textarea {
  resize: none;
  width: 100%;
  background-color: rgb(157, 150, 46);
  background-size: cover;
  background-position: center;
  font-size: 30px;
  font-weight: bold;
  padding: 8px 10px;
  border: 2px solid #f3eeee;
  text-align: center;
}

form button {
  width: 49%;
  height: 42px;
  color: rgb(40, 25, 4);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  background-color: rgb(186, 183, 181);
  background-size: cover;
  background-position: center;
  transition: 0.3s ease;
  border: 2px solid #f3eeee;
}

.stop {
  color: rgb(218, 14, 14);
}

/*--------------------------------------------------------------------------------*/

/* Контейнер для текстовых областей */
.textareas {
  flex-direction: row;
}

/* Контейнер для  кнопок "PAUSE" "RESUME" */
.block-button-1 {
  flex-direction: row;
}

/* Контейнер для Контейнер выбор языка и Выбор словаря*/
.flex-container {
  justify-content: space-between;
}

/* Расположение элементов внутри select-point */
.select-point {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Расположение элементов внутри form-properties */
.form-properties {
  flex-direction: row;
  justify-content: space-between;
}

.flex-item {
  flex: 1;
  /* Элементы занимают равное пространство */
  max-width: 200px;
  /* Минимальная ширина для каждого элемента */
  justify-content: center;
}

/* Основной контейнер для блоков - point  - properties*/
.container-point-properties {
  flex-direction: column;
}

/* Стили для блоков -point, -properties*/
.select-point,
.form-properties {
  flex: 1;
  max-width: 100%;
  /* Минимальная ширина блоков */
  box-sizing: border-box;
  padding: 2px;
}

.select-point>div {
  flex: 1;
  max-width: 33%;
  box-sizing: border-box;
  padding: 2px;
}

.form-properties .speed,
.sec,
.form-pitch {
  flex-direction: column;
  justify-content: space-between;
}

.form-properties>div {
  flex: 1;
  max-width: 33%;
  box-sizing: border-box;
  padding: 2px;
}

.form-properties input {
  max-width: 45%;
  margin-bottom: 2px;
  background: rgb(186, 183, 181);
  color: rgb(40, 25, 4);
}

.form-point,
.form-pointN {
  background: rgb(186, 183, 181);
  color: rgb(40, 25, 4);
}


/* Контейнер для кнопок  "PAUSE" "RESUME" */
form .row .button {
  flex-direction: row;
  font-size: 14px;
  font-weight: bold;
  width: calc(100 / 2);
}

select option {
  max-width: 100%;
}

form .row button {
  width: 100%;
  height: 42px;
  margin-top: 0px;
}

form button:hover {
  background: rgb(280, 199, 155);
}

select {
  background: rgb(186, 183, 181);
  color: rgba(40, 25, 4);
}

form :where(select) {
  /* outline: none; */
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 5px;
}

.point .checkbox::before {
  content: url('./pic/9135402.png');
  display: inline-block;
  width: 12px;
  height: 12px;
}

.point .checkboxN::before {
  content: url('./pic/9135402.png');
  display: inline-block;
  width: 12px;
  height: 12px;
}

.checkbox:checked::before {
  content: url('./pic/9135401.png');
  display: inline-block;
  width: 12px;
  height: 12px;
}

.checkboxN:checked::before {
  content: url('./pic/9135401.png');
  display: inline-block;
  width: 12px;
  height: 12px;
}

/*--------------------------------------------------------------------------------*/

body .timer {
  position: absolute;
  top: 615px;
  left: 50%;
  background-color: rgba(186, 183, 181, 0);
  /* semi-transparent background */
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: rgb(255, 230, 250);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke: rgba(82, 86, 173, 0.3);
}

.progress-ring__dot {
  transition: cx 0.45s, cy 0.45s;
  stroke: rgb(82, 86, 173, 0.3);
}

body #countdown {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: rgb(82, 86, 173, 0.5);
  text-align: center;
  font-weight: bold;
}

/*--------------------------------------------------------------------------------*/

@media (max-width: 620px) {

  .textareas,
  .block-button-1,
  .flex-container,
  .container-point-properties,
  .select-point {
    flex-direction: column;
    justify-content: space-between;
  }

  .select-point>div {
    max-width: 100%;
  }

  .form-properties {
    flex-direction: row;
  }

  .form-properties>div {
    flex: 1;
    box-sizing: border-box;
    min-width: 33%;
  }

  .speed,
  .sec,
  .form-pitch {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    /* Равномерное распределение строк */
    align-items: start;
  }

  .speed,
  .sec,
  .form-pitch {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 60px;
  }

  .speed>*,
  .sec>*,
  .form-pitch>label {
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .flex-item {
    max-width: none;
    width: 100%;
    margin-bottom: 5px;

  }

  select {
    /*width: 100vw;
    Меняем ширину на 100% при уменьшении экрана*/
    padding: 2vw;
    font-size: 4.2vw;
  }

  option {
    padding: 10px;
    /* Дополнительные стили для опций при уменьшении экрана */
    font-size: 16px;
  }
}