/* ===================================================================
   ESQUIE.ORG - IMAGE OVERLAY LAYOUT
   
   Full-image background with centered text overlays
   =================================================================== */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+Double+Pica:ital,wght@0,400;1,400&display=swap');

/* CSS Variables */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #2d2d2d;
  --color-accent: #404040;
  --color-text: #ffffff;
  --color-shadow: rgba(0, 0, 0, 0.8);
  --font-family-primary: 'IM Fell Double Pica', serif;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'IM Fell Double Pica', serif;
}

/* Background image container */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.background-image img {
  width: 100%;
  height: 100%;
  /* object-fit and object-position will be set dynamically via JavaScript */
}

/* Screen containers */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

/* Overlay containers with dark translucent background */
.overlay-container {
  background-color: rgba(0, 0, 0, 0.7);
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.quote {
  font-size: 2.5rem;
  font-style: normal;
  line-height: 1.4;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  max-width: 800px;
}

/* Button styling - Dark and sleek */
.primary-button {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  border: 1px solid #333;
  padding: 16px 40px;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'IM Fell Double Pica', serif;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  text-shadow: none;
  min-width: 120px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.primary-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

.primary-button:hover {
  background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
  border-color: #555;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.primary-button:hover::before {
  left: 100%;
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Error message styling */
.error-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.error-message .overlay-container {
  background-color: rgba(220, 53, 69, 0.9);
  padding: 20px 30px;
  border-radius: 8px;
  width: auto;
  max-width: 500px;
}

.error-text {
  font-size: 1rem;
  margin: 0;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .overlay-container {
    padding: 30px 15px;
    gap: 25px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  .quote {
    font-size: 1.75rem;
  }
  
  .primary-button {
    padding: 14px 32px;
    font-size: 1.375rem;
  }
}

@media (max-width: 480px) {
  .overlay-container {
    padding: 25px 10px;
    gap: 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .quote {
    font-size: 1.5rem;
  }
  
  .primary-button {
    padding: 12px 28px;
    font-size: 1.25rem;
  }
}

/* Animation for content transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen.active .overlay-container > * {
  animation: fadeIn 0.6s ease-out;
}

/* GitHub icon styling */
.github-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-radius: 50%;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.3);
}

.github-link:hover {
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

.github-icon {
  display: block;
  width: 32px;
  height: 32px;
}

/* Responsive GitHub icon */
@media (max-width: 768px) {
  .github-link {
    bottom: 15px;
    left: 15px;
    padding: 6px;
  }
  
  .github-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .github-link {
    bottom: 10px;
    left: 10px;
    padding: 4px;
  }
  
  .github-icon {
    width: 24px;
    height: 24px;
  }
}