body {
  background-color: #000000;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding: 2rem;
  box-sizing: border-box;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #ffffff;
  color: #000000;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  z-index: 1000;
  transform: translateY(-100%);
  opacity: 0;
}

.skip-link:focus {
  top: 6px;
  transform: translateY(0);
  opacity: 1;
}

/* Visually hidden content for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Main container for centered layout */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  width: 100%;
}

header {
  text-align: center;
}

/* Temple Burn Image */
.temple-burn-image {
  position: relative;
  width: 240px;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 69, 0, 0.3);
}

.burn-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.2) saturate(1.3);
  animation: subtle-glow 3s ease-in-out infinite alternate;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 50%,
    rgba(255, 69, 0, 0.1) 100%
  );
  pointer-events: none;
}

@keyframes subtle-glow {
  0% {
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
  }
  100% {
    filter: brightness(1.2) contrast(1.3) saturate(1.4);
  }
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown {
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem 2rem;
  min-width: 280px;
}

footer {
  text-align: center;
  color: #cccccc;
  font-size: 0.9rem;
}

/* Focus styles for better keyboard navigation */
a:focus,
div[role="timer"]:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  body {
    background-color: #000000;
    color: #ffffff;
  }
  
  .countdown {
    border-color: #ffffff;
    background-color: #000000;
  }
}

/* Large desktop screens */
@media (min-width: 1200px) {
  .temple-burn-image {
    width: 280px;
    height: 420px;
  }
  
  .countdown {
    font-size: 2.2rem;
    min-width: 320px;
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .temple-burn-image {
    width: 220px;
    height: 330px;
  }
  
  .countdown {
    font-size: 1.8rem;
    min-width: 260px;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  .main-container {
    gap: 1.5rem;
  }
  
  .temple-burn-image {
    width: 200px;
    height: 300px;
  }
  
  .countdown {
    font-size: 1.5rem;
    min-width: 240px;
    padding: 0.75rem 1.5rem;
  }
  
  footer {
    font-size: 0.8rem;
  }
}

/* Large phones */
@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }
  
  .main-container {
    gap: 1.25rem;
  }
  
  .temple-burn-image {
    width: 160px;
    height: 240px;
  }
  
  .countdown {
    font-size: 1.25rem;
    min-width: 200px;
    padding: 0.75rem 1rem;
  }
}

/* Small phones */
@media (max-width: 360px) {
  body {
    padding: 0.5rem;
  }
  
  .main-container {
    gap: 1rem;
  }
  
  .temple-burn-image {
    width: 140px;
    height: 210px;
  }
  
  .countdown {
    font-size: 1.1rem;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
  }
  
  footer {
    font-size: 0.75rem;
  }
}

/* Very wide screens */
@media (min-width: 1600px) {
  .main-container {
    max-width: 800px;
  }
  
  .temple-burn-image {
    width: 320px;
    height: 480px;
  }
  
  .countdown {
    font-size: 2.5rem;
    min-width: 360px;
  }
}

/* Smooth transitions and hover effects */
.countdown {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.countdown:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.skip-link {
  transition: top 0.3s ease-in-out;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .countdown,
  .skip-link {
    transition: none;
  }
  
  .countdown:hover {
    transform: none;
  }
  
  .burn-image {
    animation: none;
  }
}