@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poiret+One&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.header-image {
  width: 150px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-top: 30px;
  border: none !important;
}

.container {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  gap: 20px; /* Spacing between image and text */
  padding: 10px; /* Added padding for better visual spacing */
  box-sizing: border-box; /* Include padding in element width */
}


.container {
  display: flex;
  grid-template-columns: auto 1fr; /* картинка - автоширина, текст - занимает остаток */
  gap: 20px; /* отступ между картинкой и текстом */
  align-items: center; /* выравнивание по вертикали */
  margin-left: 10%;
  margin-right: 10%;
}

.regform div {
    all: unset; /* Убирает все стили */
    display: inline; /* Делаем его строчным элементом */
    width: 100%;
}

.next-back{
display: flex; /* Используем flex для выравнивания по горизонтали */
    justify-content: center; /* Центрируем формы по горизонтали */
    align-items: center; /* Центрируем формы по вертикали */
    margin-top: 20px; /* Отступ сверху (при необходимости) */
}

@media (max-width: 480px) {
  .next-back {
    flex-wrap: wrap;
  }
  .next-back button {
    flex: 1 1 100%;   /* каждая кнопка занимает всю ширину строки */
    min-width: 0;
    margin-top: 5px;
  }
}

.inline-form {
    margin: 0 10px; /* Отступ между формами */
}

.image-container {
  max-width: 400px;
  flex-shrink: 0;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  padding-top: 10px;
  margin-top: 10px;
}

.text-container {
  flex-grow: 1;
}

.text-container h1 {
  font-weight: 800;
  font-size: 23px;
  margin-bottom: 10px;
  text-align: left;
}

.text-container p {
  font-size: 16px; /* Пример размера в пикселях; подберите подходящее значение */
  line-height: 1.5;
  text-align: left;
  margin-top: 10px;
  font-weight: 300;
}



.slider-container {
     margin: 20px 0;
}

.competitionInfo {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; /* Используем flexbox для выстраивания в строку */
    flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку */
}

.competitionInfo li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 10px; /* Задаем равные отступы между элементами */
    padding: 10px;
    width: calc(33% - 20px); /* Используем 33% ширины с учетом отступа */
    word-wrap: break-word;
    font-weight: 500;
}

.competitionInfo h3 {
    margin: 5px 0;
    width: 100%;
}


.search {
            display: flex;
            align-items: center; /* Центрирует элементы по вертикали */
        }

        .search input[type="text"] {
            padding: 10px;
            margin-right: 10px; /* Отступ между полем ввода и кнопкой */
            border: 1px solid #ccc;
            border-radius: 4px;
            flex: 1; /* Позволяет полю ввода занимать оставшееся пространство */
        }

        .search button {
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            background-color: #28a745; /* Зеленый цвет для кнопки */
            color: white;
            cursor: pointer;
        }

        .search button:hover {
            background-color: #218838; /* Темнее при наведении */
        }


.slider-container {
            margin: 20px 0;
        }

        input[type="range"] {
            width: 300px;
            -webkit-appearance: none;
            background: transparent;
            border: 1px dotted #4a4a4a;
            border-radius: 20px;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: #4CAF50;
            cursor: pointer;
            border-radius: 50%;
        }

        input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: #4CAF50;
            cursor: pointer;
            border-radius: 50%;
        }

        input[type="range"]::-ms-thumb {
            width: 20px;
            height: 20px;
            background: #4CAF50;
            cursor: pointer;
            border-radius: 50%;
        }

.menu {
  display: grid;
  place-items: center; /* Centers both horizontally and vertically */
  /* Add any other necessary styles for the menu */
}
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Remove default list margins */
    display: flex; /* Makes list items behave as flex items */
    flex-direction: column; /* Stacks list items vertically */
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

ul li {
    margin: 0.5rem 0;
}

form {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

input[type="file"] {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    flex-grow: 1;
    margin-right: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    margin: 0 auto;
    min-width: 200px;
    max-width: 100%;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

div img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

select {
    width: 100%;
}

.regform {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.regform input[type="text"],
.regform input[type="email"],
.regform input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
}

.regform button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px;
    max-width: 100%;
}

.regform button[type="submit"]:hover {
    background-color: #45a049;
}

.voting-container {
    display: flex;
    flex-direction: column;
    width: 300px;
}

.rating-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-group input[type="text"] {
    width: 30px; /* Ширина поля ввода */
    text-align: center;
    border: 1px solid #ccc;
    padding: 5px;
}

.voting-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.competition {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 20px 0;
    color: black;
    font-weight: 500;
}

.block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
}

h1, h2 {
    font-family: 'Poiret One', serif;
    font-weight: 500;
    text-align: center;
}

h3, h4 {
    font-family: 'Montserrat', serif;
    font-weight: 500;
    text-align: center;
}

a {
    font-weight: 500;
    display: block;
    text-decoration: none;
    color: black;
}

.competition h3, .competition h4, .competition p {
    font-family: 'Montserrat', sans-serif;
}


a:hover {
    color: #4a4a4a;
}

p {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-weight: 500;
}

.comment {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 10px auto; /* Центрирование */
    transition: transform 0.2s;
    width: 80%; /* Уменьшаем ширину для лучшей центровки */
    max-width: 600px; /* Ограничение максимальной ширины */
}

.comment-header {
    display: flex;
    justify-content: space-between; /* Располагаем заголовок и кнопку справа */
    align-items: center;
    margin-bottom: 10px;
}

.comment h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #333;
    margin: 0; /* Убираем margin-bottom */
}


.comment-content {
    /* Стили для сворачиваемого контента */
}


.logo {
    height: 150px;
    width: auto;
    margin: 0;
    padding: 0;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid #4CAF50;
  overflow: hidden;
  margin: 20px auto;
  object-fit: cover;
}

.diplom {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.progress-container {
            width: 100%;
            background-color: #f3f3f3;
            border-radius: 5px;
            display: none; /* Скрываем изначально */
        }

        .progress-bar {
            width: 0;
            height: 20px;
            background-color: #4caf50;
            border-radius: 5px;
        }




/* Стили для мобильных устройств */
@media (max-width: 700px) {
    body {
        font-size: 18px !important; /* Увеличиваем размер шрифта */
        padding: 1rem;
        overflow-x: hidden; /* Отключаем горизонтальную прокрутку */
    }

    ul {
        padding: 0;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column; /* Изменяем на колонку для мобильных */
    }

    ul li {
        margin: 1rem 0; /* Увеличиваем отступы между элементами списка */
    }

    form {
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
        width: 100%; /* Устанавливаем ширину формы на 100% */
        box-sizing: border-box; /* Учитываем отступы и границы в ширине */
    }

    input[type="file"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        padding: 15px; /* Увеличиваем внутренние отступы */
        border: 2px solid #ccc; /* Увеличиваем толщину рамки */
        border-radius: 5px;
        margin-bottom: 1rem;
        font-size: 16px; /* Увеличиваем размер шрифта в полях */
        width: 100%; /* Устанавливаем ширину полей на 100% */
        box-sizing: border-box; /* Учитываем отступы и границы в ширине */
    }

    button {
        padding: 15px; /* Увеличиваем отступы для кнопки */
        font-size: 18px; /* Увеличиваем размер шрифта для кнопки */
        border-radius: 5px;
        width: 100%; /* Устанавливаем ширину кнопки на 100% */
    }

    div img {
        max-width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .regform {
        padding: 30px; /* Увеличиваем внутренние отступы формы */
        box-sizing: border-box; /* Учитываем отступы и границы в ширине */
    }

    .competition {
        padding: 20px; /* Увеличиваем внутренние отступы для блока соревнования */
        box-sizing: border-box; /* Учитываем отступы и границы в ширине */
    }

    .competitionInfo li {
            padding: 10px; /* Оставляем отступы для мобильной версии */
            margin: 0; /* Убираем отступ между элементами, чтобы уместились на экране */
            width: 100%; /* Обеспечиваем 100% ширину для мобильной версии */
        }

        .competitionInfo h3 {
            font-size: 1em; /* Уменьшаем размер заголовка для мобильной версии */
        }

        .comment {
                width: 95%; /* Еще больше расширяем на маленьких экранах */
            }
            .comment h3 {
              font-size: 16px; /* уменьшаем размер шрифта заголовка */
            }

        }

        @media (min-width: 768px) { /* Настраиваемая ширина экрана для переключения на сетку */
          .container {
            display: grid;
            flex-direction: column;
            grid-template-columns: auto 1fr;
            grid-gap: 20px;
            align-items: center;
            margin-left: 10%;
            margin-right: 10%;
          }
          .image-container {
            width: 400px;
            margin-right: 20px;
            flex-shrink: 0;
            border: none !important;
          }
        }


        .image-container {
          width: 100%; /* Изображение занимает всю ширину на мобильных устройствах */
          max-width: 400px; /* Ограничивает ширину на больших экранах */
          margin: 0 auto; /* Центрирует изображение по горизонтали */
          border: none !important;
        }

        .image-container img {
          width: 100%;
          height: auto;
          display: block;
          border: none !important;
        }

        .text-container {
          /* flex-grow не нужен здесь */
        }

        .text-container h1 {
          font-weight: 800;
          font-size: 23px;
          margin-bottom: 10px; /* Убрано отрицательное значение отступа */
          text-align: left;
        }

        .text-container p {
          font-size: 1em;
          line-height: 1.5;
          text-align: left;
          font-weight: 300;
        }
}


footer {
  padding: 20px;
  margin: 0;

  color: black;
}

.footer-container {
  background-color: #F9F9F9;
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  width: 48%;
  box-sizing: border-box;
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
}

.footer-column.left {
  text-align: left;
}

.footer-column.right {
  text-align: right;
}

.footer-column h3 {
  font-family: 'Poiret One', serif;
  font-size: 18px; /* Увеличенный размер шрифта */
  font-weight: 700; /* Более жирный шрифт */
  margin-bottom: 5px; /* Уменьшенный отступ */
}

.footer-column p, .footer-column a, .footer-column i { /* Общий стиль для p, a и i */
  font-size: 10px;
  line-height: 1.2; /* Уменьшенный межстрочный интервал */
  margin-bottom: 5px; /* Уменьшенный отступ */
  font-family: 'Montserrat', sans-serif;
}

.footer-column a {
  color: inherit;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline; /* Подчеркивание при наведении */
}

.footer-column i {
  font-style: italic; /* Курсив для тега i */
  font-size: 10px;
}

.footer-column img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* Адаптация для меньших экранов */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-column {
    width: 100%;
    text-align: center;
  }
}