﻿body {
  font-family: Comic Sans MS, Comic Sans, cursive;
  background: #151515;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  margin: 0;
}

.loader {
  font-size: 24px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

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

#typewriter::after {
  content: "|";
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero {
  font-size: 20px;
  animation: fadeIn 2s ease-in-out;
}

.hero.hidden { display: none; }


.login {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 20px;
  animation: fadeIn 2s ease-in-out;
}

.login.hidden { display: none; }

.account-btn { vertical-align: middle; padding: 6px; }
.account-btn svg { display: block; width: 24px; height: 24px; }
.account-dialog { width: min(420px, calc(100% - 60px)); background: #202020; color: #fff; border: 1px solid #444; border-radius: 14px; padding: 24px; text-align: left; font-family: inherit; }
.account-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.account-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.account-heading h2 { margin: 0; }
.account-heading button { font-size: 28px; line-height: 1; }
.account-card { background: #292929; border-radius: 10px; padding: 16px; margin-top: 20px; }
.account-card h3 { margin-top: 0; }
.account-card p { margin-bottom: 0; color: #ccc; line-height: 1.5; }

div.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 5px 2px rgb(119, 0, 255);
  border: 0px solid #444;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px;
  border-radius: 12px;

}

.bar.hidden {
  display: none;
}
.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.login-form input {
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 30px 15px;
  font-size: 16px;
  color: #fff;
  font-family: inherit;
  width: 220px;
  text-align: center;
}

.login-form input:focus {
  outline: none;
  border-color: rgb(119, 0, 255);
}

button, .button-link {
  font-family: Comic Sans MS, Comic Sans, cursive;
  background: rgba(66, 138, 245, 0);
  border: 0;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.button-link {
  display: inline-block;
  text-decoration: none;
}

button:hover, .button-link:hover { 
  color: rgb(119, 0, 255); 
  text-shadow: 0 0 10px rgb(0, 0, 0),
             0 0 20px rgb(0, 0, 0),
             0 0 30px rgb(0, 0, 0);
  transform: rotate(var(--hover-tilt, 0deg));
}

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

@keyframes Scale {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  button, .button-link { transition: none; }
  button:hover, .button-link:hover { transform: none; }
}
