/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "MuseoModerno", sans-serif;
}

body {
  background: linear-gradient(#82CAFF, #151B54);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* MAIN WRAPPER */
.app {
  width: 100%;
  max-width: 430px;
  padding: 20px 10px 40px;
  position: relative;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border: 5px solid white;
  background: #82CAFF;
  border-radius: 10px 10px 40px 40px;
  padding: 20px 10px 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: white;
}

/* TOP NAV */
.top-nav {
  background: #151B54;
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px 5px 20px 20px;
  display: flex;
  justify-content: space-around;
}

.top-nav a,
.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.footer-nav a {
  color: #151B54;
}

@media (hover: hover) {
  .top-nav a:hover,
  .footer-nav a:hover {
    transform: translateY(-2px) scale(1.06);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  }
}

.top-nav a:active,
.footer-nav a:active {
  transform: scale(0.93);
  background: rgba(255, 255, 255, 0.18);
}

/* MAIN CONTENT */
main {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.content-page {
  text-align: center;
  color: white;
}

/* GAME CARDS */
.game-card {
  border: 3px solid #82CAFF;
  background: white;
  width: 100%;
  height: 60px;
  border-radius: 12px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

.game-card span {
  font-size: 18px;
  font-weight: 600;
  color: #1c3161;
  letter-spacing: 1px;
}

@media (hover: hover) {
  .game-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 10px rgba(0,0,0,0.18);
  }
}

.game-card:active {
  transform: scale(0.97);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* CARD COMPONENT */
.card {
  background: #ffffff;
  border: 3px solid #82CAFF;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

.card-header h2 {
  font-size: 26px;
}

.card-content img {
  width: 100%;
  border-radius: 8px;
}

.card-content p {
  line-height: 1.5;
  font-size: 16px;
}

.star-image {
  width: 50% !important;
}

/* FOOTER */
.footer-wrapper {
  margin-top: 60px;
}

.footer-top {
  border: 5px solid #82CAFF;
  border-bottom: none;
  background: white;
  height: 40px;
  border-radius: 20px 20px 0 0;
}

.footer-nav {
  border: 5px solid white;
  border-top: none;
  background: #82CAFF;
  padding: 12px;
  border-radius: 0 0 20px 20px;
  display: flex;
  justify-content: space-around;
}

footer p {
  text-align: center;
}

/*********************************
 RESPONSIVE LAYOUT
*********************************/

/* Tablets 834x1194 */
@media (min-width: 600px) {
  .app {
    max-width: 700px;
  }
  .logo {
    font-size: 40px;
  }
  .game-card {
    height: 80px;
  }
  .game-card img {
    width: 55px;
    height: 55px;
  }
  .game-card span {
    font-size: 22px;
  }
  .card-header h2 {
    font-size: 32px;
  }
  .card-content p {
    font-size: 18px;
  }
}

/* Desktop 1440x1024 */
@media (min-width: 1024px) {
  .app {
    max-width: 1000px;
  }
  .top-nav a,
  .footer-nav a {
    font-size: 20px;
    padding: 10px 18px;
  }
  .game-card {
    height: 90px;
  }
  .game-card img {
    width: 60px;
    height: 60px;
  }
  .game-card span {
    font-size: 26px;
  }
  .card {
    padding: 30px;
  }
  .card-header h2 {
    font-size: 36px;
  }
  .card-content p {
    font-size: 20px;
  }
}

/* Tablet screens */
@media (min-width: 834px) and (max-width: 1194px) {
  .card-content img {
    width: 70%; /* slightly smaller */
  }
}

/* Desktop screens */
@media (min-width: 1195px) {
  .card-content img {
    width: 50%; /* smaller for desktop */
  }
}

.card-content img {
  display: block;
  margin: 0 auto; /* centers the image */
}


.card-content img.star-image {
  width: 200px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}


.top-nav a.active,
.footer-nav a.active {
  background: #101440;
  font-weight: 700;
  border-bottom: 2px solid white;

}