/* 1) Global resets */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;    /* Prevent any horizontal overflow */
  box-sizing: border-box;/* Make padding & borders count inside widths */
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* 2) Base body styling */
body {
  font-family: Arial, sans-serif;
  background-color: #003366;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

header {
position: fixed;
width : 100%;
}

/* 3) Utility wrappers */
.main-container {
  flex-grow: 1;
}
.section {
  padding: 20px 10px;
  text-align: center;
}

/* 4) Hero Section */
#hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 90%;
  max-width: 1300px;
  min-height: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  position: relative;
  margin: 30px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
}

.hero-left {
  width: 65%;
  text-align: left;
  color: black;
  margin-top: 20px;
}

.hero-title {
  font-size: 5.5rem;
  font-weight: bold;
  color: #003366;
  text-align: center;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  max-width: 60%;
  margin: 10px auto;
  text-align: center;
}

/* Category Buttons */
.category-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 50px;
  align-items: center;
}
.category-buttons button {
  background: #FFC107;
  color: #003366;
  font-weight: bold;
  border: none;
  padding: 8px 12px;
  font-size: 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
  min-width: 150px;
}
.category-buttons button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #E6B800, #CC7700);
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Featured Game */
.featured-game {
  position: relative;  /* add relative positioning */
  width: 35%;
  padding: 20px;
  background: #002855;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.8);
  text-align: center;
  overflow: hidden; /* keep contents clipped */
  margin-top: 40px;
}

.ribbon {
  position: absolute; /* absolute inside featured-game */
  top: 20px;
  left: -10px;
  background: #FFC107;
  color: #003366;
  padding: 8px 20px;
  font-weight: bold;
  font-size: 14px;
  transform: rotate(-25deg); /* more tilt */

  z-index: 10; /* ensure on top */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.featured-game img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.featured-game img:hover {
  transform: scale(1.05);
}
.play-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 20px;
  background: #CC7700;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
}
.play-btn:hover {
  background: #FFD700;
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
}
.game-rating {
  font-size: 20px;
  color: #FFD700;
  margin-top: 8px;
}
.featured-description {
  margin-top: 10px;
  color: #003366;
  font-size: 14px;
}

/* 5) Recently Played */
.recently-played-section {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 1300px;
  margin: 30px auto;
  padding: 20px;
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.text-card {
  width: 220px; height: 160px;
  background: #007BFF;
  padding: 20px;
  border-radius: 12px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.text-card h2 {
  font-size: 26px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.text-card p {
  font-size: 17px;
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.4;
}
/* Carousel */
.carousel-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.carousel-wrapper {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}
.carousel-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}
.game-carousel {
  flex: 0 0 230px; /* ensures each card takes 230px */
  height: 220px;
  background: #CC7700;
  color: #1e293b;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  padding-top: 10px;
  scroll-snap-align: start;
}

.game-carousel img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}
.game-carousel p {
  font-size: 16px;
  font-weight: bold;
  margin-top: 8px;
}
.game-carousel:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
.prev-btn, .next-btn {
  display: none; /* hide arrows if using touch scroll */
}

/* 6) Puzzle & Strategy */
.game-category {
  width: 90%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 25px;
  background: linear-gradient(to bottom,#003366,#004080);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.game-category h2 {
  font-size: 28px;
  color: white;
  margin-bottom: 20px;
  text-align: center;
}
.game-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 20px;
}
.game-card {
  width: 220px; height: 250px;
  background: #CC7700; color: white;
  border-radius: 12px; padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
.game-card img {
  width: 100%; height: 180px;
  object-fit: contain; border-radius: 8px;
}
.game-card p {
  font-size: 18px; font-weight: bold;
  margin-top: 8px;
}

/* 7) Arcade & Classic backgrounds */
#puzzle-strategy {background: linear-gradient(to bottom,#007BFF,#003366);}
#arcade-action   {background: linear-gradient(to bottom,#5a1e02,#a13304);}
#classic-action  {background: linear-gradient(to bottom,#004d00,#008000);}

/* 8) Feedback */
.feedback-container {
  background: #f7f7f7;
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.feedback-container h2 {font-size: 24px; color: #002855; margin-bottom: 15px;}
.feedback-container p  {font-size: 16px; color: #333; margin: 10px 0;}
.feedback-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #cc7700;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.feedback-link:hover {background: #a55e00;}

/* MOBILE: Tablet & smaller */
@media (max-width: 768px) {
  /* Hero */
  #hero-section { flex-direction: column; padding: 20px 10px; }
  .hero-container { flex-direction: column; padding: 0; }
  .hero-left, .featured-game {width:100%;}
  .hero-title {font-size:2.5rem; margin-bottom:10px;}
  .hero-subtitle {font-size:1.1rem; margin-bottom:20px;}
  .category-buttons {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap:10px;
    width:100%;
    padding:0 10px;
  }
  .category-buttons button {width:100%;padding:10px;font-size:1rem;}

  /* Recently Played */
  .recently-played-section {
    flex-direction: column;
    padding:20px;
    gap:30px;
    width:90%;
  }
  .text-card {width:100%;padding:15px;}
  .text-card h2 {font-size:22px;}
  .text-card p {font-size:16px;}
  .carousel-container {width:100%; padding-bottom:10px;}
  .carousel-wrapper {gap:15px; padding-left:5px;}
  .game-carousel {flex:0 0 100%;width:100%;min-height:200px;padding:15px 10px;}
  .game-carousel img {max-height:170px;margin-top: 20px;}
  .game-carousel p {font-size:15px;}

  /* Puzzle & Strategy */
  .game-category {
    width:90%;
    padding:20px;
    margin-top:30px;
  }
  .game-category h2 {font-size:24px; margin-bottom:15px;}
  .game-grid {gap:15px;}
  .game-card {
    width:45%;
    padding:10px;
  }
  .game-card img {height:200px;}
  .game-card p {font-size:16px;}

  /* Feedback */
  .feedback-container {
    padding:30px 15px;
    margin:30px 15px;
  }
  .feedback-container h2 {font-size:20px;}
  .feedback-container p {font-size:15px;}
  .feedback-link {font-size:15px; padding:10px 18px;}
}

/* MOBILE: Phone */
@media (max-width: 480px) {
  .hero-title {font-size:2.5rem;}
  .hero-subtitle {font-size:1.2rem;}
  .category-buttons {grid-template-columns:1fr; gap:8px;}
  .hero-btn {padding:10px; font-size:0.95rem;}

  .game-card {width:90%;}
  .game-category h2 {font-size:22px;}
  .game-card img {height:200px;}
  .game-card p {font-size:15px;}

  .text-card h2 {font-size:20px;}
  .text-card p {font-size:15px;}

  .feedback-container {
    padding:25px 10px;
    margin:20px 10px;
  }
  .feedback-container h2 {font-size:18px;}
  .feedback-link {font-size:14px; padding:9px 16px;}
}



