/* PWA Offline Caching App Styles */

html,
body {
  height: 100%;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial;
  overflow: hidden;
}

#parentElement {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#debug {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 9999;
  display: none !important;
}

#status {
  position: absolute;
  left: 6px;
  top: 6px;
  background: #222;
  padding: 8px;
  display: none !important;
  border-radius: 6px;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Loading screen with logo and circle timer */
#progressOverlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

/* Logo container with white background circle */
.logo-container {
  width: 500px;
  height: 500px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  animation: logoBeat 2s ease-in-out infinite;
}

/* Slow beat animation for logo container */
@keyframes logoBeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

/* Logo styling */
.loading-logo {
  max-width: 500px;
  max-height: 500px;
  object-fit: contain;
}

/* Circle timer container - positioned bottom right */
#loadingTimerContainer {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10002;
}

/* Status text below logo */
#loadingStatusText {
  font-family: 'Arial', sans-serif;
  font-size: 18px;
  color: white;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
}

/* Countdown text */
#progressCountdownText {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

html.offline #progressOverlay {
  display: none !important;
}