


/* Comment section, inside gallery*/

#comments {
  animation: slideInTop 1s ease-out backwards;
  font-size: 30px;
  padding: 10px;
  width: 100%; 
  min-width: 50vw;
  min-height: 20vw;
  color: grey;
}

#comments h3 {
  display: flex;
  justify-content: center;  
  margin-top: 1vw;
  margin-bottom: 1vw;
}

#comment-form{
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 15px;
  max-width: 90%;
  padding: 20px;
  border-radius: 10px;            
  box-shadow: 0 4px 8px rgba(0,0,0,0.3); 
}

#comment-form input {
  padding: 10px;
  min-height: 40px; 

}

#comment-form textarea {
  min-height: 80px;  
  padding: 10px;
  resize: vertical;  
}

#comment-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  overflow-y: auto;       /* enables vertical scroll */
  height: 300px;   
  list-style-type: none;
}

.comment{
  color: black;
  background: #f9f9f9;            
  margin-bottom: 12px;             
  padding: 12px 16px;             
  border-radius: 10px;            
  box-shadow: 0 4px 8px rgba(0,0,0,0.3); 
  overflow-wrap: anywhere; /* no crazy line comment*/
  min-width: 40%;
  max-width: 50vw;
  flex-wrap: wrap
  
}

.comment button{
  margin-left: auto;
  margin-top: 10px;  

}

.comment .comment-author {
  font-size: 20px;
  margin-bottom: 1%; 
}

.comment .comment-content {
  font-size: 20px;
  margin-bottom: 1%; 
}

.comment .comment-date {
  font-size: 20px;
  margin-bottom: 1%; 
}

#comment-btn {
  display: flex;
  justify-content: center; 
  gap: 5vw;               
  margin-top: 20px;
  margin-bottom: 20px;
}

#previous-comment{
  min-width: 10vw;
}

#next-comment{
  min-width: 10vw;
}





/*sliding animation*/

@keyframes slideInLeft {
  from {
    transform: translateX(-200px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(+200px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInTop {
  from {
    transform: translateY(-200px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInBot {
  from {
    transform: translateY(+200px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}