/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Mitr', sans-serif;
  background-color: #FFF5EB;
}



/* Layout */
.container-lg {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  
}

.content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Game info section */
.game-info {
  flex: 1;
}

.game-title {
  font-size: 4rem;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
  margin-bottom: 10px;
}

.game-description {
  font-size: 1.5rem;
  color: #333;
  line-height: 1.6;
}

/* Character section */
.character-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.character-image {
  max-width: 110%;
  height: auto;
}

/* Mode selection section */
.mode-selection {
  position: absolute;
  top: 425px;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 100%;
  padding: 20px;
  max-width: 100%;
  z-index: 10;
  max-height: 100%;
}

.mode-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 5px;

}

.mode-title-btn {
  font-size: 2rem;
  color: #333;
  margin-bottom: 5px;
}

.mode-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.mode-option {
  flex: 1;
  max-width: 100%;
}

/* Mode cards */
.mode-link {
  text-decoration: none;
  color: inherit;
  display: block;
  max-height: 300px;
}

.mode-image {
  background-color: #5abcf1;
  border-radius: 25px;
  height: 325px;
  width: 100%;
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.mode-image-character {
  display: block;
  position: absolute;
  width: 35%;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
  object-fit: contain;
}

/* Specific styles for multiplayer mode images */
.mode-image-character-mul {
  position: absolute;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
}

/* Orange character (left) */
.mode-image-character-mul:nth-child(1) {
  width: 30%;
  left: 20%;
  z-index: 1;
  opacity: 0.9;
}

/* Blue character (middle) */
.mode-image-character-mul:nth-child(2) {
  width: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* Pink character (right) */
.mode-image-character-mul:nth-child(3) {
  width: 30%;
  right: 20%;
  z-index: 1;
  opacity: 0.9;
}

.mode-link:hover .mode-image {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Mode labels */
.mode-label {
  position: absolute;
  background-color: #ffad50;
  border-radius: 25px;
  padding: 15px;
  width: 85%;
  height: fit-content;
  text-align: center;
  position: relative;
  z-index: 10;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mode-link:hover .mode-label {
  transform: translateX(-50%) translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.mode-label span {
  font-size: 1.3rem;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.underline {
  width: 80%;
  height: 1px;
  background-color: #000;
  margin: 0 auto;
  opacity: 0.5;
}

/* Responsive breakpoints */

@media (max-width: 1280px) {

  .mode-selection {
    top: 420px;
  }
}



@media (max-width: 1060px) {
  .mode-selection {
    top: 80%;
  }
}

@media (max-width: 1240px) {
  .container-lg {
    
    padding-left: 10%;
    padding-right: 10%;
  }

  .game-title {
    font-size: 4rem;
  }

  .game-description {
    font-size: 1.2rem;
  }

  .mode-selection {
    padding-left: 10%;
    padding-right: 10%;

    top: 400px;
  }

  .mode-title {
    font-size: 2.2rem;
  }

  .mode-title-btn {
    font-size: 1.5rem;
  }

  .mode-image {
    height: 250px;
  }

  .mode-label {
    top: -100px;
  }

  .mode-label span {
    font-size: 1rem;
  }

}

@media (max-width: 992px) {

  

  .nav-section {
    min-width: 100%;
  }

  .content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .character-image {
    display: none;
  }

  .mode-title {
    font-size: 3rem;
    text-align: center;
    margin-top: 20px;
  }

  .mode-selection {
    position: absolute;
    transform: none;
    top: 80%;
    left: 0;

  }

  .mode-buttons {
    flex-direction: column;
    align-items: center;
    gap: 50px;

  }

  .mode-option {
    width: 100%;
    max-width: 500px;
    height: 200px;

  }

  .mode-image {
    height: 250px;
  }

  .mode-title-btn {
    font-size: 1.5rem;
  }

  .mode-label {
    position: relative;
    top: -100px;
  }

  .mode-label span {
    font-size: 1.2rem;
  }
}


@media (max-width: 576px) {
 

 

  .game-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  .game-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .character-image {
    max-width: 40%;
  }

  .mode-selection {
    top: 65%;
  }

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

  .mode-buttons {
    gap: 5px;
  }

  .mode-image {
    height: 200px;
    margin-bottom: 25px;
  }

  .mode-label {
    width: 90%;
    top: -100px;
  }

  .mode-title-btn {
    font-size: 1.3rem;
  }

  .mode-label span {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .control-buttons {
    display: flex;
    justify-content: space-evenly !important;
    gap: 3px !important;
    width: 100%;
    padding: 10px;

  }

  .control-btn {

    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    min-width: 32% !important;
    max-width: 32% !important;
  }


}

@media(max-width: 375px) {
  .mode-label {
    top: -100px;
  }

}