body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffeb2f; /* match yellow */
  background-image: url("images/jcc_background.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 15rem; /* don't stretch */
  background-attachment: fixed; /* optional: keeps centered on scroll */
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}



html {
  font-size: 24px; /* 150% of the default 16px */
}


header {
  background: #111;
  width: 100%;
  padding: 10px 0;
}

nav {
  display: flex;
  justify-content: center;
  gap: 40px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 100%;
  background: #0ff;
}

main {
  text-align: center;
  padding: 40px 20px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.characters {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(1rem, 1fr));*/
  grid-template-columns: repeat(auto-fit, minmax(1rem, 1fr)); /* wider card min width */
  gap: 1rem;
  width: 90%;
  max-width: 70rem; /* ~1120px */
  margin: auto;
}



.char-card {
  background: #fff;
  border-radius: 12px;
  border: 2px solid #ccc;
  width: 5rem;
  padding: 0.3rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;      /* stack vertically */
  align-items: center;         /* center content */
  justify-content: center;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  margin: auto;
  text-align: center;
}

.char-card span {
  margin-top: 0.2rem;
  font-size: 0.6rem;
  line-height: 1;
}


.char-card img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.char-card:hover {
  transform: scale(1.4);
  box-shadow: 0 0 10px #f00;
  border-color: #f00;
}

.page-content {
  background: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 60rem; /* ~960px */
  margin: 1rem auto;
}


.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
