@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #f1f1f1;
  font-family: "Questrial", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
}

.container {
  min-height: calc(100vh - 48px - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;     
  padding-top: 48px;       
  padding-bottom: 64px;    
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 500px;
  width: 90%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

#atc-online {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding-top: 0.5rem;

  color: #eee;
  font-family: "Questrial", sans-serif;
  font-size: 0.75rem;
  overflow: hidden; /* dont delete, ts hides scroll bar*/
}

.marquee-container {
  position: relative;
  width: 100vw;
  height: 2.2em;
  overflow: hidden;
  color: #eee;
  font-family: "Questrial", sans-serif;
  user-select: none;
}

.marquee {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 2.2em;
  will-change: transform;
  pointer-events: none;
}

#info {
  position: absolute;
  top: 2.3em; 
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
  z-index: 200;
  cursor: default;
}

.tippy-box[data-theme~='light-border'] {
  font-size: 0.85rem;
  line-height: 1.3;
  padding: 0.6rem;
  max-width: 260px;
}

@media (max-width: 600px) {
  #info {
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
  }
}

main {
  text-align: center;
  max-width: 500px;
  width: 90%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 40px #fff;
}

.subtitle {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #999;
}

form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

input[type="text"] {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 2px solid #f1f1f1;
  background-color: transparent;
  color: #f1f1f1;
  border-radius: 8px;
  width: 60%;
  min-width: 200px;
  font-family: "Questrial", sans-serif;
}

input::placeholder {
  color: #888;
}

button {
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  background-color: #f1f1f1;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Questrial", sans-serif;
}

button:hover {
  background-color: #ccc;
  color: #000;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #888;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;

  padding: 1rem 0;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}

footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  footer {
    font-size: 0.8rem;
    padding: 0.7rem 0;
  }
}

p, h1, h2 {
  cursor: default;
}

span:hover {
  cursor: pointer;
}

#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease forwards;
  backdrop-filter: blur(3px);
}

#modal.show {
  display: flex;
}

#modalContent {
  background: #1e1e1e;
  padding: 32px 40px;
  border-radius: 20px;
  max-width: 720px;
  width: 90%;
  text-align: left;
  position: relative;
  color: #f1f1f1;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.3s ease;
  overflow-y: auto;
  max-height: 80vh;
}

#modalContent h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

#modalContent p,
#modalContent li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

#modalContent h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
  color: #e0e0e0;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
}

#modalContent ul {
  padding-left: 1.4rem;
  margin: 0;
  list-style: disc;
}

#closeModal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
}

#closeModal:hover {
  color: #fff;
}

@media (max-width: 600px) {
  #modalContent {
    padding: 24px 20px;
  }

  #modalContent h2 {
    font-size: 1.5rem;
  }

  #modalContent p,
  #modalContent li {
    font-size: 1rem;
  }

  #modalContent h3 {
    font-size: 1.1rem;
  }
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#leaderboardModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease forwards;
  backdrop-filter: blur(3px);
}

#closeLeaderboard {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
}

#leaderboardModal.show {
  display: flex;
}

#leaderboardBtn {
  margin-top: 1.5rem;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  background-color: #111;
  color: #f1f1f1;
  border: 2px solid #f1f1f1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Questrial", sans-serif;
}

#leaderboardBtn:hover {
  background-color: #222;
  border-color: #ccc;
  color: #fff;
}


@media (max-width: 600px) {
  #leaderboardBtn {
    top: 8px;
    left: 8px;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }
}
