/* Main stylesheet for Green Donkey */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  touch-action: manipulation;
}

/* Header and Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.main-nav {
  padding: 0 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
}

.logo span {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  background: linear-gradient(
    90deg,
    #4CAF50 0%,
    #66BB6A 25%,
    #81C784 50%,
    #66BB6A 75%,
    #4CAF50 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flowingGreen 3s ease-in-out infinite;
  position: relative;
  filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.3));
  transition: filter 0.3s ease;
}

.logo span:hover {
  filter: drop-shadow(0 0 12px rgba(76, 175, 80, 0.5));
}

@keyframes flowingGreen {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-btn {
  background: transparent;
  border: 2px solid #4CAF50;
  color: #4CAF50;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.nav-btn:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.nav-btn:active {
  transform: translateY(0);
}

/* Ensure anchor nav buttons align properly with button nav buttons */
.nav-btn.privacy-btn {
  display: inline-block;
  text-decoration: none;
  vertical-align: top;
  line-height: 1;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 5px;
  padding: 0;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 1);
  color: #333;
  transform: rotate(90deg);
}

.modal-body {
  padding: 35px 25px 25px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 175, 80, 0.3) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.3);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 175, 80, 0.5);
}

.modal-body h2 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 26px;
  text-align: center;
  font-weight: bold;
}

.about-content h3 {
  color: #4CAF50;
  margin: 20px 0 12px 0;
  font-size: 18px;
}

.about-content p {
  margin: 0 0 12px 0;
  line-height: 1.5;
  color: #555;
  font-size: 14px;
}

.about-content ul {
  margin: 12px 0;
  padding-left: 18px;
}

.about-content li {
  margin: 6px 0;
  line-height: 1.4;
  color: #555;
  font-size: 14px;
}

.contact-info {
  margin-top: 20px !important;
  padding: 16px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  color: #4CAF50 !important;
  font-size: 14px;
}

main.content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 80px; /* space for footer */
  min-height: calc(100vh - 80px);
  margin-top: 60px; /* Account for fixed header */
}

.image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
}

.centered-image {
  max-width: 100%;
  max-height: calc(100vh - 180px); /* reserve space for speech and footer */
  object-fit: contain;
  display: block;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

footer.site-footer {
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  color: #333333;
  background-color: #f1f1f1;
  width: 100%;
  position: fixed;
  bottom: 0;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

.speech-bubble {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 2px solid #333333;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 14px;
  max-width: 90%;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
  line-height: 1.4;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

/* Mobile-first responsive design */
@media (max-width: 767px) {
  .nav-container {
    height: 55px;
  }
  
  .logo span {
    font-size: 16px;
  }
  
  .nav-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
  
  main.content {
    padding: 15px 8px 70px;
    min-height: calc(100vh - 70px);
    margin-top: 55px;
  }
  
  .centered-image {
    max-height: calc(100vh - 140px);
    max-width: 95%;
    min-height: 200px; /* Ensure image has minimum presence */
  }
  
  .speech-bubble {
    top: 8%;
    font-size: 13px;
    padding: 10px 16px;
    max-width: 85%;
    border-radius: 18px;
    min-width: 200px; /* Ensure readable width on mobile */
  }
  
  .speech-bubble::after {
    left: 25px;
    border-width: 8px 8px 0;
  }
  
  footer.site-footer {
    padding: 12px 8px;
    font-size: 12px;
  }
  
  .modal-content {
    margin: 20px;
    max-height: 85vh;
    border-radius: 12px;
  }
  
  .modal-body {
    padding: 30px 20px 20px;
  }
  
  .modal-body h2 {
    font-size: 22px;
    margin-bottom: 18px;
  }
  
  .about-content h3 {
    font-size: 16px;
    margin: 18px 0 10px 0;
  }
  
  .about-content p,
  .about-content li {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .contact-info {
    padding: 14px;
    font-size: 13px;
  }
  
  /* Mobile eye positioning adjustments */
  .closed-eye.left {
    top: 42%;
    left: 32%;
  }
  
  .closed-eye.right {
    top: 42%;
    right: 32%;
  }
}

@media (max-width: 480px) {
  .main-nav {
    padding: 0 15px;
  }
  
  .nav-container {
    height: 50px;
  }
  
  .logo span {
    font-size: 15px;
  }
  
  .nav-btn {
    padding: 5px 14px;
    font-size: 12px;
  }
  
  main.content {
    padding: 10px 5px 65px;
    margin-top: 50px;
  }
  
  .centered-image {
    max-height: calc(100vh - 130px);
    max-width: 98%;
    min-height: 180px;
  }
  
  .speech-bubble {
    top: 6%;
    font-size: 12px;
    padding: 8px 14px;
    max-width: 80%;
    border-radius: 16px;
    min-width: 180px;
  }
  
  .speech-bubble::after {
    left: 20px;
    border-width: 7px 7px 0;
  }
  
  .modal-content {
    margin: 15px;
    border-radius: 6px;
    max-height: 80vh;
  }
  
  .modal-body {
    padding: 25px 15px 15px;
  }
  
  .modal-body h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .about-content h3 {
    font-size: 15px;
    margin: 16px 0 8px 0;
  }
  
  .about-content p,
  .about-content li {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .contact-info {
    padding: 12px;
    font-size: 12px;
  }
  
  /* Small mobile eye positioning adjustments */
  .closed-eye.left {
    top: 40%;
    left: 30%;
  }
  
  .closed-eye.right {
    top: 40%;
    right: 30%;
  }
}

@media (max-width: 360px) {
  .nav-container {
    height: 45px;
  }
  
  .logo span {
    font-size: 14px;
  }
  
  .nav-btn {
    padding: 4px 12px;
    font-size: 11px;
  }
  
  main.content {
    margin-top: 45px;
  }
  
  .centered-image {
    max-height: calc(100vh - 120px);
    min-height: 160px;
  }
  
  .speech-bubble {
    font-size: 11px;
    padding: 6px 12px;
    min-width: 160px;
  }
  
  /* Very small mobile eye positioning adjustments */
  .closed-eye.left {
    top: 38%;
    left: 28%;
  }
  
  .closed-eye.right {
    top: 38%;
    right: 28%;
  }
}

@media (min-width: 768px) {
  .speech-bubble {
    top: 10%;
    font-size: 16px;
    max-width: 300px;
    padding: 15px 25px;
  }

  .speech-bubble::after {
    left: 40px;
  }

  .centered-image {
    max-height: calc(100vh - 160px);
  }

  main.content {
    padding: 40px 20px 80px;
  }
  
  /* Desktop eye positioning adjustments */
  .closed-eye.left {
    top: 47%;
    left: 37%;
  }
  
  .closed-eye.right {
    top: 47%;
    right: 37%;
  }
}

@media (min-width: 1024px) {
  .centered-image {
    max-height: calc(100vh - 140px);
  }
  
  .speech-bubble {
    font-size: 18px;
    max-width: 350px;
    padding: 18px 30px;
  }
  
  /* Large desktop eye positioning adjustments */
  .closed-eye.left {
    top: 48%;
    left: 38%;
  }
  
  .closed-eye.right {
    top: 48%;
    right: 38%;
  }
}


