body {
  background-color: #0a0a0a;
  color: white;
  font-family: 'Trebuchet MS', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

h1 {
  font-family: cursive;
  font-size: 3rem;
  margin-top: 30px;
  color: antiquewhite;
}

p {
  font-size: 1.2rem;
  margin-top: -10px;
  margin-bottom: 50px;
  color: #ccc;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 70px;
  padding: 0 20px;
}

.box {
  width: 300px;
  height: 170px;
  border-radius: 15px;
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.box1 {
  background-color: #2a9d8f;
}

.box2 {
  background-color: #ffb803d4;
}

.box:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

.info-text {
  text-align: center;
  font-size: 1rem;
  color: #c0e7f2; 
  margin-top: 120px;
  font-weight: 500;
  font-family: sans-serif; 
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #ffcc00;
  color: black;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  z-index: 100; /* ensure it stays on top */
}

.back-button:hover {
  background-color: #e6b800;
}

/* --------------------------
   Responsive Design
---------------------------*/

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
  .container {
    gap: 50px;
    padding: 0 30px;
  }
  
  .box {
    width: 260px;
    height: 150px;
    font-size: 1.3rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  p {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    gap: 30px;
    padding: 0 20px;
  }

  .box {
    width: 100%;
    max-width: 320px;
    height: 140px;
    font-size: 1.2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  p {
    font-size: 1rem;
    margin-bottom: 35px;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    gap: 20px;
    padding: 0 15px;
  }

  .box {
    width: 100%;
    max-width: 280px;
    height: 130px;
    font-size: 1.1rem;
  }

  h1 {
    font-size: 1.8rem;
    margin-top: 25px;
  }

  p {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .back-button {
    padding: 6px 12px;
    font-size: 0.9rem;
    top: 15px;
    left: 15px;
  }
}
