body {
  margin: 0;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background: #120014;
  color: white;
}

/* Navigation */
.headbar {
  background: black;
  border-bottom: 5px solid #9D0063;
}

.headbar ul {
  display: flex;
  list-style: none;
  padding: 15px;
  margin: 0;
}

.headbar li {
  margin: 0 20px;
}

.headbar li img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
}


.nav-links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-links li a:hover {
  transform: scale(1.15);
  color: #bd0078;
  text-shadow: 0 0 8px #bd0078, 0 0 16px #bd0078;
}

/* Banner */
.game-image {
  width: 100%;
  max-height: 60%;   
  border-bottom: 6px solid #9D0063;
  box-shadow: 
    0 -7px 15px rgba(255, 46, 166, 0.4),  
    0 7px 15px rgba(255, 46, 166, 0.4);   
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
}

.page-break {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px 0;
}

.page-break img {
  width:65%;
  
}

/* Characters */
.characters {
 min-height: 10vh;
  padding: 20px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.character-text {
  max-width: 500px;
}

.character-text h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: lighter;
  transition: all 0.25s ease;
  position: relative;
  display: inline-block;
}

.character-text h2:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #b7b7b7, 0 0 20px #b7b7b7;
}

.character-text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #9D0063;
  transition: width 0.3s ease;
}

.character-text h2:hover::after {
  width: 100%;
}

.character-text p {
  margin: 0;
  line-height: 1.6;
}


.sora-image{
   height: 55vh;
  width: auto;
}

.riku-image{
   height: 50vh;
  width: auto;
}

.sora-desc {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}


.secondary-characters {
  padding: 40px;
}

.character-grid {
  display: grid;
  grid-template-columns: 520px 520px;
  gap: 120px 160px;
  justify-content: center;
}

.character-info {
  display: flex;
  flex-direction: column;
}

.character-info h3 {
 font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
 font-style: normal;
 text-shadow: 0 0 10px #bd0078, 0 0 20px #bd0078
}

.twewy-characters {
  display: flex;
  align-items: center;
  gap: 20px;
}

.twewy-characters img {
  height: 250px;
  width: auto;
}

.twewy-characters p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
}

/* Accolades */

.accolades{
  display: flex;
  justify-content: center; 
  align-items: center;
  padding: 10px 40px;
}
.accolades img{
 width: 60%;
}



/* Cards */

.cards {
  display: flex;
  justify-content: center;
  gap: 40px; 
  flex-wrap: wrap;
  padding: 40px 0;
}

.cards .card {
  background: #1a001d;
  color: white;
  border: 2px solid #9D0063;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}


.cards .card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 
    0 0 10px #bd0078,
    0 0 25px #bd0078,
    0 0 40px rgba(189, 0, 120, 0.5);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #9D0063;
}

.card-body {
  text-align: center;
  padding: 20px;
}

.card-text {
  font-size: 20px;
  line-height: 1.6;
}



/* Footer */
footer {
  background: black;
  padding: 20px;
  text-align: center;
  border-top: solid 5px #9D0063;
}

.footerimg {
width: 150px;
padding: 20px;
}





/* STORY PAGE ------------------------------------------------------------- */
.khfeat {
  text-align: center;
  padding: 80px 20px;
  background: radial-gradient(circle at top, #1a001d, #120014);
}


.kh-title {
  font-size: 52px;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 40px;
  text-shadow:
    0 0 10px #bd0078,
    0 0 25px rgba(189, 0, 120, 0.6);
}


.video-frame {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 10px;
  border: 3px solid #9D0063;
  border-radius: 6px;

  box-shadow:
    0 0 15px #bd0078,
    0 0 40px rgba(189, 0, 120, 0.4);
  background: black;
}

.video-frame iframe {
  width: 100%;
  height: 500px;
}

.kh-description {
  max-width: 900px;
  margin: auto;
}

.kh-description h3 {
  font-size: 32px;
  font-weight: 500;
  color: #ffffff;
  font-style: italic;
  text-shadow: 0 0 6px #bd0078, 0 0 12px rgba(189,0,120,0.4);
  margin-bottom: 15px;
}

.kh-description p {
  font-size: 18px;
  line-height: 1.8;
  color: #ddd;
  text-align: justify;
  max-width: 850px;
  margin: 0 auto 20px;
}


/* Worlds */
.carousel {
  max-width: 900px;
  margin: 0 auto;
}

.carousel-inner {
  height: 400px;
}


.carousel-inner img {
  width: 40%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* SPIRITS PAGES ------------------------------------------------------------- */


.section-title {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}



.dream-eaters-intro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 160px;
  padding: 60px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.dream-text {
  max-width: 500px;
}

.dream-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #ff00cc;
}

.dream-text p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ddd;
}

.dream-image img {
  width: 300px;
  max-width: 80%;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 
    0 0 20px rgba(255, 0, 200, 0.25),
    0 0 40px rgba(255, 0, 200, 0.15);
}


.dream-eaters-table {
  padding: 60px 80px;
}


.dream-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a001f;
  border-radius: 10px;
  overflow: hidden;
}

.dream-table thead {
  background: #2a0033;
}

.dream-table th {
  padding: 15px;
  text-align: left;
  font-size: 16px;
  letter-spacing: 1px;
}

.dream-table td {
  padding: 20px;
  vertical-align: middle;
  border-bottom: 1px solid #330033;
}

.dream-table tbody tr:hover {
  background: #2a0033;
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.4);
}


.dream-table img {
  height: 80px;
}


.dream-table strong {
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}


.dream-table p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}


.spirit {
  color: #00ccff;
  font-weight: bold;
}

.nightmare {
  color: #ff0066;
  font-weight: bold;
}

.dream-table tbody tr {
  transition: 0.3s;
}

.dream-table tbody tr:hover {
  background: #2a0033;
  transform: scale(1.01);
  box-shadow: 0 0 15px rgba(255, 0, 150, 0.3);
}





/* BOSSES PAGE ------------------------------------------------------------- */

.bosses {
  padding: 60px 40px;
}

.boss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD */
.boss-card {
  background: #1a001d;
  border: 2px solid #9D0063;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}


.boss-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 0 15px #bd0078,
    0 0 30px rgba(189, 0, 120, 0.4);
}



.boss-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-bottom: 2px solid #9D0063;
}

.boss-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* default image */
.img1 {
  opacity: 1;
}

.img2 {
  opacity: 0;
}

/* hover swap */
.boss-card:hover .img1 {
  opacity: 0;
  transform: scale(1.05); 
}

.boss-card:hover .img2 {
  opacity: 1;
  transform: scale(1.05); 
}


.boss-content {
  padding: 20px;
  text-align: center;
}

.boss-content h3 {
  margin-bottom: 10px;
  text-shadow: 0 0 10px #bd0078;
}

.journal {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 15px;
  line-height: 1.5;
}

.boss-meta {
  font-size: 13px;
  color: #bbb;
  border-top: 1px solid #330033;
  padding-top: 10px;
}

.boss-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #9D0063;
}


