* {
padding: 0;
margin: 0;
font-family: 'Courier New', Courier, monospace;
box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #232332;
  padding: 16px;
}

h1 {
  font-size: 40px;
  color: #ffffff;
}

p {
  font-size: 24px;
  color: #ffffff;
}

b,
strong {
  font-weight: 700;
  font-size: 1.4em;
  color: #6464ff;
  text-shadow: 0 0 8px rgba(100, 100, 255, 0.3);
  letter-spacing: 0.5px;
}

/* Стили для input */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  color: #ffffff;
  background-color: #2a2a3d;
  border: 2px solid #3a3a5c;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
}

input[type="betatest"],
textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  color: #ffff72;
  background-color: #000000;
  border: 2px dashed #ffe100;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #6464ff;
  background-color: #2e2e42;
  box-shadow: 0 0 0 3px rgba(100, 100, 255, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: #6a6a8a;
}

/* Стили для кнопок */
button,
input[type="button"],
input[type="submit"] {
  min-width: 120px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background-color: #6464ff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

dialog {
  margin: auto;
  border: none;
  border-radius: 20px;
  padding: 30px;
  background: #1e1e2d;
  color: #fff;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background-color: #7575ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 100, 255, 0.3);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

button:disabled {
  background-color: #3a3a5c;
  cursor: not-allowed;
  opacity: 0.6;
}

.elements_rect {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;

  width: min(600px, calc(100vw - 32px));
  min-height: 225px;
  background-color: #1e1e2d;
  border: 5px outset #6464ff;
  border-radius: 45px;
  padding: 16px;
}

/* Контейнер для группы кнопок */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(28px, 8vw, 40px);
    text-align: center;
  }

  p {
    font-size: clamp(16px, 5vw, 24px);
    text-align: center;
  }

  button,
  input[type="button"],
  input[type="submit"] {
    font-size: 14px;
    padding: 10px 20px;
  }
}
