:root {
  --himalayan-blue: #5A93E9;
  --saffron: #FF9933;
  --terracotta-brown: #E2725B;
  --evergreen-green: #00703C;
  --evergreen-green-shade: #005A30;
  --goldenrod-gold: #DAA520;
  --mountain-rock-gray: #808080;
  --lotus-pink: #FF7F7F;
  --monastery-maroon: #800000;
  --cloud-white: #FFFFFF;
  --sunrise-orange: #FF6F00;
  --frost-gray: #f2f2f2;
  --highlight-color: #2c3e50;
  --highlight-background: #ecf0f1;
}

body {
  background: var(--cloud-white);
  margin: 0;
  font-family: 'Roboto', 
               'IPAPGothic', 
               'Noto Serif JP', 
               'Noto Sans JP', 
               'メイリオ', 
               'Hiragino Kaku Gothic ProN', 
               'ヒラギノ角ゴ Pro W3', 
               'Meiryo', 
               'MS PGothic', 
               'MS UI Gothic', 
               'Helvetica Neue', 
               Arial, 
               sans-serif;
  font-weight: 300;
  height: 100vh;
}


.navbar {
  background-color: var(--evergreen-green);
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar a{
    text-decoration:none;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  margin-right:10px;
}

.navbar-left {
  gap: 20px;
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.navbar .navbar-brand {
  font-size: 1.1rem;
  color: var(--cloud-white);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.brand_color_before {
  color: var(--cloud-white);
}

.brand_color_after {
    color: white;
    text-shadow: 2px 2px 2px rgba(218, 165, 32, 0.8);
    padding-left: 4px;
    filter: contrast(1.2);
}




.navbar-toggler {
  background: transparent;
  border: none;
  padding: 6px;
}

.img-icon {
  height: 24px;
  width: 24px;
}

.main-search-btn {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--frost-gray);
  list-style: none;
  padding: 10px 0; /* Add some padding around the items */
  margin: 0;
  right: 0;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); /* Enhance shadow for a polished look */
  border-radius: 8px; /* Smooth corners */
  width: 200px; /* Slightly wider for a balanced appearance */
  animation: fadeIn 0.3s ease; /* Smooth fade-in animation */
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu .dropdown-item {
  color: var(--highlight-color);
  padding: 12px 16px; /* Better spacing inside items */
  font-size: 1rem;
  text-decoration: none;
  display: flex; /* Use flex for alignment */
  align-items: center; /* Center icons and text */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s;
  border-bottom: 1px solid var(--mountain-rock-gray);
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--highlight-background);
  color: var(--sunrise-orange);
  transform: translateX(4px); /* Subtle hover movement */
}

.dropdown-menu .dropdown-item:last-child {
  border-bottom: none;
}

.btn.dropdown-toggle {
  background-color: transparent;
  border: none;
  color: var(--cloud-white);
  display: flex;
  align-items: center;
  gap: 8px; /* Add space between icon and text */
  padding: 6px 8px; /* Add slight padding for click area */
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s;
}

.btn.dropdown-toggle:hover {
  color: var(--sunrise-orange);
  transform: scale(1.05); /* Slight zoom effect */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media screen and (max-width: 768px) {
  .navbar {
    padding: 8px 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

 
  .navbar .navbar-brand {
    font-size: 1rem;
  }

  .navbar .navbar-toggler {
    padding: 6px;
  }

  .img-icon {
    height: 20px;
    width: 20px;
  }

  .main-search-btn,
  .dropdown-toggle {
    font-size: 0.9rem; /* Smaller icons */
    margin: 0;         /* Remove any default margin */
  }

  .main-search-btn {
    margin-right: 10px; /* Give a slight margin on the right to prevent crowding */
  }
}







.sidenav-container {
  position: fixed;
  z-index: 999;
  height: 100%;
}

.sidenav {
  position: fixed;
  z-index: 999;
  top: 48px;
  left: 0;
  width: 0;
  height: calc(100vh - 48px);
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  transition: width 0.5s ease;
  overflow: hidden;
}

.sidenav-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.sidenav-items a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 18px;
  color: #000;
  display: block;
  transition: 0.3s ease;
}

.sidenav-items a:hover {
  background: var(--mountain-rock-gray);
  color: var(--cloud-white);
}

.sidenav-footer {
  background: var(--evergreen-green);
  text-align: center;
  padding: 10px 15px;
  color: var(--cloud-white);
  flex-shrink: 0;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  background: var(--monastery-maroon);
  color: var(--cloud-white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background-color: var(--evergreen-green);
}


/* Dim background when loading */
.body-dimmed {
    opacity: 0.5; 
    pointer-events: none; 
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



.footer {
  background-color: var(--frost-gray);
  color: var(--highlight-color);
  padding: 40px 0;
  position: relative;
  font-family: 'Arial', sans-serif;
}

.footer .footer-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap; /* Ensure the content wraps on smaller screens */
  margin: 0 auto;
  max-width: 1200px; /* Preventing overflow on large screens */
}

.footer .footer-wrapper-item {
  flex: 1;
  min-width: 250px; /* Ensure items don’t get too small on narrow screens */
  box-sizing: border-box; /* Avoid padding overflow */
}

.footer .footer-wrapper-item h4 {
  font-size: 20px;
  color: var(--evergreen-green-shade);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer .footer-wrapper-item p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer .footer-link,
.footer .footer-links a,
.footer .footer-contact a {
  text-decoration: none;
  color: var(--highlight-color);
  font-weight: 600;
}

.footer .footer-link:hover,
.footer .footer-links a:hover,
.footer .footer-contact a:hover {
  text-decoration: underline;
}

.footer .footer-links,
.footer .footer-contact {
  list-style: none;
  padding: 0;
}

.footer .footer-links li,
.footer .footer-contact li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer .footer-contact img.img-icon {
  margin-right: 10px;
}

.footer .footer-contact i {
  color: var(--saffron);
  margin-right: 10px;
}

.footer .footer-contact-btn {
  display: inline-block;
  background-color: var(--evergreen-green-shade);
  color: var(--cloud-white);
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  margin-top: 10px;
  transition: background-color 0.3s, box-shadow 0.3s;
  width: 100%; /* Make button responsive */
  max-width: 250px; /* Limit button width */
  box-sizing: border-box; /* Prevent overflow */
}

.footer .footer-contact-btn:hover {
  background-color: var(--evergreen-green);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer .footer-social {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--evergreen-green-shade);
  color: var(--cloud-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  text-align: center;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.footer .social-icon:hover {
  background-color: var(--evergreen-green);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.footer .social-icon:focus {
  outline: 2px solid var(--saffron);
  outline-offset: 4px;
}

.footer-bottom {
  background-color: var(--frost-gray);
  color: var(--highlight-color);
  padding: 15px 0;
  font-size: 12px;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

.footer-bottom a {
  color: var(--highlight-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--saffron);
  text-decoration: underline;
}

.footer-bottom .privacypolicy {
  margin-left: 10px;
}
@media (max-width: 768px) {
  .footer .footer-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 15px; /* Prevent overflow on small screens */
  }

  .footer .footer-wrapper-item {
    text-align: center;
    width: 100%; /* Ensure items are full width on small screens */
  }

  .footer .footer-contact-btn {
    width: 100%; /* Make button full width on small screens */
    max-width: none; /* Allow button to take full width on small screens */
  }

  .footer .footer-social {
    justify-content: center;
  }

  .footer .footer-contact li {
    margin-bottom: 5px;
  }

  .footer .footer-links li {
    margin-bottom: 8px;
  }
   .footer-bottom {
    font-size: 13px;
  }

  .footer-bottom a {
    font-size: 14px;
  }
}



.error-success-message-container {
    position: relative;
    max-width: 300px;
    padding: 10px 20px;
    font-size: 16px;
    color: #ffffff;
    border-radius: 5px;
    z-index: 1000;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInDown 0.5s ease-in-out;
    opacity: 1;
    text-align: right;
}

.error-success-message-container.success {
    background-color: #4CAF50; /* Green */
    border: 1px solid #3e8e41;
}

.error-success-message-container.error {
    background-color: #f44336; /* Red */
    border: 1px solid #d32f2f;
}

.error-success-message-container .message-content {
    flex: 1;
    margin-right: 20px;
    text-align: right;
}

.error-success-message-container .close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.error-success-message-container.fade-out {
    animation: fadeOutRight 0.5s forwards;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

#messageDisplay {
    position: fixed;
    top: 10px;
    right: 6px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
}