body {
  margin: 0;
  padding: 0;
  font-family: 'Calibri', sans-serif;
  background-color: #36393f;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.container {
  text-align: center;
}

.main-title {
  font-size: 2em;
  font-weight: bold;
  color: #7289da;
}

.sub-text {
  font-size: 1.2em;
  margin: auto;
  width: 40%;
  font-weight: normal;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .sub-text {
    width: 70%;
  }
}

button {
  margin-top: 10px;
  background-color: #3498db;
  color: black;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #36393f;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  overflow-y: auto;
  max-height: 70vh;

  /* Кастомный скролл */
  scrollbar-width: thin;
  scrollbar-color: #7289da #36393f;
}

.popup-content::-webkit-scrollbar {
  width: 8px;
}

.popup-content::-webkit-scrollbar-thumb {
  background-color: #7289da;
  border-radius: 4px;
}

.popup-content::-webkit-scrollbar-track {
  background-color: #36393f;
}

.close {
  font-size: 1.5em;
  cursor: pointer;
  float: right;
}

.popup-title {
  text-align: center;
  color: yellow;
}

/* Добавленные стили для адаптации под телефон */
@media only screen and (max-width: 600px) {
  .main-title {
    font-size: 1.5em;
  }

  .sub-text {
    font-size: 1em;
  }

  button {
    padding: 8px 16px;
  }

  .popup-content {
    padding: 10px;
    width: 80%;
    max-height: 60vh;
  }

  .close {
    font-size: 1.2em;
  }

  .popup-title {
    font-size: 1.2em;
  }
}
