/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #FFFFFF;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  gap: 1.5rem;
}

/* Header */
.header {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #00FFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Flip Card Container */
.flip-card {
  perspective: 1000px;
  width: min(90vw, 500px);
  aspect-ratio: 1.68 / 1;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.3),
    0 6px 6px rgba(0,0,0,0.2),
    0 0 30px rgba(0, 255, 255, 0.1);
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-front img, .flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* PDF Download Button */
.pdf-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #00FFFF;
  color: #000000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-align: center;
}

.pdf-btn:hover {
  background-color: #80FFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: #80FFFF;
  text-align: center;
  opacity: 0.8;
}

/* Fixed Home Link */
.home-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 255, 255, 0.15);
  border-radius: 50%;
  border: 2px solid #00FFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.home-link:hover {
  background-color: rgba(0, 255, 255, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

/* Pure CSS Home Icon (no images) */
.home-link::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background-color: #00FFFF;
  clip-path: polygon(50% 0%, 0% 50%, 20% 50%, 20% 100%, 80% 100%, 80% 50%, 100% 50%);
}
