.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/desert_background/desert.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.loading-content {
  text-align: center;
  color: white;
  z-index: 1;
  max-width: 500px;
  padding: 0;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.loading-logo {
  max-width: 80%;
  max-height: 200px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.loading-title {
  font-family: 'nashvill', Arial, sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  color: #ffb900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.loading-bar-container {
  margin: 30px 0;
  width: 100%;
}

.loading-bar {
  width: 100%;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #ffb900;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #ffb900, #ffd700, #ffb900);
  background-size: 200% 100%;
  border-radius: 8px;
  width: 0%;
  transition: width 0.3s ease;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-percentage {
  font-family: 'nashvill', Arial, sans-serif;
  font-size: 18px;
  color: #ffb900;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.loading-subtitle {
  font-family: 'nashvill', Arial, sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-top: 20px;
  animation: pulse 2s infinite;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@media screen and (max-width: 768px) {
  .loading-content {
    padding: 15px;
    max-width: 90%;
  }
  
  .loading-logo {
    max-height: 150px;
    margin-bottom: 20px;
  }
  
  .loading-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .loading-bar {
    height: 16px;
  }
  
  .loading-percentage {
    font-size: 16px;
  }
  
  .loading-subtitle {
    font-size: 14px;
    margin-top: 15px;
  }
}

@media screen and (max-width: 480px) {
  .loading-logo {
    max-height: 120px;
  }
  
  .loading-title {
    font-size: 20px;
  }
  
  .loading-bar {
    height: 14px;
  }
}
