* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
}

.title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.5rem;
}

.modal-kiwi {
  margin-bottom: 2rem;
}


.search-container {
  text-align: center;
  padding: 2rem;
  padding-bottom: 3.5rem;
}

.logo {
  margin-bottom: 2rem;
}

.logo svg {
  animation: bounce 2s ease-in-out infinite;
}

.kiwi-body {
  animation: breathe 3s ease-in-out infinite;
}

.kiwi-eye {
  animation: blink 4s linear infinite;
}

.search-box {
  display: flex;
  background: white;
  border-radius: 24px;
  padding: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 600px;
  max-width: 90vw;
  margin: 0 auto;
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
}

#search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #757575;
  transition: color 0.3s;
}

#search-button:hover {
  color: #4285f4;
}

.suggestions {
  background: white;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 1rem auto;
  text-align: left;
}

.suggestion-item {
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-item.selected {
  background-color: #f5f5f5;
}

.suggestion-item:hover {
  background-color: #f5f5f5;
}

.suggestion-icon {
  color: #757575;
}

.suggestion-item strong {
  color: #1a73e8;
}

.ai-suggestion {
  background-color: #f8f9fa;
  border-left: 3px solid #4285f4;
}

.ai-suggestion:hover {
  background-color: #f0f4f8;
}

.ai-suggestion .suggestion-icon {
  color: #4285f4;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes blink {
  0%, 96%, 100% { transform: scaleY(1); }
  98% { transform: scaleY(0.1); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.search-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.search-loader {
  position: relative;
  width: 200px;
  height: 200px;
}

.searching-kiwi {
  width: 100%;
  height: 100%;
  transform-origin: center;
  animation: searchBounce 1s infinite;
}

.searching-kiwi .kiwi-body {
  animation: searchBreathe 1s infinite;
}

.searching-kiwi .kiwi-eye {
  animation: searchScan 1s infinite;
}

.searching-kiwi .magnifying-glass {
  transform-origin: 80% 20%;
  animation: searchSwing 1s infinite;
}

.search-text {
  position: absolute;
  top: 60%;
  font-size: 1.2rem;
  color: #666;
  margin-top: 20px;
}

@keyframes searchBounce {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes searchBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes searchScan {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

@keyframes searchSwing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-15deg); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.about-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  background: white;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  background: white;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.about-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-container h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 2rem;
}

.about-kiwi {
  margin: 2rem 0;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.features {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.features li {
  font-size: 1.3rem;
  background: white;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.waving-wing {
  transform-origin: 20% 50%;  
  animation: wave 2s ease-in-out infinite;  
}

.waving-body {
  animation: happyBounce 2s ease-in-out infinite;
}

.happy-eye {
  animation: happyBlink 4s linear infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-40deg); }  
  75% { transform: rotate(15deg); }   
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Ensure it's above other content */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Centers the modal */
  width: 80%;
  max-width: 500px; /* Adjust as needed */
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
}

.modal-content {
  position: relative;
  text-align: center;
}

/* Ensure the close button is positioned correctly */
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}


.modal.show {
  display: flex;
  opacity: 1;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem 0rem 2rem 2rem;
  padding-right: 4rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.watching-kiwi {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  transform: scale(0.6);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal.show .watching-kiwi {
  opacity: 1;
}

.tracking-eye {
  transition: transform 0.1s ease-out;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

.close-button:hover {
  color: #333;
}

.modal-greeting {
  font-size: 2.5rem;
  color: #333;
  margin-top: 1rem;
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.modal-kiwi {
  animation: popIn 0.5s ease-out both;
}

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content-text {
  margin-top: 2rem;
  color: #333;
  line-height: 1.6;
}

.modal-content-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
}

.feature h3 {
  color: #2196F3;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.fun-fact {
  background: #e3f2fd;
  padding: 1rem;
  border-radius: 8px;
  font-style: italic;
  margin-top: 2rem;
}

.modal.show .modal-content-text {
  animation: fadeInUp 0.5s ease-out 0.5s both;
}

@keyframes eatSearchBar {
  0% { 
    transform: translate(0, 0) rotate(0deg); 
    scale: 1;
  }
  25% { 
    transform: translate(0, 50px) rotate(10deg); 
    scale: 1.2;
  }
  45% { 
    transform: translate(0, 100px) rotate(-5deg); 
    scale: 1.4;
  }
  50% { 
    transform: translate(0, 100px) rotate(0deg); 
    scale: 1.4;
  }
  75% { 
    transform: translate(0, 50px) rotate(-10deg); 
    scale: 1.2;
  }
  100% { 
    transform: translate(0, 0) rotate(0deg); 
    scale: 1;
  }
}

@keyframes searchBarDisappear {
  0% { 
    transform: scale(1);
    opacity: 1;
  }
  45% { 
    transform: scale(0.5);
    opacity: 0.5;
  }
  50% { 
    transform: scale(0);
    opacity: 0;
  }
  55% { 
    transform: scale(0.2);
    opacity: 0.2;
  }
  100% { 
    transform: scale(1);
    opacity: 1;
  }
}

.logo.eating {
  animation: eatSearchBar 1.5s ease-in-out;
}

.search-box.being-eaten {
  animation: searchBarDisappear 1.5s ease-in-out;
}

.kiwi-beak {
  transform-origin: -70px 0;
}

@keyframes chomp {
  0%, 100% { transform: rotateX(0deg); }
  45%, 55% { transform: rotateX(30deg); }
}

.eating .kiwi-beak {
  animation: chomp 1.5s ease-in-out;
}

.results-page {
  min-height: 100vh;
  background: #f8f9fa;
}

.results-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
}

.back-to-search {
  display: inline-block;
  margin-right: 1rem;
  vertical-align: middle;
}

.mini-kiwi {
  transition: transform 0.2s;
}

.back-to-search:hover .mini-kiwi {
  transform: scale(1.1);
}

.results-search-box {
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0.5rem;
  width: 600px;
  max-width: calc(100% - 100px);
}

.results-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.5rem;
  font-size: 1rem;
}

.search-type-tabs {
  margin-top: 1rem;
  border-bottom: 1px solid #dfe1e5;
}

.tab {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #5f6368;
  text-decoration: none;
  margin-right: 1rem;
  border-bottom: 3px solid transparent;
}

.tab:hover {
  color: #1a73e8;
}

.tab.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

.results-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-result {
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-result h3 {
  margin-bottom: 0.5rem;
}

.search-result h3 a {
  color: #1a0dab;
  text-decoration: none;
}

.search-result h3 a:hover {
  text-decoration: underline;
}

.result-url {
  color: #006621;
  margin-bottom: 0.5rem;
}

.image-result {
  display: inline-block;
  margin: 0.5rem;
  cursor: pointer;
}

.image-result img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}

.image-title {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.video-result {
  display: flex;
  margin-bottom: 2rem;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.video-thumbnail {
  position: relative;
  margin-right: 1rem;
}

.video-thumbnail img {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

.duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 0.8rem;
}

.news-result {
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.news-source {
  color: #5f6368;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.images-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

@media (max-width: 768px) {
  .results-search-box {
    width: calc(100% - 60px);
  }
  
  .video-result {
    flex-direction: column;
  }
  
  .video-thumbnail {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .video-thumbnail img {
    width: 100%;
  }
}

.donate-button {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  border-radius: 20px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.donate-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.donate-button svg {
  width: 20px;
  height: 20px;
}

.donate-heart {
  animation: heartbeat 1.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.donate-modal .modal-content {
  max-width: 500px;
  text-align: center;
  padding: 2rem;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.donation-option {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.donation-option:hover {
  border-color: #4285f4;
  transform: translateY(-2px);
}

.donation-option.selected {
  border-color: #4285f4;
  background: #f8f9fa;
}

.donation-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.donation-description {
  font-size: 0.9rem;
  color: #666;
}

.donate-submit {
  background: #4285f4;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.donate-submit:hover {
  background: #2b76f5;
  transform: translateY(-2px);
}

.donate-message {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #666;
}

.donation-kiwi {
  margin: 1rem 0;
}

.donation-kiwi .kiwi-body {
  animation: excited 0.5s ease-in-out infinite;
}

@keyframes excited {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.auth-container {
  position: fixed;
  top: 20px;
  right: 100px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.auth-button {
  padding: 10px 20px;
  background: white;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.auth-button.primary {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
}

.profile-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  border: none;
  padding: 0;
  overflow: hidden;
  border: none;
    padding: 0;
    overflow: hidden;
  }
  
  .profile-button:hover {
    transform: scale(1.1);
  }
  
  .profile-initial {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4285f4;
  }
  
  .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
  }

  .dropdown-item-text {
    padding: 0.5rem 1rem;
    color: #555;
    font-weight: bold;
  }

  .dropdown-item {
    padding: 0.5rem 1rem;
    color: #555;
    transition: background-color 0.2s;
  }

  .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #4285f4;
  }


.profile-button:hover {
  transform: scale(1.1);
}

.profile-initial {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4285f4;
}

.auth-modal .modal-content {
  max-width: 400px;
  padding: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: bold;
  color: #333;
}

.form-group input {
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #4285f4;
  outline: none;
}

.auth-submit {
  background: #4285f4;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-submit:hover {
  background: #2b76f5;
}

.auth-switch {
  margin-top: 1rem;
  text-align: center;
  color: #666;
}

.auth-switch a {
  color: #4285f4;
  text-decoration: none;
  font-weight: bold;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.error-message {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.profile-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  min-width: 200px;
  display: none;
}

.profile-dropdown.show {
  display: block;
  animation: fadeInDown 0.3s ease-out;
}

.profile-info {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

.profile-name {
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.profile-email {
  color: #666;
  font-size: 0.9rem;
}

.profile-menu {
  list-style: none;
  padding: 0;
}

.profile-menu li {
  padding: 0.8rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.profile-menu li:hover {
  background: #f5f5f5;
}

.profile-menu a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

@media (max-width: 768px) {
  .auth-container {
    right: 80px;
    gap: 5px;
  }
  
  .auth-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .donate-button {
    padding: 8px;
  }
  
  .donate-button span {
    display: none;
  }
  
  .about-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer a {
  color: #4285f4;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.footer a:hover {
  color: #2b76f5;
}

#site-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #6a0dad !important; /* Deep purple */
  color: white !important;
  text-align: center;
  padding: 15px 10px;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
  z-index: 10000; /* Ensures it's always on top */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  display: none;
}

#site-banner.show {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

#site-banner span {
  margin: 0 10px;
}

#banner-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  color: #6a0dad;
  border: none;
  padding: 5px 10px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

#banner-close:hover {
  background: #ddd;
}

.site-content {
  margin-top: 0; /* This will be adjusted dynamically */
  transition: margin-top 0.3s ease-out;
}

.result-icon-container {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

body .results-page .search-result .result-icon {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  object-fit: cover;
  vertical-align: middle;
}


h1, h2, h3, h4, h5, h6 {
  color: #333;
  font-family: 'Arial', sans-serif;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
}

h3 {
  font-size: 1.75rem;
  font-weight: bold;
}

h4 {
  font-size: 1.5rem;
  font-weight: bold;
}

h5 {
  font-size: 1.25rem;
  font-weight: bold;
}

h6 {
  font-size: 1rem;
  font-weight: bold;
}

a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0c47a1;
  text-decoration: underline;
}

blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: #666;
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

ul, ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

ul li, ol li {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 0.5rem;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: #d32f2f;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  color: #d32f2f;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.search-result h3 a {
  font-size: 1.3rem; /* Adjust this value as needed */
}

.banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  font-size: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: column;
}
.banner img {
  max-width: 100%;
  height: auto;
}
.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}

.changelog-dropdown {
  position: fixed;
  bottom: 60px; /* just above footer */
  right: 20px;
  background: #333;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
  z-index: 1500;
}

.changelog-dropdown:hover {
  background: #555;
}

.changelog-media {
  margin: 1rem 0;
  text-align: center;
}

.changelog-text {
  text-align: left;
  margin-top: 1rem;
}

/* Modal background overlay */
.modal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1; /* sits behind the modal content */
  border-radius: inherit;
}
/* ========== Changelog overlay & modal (full-screen overlay) ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 100050;               /* big number so it sits above banners/other elements */
  justify-content: center;
  align-items: center;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.show {
  display: flex;
  animation: fadeInOverlay .25s ease forwards;
}

/* modal content box (scrollable body) */
.modal-overlay .modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 80vh;         /* limit height so content scrolls inside */
  overflow-y: auto;
  box-shadow: 0 14px 40px rgba(10,10,10,0.25);
  padding: 28px 32px;
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.9,.3,1), opacity .22s ease;
}

/* animate modal into view */
.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* close button in top-right */
.modal-overlay .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.06);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.modal-overlay .close-button:hover { background: rgba(0,0,0,0.09); color: #111; }

/* media / text inside */
.changelog-media { margin: 12px 0 18px; text-align: center; }
.changelog-text { text-align: left; color: #333; line-height: 1.5; }

/* floating button (ensure visible above footer but under overlay when modal open) */
.changelog-dropdown {
  position: fixed;
  bottom: 60px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  z-index: 1500; /* lower than overlay so overlay covers it when open */
}

/* animations */
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Responsiveness */
@media (max-width: 640px) {
  .modal-overlay .modal-content { padding: 20px; max-height: 86vh; border-radius: 12px; }
  .changelog-dropdown { bottom: 76px; right: 12px; }
}
