body {
  margin: 0;
  font-family: "helvetica-neue-lt-pro", sans-serif;
font-weight: 200;
font-style: normal;
text-transform: lowercase;
}

.htop {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.htop-img {
  width: 99%; 
  height: auto;
}

.content {
  width: 80%;
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  gap: 50px; 
}


.row {
  display: grid;
  grid-template-columns: 230px 1fr; 
  gap: 20px;
}

.section-title {
  text-align: right;
  margin-top: -10px;
  font-size: 40px;
  font-family: "linotype-didot", serif;
font-weight: 400;
font-style: normal;
color: #E5450F;
letter-spacing: -1px;
}
#htopfam
{
     font-family: "linotype-didot", serif;
font-weight: 400;
font-style: normal;
color: #E5450F;
letter-spacing: -1px;
font-size: larger;
}

#htopmod {
    font-family: "helvetica-neue-lt-pro", sans-serif;
font-weight: 200;
font-style: normal;
}

.italics {
    font-family: "helvetica-neue-lt-pro", sans-serif;
font-weight: 700;
font-style: italic;
color: #E5450F;
letter-spacing: .4px;

}


.row p {
  margin: 0;
}

@media (max-width: 700px) {

  .content {
     padding-top: 60px; 
    width: 90%;     
    margin-left: auto;
    margin-right: auto;
  }


  .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 27px;
  }

  .row p {
    max-width: 500px;
    text-align: left;
  }

  .htop-img {
    width: 95%;
  }

  .htop-title {
    top: 40%;
  }

}

.navbar {
  position: absolute;
  top: 82px; 
  left: 50%;
  transform: translateX(-50%);
  
  display: flex;
  gap: 10px;
  z-index: 10;
}

.nav-btn {
  padding: 6px 18px;
  border-radius: 10px;
  text-decoration: none;
 
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .85rem;

  white-space: nowrap;

  background-color: rgb(255, 255, 255);
  color: #E5450F;

  transition: all 0.25s ease;
  min-width: 140px;
}

.home-btn {
  position: relative;
}

.home-btn span {
  width: 100%;
  text-align: center;
}

.nav-btn:hover {
  background-color: #E5450F;
  color: rgb(255, 255, 255);
  transform: scale(1.08);
}
.home-btn .hover-text {
  position: absolute;
  width: 100%;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.home-btn:hover .default-text {
  opacity: 0;
}

.home-btn:hover .hover-text {
  opacity: 1;
}

.default-text {
    color: black;
    text-align: center;
}

#buttonfam {
font-family: "linotype-didot", serif;
font-weight: 400;
font-style: normal;
color: #E5450F;
letter-spacing: -1px;
font-size: larger;
text-align: center;
}

@media (max-width: 700px) {

  .navbar {
    position: absolute;     
    transform: translate(-50%,-50%);
    top: 105%;

    display: flex;
    justify-content: center;
    gap: 10px;

    width: 90%;
    max-width: 320px;       
    margin: 20px auto;      
  }

  .nav-btn {   
    min-width: 75px;   
    font-size: 12px;      
    text-align: center; 
    background-color: #E5450F;
    color: white;
      padding: 6px 9px;
  }

  .nav-btn:hover {
    background-color: #ffffff;
    color: #E5450F;
    transform: scale(1.08);  
  }

  .default-text {
    color: white;
  }

  #buttonfam {
    color: white;
  }

  .content {
    margin-top: 50px;
  }}




.characters-content {
  width: 80%;
  margin: 80px auto;
}


.big-title {
  font-size: 40px;
  margin-bottom: 40px;
  text-align: center;
  font-family: "helvetica-neue-lt-pro", sans-serif;
font-weight: 200;
font-style: normal;
}

.big-title span {
  color: #E5450F;
  font-family: "linotype-didot", serif;
font-weight: 400;
font-style: normal;
font-size: 45px;

}


.family {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 60px;
}

.family-img {
  width: 200px;
}

.family-text {
  max-width: 500px;
}


.relationship {
  width: 100%;
  margin: 100px auto;
  text-align: center;
}

.relationship-img {
  width: 100%;
  margin: 20px 0;
}

.relationship-text {
  max-width: 600px;
  margin: 0 auto;
}


.side-characters {
  width: 80%;
  margin: 100px auto;
  text-align: center;
}

.side-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.side-card img {
  width: 150px;
}

.side-card {
  width: 150px;        
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (max-width: 700px) {

  .family {
    flex-direction: column;
    text-align: center;
  }

  .relationship-img {
    width: 90%;
  }

  .side-grid {
    flex-direction: column;
    align-items: center;
  }
}
.popup {
  margin-top: -50px;
  margin-bottom: 50px;
  padding: 20px;
  background-color: #ffffff;
  border-color: #E5450F;
  border-radius: 10px;

  display: flex;              /* makes them line up */
  justify-content: center;    /* centers row */
  gap: 15px;                  /* space between images */
  flex-wrap: wrap;            /* allows wrapping on small screens */
}

.popup img {
  width: 100px;   
  height: auto;
}

/* hide checkboxes */
.char input {
  display: none;
}

/* layout each character */
.char {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* make images clickable */
.char img {
  width: 120px;
  cursor: pointer;
}

/* hide text by default */
.char-info {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
  max-width: 120px;
}

/* SHOW text when clicked */
.char input:checked ~ .char-info {
  display: block;
}

.smaller {
    font-size: .8rem;
}
#instruct {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 30px;
    font-size: .8rem;
}

footer {
    background-color: #E5450F;
    color: #ffffff;
    text-align: center;
    font-size: .5rem;
    padding: 10px;
    padding-bottom: 15px;
}
.display
{
    width: 300px;
    margin: 0 auto; 
    margin-top: -20px;
    margin-bottom: -20px;        
    display: grid;
    place-items: center; 
}
.display1
{
    width: 300px;
    margin: 0 auto; 
    margin-top: -40px;       
    display: grid;
    place-items: center; 
}

.display2 {
 width: 200px;
  height: auto;
}
.display2-container {
  grid-column: 1 / -1;   /* 🔥 makes it span full row */
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-left: 20px;
}

@media (max-width: 700px) {

  .display2 {
    width: 80%;       
    max-width: 220px;  
  }

}