/* Global Page Structure */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Unified Body Styling */
body {
  background-color: #fff;
  color: #000;
  line-height: 1.6;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s, color 0.3s;

  /* Layout handling for sticky footer */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Unified Main Content Layout */
main.content {
  flex: 1 0 auto; /* fills space between header and footer */
  
  /* Layout for all pages */
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  align-items: flex-start;
  
  /* Page width and padding */
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Unified Footer Styling */
footer {
  margin-top: auto; /* ensures footer sits at bottom if page is short */
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15); /* subtle depth for consistency with cards */
}


/* Disclaimer (optional if you still use it) */
.disclaimer {
  background-color: #290000;
  color: #ff4d4d;
  text-align: center;
  font-weight: bold;
  padding: 12px;
  font-size: 1rem;
}

/* Header */
header {
  background: linear-gradient(180deg, #ff3b3b, #c50000);
  text-align: center;
  padding: 60px 0 40px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-title {
  font-size: 2.6rem;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
}

.header-top-left {
  position: absolute;
  top: 15px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit; /* keep the text white instead of default blue */
}

.small-logo {
  height: 55px;         /* controls overall size */
  width: auto;          /* scales proportionally */
  border-radius: 6px;   /* optional, keeps corners smooth */
  object-fit: contain;  /* ensures no cropping */
}

.header-subtitle {
  font-size: 1.15rem;
  font-weight: bold;
  color: white;
}

.header-link {
    text-decoration: none;
}

/* Navigation */
ul.topnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

ul.topnav li {
  display: inline-block;
}

ul.topnav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

ul.topnav li a:hover {
  background-color: #b32121;
}

ul.topnav li a.active {
  background-color: #151515;
  color: #fff;
}

/* Main Content */
main.content {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.left-column,
.right-column {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.left-column {
  flex: 2;
}

.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* About Section — replaces about image with magnifying glass icon */
.about-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin: 0 auto 25px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.about-icon svg {
  width: 48px;
  height: 48px;
  fill: #c50000;
}

/* Buttons */
.subsection .btn,
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: #ff3b3b;
  text-decoration: none;
  color: white;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.subsection .btn:hover,
.btn:hover {
  background: #c50000;
  transform: scale(1.05);
}

/* Responsive Layout */
@media (max-width: 900px) {
  main.content {
    flex-direction: column;
    align-items: center;
  }

  header {
    padding: 40px 0 30px;
  }

  .header-title {
    font-size: 2rem;
  }

  ul.topnav {
    flex-wrap: wrap;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .about-icon {
    width: 80px;
    height: 80px;
  }

  .about-icon svg {
    width: 40px;
    height: 40px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Game Jams Section */
.game-jam-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  justify-content: center;
  width: 100%;
}

.game-jam-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: 500px;
  margin: 0 auto;
}

.game-jam-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.jam-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.jam-details {
  padding: 20px;
}

.jam-details h2 {
  margin-top: 0;
  color: #c50000;
}

.jam-details p {
  margin: 6px 0;
}

.jam-description {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #333;
}

.contact-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin: 8px 0;
  font-size: 1rem;
}

.contact-list a {
  color: #c50000;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Slight polish for about icon */
.about-icon svg {
  width: 50px;
  height: 50px;
  fill: #c50000;
}

/* Controller Card - Static Intro Section */
.controller-card {
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.controller-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
}

.controller-icon svg {
  width: 100%;
  height: 100%;
  fill: #c50000; /* Theme color */
}

/* Disable hover float for controller card */
.controller-card:hover {
  transform: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  cursor: default;
}



/* Info Icon (right column) */
.info-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.info-icon svg {
  width: 45px;
  height: 45px;
  fill: #c50000; /* matches theme */
}

/* Snowflake Icon for Winter Jam */
.snowflake-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  background-color: #ffffffcc; /* translucent white backdrop */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.snowflake-icon svg {
  width: 28px;
  height: 28px;
  fill: #0099ff; /* cool winter blue */
}

/* Ensure Winter Jam Card can hold positioned icon */
.winter-jam {
  position: relative;
}

/* Icon-based Game Jam Cards */
.jam-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 30px;
  height: 200px;
}

.jam-icon svg {
  width: 90px;
  height: 90px;
}

/* Unique icon colors per season */
.winter-icon svg {
  fill: #4db8ff; /* icy blue */
}

.spring-icon svg {
  fill: #4caf50; /* fresh green */
}

.summer-icon svg {
  fill: #ffcc00; /* warm yellow */
}


.left-column, .right-column, .game-jam-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* align text naturally at the top */
  height: auto; /* prevent forced equal height */
}

/* Ensure consistent visual spacing inside cards */
.left-column p, .right-column p, .jam-details p {
  margin-bottom: 12px;
}

/* --- Add background visuals beside the top Game Jam intro card --- */
.game-jam-section {
  position: relative;
}

.game-jam-section::before,
.game-jam-section::after {
  content: "";
  position: absolute;
  top: 50px;
  width: 160px;
  height: 300px;
  border-radius: 40px;
  background: linear-gradient(180deg, #ff3b3b30, #c5000020);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

.game-jam-section::before {
  left: -100px;
}

.game-jam-section::after {
  right: -100px;
}

/* Make sure cards appear above the background glow */
.game-jam-card {
  position: relative;
  z-index: 1;
}

/* ===============================
   SEASONAL GAME JAM VISUALS
   =============================== */

/* --- General Card Visual Boost --- */
.game-jam-card {
  position: relative;
  overflow: hidden;
}

.game-jam-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.game-jam-card:hover::before {
  opacity: 0.5;
}

/* ===============================
   WINTER JAM - Frosty Blue Glow
   =============================== */
.winter-jam::before {
  background: radial-gradient(circle at top right, #cdefff 0%, transparent 70%),
              radial-gradient(circle at bottom left, #a4d8ff 10%, transparent 60%);
  animation: winterDrift 8s ease-in-out infinite alternate;
}

.winter-icon svg {
  fill: #3fa9ff;
  filter: drop-shadow(0 0 8px rgba(0,150,255,0.6));
}

@keyframes winterDrift {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.05); }
}

/* ===============================
   SPRING JAM - Green Bloom Glow
   =============================== */
.spring-jam::before {
  background: radial-gradient(circle at top left, #b4ffb0 0%, transparent 60%),
              radial-gradient(circle at bottom right, #79e879 10%, transparent 70%);
  animation: springBloom 9s ease-in-out infinite alternate;
}

.spring-icon svg {
  fill: #41b83b;
  filter: drop-shadow(0 0 6px rgba(60,200,60,0.6));
}

@keyframes springBloom {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.05); opacity: 0.5; }
}

/* ===============================
   SUMMER JAM - Golden Heat Glow
   =============================== */
.summer-jam::before {
  background: radial-gradient(circle at top center, #fff1a0 0%, transparent 70%),
              radial-gradient(circle at bottom right, #ffc94d 20%, transparent 80%);
  animation: summerPulse 6s ease-in-out infinite alternate;
}

.summer-icon svg {
  fill: #ffcc00;
  filter: drop-shadow(0 0 8px rgba(255,200,0,0.7));
}

@keyframes summerPulse {
  0% { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(1.05); opacity: 0.55; }
}

/* ===============================
   SHARED SETTINGS
   =============================== */
.game-jam-card svg {
  transition: transform 0.3s ease;
}

.game-jam-card:hover svg {
  transform: scale(1.08);
}

.jam-icon {
  position: relative;
  z-index: 1;
  padding: 30px;
}

/* ===============================
   ENHANCED SEASONAL DECORATIONS
   =============================== */

/* Shared icon area visuals */
.jam-icon {
  position: relative;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #f7f7f7, #ffffff);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Subtle animated flakes/petals/glow */
.jam-icon::before,
.jam-icon::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
  background-size: cover;
  animation: floatDrift 12s linear infinite alternate;
}

/* Icon itself */
.jam-icon svg {
  position: relative;
  z-index: 1;
  width: 90px;
  height: 90px;
  transition: transform 0.3s ease;
}

.jam-icon svg:hover {
  transform: scale(1.1);
}

/* ========== WINTER JAM ========== */
.winter-jam .jam-icon {
  background: radial-gradient(circle at top, #e6f5ff, #ffffff);
}
.winter-jam .jam-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='%23a6d5ff' cx='50' cy='50' r='2'/%3E%3C/svg%3E");
  animation-duration: 18s;
  opacity: 0.25;
}
.winter-jam .jam-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='%230099ff' cx='20' cy='80' r='1.5'/%3E%3C/svg%3E");
  animation-duration: 14s;
  opacity: 0.4;
}
.winter-icon svg {
  fill: #4db8ff;
  filter: drop-shadow(0 0 8px rgba(0, 160, 255, 0.6));
}

/* ========== SPRING JAM ========== */
.spring-jam .jam-icon {
  background: radial-gradient(circle at top, #e9ffe9, #ffffff);
}
.spring-jam .jam-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle fill='%23a7ff9d' cx='30' cy='30' r='3'/%3E%3C/svg%3E");
  animation-duration: 16s;
}
.spring-jam .jam-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle fill='%2366cc66' cx='20' cy='40' r='2'/%3E%3C/svg%3E");
  animation-duration: 12s;
}
.spring-icon svg {
  fill: #4caf50;
  filter: drop-shadow(0 0 8px rgba(100, 255, 100, 0.6));
}

/* ========== SUMMER JAM ========== */
.summer-jam .jam-icon {
  background: radial-gradient(circle at top, #fff8d6, #ffffff);
}
.summer-jam .jam-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='%23ffe066' cx='40' cy='40' r='3'/%3E%3C/svg%3E");
  animation-duration: 10s;
  opacity: 0.4;
}
.summer-jam .jam-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='%23ffcc00' cx='60' cy='60' r='2'/%3E%3C/svg%3E");
  animation-duration: 8s;
  opacity: 0.3;
}
.summer-icon svg {
  fill: #ffb300;
  filter: drop-shadow(0 0 8px rgba(255, 180, 0, 0.7));
}

/* Soft drifting motion */
@keyframes floatDrift {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(5deg); }
}



