/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Prevent background flash on mobile scroll */
body {
  background-color: #ba4949;
}

/* Background Modes Styling */
.lottie-background,
.basic-background,
.picture-background,
.youtube-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: opacity 0.5s ease-in-out, background-color 0.8s ease-in-out;
}

.lottie-background {
  display: block;
}

.basic-background {
  display: none;
  background-color: #f97316; /* Default orange for pomodoro */
}

.picture-background {
  display: none;
  background-image: url("/assets/autumn-study-room-71e42040.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.youtube-background {
  display: none;
  background-color: #000;
  justify-content: center;
  align-items: center;
}

/* YouTube iframe styling for theatre mode */
.youtube-iframe {
  width: 90%;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Lottie player styling */
.lottie-background dotlottie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
