/* Base styles */
body {
  background-color: #f4f4f4;
  font-family: 'Kaisei HarunoUmi', serif;
  background: url(../images/whiteAndBlackBg.jpg) repeat;
  height: 100%;
  margin: 0; /* Remove default margin */
  display: flex;
  flex-direction: column;
}

html {
  height: 100%;
  margin: 0; /* Remove default margin */
  display: flex;
  flex-direction: column;
}

/* Navbar styling - Enhanced for black background */
.navbar {
  transition: all 0.5s ease-in-out;
  padding: 1rem 0;
}

.navbar-sticky {
  opacity: 0.95; /* From main CSS - prioritized over new CSS's 0.9 */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); /* From main CSS - prioritized over new CSS */
  padding: 0.7rem 0;
}

.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar-sticky .navbar-brand img {
  width: 110px; /* Slightly smaller logo when navbar is sticky */
}

/* Nav items spacing */
.navbar-nav .nav-item {
  margin: 0 4rem; /* From main CSS - prioritized over new CSS's 2rem */
}

/* Japanese-inspired styling - Enhanced */
.japanese-border {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.7px;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
}

.nav-english {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.7px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

/* Active and hover states */
.navbar-nav .nav-link:hover .japanese-border,
.navbar-nav .nav-link:hover .nav-english,
.navbar-nav .nav-link.active .japanese-border,
.navbar-nav .nav-link.active .nav-english {
  color: #ff3b30; /* Traditional Japanese red */
}

/* Dropdown menu styling */
.dropdown-menu {
  background-color: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.6rem 1.2rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover, 
.dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ff3b30;
}

.jp-text {
  font-size: 0.9rem;
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.dropdown-item:hover .jp-text {
  color: rgba(255, 255, 255, 0.8);
}

.dropdown-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0.3rem 0;
}

/* Enhanced user icon styling */
.user-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.user-icon:hover .user-circle {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ff3b30;
  transform: scale(1.05);
}

.user-icon .fas {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

/* Navbar toggler customization */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.6rem;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.3);
  outline: none;
}

.navbar-toggler:hover {
  border-color: #ff3b30;
  font-weight: bolder;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Improved mobile responsiveness */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.8rem;
  }
  
  .dropdown-menu {
    background-color: rgba(20, 20, 20, 0.8);
    border: none;
    border-left: 2px solid #ff3b30;
    border-radius: 0;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: none;
  }
  
  /* Adjust layout of Japanese and English text on mobile */
  .japanese-border {
    display: inline-block;
    margin-right: 0.8rem;
    margin-bottom: 0;
  }
  
  .nav-english {
    display: inline-block;
  }
}

/* Very small screens optimization */
@media (max-width: 576px) {
  .navbar {
    padding: 0.7rem 0;
  }
  
  .navbar-brand img {
    width: 100px;
  }
  
  .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .jp-text {
    font-size: 0.8rem;
  }
  
  .user-circle {
    width: 32px;
    height: 32px;
  }
  
  .user-icon .fas {
    font-size: 0.8rem;
  }
  
  /* Adjust navbar container padding */
  .navbar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.navbar .btn-outline-light:hover {
  color: #333;
}

.header, .navbar {
  background: url(../images/background.jpg) center no-repeat;
  background-size: cover;
}

.icons {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(../images/secondBackground.jpg) center no-repeat;
  background-size: cover;
}

.form-group {
  padding-top: 25px;
}

/* .details {
  background: url(../images/whiteAndBlackBg.jpg) center no-repeat;
  background-size: cover;
} */

/* .cls-1 {
  fill: url(../images/whiteAndBlackBg.jpg) center no-repeat;
} */

.modal-content {
  background-color: rgba(0, 0, 0, 0.95);
}

.primaryButton {
  background: linear-gradient(to right, rgb(255, 255, 255), rgb(158, 158, 158));
  color: #000000;
  border: 1px; /* From main CSS - prioritized over new CSS's 2px */
}

.darkButton {
  background: linear-gradient(to right, rgb(0, 0, 0), rgb(143, 143, 143));
  color: #ffffff;
  border: 1px;
}

.darkButton:hover {
  background: linear-gradient(to right, rgb(0, 0, 0), rgb(79, 79, 79));
}

h1, h2, h3 {
  font-family: 'Kaisei HarunoUmi', serif;
}

/* Fixed image container styling */
.image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0.5rem;
}

.nav-pills li:hover {
  background-color: red;
}

.list-group .list-group-item {
  border: none;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

table td {
  text-align: center;
  font-weight: 600;
}

.forum .container img {
  border-radius: 100%;
  height: 40px;
}

.card-body .comment {
  margin-top: -15px;
}

/* Page container styling */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure it takes the full height of the viewport */
}

/* Allow the content wrapper to grow and push the footer down */
.content-wrapper {
  flex: 1; /* Takes up the remaining space */
}

  /* Footer Styling */
  .footer-section {
    position: relative;
    background-color: #e6e6e6
}

.footer-top-divider {
    line-height: 0;
    margin-bottom: -2px;
}

.bg-black {
    background-color: #000000 !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    /* color: white; */
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background-color: #000000;
    /* color: white; */
    transform: translateY(-3px);
}

.footer-about {
    /* color: rgba(255, 255, 255, 0.7); */
    font-size: 0.95rem;
    line-height: 1.6;
}

.likes-count {
  margin-top: 5px;
  font-size: 0.80rem; /* Smaller font size */
  color: #6c757d; /* Muted color similar to Bootstrap's text-muted */
}

.comments-count {
  margin-top: 5px;
  font-size: 0.80rem; /* Smaller font size */
  color: #6c757d; /* Muted color similar to Bootstrap's text-muted */
}

.card-blade,
.card-item {
  width: 75%;
}

/* For large desktops (min-width: 1300px) */
@media (min-width: 1300px) {
  .card-blade,
  .card-item {
    width: 60%;
  }
}

/* For medium desktops (1100px - 1299px) */
@media (min-width: 1100px) and (max-width: 1299px) {
  .card-blade,
  .card-item {
    width: 70%;
  }
}

/* For laptops/tablets (995px - 1099px) */
@media (min-width: 995px) and (max-width: 1099px) {
  .card-blade,
  .card-item {
    width: 80%;
  }
}

/* For tablets and small laptops (580px - 994px) */
@media (min-width: 580px) and (max-width: 994px) {
  .card-blade,
  .card-item {
    width: 90%;
  }
}

/* For phones (max-width: 579px) */
@media (max-width: 579px) {
  .card-blade,
  .card-item {
    width: 100%;
  }
}


/* Additional media query from new CSS */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-item {
    margin-bottom: 1rem;
  }
  .container-fluid {
    padding: 0;
  }
}

.info {
  transition: all 0.5s ease-in-out;
  background: url(../images/background-info.jpg) center no-repeat;
  background-size: cover;
}