@font-face {
  font-family: "SkyMedium";
  src: url("Sky_Med.ttf") format("truetype"); /* Use the correct path where your font is located */
  font-weight: normal;
  font-style: normal;
}

.bottom-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: -1000;
}

#viewer {
  max-width: 100%;
  margin: auto;
  position: relative; /* Keep this as it is */
}
.viewer-image {
  max-width: 100%;
  display: block;
}
@media (min-width: 500px) {
  #viewer {
    max-width: 500px;
  }
}

#prev,
#next {
  display: none;
}
#autoplay-container {
  display: flex;
  justify-content: center; /* Center horizontally */
  margin-top: 0; /* Adjust the space between the viewer and the autoplay button */
}

#autoplay-toggle {
  cursor: pointer;
  padding: 5px 10px;
  border: none;
  margin-top: 10px;
  background-image: linear-gradient(
    to bottom,
    #ffffff,
    #e0e0e0
  ); /* Gradient from white to light gray */
  border-radius: 50px;
  font-size: 16px; /* Adjust icon size as needed */
  width: 40px; /* Fixed width */
  height: 40px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px 2px #dadada,
    inset 0 2px 2px 1px rgba(150, 150, 150, 0.6); /* Second inner shadow with 60% opacity */
}

#progress-container {
  position: absolute;
  bottom: 0px; /* Adjust as needed */
  right: 0px;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent scrolling */
}

body {
  background-color: #f6f6f6; /* Set background to black */
  display: flex; /* Use Flexbox */
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center items vertically */
  align-items: center;
  /*background-image: url("bg2.webp");  Your background image URL */
  background-size: cover;
  background-position: center -100px; /* Shift background 350px upwards */
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "SkyMedium", Arial, sans-serif; /* Fallback to Arial if custom font is not available */
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  margin-top: 20px; /* Adjust the top margin as needed */
}

.logo-container img {
  max-width: 100%; /* Ensures the image is responsive */
  height: auto; /* Maintains the image aspect ratio */
}

#swipe-icon {
  display: block;
  cursor: default;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 70%; /* Adjust as per your preference */
  transform: translateX(-50%);
  text-align: center;
}

#swipe-icon img {
  width: 60%; /* Set icon width to 60% of the screen width */
  height: auto; /* Maintain aspect ratio */
  max-width: none; /* Override any existing max-width */
}

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

/* Apply the animation to the swipe-icon */
#swipe-icon.fade-out {
  animation: fadeOut 1s forwards; /* Adjust '1s' to control the speed of the fade-out */
}

#thumbnails-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.thumbnail {
  width: 100px; /* Adjust based on your preference */
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.1);
}

.selected-thumbnail {
  border: 4px solid #012b91; /* Example: blue border */
}

#joystick-container {
  width: 140px; /* Set to the size of your base image */
  height: 140px; /* Set to the size of your base image */
  background-image: url("togglebg-sky.png"); /* Path to your base image */
  background-size: cover; /* This will cover the entire area of the container */
  background-position: center; /* Center the background image */
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#joystick {
  width: 100px; /* Set to the size of your knob image */
  height: 100px; /* Set to the size of your knob image */
  background-image: url("joystick-toggle2.png"); /* Path to your knob image */
  background-size: cover; /* This will cover the entire area of the joystick */
  background-position: center; /* Center the background image */
  border-radius: 50%;
  position: absolute;
}

.centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 6px solid #f3f3f3; /* Light grey */
  border-top: 6px solid #012b91; /* Blue */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
}
#loading-overlay .spinner {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
}
#loading-overlay #loading-text {
  margin-top: 20px; /* Adjust based on your preference */
  color: white;
  font-size: 20px;
}
