@font-face {
  font-family: Font1;
  src: url(fonts/font1.otf);
}

@font-face {
   font-family: Font2;
   src: url(fonts/font2.otf);
}

@font-face {
   font-family: Font3;
   src: url(fonts/font3.ttf);
}

@font-face {
  font-family: Font4;
  src: url(fonts/font4.ttf);
}

@font-face {
  font-family: Font5;
  src: url(fonts/font5.otf);
}

@font-face {
  font-family: Font6;
  src: url(fonts/font6.ttf);
}

@font-face {
  font-family: Font7;
  src: url(fonts/font7.ttf);
}
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  cursor: url('cursorHover.png'), auto;
  position: relative; /* Required for absolute positioning of the background */
  min-height: 100vh; /* Ensure body is at least full viewport height */
  background-color: #f0f0f0; /* Fallback color */
}

/* Infinite Scrolling Background */
.scrolling-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place behind all content */
  background-image: url('images/blueBG1.png'); /* Replace with your background image */
  background-size: 1920px 1080px; /* Adjust size as needed */
  animation: scrollBackground 20s linear infinite;
}

@keyframes scrollBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 400px 0; /* Only moves horizontally along X axis */
  }
}

/* Add a semi-transparent overlay to ensure content remains visible */
.scrolling-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3); /* Adjust opacity as needed */
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(33, 61, 109, 0.9);
  padding: 15px 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 100px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #6e8efb;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 30px;
  transition: background-color 0.3s;
}

.dropbtn:hover {
  background-color: #5d7de8;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border: 2px solid black; /* Added black outline to dropdown menu */
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #cccccc;
}

.dropdown.show .dropdown-content {
  display: block;
}

/* Main Content */
.container {
  max-width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative; /* Ensure content is positioned above background */
  z-index: 1;
}

.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 90%;
  margin-top: 70px; /* Space for navbar */
  gap: 25px;
  height: 80vh; /* Take up most of the vertical space */
}

/* Blog Section */
.blog-section {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 30%;
  height: 80%;
  overflow-y: auto;
  align-self: center;
  border: 2px solid black; /* Added black outline to blog section */
}

.blog-title {
  font-size: 30px;
  font-family: Font7;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.blog-list {
  list-style: none;
}

.blog-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  border: 2px solid black;
  padding: 10px;
  margin-top: 15px;
}

.blog-toggle {
  background: none;
  border: none;
  display: block;
  width: 100%;
  text-align: center; /* Center the blog post titles */
  padding: 8px;
  font-size: 20px; /* Increased font size from 16px to 20px */
  font-weight: bold;
  color: #333;
  font-family: Font1;
  cursor: pointer;
  transition: background-color 0.2s;
}

.blog-toggle:hover {
  background-color: #bce4ff;
}

.blog-content {
  padding: 0 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  text-align: center; /* Center the blog post content */
}

.blog-content p {
  margin: 8px 0;
  line-height: 1.5;
  font-size: 14px;
  text-align: center; /* Center the blog post paragraphs */
}

.blog-item.active .blog-content {
  max-height: 300px;
  padding: 8px;
}

/* Hero Image */
.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  align-self: center;
}

.hero-image {
  width: 100%;
  height: 70%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
      transform: translateY(0px) rotate(0deg);
  }
  50% {
      transform: translateY(-20px) rotate(0deg);
  }
  100% {
      transform: translateY(0px) rotate(0deg);
  }
}

/* Fanart Slideshow */
.slideshow-section {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 25%;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.slideshow-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 15px;
  color: #333;
  font-family: Font7;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.slideshow-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-credit {
  height: 150px;
  overflow: hidden;
  position: relative;
  margin-top: 15px;
}

.credit-item {
  position: absolute;
  width: 100%;
  padding: 10px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.credit-item.active {
  opacity: 1;
}

.credit-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
  text-align: center;
  font-family: Font5;
}

.credit-text {
  line-height: 1.5;
  font-size: 14px;
  text-align: center;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  margin-top: 30px;
  width: 100%;
}

/* About Page Specific Styles */
.about-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin-top: 120px; /* Extra space for navbar */
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid black; /* Black outline to match other elements */
}

/* About Header */
.about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
}

.about-title {
  font-size: 50px;
  font-family: Font7; /* Using Font7 from your existing fonts */
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.logo-name {
  width: 50%;
  margin-bottom: 20px;
  animation: float 14s ease-in-out infinite;
}

.profile-image-container {
  width: 300px;
  height: 300px;
  border-radius: 10%;
  overflow: hidden;
  border: 3px solid #6e8efb; /* Blue border to match your theme */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite; /* Reusing your float animation */
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Sections */
.about-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  width: 100%;
  margin-bottom: 40px;
}

.about-section {
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid black;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-section:hover {
  transform: translateY(-5px);
}

.section-title {
  font-size: 28px;
  font-family: Font1; /* Using Font1 from your existing fonts */
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.section-content {
  font-size: 16px;
  line-height: 1.6;
}

.section-content p {
  margin-bottom: 15px;
}

/* Interests List */
.interests-list {
  list-style: none;
}

.interests-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.interests-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6e8efb;
  font-size: 20px;
}

.interest-category {
  font-weight: bold;
  color: #333;
}

/* Timeline */
.timeline {
  padding: 10px 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ddd;
}

.timeline-date {
  width: 80px;
  font-weight: bold;
  color: #6e8efb;
}

.timeline-info {
  flex-grow: 1;
}

/* FAQ Section */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
}

.faq-toggle {
  background: none;
  border: none;
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}

.faq-toggle::after {
  content: "+";
  position: absolute;
  right: 15px;
  font-size: 20px;
}

.faq-toggle:hover {
  background-color: #bce4ff;
}

.faq-item.active .faq-toggle::after {
  content: "-";
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 10px 15px;
}

/* Contact Section */
.contact-section {
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

.contact-title {
  font-size: 32px;
  font-family: Font7;
  color: #333;
  margin-bottom: 15px;
}

.contact-text {
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: #6e8efb;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s, background-color 0.3s;
  border: 2px solid black; /* Black outline to match theme */
}

.contact-link:hover {
  transform: scale(1.05);
  background-color: #5d7de8;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .content-wrapper {
    width: 95%;
  }
}

@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
    height: auto;
    margin-top: 80px;
    padding-bottom: 40px;
  }
  
  .hero-image-container {
    order: -1;
    width: 120%;
    height: 30vh;
    margin-bottom: 30px;
  }
  
  .blog-section, .slideshow-section {
    width: 90%;
    height: 70vh;
    margin: 15px auto;
  }
  
  .about-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-content-wrapper {
    width: 95%;
    padding: 20px;
    margin-top: 80px;
  }
  
  .about-title {
    font-size: 40px;
  }
  
  .profile-image-container {
    width: 150px;
    height: 150px;
  }
  
  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .blog-section, .hero-image-container, .slideshow-section {
    width: 100%;
  }
  
  .slideshow-container {
    min-height: 50%;
  }
  
  .slideshow-credit {
    height: 50%;
  }
  
  .about-content-wrapper {
    padding: 15px;
  }
  
  .contact-links {
    flex-direction: column;
    gap: 10px;
  }
}