/* App Page Only */
.app-page {
  font-family: 'Krub', sans-serif;
  background: linear-gradient(to right, #000000 50%, #7a1f2d 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.app-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1100px;
  margin-top: 80px; /* Add margin instead of padding to avoid navbar overlap */
}

/* Left Text Section */
.app-text {
  flex: 1;
}

.app-text h1 {
  margin-top: 0; /* Remove the excessive top margin */
  font-size: 7rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.app-text h2 {
  font-size: 2rem;
  font-weight: 100;
  letter-spacing: 4px;
  margin: 10px 0 20px;
}

.app-text p {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 100;
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-store-buttons img {
  height: 40px;
  margin-right: 15px;
}

/* Right Shapes */
.app-shapes {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-red-box {
  width: 220px;
  height: 500px;
  background: #7a1f2d; /* Fallback color */
  background-image: url("../images/appintro.png");
  background-size: cover;
  background-position: center;
  position: absolute;
  top: -200px;
  left: 200px;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
}

.app-white-box {
  width: 220px;
  height: 500px;
  background: #fff; /* Fallback color */
  background-image: url("../images/tournament1.png");
  background-size: cover;
  background-position: center;
  position: absolute;
  top: -300px;
  left: 300px;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
}

/* Ensure navbar stays on top */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Tournaments Section */
.tournaments-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to right, #000000 50%, #7a1f2d 100%);
  padding: 50px 0;
}

.tournaments-header {
  background-color: #7a1f2d;
  padding: 10px 20px;
  border-radius: 10px;
  margin: 100px 0 100px;
}

.tournaments-header h1 {
    margin-bottom: -200px;

  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: 2px;
}

.tournaments-content {
  display: flex;
  margin-top: 100px;
  justify-content: space-around;
  width: 90%;
  max-width: 1100px;
}

.tournaments-content.reverse {
  flex-direction: row-reverse;
}

.tournament-box {
  width: 200px;
  height: 300px;
  background: #ccc; /* Fallback color */
  background-image: url("../images/tournament1.png"); /* Default image for tournament-box */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 10px;
  border-radius: 10px;
}

.tournament2-box {
  width: 230px;
  height: 500px;
  background: #ccc; /* Fallback color */
  background-image: url("../images/tournament2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 4px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
  border-radius: 30px;
}

.tournament3-box {
  width: 230px;
  height: 500px;
  background: #ccc; /* Fallback color */
  background-image: url("../images/tournament3.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 4px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
  border-radius: 30px;
}

.tournament4-box {
  width: 230px;
  height: 500px;
  background: #ccc; /* Fallback color */
  background-image: url("../images/tournament4.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 4px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
  border-radius: 30px;
}

.tournament5-box {
  width: 230px;
  height: 500px;
  background: #ccc; /* Fallback color */
  background-image: url("../images/tournament5.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 4px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
  border-radius: 30px;
}



.tournaments-content .tournament-detail {
  flex: 1;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: left;
  padding: 20px;
  background: url('https://via.placeholder.com/300x400.png?text=Crowd+Image') no-repeat bottom right;
  background-size: contain;
}

.tournaments-content.reverse .tournament-detail {
  text-align: right;
  background: url('https://via.placeholder.com/300x400.png?text=Crowd+Image') no-repeat bottom left;
  background-size: contain;
}

.tournament-detail p {
  margin: 10px 0;
  font-size: 1.2rem;
  font-weight: 400;
}

.tournament-detail h2 {
  margin: 10px 0;
  font-size: 4rem;
  font-weight: 400;
}

/* Scroll Behavior */
.app-page + .tournaments-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.app-page + .tournaments-section.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Tournaments Section */
.camps-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to right, #000000 50%, #7a1f2d 100%);
  padding: 50px 0;
}

.camps-header {
  background-color: #7a1f2d;
  padding: 10px 20px;
  border-radius: 10px;
  margin: 100px 0 100px;
}

.camps-header h1 {
    margin-bottom: -200px;

  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: 2px;
}

.camps-content {
  display: flex;
  margin-top: 100px;
  justify-content: space-around;
  width: 90%;
  max-width: 1100px;
}

.camps-content.reverse {
  flex-direction: row-reverse;
}

.camps1-box {
  width: 230px;
  height: 500px;
  background: #ccc; /* Fallback color */
  background-image: url("../images/camps/camps1.png"); /* Default image for tournament-box */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 10px;
  border-radius: 30px;
}

.camps2-box {
  width: 230px;
  height: 500px;
  background: #ccc; /* Fallback color */
  background-image: url("../images/camps/camps2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 4px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
  border-radius: 30px;
}

.camps3-box {
  width: 230px;
  height: 500px;
  background: #ccc; /* Fallback color */
  background-image: url("../images/camps/camps3.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 4px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
  border-radius: 30px;
}

.camps4-box {
  width: 230px;
  height: 500px;
  background: #ccc; /* Fallback color */
  background-image: url("../images/camps/camps4.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 4px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
  border-radius: 30px;
}





.camps-content .camps-detail {
  flex: 1;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: left;
  padding: 20px;
  background: url('https://via.placeholder.com/300x400.png?text=Crowd+Image') no-repeat bottom right;
  background-size: contain;
}

.camps-content.reverse .camps-detail {
  text-align: right;
  background: url('https://via.placeholder.com/300x400.png?text=Crowd+Image') no-repeat bottom left;
  background-size: contain;
}

.camps-detail p {
  margin: 10px 0;
  font-size: 1.2rem;
  font-weight: 400;
}

.camps-detail h2 {
  margin: 10px 0;
  font-size: 4rem;
  font-weight: 400;
}

/* Scroll Behavior */
.app-page + .camps-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.app-page + .camps-section.visible {
  opacity: 1;
  transform: translateY(0);
}