@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

#logo {
  width: 35px;
  height: 35px;
}

html, body {
  height: 100%; /* Высота страницы должна быть 100% */
  margin: 0; /* Убираем отступы */
  padding: 0; /* Убираем внутренние отступы */
  display: flex; /* Используем flexbox */
  flex-direction: column; /* Элементы располагаются вертикально */
  overflow: auto;
  /* height: auto */
}
.footer-wrapper {
  margin-top: auto; /* Футер автоматически смещается вниз */
  z-index: 1; /* Убедитесь, что футер поверх других элементов */
  position: relative; /* Предотвращает перекрытие другими элементами */
  margin-top: 10%;
}
.main-content {
  flex-grow: 1; /* Контент растягивается, чтобы заполнить пространство */
  position: relative; /* Предотвращает выход элементов за пределы футера */
  z-index: 0; /* Контент под футером */
}

.form-error {
  color: red;
  font-size: 14px;
  margin-bottom: 5px;
}

.login-wrapper > * {
  box-sizing: border-box;
}

.login-wrapper {
  background: #212529;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  height: 100vh;
  position: relative;
}


.login-wrapper h1 {
  font-weight: bold !important;
  margin: 0;
  color: white;
  font-size: 3rem !important;
  font-family: "Montserrat", sans-serif;
}

.login-wrapper h2 {
  text-align: center !important;
  font-family: "Montserrat", sans-serif;
}

.login-wrapper p {
  font-size: 14px;
  font-weight: 200;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
  font-family: "Montserrat", sans-serif;
}

.login-wrapper span {
  font-size: 12px;
  color: white;
  font-family: "Montserrat", sans-serif;
}

.login-wrapper a {
  color: white;
  font-size: 14px;
  text-decoration: none;
  margin: 15px 0;
  font-family: "Montserrat", sans-serif;
}

.login-wrapper button {
  border-radius: 20px;
  border: 1px solid #4966f5;
  background-color: #4966f5;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  font-family: "Montserrat", sans-serif;
}

.login-wrapper button:active {
  transform: scale(0.95);
}

.login-wrapper button:focus {
  outline: none;
}

.login-wrapper button.ghost {
  background-color: transparent;
  border-color: #ffffff;
}

.login-wrapper form {
  background-color: #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 50px;
  height: 100%;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.login-wrapper input {
  background-color: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  border-radius: 15px;
  font-family: "Montserrat", sans-serif;
}

.login-container {
  background-color: #2c2c2c;
  border-radius: 15px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.363), 0 10px 10px rgba(0, 0, 0, 0.363);
  position: absolute; /* Абсолютное позиционирование */
  left: 40%; /* Смещение влево */
  top: 50%; /* Центровка по вертикали */
  transform: translate(-50%, -50%); /* Центровка по середине экрана */
  width: 922px;
  max-width: 100%;
  min-height: 696px;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.login-container.right-panel-active .sign-in-container {
  transform: translateX(100%);
}

.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.login-container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

.telegram-instruction {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный фон */
  display: none; /* Окно скрыто по умолчанию */
}

.modal-content {
  position: relative; /* Устанавливаем позицию для потомков */
  background-color: #2c2c2c !important; /* Устанавливаем тёмный фон */
  color: #4966f5; /* Устанавливаем светлый цвет текста для контраста */
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #4966f5;
  width: 80%;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-height: 80vh; /* Ограничиваем высоту содержимого */
  overflow-y: auto; /* Добавляем прокрутку для длинного текста */
  font-family: Arial, sans-serif; /* Задаём читаемый шрифт */
  font-size: 16px; /* Размер текста */
  line-height: 1.5; /* Межстрочный интервал */
}



.close {
  position: fixed; /* Фиксируем кнопку относительно окна браузера */
  top: 10%; /* Расположение кнопки относительно верхней части экрана */
  right: 15%; /* Расположение кнопки относительно правой части экрана */
  color: #000; /* Черный цвет кнопки для видимости */
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001; /* Убедимся, что кнопка выше других элементов */
  opacity: 0.5; /* Делаем кнопку полностью непрозрачной */
  transition: color 0.3s ease; /* Добавляем плавный переход для изменения цвета */
}

.close:hover,
.close:focus {
  color: red; /* Изменение цвета кнопки при наведении */
  text-decoration: none;
}


#termsContent {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
}

@keyframes show {
  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }

  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}

/* Контейнер для ReCaptcha */
.recaptcha-container {
  border-radius: 15px; /* Скругление углов */
  overflow: hidden;    /* Обрезка содержимого, выходящего за рамки */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Тень для красоты */
  display: inline-block; /* Устанавливаем inline-блок для корректного рендеринга */
  margin-top: 9px;  
  /* width: 100%; */
  transform: scale(0.93);
  /* font-size: 12px; */
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.login-container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}

.login-wrapper .overlay {
  background: #6d83f2;
  background: -webkit-linear-gradient(to right, #4966f5, #6d83f2);
  background: linear-gradient(to right, #4966f5, #6d83f2);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  color: #ffffff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.login-container.right-panel-active .overlay {
  transform: translateX(50%);
}

.login-wrapper .overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.overlay-left {
  transform: translateX(-20%);
}

.login-container.right-panel-active .overlay-left {
  transform: translateX(0);
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.login-container.right-panel-active .overlay-right {
  transform: translateX(20%);
}

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

.social-container a {
  border: 1px solid #dddddd;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  height: 40px;
  width: 40px;
}

/* Start of event card*/
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 15px;
  height: 100%;
  border-radius: 20px !important;
  background-color: #2c2c2c !important;
  border-bottom: 7px solid #6d83f2 !important;
  box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.16);
  transition: all 0.3s ease-out;
  transform: translateZ(0);
}

.card:hover {
  transform: translate3d(0px, -0.25rem, 0px);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.card-title {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.3;
  color: #e5e5e5;
  height: 6rem;
}

#section-event {
  background-color: #1c1c1c;
}

#upcoming {
  font-weight: 800;
  color: #e5e5e5;
  font-size: 3rem;
  text-align: center;
  padding: 20px;
  font-family: "Roboto", sans-serif;
}

.ThumbnailWrapper {
  position: relative;
  width: 100%;
  margin-top: -20px;
}

.card img {
  height: 250px;
}

.InnerWrapper {
  overflow: hidden;
}

.ThumbnailWrapper::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.15);
  transition: 0.3s ease;
}

.card-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  padding: 24px;
}

.card-text > * {
  display: block;
}

.text-bold {
  font-weight: bold;
}

.card-description {
  line-height: 1.5;
  margin-top: 8px;
  font-family: "Fira Sans Condensed", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* End of event card*/

#nav-menu {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}

/* Start of messages */
.mess-container {
  padding-top: 50px;
}

.messages {
  color: white;
  text-align: center;
}
/* End of messages */

/* start of Calendar */

.main {
  margin-left: calc(8% - 2px); /* Выравнивание форм */
  padding-top: 8rem;
  width: 70%; /* Растягиваем на всю ширину */
  margin: 0 left; /* Центрирование */
  display: flex;
  justify-content: center; /* Центрируем формы горизонтально */
  align-items: left; /* Центрируем формы вертикально */
  gap: 4rem; /* Расстояние между формами */
  transform: scale(0.8); /* Уменьшаем масштаб */
}

.calendar {
  width: 60%;
  border-radius: 2rem;
  transition: all 0.3s ease-out;
  transform: translateZ(0);
}

.calendar:hover {
  transform: translate3d(0px, -0.25rem, 0px);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.623);
}

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #696d97;
  color: #e5e5e5;
  box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.479);
  border-radius: 2rem 2rem 0 0;
  height: 12%;
}

.month-picker {
  font-size: 2.5rem;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  font-weight: 800 !important;
  margin: 0 1%;
  cursor: pointer;
}

.month-picker:hover {
  color: #71c6dd;
}

.year-picker {
  font-size: 2.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  margin: 0 1%;
  cursor: pointer;
}

.year-picker:hover {
  color: #71c6dd;
}

.month-change {
  font-size: 2.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 800 !important;
  margin: 0 1%;
  cursor: pointer;
  position: fixed;
}

#prev-month {
  left: 10%;
}

#next-month {
  left: 90%;
}

#calendar__header {
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
  padding-top: 1rem;
}

.month-change:hover {
  color: #71c6dd;
}

.calendar-body {
  background-color: #3f4156;
  color: #b2bdbd !important;
  font-family: "Poppins", sans-serif;
  padding: 1% 5%;
  font-size: 2rem;
  position: relative;
  min-height: 430px;
  box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.479);
  border-radius: 0 0 2rem 2rem;
  border-bottom: 7px solid #6d83f2 !important;
}

.calendar-week-day {
  display: grid;
  grid-template-columns: repeat(7, auto);
  place-items: center;
  font-family: "Poppins", sans-serif;
}

.calendar-week-day div {
  padding: 1rem 0 6rem 0;
  display: grid;
  border: 2px solid transparent;
  width: 50px;
  height: 50px;
  place-items: center;
  font-family: "Poppins", sans-serif;
  color: #8f8f8f;
}

.calendar-day {
  display: grid;
  grid-template-columns: repeat(7, auto);
  cursor: pointer;
  place-items: center;
  margin-top: 1%;
  font-family: "Poppins", sans-serif;
}

.calendar-day div {
  margin: 2% 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  font-family: "Poppins", sans-serif;
}

.calendar-day div:hover {
  background-color: #696d97;
  border-radius: 50%;
}

.calendar-day div.curr-date {
  background-color: #696d97;
  border-radius: 50%;
  text-align: center;
}

.curr-month {
  background-color: #696d97;
}

.curr-year {
  background-color: #696d97;
}

.month-list {
  display: grid;
  grid-template-columns: repeat(4, auto);
  place-items: center;
  transform: scale(0.5);
  visibility: hidden;
  transition: all 0.3s ease-out;
  cursor: pointer;
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: #3f4156;
  color: #b2bdbd;
  border-radius: 2rem;
}

.month-list div {
  border: 2px solid transparent;
  border-radius: 5%;
  width: 80%;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.month-list div:hover {
  border-bottom: 2px solid rgb(151, 151, 151);
  border-top: 2px solid rgb(151, 151, 151);
}

.year-list {
  display: grid;
  grid-template-columns: repeat(5, auto);
  place-items: center;
  transform: scale(0.5);
  visibility: hidden;
  transition: all 0.3s ease-out;
  cursor: pointer;
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  border-radius: 2rem;
  background-color: #3f4156;
  color: #b2bdbd;
}

.year-list div {
  border: 2px solid transparent;
  border-radius: 5%;
  width: 80%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.year-list div:hover {
  color: rgb(151, 151, 151);
  border-bottom: 2px solid rgb(151, 151, 151);
  border-top: 2px solid rgb(151, 151, 151);
}

.show {
  transform: scale(1);
  visibility: visible;
  pointer-events: visible;
  transition: all 0.3s ease-in-out;
}

.none-pointer-event {
  pointer-events: none;
}

.chosen-date {
  background-color: rgb(204, 204, 204);
  border-radius: 50%;
  font-weight: bold;
  color: #6d6b6b;
}

.day-have-note {
  background-color: yellowgreen;
  border-radius: 50%;
  font-weight: bold;
  color: white;
}

.note {
  width: calc(30% - 2px);
  border-radius: 2rem;
  transition: all 0.3s ease-out;
  transform: translateZ(0);
}

.note:hover {
  transform: translate3d(0px, -0.25rem, 0px);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.623);
}

.note-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #696d97;
  color: #e5e5e5;
  box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.479);
  border-radius: 2rem 2rem 0 0;
  height: 12%;
}

.note-header span {
  font-size: 2.5rem;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  font-weight: 800 !important;
  margin: 0 1%;
}

.note-body {
  background-color: #3f4156;
  color: #b2bdbd !important;
  font-family: "Poppins", sans-serif;
  padding: 2% 5%;
  font-size: 25px;
  /* position: relative; */
  min-height: 430px;
  box-shadow: 0 0 0.3rem rgb(0 0 0 / 48%);
  border-radius: 0 0 2rem 2rem;
  border-bottom: 7px solid #6d83f2 !important;
  height: 88%;
}

.date-container {
  display: grid;
  grid-template-columns: repeat(3, auto);
  /* display: flex; */
}

.note-date {
  display: grid;
  border: 2px solid transparent;
  width: 100%;
  height: 50px;
  place-items: center;
  font-family: "Poppins", sans-serif;
  color: #8f8f8f;
  font-size: 2rem;
  position: relative;
  cursor: pointer;
}

.note-date:hover {
  color: #71c6dd;
}

.note-today {
  font-size: 15px;
  text-decoration: underline;
  display: flex;
  justify-content: right;
  align-items: center;
  color: #8f8f8f;
  cursor: pointer;
}

.note-today:hover {
  color: #71c6dd;
}

.note-content {
  margin-top: 3.5%;
  height: 65%;
}

.note-content form {
  height: 100%;
  align-items: center;
  position: relative;
}

.note-content textarea {
  height: 60%;
  width: 100%;
  background-color: #212529;
  color: #b2bdbd;
  border-radius: 1rem 1rem 0 0;
  resize: none;
  outline: none;
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  border: none;
  padding: 10px;
  position: absolute;
}

.note-content #system-note {
  height: 40%;
  width: 100%;
  border-radius: 0 0 1rem 1rem;
  position: absolute;
  bottom: 0;
}

.note-content input {
  background-color: #6d83f2;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  color: #2c2c2c;
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  bottom: -25%;
}

#note-save {
  position: absolute;
  right: 0;
}

#note-delete {
  position: absolute;
  right: 25%;
}
/* end of Calendar */

/* Begin of Chart */

.chart-container {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: flex-start;
  gap: 10rem;
  padding: 0 15rem;
}

.radar-container {
  background-color: white;
  padding: 2rem 4rem;
  width: 75rem;
  border-radius: 4rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 7px solid #6d83f2 !important;
  box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.16);
  transition: all 0.3s ease-out;
  transform: translateZ(0);
}

/* .radar-container:hover {
  transform: translate3d(0px, -0.25rem, 0px);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.32);
} */

.center-title {
  text-align: center;
}

.h2-title-description {
  margin-top: -20px;
  padding-bottom: 20px;
  color: #b2bdbd;
}

/* Begin of Ranking Table */
/* Контейнер для таблицы рейтинга */
.ranking-container {
  background-color: white;
  padding: 2rem 4rem;
  width: 75rem;
  border-radius: 4rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 7px solid #6d83f2;
  box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.16);
  transition: all 0.3s ease-out;
  transform: translateZ(0);
  overflow: hidden;
}

/* Заголовок таблицы */
.ranking-title {
  text-align: center;
  margin: 3rem 0 1rem 0;
  font-family: 'Poppins', sans-serif;
  color: #333333;
}

/* Заголовок таблицы - жирный шрифт */
.ranking-title h2 {
  font-weight: bold;
  color: #333333;
}

/* Таблица рейтинга */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
}

/* Заголовки столбцов */
.ranking-table th {
  background-color: #f5f5f5;
  color: #333333;
  padding: 16px 25px;
  text-align: center;
  font-size: 1.1rem;
  border-bottom: 2px solid #ddd;
  border-right: 1px solid #ddd;
  font-weight: bold;
}

/* Удаление правой границы у последнего столбца */
.ranking-table th:last-child {
  border-right: none;
}

/* Ячейки таблицы */
.ranking-table td {
  padding: 16px 25px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  color: #666666; /* Более серый цвет */
  font-weight: bold; /* Жирный шрифт */
}

/* Удаление правой границы у последнего столбца */
.ranking-table td:last-child {
  border-right: none;
}

/* Чередование цветов строк */
.ranking-table tr:nth-child(even) {
  background-color: #fafafa;
}

/* Эффект наведения на строку */
.ranking-table tr:hover {
  background-color: #f1f1f1;
}

/* Адаптивность таблицы */
@media (max-width: 768px) {
  .ranking-container {
    width: 90%;
    padding: 1rem 2rem;
  }

  .ranking-table th, .ranking-table td {
    padding: 12px 15px; /* Уменьшенные отступы для мобильных устройств */
  }
}

/* End of Ranking Table */

/* End of Chart */


.sticky {
  position: sticky;
  top: 0;
  z-index: 1;
}


/*=======================
  Pagination
========================*/
.pagination_ {
  margin-top: 8rem;
  margin-bottom: 10rem;
  padding-top: 10rem;
}

.pagination_ > ul {
  flex-wrap: wrap;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pagination_ .btn {
  color: var(--color-sub);
}

.pagination_ .btn.btn--sub {
  color: var(--color-light);
}

.pagination_ .btn {
  border: 1px solid #51546e;
  background-color: #3f4156;
  font-size: inherit;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Стили для всплывающего окна */
.popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #2c2c2c;
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 90%;
  text-align: center;
  width: 300px;
}

.hidden {
  display: none;
}

#popup-close-button {
  background-color: #4966f5;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
  font-family: "Montserrat", sans-serif;
}