@font-face {
  font-family: JetBrainsMono;
  src: url("https://ballfart.com/src/fonts/JetBrainsMono-Regular.ttf");
}

body {
  margin: 0;
  background-color: black;
  font-family: 'JetBrainsMono', sans-serif;
  overflow-x: hidden;
}

#tv-screen {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

#center {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 92vw;
  text-align: center;
  font-family: 'JetBrainsMono', sans-serif;
  font-size: clamp(28px, 5.5vw, 69px);
  z-index: 9999;
}

.rainbow {
  text-align: center;
  text-decoration: underline;
  font-size: 69px;
  font-family: 'JetBrainsMono', sans-serif;
  letter-spacing: 0px;
}

.rainbow_text_animated {
  background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow_animation 1s ease-in-out infinite;
  background-size: 400% 100%;
}

@keyframes rainbow_animation {

  0%,
  100% {
    background-position: 0 0;
  }

  50% {
    background-position: 100% 0;
  }
}

/* ---------- DONOR WALLS ---------- */
.donor-wall {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  max-height: 72vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  background: rgba(0, 0, 0, 0.62);
  border: 4px solid #6666ff;
  border-radius: 14px;
  padding: 18px 16px;

  font-family: 'JetBrainsMono', sans-serif;
  color: white;
  z-index: 9998;
}

.donor-wall--recurring {
  left: 20px;
  border-color: #00ff00;
}

.donor-wall--onetime {
  right: 20px;
  border-color: #6666ff;
}

.donor-wall__title {
  margin: 0 0 14px;
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.5px;
}

.donor-wall--recurring .donor-wall__title { color: #00ff00; }
.donor-wall--onetime  .donor-wall__title { color: #6666ff; }

.donor-list {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.donor-list::-webkit-scrollbar { width: 8px; }
.donor-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
}

.donor {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.donor__name {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.donor__amount {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.donor-wall--recurring .donor__amount { color: #00ff00; }
.donor-wall--onetime  .donor__amount { color: #6666ff; }

.banner-ad {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);

  width: fit-content;

  background: rgba(0, 0, 0, 0.5);
  padding: 20px 40px;
  border-radius: 12px;

  border: 4px solid yellow;

  font-family: 'JetBrainsMono', sans-serif;
  font-size: 32px;
  text-align: center;

  color: yellow;

  z-index: 9999;

  animation: flashText 0.5s infinite alternate;
}

@keyframes flashText {
  from {
    color: yellow;
    border-color: yellow;
  }
  to {
    color: red;
    border-color: red;
  }
}

.sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);

  width: 240px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;

  background: rgba(0, 0, 0, 0.5);
  
  padding: 24px 16px;
  border: 4px solid #6666ff;
  border-radius: 0 12px 12px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  font-family: 'JetBrainsMono', sans-serif;
  color: white;
  text-align: center;

  z-index: 9998;
}

.sidebar p {
  color: white;
  font-family: 'JetBrainsMono', sans-serif;
  font-size: 14px;
}
.sidebar a {
  color: white;
  font-family: 'JetBrainsMono', sans-serif;
  font-size: 14px;
}
.sidebar h1 {
  color: green;
  font-family: 'JetBrainsMono', sans-serif;
  font-size: 20px;
  margin: 0px;
}
.sidebar h2 {
  font-family: 'JetBrainsMono', sans-serif;
  text-align: center;
  margin: 0;
}

.sidebar img {
  display: block;
  max-width: 100%;
  height: auto;
}

.menu-toggle-checkbox { display: none; }
.menu-button,
.sidebar-close { display: none; }

@media (max-width: 900px) {

  #center {
    top: 14px;
  }

  .donor-walls {
    position: relative;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 84px 12px 40px;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .donor-wall {
    position: static;
    transform: none;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    max-height: none;
    overflow: visible;
  }

  .donor-list {
    overflow-y: visible;
  }

  .banner-ad {
    font-size: 15px;
    padding: 12px 16px;
    max-width: 90vw;
  }

  .menu-button {
    display: block;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;

    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #6666ff;
    border-radius: 8px;

    color: white;
    font-family: 'JetBrainsMono', sans-serif;
    font-size: 14px;
    cursor: pointer;
  }

  .sidebar {
    display: none;
  }

  .menu-toggle-checkbox:checked ~ .sidebar {
    display: flex;
    justify-content: flex-start;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    transform: none;

    margin: 0;
    padding: 64px 20px 40px;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.95);

    overflow-y: auto;
    z-index: 10000;
  }

  .menu-toggle-checkbox:checked ~ .sidebar .sidebar-close {
    display: block;
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 10001;

    color: #ff3399;
    font-family: 'JetBrainsMono', sans-serif;
    font-size: 22px;
    cursor: pointer;
  }
}
