*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
body{
  background-image: url('https://i.pinimg.com/originals/ae/5f/45/ae5f4530fc45074f9b347202171808ad.gif');
  background-color: #1f1539;
  margin: 7%;
  font-family: 'Karla', sans-serif;
  font-size: 20px;
  color: #E6CBD6;
}
 
.sidebg{
  background-image: url('https://i.imgur.com/WWd5ZJ1.png');
  background-repeat: repeat-y;
  background-position: top right;
  width: 200px;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}
 
.side{
  background-color: #3E5220;
  width: 176px;
  height: 100%;
  padding: 1rem 0.5rem 1rem 1rem;
  text-align: justify;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 3px;
  word-break: break-word;
  overflow-wrap: break-word;
}
 
.avatar{
  width: 90%;
  opacity: 0.9;
  border: 3px solid #AEC891;
}
 
.desc{
  padding: 0.5rem;
}
 
.sideheaders{
  font-family: 'Love Ya Like A Sister', serif;
  font-weight: normal;
  font-size: 18px;
}
 
.side ul{
  padding-left: 2.5rem;
}
 
.side li{
  list-style: none;
  background-image: url('list-img.gif');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 20px 20px;
  padding-left: 20px;
  font-size: 16px;
  margin-bottom: 8px;
}
 
.container{
  display: flex;
  flex-direction: column;
  margin-left: 200px;
}
 
.headerwrapper{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
 
.title{
  font-family: aespa;
  src: url(https://dl.dropbox.com/s/gy2yvbau2ieeeng/aespa_Regular.ttf);
  font-weight: normal;
  color: #470A68;
  font-size: 46px;
  align-self: middle;
  margin-left: 22rem;
  padding: 35px;
}
 
 
.boxgap{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
 
.box{
  display: flex;
  flex-direction: column;
  background-color: #9077A0;
  border: 3px solid #6B5370;
  width: 1077px;
  min-height: 300px; /* Cambiado a min-height para que la caja crezca con los comentarios */       
  padding: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}
 
.icon{
  border: 2px solid #f0eee9;
  width: 90px;
}
 
.right{
  padding: 1rem;
}

a{
  color: #E6CBD6;
  text-decoration: none;
}
 
a:visited{
  color: #E6CBD6;
}
 
a:hover{
  font-weight: bold;
}
 
a:active{
  font-style: italic;
  font-weight: normal;
}
 
::-webkit-scrollbar{
  width: 8px; 
}
 
::-webkit-scrollbar-track{
  background-color: transparent;
}
 
::-webkit-scrollbar-thumb{
  background-color: #967e68;
}
 
#credit{
  font-size: 12px;
  position: fixed;
  bottom: 0;
  right: 0;
}

/* =======================================================
   ESTILOS PROPIOS DE LA SECCIÓN DE COMENTARIOS
   ======================================================= */
.box h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 24px;
  color: #fff;
}

#commentForm {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

#commentForm input[type="text"], #commentForm textarea {
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 2px solid #6B5370;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Karla', sans-serif;
  background-color: #fbf0f5;
  color: #333;
}

#commentForm button {
  width: 150px;
  padding: 0.6rem;
  font-size: 16px;
  background-color: #6B5370;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  font-family: 'Karla', sans-serif;
  font-weight: bold;
  transition: background 0.2s;
}

#commentForm button:hover {
  background-color: #470A68;
}

.comments {
  border-top: 2px solid #6B5370;
  padding-top: 1.5rem;
}

.comment {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  color: #333;
}

.comment .name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 0.3rem;
  color: #470A68;
}

.comment .text {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.4;
}
/* ======================================================= */
 
@media(max-width:760px){
  body{
    margin: 0;
    padding: 1rem;
  }
  .sidebg{
    background-image: none;
    position: relative;
    top: 0;
    margin-bottom: 1rem;
    width: 100%;
    height: auto;
  }
  .side{
    height: auto;
    width: 100%;
    text-align: center;
    padding: 5rem;
  }
  .desc{
    font-size: 16px;
  }
  .side ul{
    padding: 0;
  }
  .side li{
    display: inline;
    margin-left: -3px;
  }
  .avatar{
    width: 50%;
    margin: 0 auto;
  }
  .container{
    margin: 0;
  }
  .headerimg{
    width: 180px;
  }
  .title{
    font-size: 36px;
    margin: 0;
  }
  .box {
    width: 100%; /* Evita que la caja se corte en pantallas chicas */
  }
}