/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-image: image-set('background.png');
    color: #000;
  }
  
  .container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #331d1d;
    border: 2px solid #000;
    padding: 0;
    position: relative; 
  margin-right: 50px; 
  margin-top: 70px;
    height: auto; 
  }
  
  .header {
    position: relative;
  }
  
  .logo img {
    width: 100%; 
    height: 150px; 
  }
  
  .nav {
    position: absolute;
    bottom: -20px; 
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    background-color: transparent;
  }
  
  .nav button {
    background-color: #FFC728;
    color: #A65B0D;
    padding: 5px 10px;
    border: 2px solid #A65B0D;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 10px;
    z-index: 1; 
  }
  
  .nav button:hover {
    background-color: #ffffff;
  }
  
  .welcome-section {
    margin: 40px auto;
    width: 60%; 
    text-align: center;
    color: #e1d0a7;
  }
  
  .welcome-section h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .welcome-section p {
    text-align: justify;
    line-height: 1.5;
    margin-top: 10px;
  }
  
  .blog-section {
    text-align: center;
    margin: 30px auto;
  }
  
  .blog-section h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #dfcb91;

  }
  
  .blog-container {
    display: flex;
    border: 2px solid #000;
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    height: 300px;
  }
  
  .blog-thumbnail {
    flex: 1;
    max-width: 40%;
    background-color: #edb119; 
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .blog-thumbnail img {
    width: 80%;
    height: auto;
  }
  
  .blog-content {
    flex: 2;
    padding: 20px;
    text-align: left;
  }
  
  .blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .blog-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    margin-top: 10px;
  }
  
  .blog-text {
    overflow-y: scroll;
    height: 190px; 
    padding-right: 10px;
    border-left: 2px solid #000;
  }
  
  .blog-text p {
    text-align: justify;
    line-height: 1.5;
  }
  
  .blog-text::-webkit-scrollbar {
    width: 6px;
  }
  
  .blog-text::-webkit-scrollbar-thumb {
    background: #888;
  }
  
  .blog-text::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  .character-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px auto;
  }
  
  .character-grid .row {
    display: flex;
    gap: 0px;
    
  }
  .character1{
    transform: translateX(-76px) translateY(39px);
  }
  .character5{
    transform: translateX(75px) translateY(-39px);
  }
  .character-grid img {
    width: 150px;
    height: 170px;
  }
.media-category h2 {
    font-size: 1.5rem;
    color: #dfcb91;
    text-align: center;
    margin: 20px 0;
  }
  
  .media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px auto;
  }
  

  .media-grid img {
    width: 300;
    height: 200px;
    border: 2px solid #000;
  }
  .media-gifs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px auto;
  }
  
  .media-gifs img {
    width: 200px;
    height: auto;
    border: 2px solid #000;
  }
  
  .writing-container {
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
    text-align: left;
  }
  
  .writing-container article {
    background-color: #fff;
    border: 2px solid #000;
    padding: 15px;
  }
  
  .writing-container article h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .writing-container article p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .writing-container article a {
    color: #FFC728;
    text-decoration: none;
    font-weight: bold;
  }
  
  .writing-container article a:hover {
    text-decoration: underline;
  }
.blog-section h2 {
    font-size: 1.5rem;
    color: #dfcb91;
    text-align: center;
    margin: 20px 0;
  }
  
  .blog-container {
    display: flex;
    border: 2px solid #000;
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
    background-color: #fff;
    height: 300px;
  }
  
  .blog-thumbnail {
    flex: 1;
    max-width: 40%;
    background-color: #edb119; /* Placeholder thumbnail */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .blog-thumbnail img {
    width: 80%;
    height: auto;
  }
  
  .blog-content {
    flex: 2;
    padding: 20px;
    text-align: left;
  }
  
  .blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .blog-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    margin-top: 10px;
  }
  
  .blog-text {
    overflow-y: scroll;
    height: 190px; 
    padding-right: 10px;
    border-left: 2px solid #000;
  }
  
  .blog-text p {
    text-align: justify;
    line-height: 1.5;
  }
  
  /* Scrollbar Styling */
  .blog-text::-webkit-scrollbar {
    width: 6px;
  }
  
  .blog-text::-webkit-scrollbar-thumb {
    background: #888;
  }
  
  .blog-text::-webkit-scrollbar-thumb:hover {
    background: #555;
  }


/* Form Section */
.form-section {
  margin: 40px auto;
  padding: 20px;
  text-align: center;
  color: #e1d0a7;
}

.form-section h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.form-container {
  background-color: #FFC728;
  padding: 20px;
  border-radius: 10px;
}

.question-block {
  margin-bottom: 15px;
}

.question-block label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color:#331d1d;
}

.question-block input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 2px solid #A65B0D;
  border-radius: 5px;
}

.submit-button {
  background-color: #A65B0D;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.submit-button:hover {
  background-color: white;
  color: #A65B0D
}
/* General Overlay Styles */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


.overlay-content {
  top: 7%;
  left: 16%;
  display: flex;
  width: 80%;
  max-width: 900px;
  background: #fdf5e6;
  border: 5px solid #f39c12;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  
}


/* Close Button */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f39c12; /* Red background */
  color: #fff; /* White text */
  border: none;
  border-radius: 20%;
  width: 50px;
  height: 30px;
  font-size: 1rem; /* Slightly smaller font */
  cursor: pointer;
}


.overlay-left {
  justify-content: center;

  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#characterImage {
  max-width: 100%;
  height: auto;
  border: 3px solid #f39c12;
  border-radius: 10px;
  margin-bottom: 10px;
}


/* Navigation Buttons */
.image-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.arrow-button {
  background-color: #f39c12; /* Orange background */
  color: #fff; /* White text */
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.arrow-button:hover {
  background-color: #e67e22; /* Slightly darker orange on hover */
}

/* Right Section: Character Info */
.overlay-right {
  flex: 2;
  text-align: center; /* Center-align content for a compact look */
  color: #2c3e50; /* Dark gray text */
}

.character-name {
  font-family: 'Georgia', serif;
  font-size: 1.5rem; /* Slightly smaller font size */
  color: #f39c12; /* Orange text */
  margin-bottom: 10px;
}

.character-divider {
  height: 3px;
  width: 40%;
  background: linear-gradient(to right, #f39c12, #e67e22); /* Gradient divider */
  margin: 10px auto; /* Centered divider */
}

.character-bio {
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  max-height: 200px; /* Smaller max height for compact layout */
  overflow-y: auto; /* Scrollable if content exceeds height */
  padding: 10px;
  border: 1px solid #f39c12;
  background-color: #fffbe6; /* Light background */
  border-radius: 5px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for a center row */
  justify-content: center; /* Center the entire grid */
  align-items: center;
}

.character-grid img {
  width: 150px; /* Adjust as necessary */
  height: 170px;
  cursor: pointer;
}



/* Override for specific placement */
.character-grid .character1 {
  transform: translateX(-80px) translateY(41px);
  grid-column: 2; /* Center character 1 at the top */
  grid-row: 1;
}

.character-grid .character2 {
  grid-column: 1; /* Leftmost character in the middle row */
  grid-row: 2;
  transform: translateX(8px) translateY(3px);
}

.character-grid .character3 {
  grid-column: 2; /* Center character in the middle row */
  grid-row: 2;
  transform: translateX(-6px) translateY(2px);
}

.character-grid .character4 {
  grid-column: 3; /* Rightmost character in the middle row */
  grid-row: 2;
  transform: translateX(-17px) translateY(2px);

}

.character-grid .character5 {
  grid-column: 2; /* Center character at the bottom */
  grid-row: 3;
  transform: translateX(68px) translateY(-38px);

}


.arrow-button {
  background-color: #f39c12;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 1rem;
  cursor: pointer;
}

.arrow-button:hover {
  background-color: #e67e22;
}

/* Right Section: Character Info */
.overlay-right {
  flex: 2;
  margin-left: 20px;
  color: #2c3e50;
}

.character-name {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  color: #f39c12;
  margin-bottom: 10px;
}

.character-divider {
  height: 4px;
  width: 50%;
  background: linear-gradient(to right, #f39c12, #e67e22);
  margin: 10px 0;
}

.character-bio {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #f39c12;
  background-color: #fffbe6;
  border-radius: 5px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}
.login-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #000; 
  color: #fff; 
  text-decoration: none;
  border: 2px solid #000;
  border-radius: 5px;
  cursor: pointer;
}