/* === Global === */
body {
  background-color: #0f0f0f;
  color: #f0f0f0;
  font-family: 'Config Rounded', sans-serif;
  margin: 0;
}

/* === index.html === */
body.index {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}

h1 {
  color: #f49ac1;
  margin-bottom: 30px;
  font-weight: 700;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="text"] {
  padding: 10px;
  border-radius: 10px;
  border: none;
  width: 250px;
  margin-bottom: 15px;
  font-size: 16px;
  background-color: #272727;
  color: #f0f0f0;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background-color: #f49ac1;
  color: #0f0f0f;
  font-size: 16px;
  font-family: 'Config Rounded', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #e071b0;
}

/* === tracker.html === */
body.tracker {
  text-align: center;
  padding: 20px;
}

.dropdown {
  margin: 10px auto;
  max-width: 1000px;
  text-align: left;
}

details {
  background: #272727;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 10px;
  color: #fff;
}

summary {
  font-size: 1.2em;
  cursor: pointer;
  color: #f49ac1;
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
  margin: 10px auto;
}

.boss {
  position: relative;
  cursor: pointer;
  width: 100%;
  max-width: 150px;
}

.boss img {
  width: 100%;
  height: auto;
  border: 2px solid #f49ac1;
  border-radius: 10px;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.boss:hover img {
  transform: scale(1.05);
}

.boss.dead img {
  opacity: 0.3;
}

.cross {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cross::before,
.cross::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: #f49ac1;
  top: 40%;
  left: 0;
}

.cross::before {
  transform: rotate(45deg);
}

.cross::after {
  transform: rotate(-45deg);
}

.label {
  margin-top: 5px;
  text-align: center;
  color: #f0f0f0;
  font-weight: 500;
}

.back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  border-radius: 5px;
  background-color: #f49ac1;
  color: #0f0f0f;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s ease;
  font-family: 'Config Rounded', sans-serif;
}

.back-button:hover {
  background-color: #e071b0;
}

/* === Stream Schedule Page === */
.sheet-container {
  width: 95vw;
  max-width: 1600px;
  margin: 20px auto;
  border: 2px solid #f49ac1;
  border-radius: 10px;
  overflow: auto;
  background: #272727;
  height: 85vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.sheet-container iframe {
  width: 2000px; /* natural sheet width */
  height: 1200px;
  border: none;
  transform: scale(1.3);
  transform-origin: top left;
}

/* Responsive zoom levels */
@media (max-width: 1400px) {
  .sheet-container iframe {
    transform: scale(1.15);
  }
}

@media (max-width: 1100px) {
  .sheet-container iframe {
    transform: scale(1.0);
  }
}

@media (max-width: 800px) {
  .sheet-container iframe {
    transform: scale(0.8);
  }
}

@media (max-width: 600px) {
  .sheet-container iframe {
    transform: scale(0.65);
  }
}

/* === Fade-in animation for the embedded sheet === */
.sheet-container iframe {
  opacity: 0;
  animation: fadeInSheet 0.8s ease-in forwards;
}

/* Keyframes for the fade-in effect */
@keyframes fadeInSheet {
  from {
    opacity: 0;
    transform: scale(1.1) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* === Homepage Buttons === */
form {
  margin-bottom: 15px;
}

button {
  width: 250px;
}

/* === Global fade-in animation for headings, buttons, and key UI elements === */
h1, button, .back-button {
  opacity: 0;
  animation: fadeInElement 0.8s ease-out forwards;
}

/* Slight stagger for a layered entrance */
h1 {
  animation-delay: 0.1s;
}

button {
  animation-delay: 0.2s;
}

.back-button {
  animation-delay: 0.3s;
}

/* Reuse fade-in animation */
@keyframes fadeInElement {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Game Embed Page === */
.game-container {
  width: 95vw;
  max-width: 1200px;
  height: 80vh;
  margin: 20px auto;
  border: 2px solid #f49ac1;
  border-radius: 10px;
  overflow: hidden;
  background: #272727;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
