/* Shared Loading Page Styles for Winchester Wild Game Website */
/* This file should be included on all pages to provide consistent loading page styling */

/* Font Face Declarations */
@font-face {
  font-family: 'Bogart Regular';
  src: url('../Bogart-Regular-trial.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* Loading Page Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(40, 54, 24, 1); /* Dark forest green from color scheme */
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transform: translateY(-50px); /* Move entire container up */
}

.loading-logo {
  width: 200px;
  height: 200px;
  margin-bottom: 15px; /* Reduced spacing */
  opacity: 0;
  animation: logoFadeIn 2s ease-in-out forwards;
  animation-delay: 0.5s;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid rgba(221, 161, 94, 1); /* Golden accent */
  border-radius: 50%;
  margin-top: 0;
  opacity: 0;
  animation: spinnerFadeIn 1s ease-in-out forwards, spin 1s linear infinite;
  animation-delay: 2.5s;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spinnerFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive design for loading page */
@media (max-width: 768px) {
  .loading-logo {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .loading-logo {
    width: 120px;
    height: 120px;
  }
}
