body {
  margin: 0;
  font-family: Arial, sans-serif;
  padding-top: 55px;
  background-color: #FCDEC0;
}

.navbar {
  background: #B4846C;
  display: flex;
  align-items: center; 
  flex-wrap: wrap;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid #B4846C;
}

.divider {
  height: 2px;
  background-color: #B4846C;
  z-index: 1001;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FCDEC0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: 100px;
}

.nav-links a {
  color: #FCDEC0;
  text-decoration: none;
  padding: 5px 10px;
  white-space: nowrap;   /* prevent link from breaking */
}

.nav-links a:hover {
  color: #E5B299;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Hero Section */
.hero {
  height: 100vh; /* full screen height */
  background: url("home-background.png") no-repeat center center/cover;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #FCDEC0;
}

/* Dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 20px;
}

.hero-text {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* Button */
.hero-btn {
  background: #7D5A50;
  color: #FCDEC0;
  padding: 12px 25px;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  font-weight: bold;
}

.hero-btn:hover {
  background: #61453d;
}

.hero-btn:active {
  background: #422e29;
}

/* Home: Top games */


.top-games {
  padding: 60px 40px;
  text-align: center;
  background: #FCDEC0;
}

.top-games h2 {
  font-size: 48px;
  margin-bottom: 65px;
  color: #B4846C  ;
}

.top-games h1 {
  font-size: 54px;
  margin-bottom: 40px;
  color: #B4846C  ;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 1075px;
  margin: 0 auto;
}

.carousel {
  display: flex;
  transition: transform 0.4s ease;
  gap: 25px;
  place-items: center;
}

.carousel-2 {
  display: flex;
  transition: transform 0.4s ease;
  gap: 25px;
  place-items: center;
}

@media (max-width: 920px) {
  .carousel-2 {
    flex-direction: column;
    gap: 25px;
  }
}


.game-card h3 {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Arrows closer to carousel */
.arrow {
  position: absolute;
  top: 40%;
  background: #FCDEC060;
  border: none;
  color: #FCDEC0;
  font-size: 35px;
  padding: 5px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.288);
}

.arrow.left {
  left: 5px;      /* closer to cards */
}

.arrow.right {
  right: 5px;
}

.info-section {
  padding: 60px 40px;
  background: #FCDEC0;
  color: #B4846C;
}


/* Home: Developed with Heart */

.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: auto;
  padding: 80px;
  gap: 40px;
  flex-wrap: wrap; /* makes it responsive */
}

.info-left, .info-right {
  flex: 1 1 45%; /* flexible width, min 45% */
  box-sizing: border-box;
}

.info-left h1 {
  font-size: 4rem;
  margin-bottom: 15px;
}

.info-left .subheader {
  font-size: 2rem;
  color: #B4846C;
}

.info-right p {
  font-size: 1.8rem;
  color: #B4846C;
  margin-bottom: 20px;
}

.info-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #7D5A50;
  color: #FCDEC0;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s;
}

.info-btn:hover {
  background: #61453d;
}

.info-btn:active {
  background: #422e29;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 25px;
  }

  .info-left, .info-right {
    flex: 1 1 100%;
  }
}

.contact-section {
  color: #B4846C;
  padding: 80px 40px;
  background: #FCDEC0;
  text-align: center;
}

.contact-section h1 {
  font-size: 3.4rem;
  margin-bottom: 30px;
}

/* Form */
.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input[type="email"] {
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #FCDEC0;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

/* Checkbox container */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #B4846C;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid #B4846C;
  border-radius: 4px;
  position: relative;
}

/* Home: Contact */

/* Show checkmark when checked */
.checkbox-container input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #E5B299;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Subscribe button */
.subscribe-btn {
  padding: 12px 25px;
  background: #7D5A50;
  color: #FCDEC0;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.subscribe-btn:hover {
  background: #61453d;
}

.subscribe-btn:active {
  background: #422e29;
}

/* Responsive */
@media (max-width: 500px) {
  .checkbox-container {
    flex-direction: row;
    align-items: center;
  }
}


/* Home: Footer */

.footer {
  background: #B4846C;
  color: #FCDEC0;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.social-link img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
  filter: invert(0.9);
}

.social-link img:hover {
  transform: scale(1.2);
}

.footer-text {
  font-size: 0.9rem;
  color: #FCDEC0;
}


.all-games {
  color: #B4846C;
  padding: 60px 40px;
  background: #FCDEC0;
  text-align: center;
}

.all-games h2 {
  font-size: 48px;
  margin-bottom: 40px;
}

/* Grid container */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px; /* smaller gap */
  justify-content: center; /* center the grid */
  place-items: center ;
  max-width: 900px; /* limit width on big screens */
  margin: 0 auto;
  padding-top: 10px;
}

.label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #7D5A50;
  color: #FCDEC0;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* Cards same as Top Games */
.game-card {
  height: 300px;
  background: #FFF0DC;

  box-sizing: border-box;

  color: #B4846C;
  margin-top: 10px;
  width: 250px;
  position: relative;
  border: 2px solid #B4846C;
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.game-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.game-image::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.3s ease;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover {
  border-color: #E5B299;
}

.game-image:hover img {
  transform: scale(1.1);
}

.game-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #7D5A50;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  opacity: 0;
  transition: 0.3s ease;
  color: #FCDEC0;
}

.game-btn:hover {
  background-color: #61453d;
}

.game-btn:active {
  background-color: #422e29;
}


.game-image:hover .game-btn {
  opacity: 1;
}

.game-card h3 {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Responsive grid */
@media (max-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }
}

.rating.rateable {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse; /* makes hover work naturally */
  gap: 2px;
}

.rating.rateable span {
  font-size: 24px;
  cursor:default;
  color: #ccc;
  transition: 0.2s;
}

/* Selected (clicked) stars */
.rating.rateable span.active,
.rating.rateable span.active ~ span {
  color: #7D5A50;
}


.upcoming {
  max-width: 1200px;
  margin: 0 auto;  /* center the whole block */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 10%;
}

.upcoming-left {
  color: #B4846C;
  flex: 1;
}

.upcoming-left h2 {
  font-size: 48px;
  margin-bottom: 10px;
}

.upcoming-left p {
  font-size: 18px;
  line-height: 1.6;
  color: #B4846C;
}

.upcoming-right {
  color: #B4846C;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upcoming-img {
  width: 100%;
  max-width: 450px;   /* ← FIXED WIDTH LIMIT */
  height: 250px;      /* ← FIXED HEIGHT */
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  border: 2px solid #7D5A50;
  flex-shrink: 0;     /* ← prevents the container from shrinking */
}


.upcoming-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

/* Dark overlay on hover */
.upcoming-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  transition: 0.3s ease;
  z-index: 1;
}

/* Show overlay */
.upcoming-img:hover::after {
  background: rgba(0,0,0,0.55);
}

/* Text info */
.upcoming-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  z-index: 2; /* Above dark overlay */
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s ease;
  pointer-events: none;
}

.upcoming-info h3 {
  margin: 0 0 5px 0;
  font-size: 22px;
}

.upcoming-info p {
  margin: 0 0 5px 0;
  font-size: 14px;
  opacity: 0.9;
}

.upcoming-info .date {
  font-size: 13px;
  opacity: 0.8;
}

/* Reveal text on hover */
.upcoming-img:hover .upcoming-info {
  opacity: 1;
  transform: translateY(0);
}

/* Zoom image slightly */
.upcoming-img:hover img {
  transform: scale(1.05);
}


/* Background overlay */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup box */
.modal-content {
  background: #fff;
  padding: 25px;
  width: 500px;
  max-width: 90%;
  border-radius: 15px;
  position: relative;
  animation: popup 0.3s ease;
}

@keyframes popup {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* Image styling */
#modalImg {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Rating inside popup */
#modalRating {
  margin-top: 15px;
  display: flex;
  flex-direction: row-reverse;
  gap: 3px;
}

#modalRating span {
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
  transition: 0.2s;
}

#modalRating span.active,
#modalRating span.active ~ span {
  color: #7D5A50;
}

#modalRating span:hover,
#modalRating span:hover ~ span {
  color: #7D5A50;
}

.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;

  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px;
}

.about-left {
  color: #B4846C;
  max-width: 45%;
}

.about-left h2 {
  font-size: 48px;
  margin-bottom: 10px;
}

.about-left p {
  font-size: 18px;
  opacity: 0.8;
}

/* --- VIDEO BOX --- */
.video-box {
  position: relative;
  width: 350px;
  height: 520px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center icon (play/pause) */
.center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 55px;
  color: #FCDEC0;
  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
}

/* Show icon on hover */
.video-box:hover .center-icon {
  opacity: 0.8;
}

/* MUTE BUTTON */
.mute-btn {
  position: absolute;
  bottom: 70px;
  right: 15px;
  background: #7d5a506b;
  border: none;
  color: #FCDEC0;
  font-size: 20px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 20;
}

.mute-btn:hover {
  background: #61453d6c;
}

/* TIMELINE */
.timeline {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 20;
}


/* Thumb */
.timeline::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #FCDEC0;
  border-radius: 50%;
  cursor: pointer;
}


/* Time display */
.time-display {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #FCDEC0;
  opacity: 0.9;
}


.about-header-section {
  background: url("about_background.jpg") no-repeat center center/cover;
  width: 100%;
  text-align: center;
  padding: 100px 20px 110px 20px; /* top | sides | bottom */
}

.about-main-title {
  color: #FFF0DC;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-subtitle {
  color: #FFF0DC;
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.85;
  line-height: 1.6;
}

.about-header-section-2 {
  background: url("contact_background.jpg") no-repeat center center/cover;
  width: 100%;
  text-align: center;
  padding: 120px 20px 110px 20px; /* top | sides | bottom */
}

.about-main-title-2 {
  color: #FCDEC0;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-subtitle-2 {
  color: #FCDEC0;
  font-size: 24px;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.85;
  line-height: 1.6;
}

.contact-container {
    max-width: 600px;   /* keeps layout tight */
    width: 90%;
    margin: auto;
    text-align: center;
}

.contact-page {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 700px;
  margin-top: 100px;
  margin-bottom: 40px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    color: #B4846C;
}

.contact-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 1.3rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form .row {
    display: flex;
    column-gap: 15px;          /* spacing between First/Last name */
    width: 100%;
    margin-bottom: 8px;
}

.contact-form input {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.2s ease;
        box-sizing: border-box;
}

.contact-form textarea {
    margin-top: 8px;
    margin-bottom: 10px;
    min-height: 100px;      /* same height as inputs */
    height: 48px;
    width: 100%;
    resize: vertical;      /* user can still stretch if needed */
}


.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #E5B299;
    outline: none;
}

/* Responsive */
@media (max-width: 760px) {
  .about-section {
    display: block;
  }

  .about-left {
    margin: 0 auto;
    text-align: center;
  }

  .video-box {
    margin: 0 auto;
  }

  .about-header-section {
    padding: 100px 0px 110px 0px; /* top | sides | bottom */
  }

  .about-header-section-2 {
    padding: 100px 0px 110px 0px; /* top | sides | bottom */
  }
  .contact-form .row {
    flex-direction: column;
    }
}

/* Section layout */
.game-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 90%;
    margin: 60px auto;
}

/* Left column */
.game-info {
    flex: 1;
}

.game-title {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.stars {
    color: #7D5A50;
    font-size: 1.5rem;
}

/* Right column */
.game-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.game-image-container img {
    width: 100%;
    max-width: 420px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Mobile layout */
@media (max-width: 768px) {
    .game-details {
        flex-direction: column-reverse;
        text-align: center;
        gap: 25px;
    }

    .game-image-container img {
        max-width: 320px;
    }
}
