@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/blueBG2.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: 110%;
  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%;
}

/* 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;
  }
}

@media (max-width: 576px) {
  .blog-section, .hero-image-container, .slideshow-section {
    width: 100%;
  }
  
  .slideshow-container {
    min-height: 50%;
  }
  
  .slideshow-credit {
    height: 50%;
  }
}