body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #E0F7FA, #4FC3F7);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 120px;
  transition: background-color 0.3s ease;
  margin: 0;
  overflow-x: hidden;
}

body.dark-mode {
  background: linear-gradient(135deg, #1f2937, #374151);
}

body.dark-mode .text-gray-300 {
  color: #d1d5db !important;
}

body.dark-mode .text-gray-200 {
  color: #e5e7eb !important;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #B3E5FC, #0288D1);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.language-selector {
  position: relative;
}

.lang-toggle {
  transition: background-color 0.5s ease, transform 0.3s ease-in-out;
}

.lang-toggle:hover {
  transform: scale(1.05);
}

.lang-menu {
  min-width: 150px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: top right;
}

.lang-menu.show {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.lang-menu.hidden {
  opacity: 0;
  transform: translateY(-10px);
  display: none;
}

.lang-option {
  transition: background-color 0.3s ease;
}

.flag {
  font-size: 1.2rem;
}

.container {
  max-width: 480px;
  width: 90%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  margin-top: 5rem;
  margin-bottom: 2rem;
  animation: slideIn 1.0s ease forwards;
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

.card {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.answer.yes {
  color: #22c55e;
  text-shadow: 0 0 20px #22c55e;
}

.answer.no {
  color: #ef5350;
  text-shadow: 0 0 20px #ef5350;
}

.answer.maybe {
  color: #f4d03f;
  text-shadow: 0 0 20px #f4d04f;
}

.gif-container {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.gif-container img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
  display: block;
}

.gif-container img[src=""] {
  display: none;
}

.gif-container:hover img {
  transform: rotate(5deg) scale(1.05);
}

.explanation {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.footer-sticky {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #B3E5FC, #0288D1);
  box-shadow: 0 -3px 5px rgba(0,0,0,0.3);
  padding: 0.6rem 1.2rem;
  z-index: 10;
  animation: slideUpFade 1s ease forwards;
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 100%;
}

.btn-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 0.5rem 1rem;
}

.btn-footer:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  background-color: #1e90ff;
}

.animate-pulse {
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.toast {
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 520px) {
  .top-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .date-container, .location-container {
    text-align: center;
  }
  .footer-content {
    justify-content: center;
  }
  .container {
    width: 95%;
    padding: 1rem;
  }
}