@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Playfair+Display:wght@700&display=swap');

/* Color Palette */
:root {
  --color-maroon: #722323;
  --color-mauve: #BA487F;
  --color-coral: #FF9587;
  --color-beige: #FFECCC;
}

/* Base layout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #FFECCC, #FFF6E6);
  color: var(--color-maroon);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header */
header {
  width: 100%;
  background-color: white;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  border-bottom: 3px solid var(--color-mauve);
}
header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin: 0;
  color: var(--color-maroon);
  letter-spacing: 0.5px;
}
header .tagline {
  font-size: 1.05rem;
  color: var(--color-mauve);
  margin-top: 0.4rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 520px;
  padding: 2.5rem 1rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

/* Game Grid */
.game-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Game Cards */
.game-card {
  display: block;
  padding: 1.2rem 1.6rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-maroon);
  background: white;
  border-left: 10px solid var(--color-mauve);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.game-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Card Variants */
.interactive-card {
  border-left-color: var(--color-coral);
  background: linear-gradient(to right, white, #fff5f1);
}
.powerpoint-card {
  border-left-color: var(--color-mauve);
  background: white;
}

/* Arrow icon */
.arrow {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-mauve);
  transition: transform 0.2s ease;
}
.game-card:hover .arrow {
  transform: translateY(-50%) translateX(4px);
  color: var(--color-maroon);
}

/* Login Button */
.login-button {
  background-color: var(--color-coral);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.login-button:hover {
  background-color: var(--color-mauve);
  transform: scale(1.05);
}

/* Footer */
footer {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--color-mauve);
  text-align: center;
}

/* EXPANDED PRESENTATION SUPPORT */
.game-card.full-width[open] {
  width: 100%;
  max-width: none;
}

.game-card.full-width iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 600px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  display: block;
  margin-bottom: 0.75rem;
}

/* Fullscreen Button */
.fullscreen-button {
  background-color: var(--color-maroon);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.fullscreen-button:hover {
  background-color: var(--color-mauve);
  transform: scale(1.03);
}
