@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -2;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

.content h1 {
  font-size: 3em;
  margin-bottom: 40px;
  color: white;
  white-space: nowrap;
}

.content p {
  font-size: 1.5em;
  color: white;
  white-space: nowrap;
}

footer {
  position: fixed;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.battery {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  width: 200px;
}

.battery-body {
  display: flex;
  border: 2px solid white;
  border-radius: 4px;
  padding: 2px;
  width: 100%;
  height: 25px;
  box-sizing: border-box;
  gap: 2px;
  background: transparent;
}

.battery-body span {
  flex: 1;
  background-color: white;
  opacity: 0;
  animation: fill 2s linear infinite;
}

.battery-body span:nth-child(1)  { animation-delay: 0.1s; }
.battery-body span:nth-child(2)  { animation-delay: 0.2s; }
.battery-body span:nth-child(3)  { animation-delay: 0.3s; }
.battery-body span:nth-child(4)  { animation-delay: 0.4s; }
.battery-body span:nth-child(5)  { animation-delay: 0.5s; }
.battery-body span:nth-child(6)  { animation-delay: 0.6s; }
.battery-body span:nth-child(7)  { animation-delay: 0.7s; }
.battery-body span:nth-child(8)  { animation-delay: 0.8s; }
.battery-body span:nth-child(9)  { animation-delay: 0.9s; }
.battery-body span:nth-child(10) { animation-delay: 1.0s; }

@keyframes fill {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 768px) {
  .content h1 {
    font-size: 3em;
  }
  .content p {
    font-size: 1em
  }
}

@media (max-width: 480px) {
  .content h1 {
    font-size: 2em;
  }
  .content p {
    font-size: 0.5em
  }
}
