body {
  height: 100vh;
  margin: 0;
  background: rgb(34, 34, 34);
  color: white;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-size: 1.5em;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #000;
  display: block;
  pointer-events: none;
}

/* Звезды с разной скоростью и размером, создающие глубину */
.star {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  animation: twinkling linear infinite;
}

/* Разные скорости мерцания */
.star1 {
  animation-duration: 1s;
}
.star2 {
  animation-duration: 1.5s;
}
.star3 {
  animation-duration: 2s;
}

@keyframes twinkling {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

/* Адаптивность */
@media (max-width: 600px) {
  h1 {
    font-size: 2.5em;
  }

  p {
    font-size: 1em;
  }

  .countdown-item {
    font-size: 1.5em;
    margin: 0 10px;
  }
}

/* Луна (можно добавить) */
#moon {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 100px;
  height: 100px;
  background-image: url('moon.png'); /* Замените на URL вашей картинки луны */
  background-size: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); /* Added for better glow effect */
}

/* Ракета (можно добавить) */
#rocket {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 80px;
  height: 120px;
  background-image: url('rocket.png'); /* Замените на URL вашей картинки ракеты */
  background-size: contain;
  background-repeat: no-repeat;
  animation: rocket-launch 5s linear infinite alternate;
}

@keyframes rocket-launch {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-20px);
  }
}

p span {
  background-color: black;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
}

header img {
  width: 250px;
  height: auto;
}

header div {
  margin: 20px;
  text-align: center;
}

h1 {
  margin: 0px;
  font-weight: 600;
  font-size: 3em;
}

h2 {
  margin: 0;
  font-weight: 300;
}

section {
  width: 80%;
  margin: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

p {
  margin-top: 0;
  text-align: justify;
}

em {
  font-weight: bolder;
  font-style: unset;
}

a {
  color: white;
  text-decoration: unset;
  font-weight: bold;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.6;
}

form[name='generator'] {
  width: 1050px;
  margin: 15px;
  padding: 25px;
  border-radius: 15px;
  background-color: rgb(43, 43, 43);
  box-shadow: 2px 2px 10px 2px black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form_table {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
}

.form_col {
  width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form_row {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
}

.form_row.left {
  justify-content: flex-start;
}

.form_row.right {
  justify-content: flex-end;
}

.form_row.left label {
  margin-left: 20px;
}

.form_row.right label {
  margin-right: 20px;
}

.form_row.center {
  justify-content: center;
  margin-bottom: 20px;
}

.form_row.right input[type='text']:not(.short),
.form_row.left input[type='text']:not(.short) {
  width: 100%;
  height: 25px;
  font-size: 0.7em;
}

input[type='text'] {
  width: 220px;
  height: 30px;
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-size: 1em;
  text-align: center;
  padding: 2px 10px;
}

input[type='text'].short {
  width: 40px;
  height: 25px;
  font-size: 0.8em;
}

input[type='checkbox'] {
  font-size: 17px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 50px;
  height: 25px;
  background: rgb(221, 221, 221);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

input[type='checkbox']:checked {
  background: rgb(14, 207, 255);
}

input[type='checkbox']:after {
  position: absolute;
  content: '';
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: white;
  -webkit-box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
  left: 0;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

input[type='checkbox']:checked:after {
  left: calc(100% - 1.5em);
}

select {
  width: 180px;
  height: 25px;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-size: 0.7em;
  padding: 0px 8px;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

#fade_seconds {
  margin: 10px;
  font-size: 0.7em;
  font-weight: 200;
}

select:focus,
input:focus {
  outline: none;
}

#botNamesContainer input[name='botNames'] {
  width: 100%;
  /*height: 25px;*/
  /*font-size: 0.7em;*/
}

/*#botNamesContainer input[name="botNames"]::placeholder {*/
/*    opacity: 0.8;*/
/*    color: red;*/
/*}*/

#botNamesContainer label {
  margin-right: 20px;
  flex-shrink: 0;
}

#submit_container {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preview {
  margin-top: 20px;
  display: flex;
}

.preview img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  cursor: pointer;
}

#example {
  display: block;
  width: 80%;
  /*height: 10em;*/ /* TODO: enable back */
  margin: 10px 0 25px;
  padding: 1rem;
  border-radius: 15px;
  overflow: hidden;
  color: white;
  font-weight: 800;
  word-break: break-word;
  transition: background-color 0.3s ease-in-out;
}

#example.white {
  background-color: rgb(200, 200, 200);
}

#example .user_info {
  display: inline-block;
}

#example .badge {
  vertical-align: middle;
  border-radius: 10%;
}

#example .cheer_bits {
  color: rgb(189, 98, 255);
  font-size: 0.6em;
  -webkit-text-stroke: 1px black;
}

#example .emote {
  vertical-align: middle;
}

#example .emoji {
  vertical-align: middle;
}

input[type='submit'],
input[type='button'] {
  width: 150px;
  height: 45px;
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

input[type='submit']:hover,
input[type='button']:hover {
  opacity: 1;
}

#result {
  position: relative;
  width: 950px;
  margin: 15px;
  padding: 25px;
  border-radius: 15px;
  background-color: rgb(43, 43, 43);
  box-shadow: 2px 2px 10px 2px black;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#alert {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 800px;
  height: 30px;
  background-color: white;
  border-radius: 5px;
  cursor: pointer;
  color: black;
  font-size: 1em;
  text-align: center;
  padding: 2px 10px;
  transition: opacity 0.2s ease-out;
}

#url {
  width: 800px;
  cursor: pointer;
}

#result p {
  text-align: center;
  font-size: 0.9em;
  margin: 1em;
}

details summary {
  text-align: center;
  font-size: 2rem;
}

#donation {
  font-size: 0.7em;
  font-weight: 300;
  text-align: center;
  margin: 30px;
}

#donation .emote {
  height: 30px;
  width: 30px;
  margin-bottom: -5px;
  margin-right: 0;
}

#donation form {
  margin: 0 15px;
}

#paypal {
  width: 100px;
  height: 25px;
  border-radius: 20px;
  background-color: rgb(255, 196, 57);
  font-size: 0.9em;
  font-weight: 600;
}

footer {
  width: 100%;
  margin-top: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.github {
  height: 20px;
  margin-left: 5px;
  vertical-align: middle;
}

footer p {
  font-size: 0.8em;
  font-weight: 200;
  margin: 0;
}

footer a {
  font-weight: 400;
}

.simpler-link {
  font-weight: inherit;
}

#feature-list li {
  margin: 0.15rem;
}

.input-bad {
  border: 2px solid red !important;
}

/* Scrollbar */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background: rgb(43, 43, 43);
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(77, 77, 77);
}

::-webkit-scrollbar-track {
  background: black;
}

/* .animation-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.animation-wrapper canvas,
.animation-wrapper .image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.animation-wrapper .image {
  z-index: 0;
  opacity: 0;
  transition: opacity 2s;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover !important;
}

#animation-canvas {
  z-index: 1;
}

#animation-space-canvas {
  z-index: 2;
  opacity: 0;
  transition: opacity 2s;
}

.animation-wrapper.active #animation-space-canvas {
  opacity: 1;
}

.animation-wrapper.active .image {
  opacity: 1;
} */
#stars-webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  pointer-events: none;
  background: #000;
}
