@font-face {
  font-family: 'Press Start 2P';
  src: url('../fonts/PressStart2P-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  background: repeating-linear-gradient(
    45deg,
    #111,
    #111 10px,
    #222 10px,
    #222 20px
  );
  font-family: "Press Start 2P", monospace;
  color: #00ffcc;
  height: 100%;
  text-align: center;
}

body {
  display: flex;
  flex-direction: column;
}

.loader {
  position: fixed;
  inset: 0;
  background-color: black;
  color: #00ffcc;
  text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc;
  font-family: monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 1s ease-in-out;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.crt-loading-bar {
  position: relative;
  width: 80%;
  width: 300px;
  height: 20px;
  border: 2px solid #00ffcc;
  margin-top: 1rem;
  background: #000;
  box-shadow: 0 0 8px #00ffcc;
  overflow: hidden;
}

.crt-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    to right,
    #00ffcc,
    #00d5aa 50%,
    #00ffcc
  );
  animation: progress-crt 5s linear forwards;
  position: relative;
}

.crt-loading-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 0, 0.1),
    rgba(0, 255, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 2;
}

@keyframes progress-crt {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.loader-text {
  white-space: pre-wrap;
  font-size: 0.9rem;
  text-align: left;
  max-width: 80vw;
  line-height: 1.4;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.loader-text::after {
  content: " █";
  animation: blink-cursor 1s step-end infinite;
}

.share-buttons {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  z-index: 9999;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
}

.share-label {
  color: white;
  margin-right: 4px;
}

.btn {
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  border: 1px solid #000;
  box-shadow: 0 2px 0 #000;
}

.btn:hover {
  opacity: 0.8;
}

.twitter {
  background-color: #1da1f2;
}

.facebook {
  background-color: #3b5998;
}

.linkedin {
  background-color: #0077b5;
}

.reddit {
  background-color: #ff4500;
}

.whatsapp {
  background-color: #25D366;
}

@media (max-width: 768px) {
  .share-buttons {
    flex-wrap: wrap;
    top: auto;
    bottom: 12px;
    right: 12px;
    left: 12px;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 0.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  }

  .share-buttons .btn {
    flex: 1 1 auto;
    font-size: 10px;
    padding: 6px 8px;
    margin: 2px;
  }

  .share-label {
    width: 100%;
    text-align: center;
    margin-bottom: 0.3rem;
  }
}


@media (max-width: 668px) {
  .share-buttons .btn {
    padding: 6px 40px;
  }
}

@media (max-width: 550px) {
  .share-buttons .btn {
    padding: 6px 24px;
  }
}

@media (max-width: 450px) {
  .share-buttons .btn {
    padding: 6px 10px;
  }
}

@media (max-width: 350px) {
  .share-buttons .btn {
    padding: 6px 2px;
  }
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

h1 {
  margin: 0;
  word-break: break-word;
}

.yes-style {
  font-size: 9vw;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 40px #00ffcc;
  animation: soft-blink 2s ease-in-out infinite;
}

.no-style {
  font-size: 9vw;
  color: #ff0033;
  text-shadow: 0 0 10px #ff0033, 0 0 20px #ff0033, 0 0 40px #ff0033;
}

h1:hover::after {
  content: " (for now)";
  font-size: 0.9rem;
  display: block;
  margin-top: 0.5rem;
  color: #ff00cc;
  text-shadow: none;
}

.quote,
.uptime {
  padding: 0.5rem 1rem;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
  word-break: break-word;
}

.quote {
  margin-top: 8vh;
  font-size: 0.9rem;
  color: #ffcc00;
  text-shadow: 0 0 5px #ffcc00;
}

.uptime {
  margin-top: 6vh;
  font-size: 0.8rem;
  color: #ccc;
  text-shadow: 0 0 5px #555;
}

.footer {
  font-size: 0.75rem;
  color: #ccc;
  text-shadow: 0 0 5px #555;
  text-align: center;
  padding: 1rem;
}

@keyframes soft-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.fade-out {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.fade-out.hidden {
  opacity: 0;
}

@media (max-width: 768px) {
  .yes-style,
  .no-style {
    font-size: 14vw;
  }

  .quote,
  .uptime,
  .footer {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .footer {
    margin-bottom: 8rem;
  }
}

@media (min-width: 1200px) {
  .yes-style,
  .no-style {
    font-size: 6rem;
  }
}
