/* Import a beautiful font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #228B22 0%, #1a5f1a 100%);
  --secondary-gradient: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
  --accent-gradient: linear-gradient(135deg, #FFD700 0%, #FFC125 100%);
  --warm-gradient: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  --forest-light: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
  --bronze-gold: linear-gradient(135deg, #B8860B 0%, #FFD700 100%);
  --pure-gold: linear-gradient(135deg, #DAA520 0%, #E6CC00 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary-gradient);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated background elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(34, 139, 34, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(184, 134, 11, 0.2) 0%, transparent 50%);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

/* Glassmorphism container */
.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong), 0 0 50px rgba(255, 255, 255, 0.1);
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  background: var(--pure-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
}

#question-text {
  margin-bottom: 2rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: white;
  line-height: 1.6;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

input[type="text"] {
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input[type="text"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

button {
  padding: 1rem 2.5rem;
  background: var(--pure-gold);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

button:active {
  transform: translateY(-1px);
}

#result-message {
  margin-top: 1.5rem;
  color: #ff6b6b;
  font-weight: 500;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.hidden {
  display: none;
}

/* Top navigation bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar .title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: white;
}

.top-bar .title a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.top-bar .title a:hover {
  background: var(--pure-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Content areas */
.content {
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: white;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--pure-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* Notes styling */
#notes p {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  text-align: left;
}

#notes p:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

#notes strong {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

#notes .text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-left: 0.5rem;
}

/* Decorative lines for main app */
.line {
  height: 4px;
  background: var(--pure-gold);
  border-radius: 2px;
  margin: 2rem 0;
  opacity: 0.6;
  transition: all 0.3s ease;
  animation: pulse 3s ease-in-out infinite;
}

.line:nth-child(1) { animation-delay: 0s; }
.line:nth-child(2) { animation-delay: 0.5s; }
.line:nth-child(3) { animation-delay: 1s; }
.line:nth-child(4) { animation-delay: 1.5s; }

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.02); }
}

.line:hover {
  opacity: 1;
  transform: scaleY(1.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  body {
    font-size: 18px; /* Larger base font size */
  }
  
  .top-bar {
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .top-bar .title {
    font-size: 2rem; /* Bigger title on mobile */
  }
  
  .nav-links {
    gap: 2rem;
  }
  
  .nav-links a {
    font-size: 1.2rem; /* Larger nav links */
    padding: 1rem 1.5rem; /* More touch-friendly padding */
  }
  
  .content {
    padding: 3rem 2rem;
  }
  
  .content h1 {
    font-size: 3.5rem; /* Keep large on tablet */
    margin-bottom: 2rem;
  }
  
  .content p {
    font-size: 1.3rem; /* Larger body text */
    line-height: 1.7;
  }
  
  .card {
    padding: 3rem 2.5rem;
    margin: 1.5rem;
    max-width: none; /* Allow full width usage */
    border-radius: 20px;
  }
  
  .card h2 {
    font-size: 3rem; /* Keep large on tablet */
  }
  
  #question-text {
    font-size: 1.3rem; /* Larger question text */
    padding: 2rem;
  }
  
  input[type="text"] {
    padding: 1.5rem;
    font-size: 1.2rem; /* Larger input text */
    margin-bottom: 2.5rem;
  }
  
  button {
    padding: 1.5rem 3rem;
    font-size: 1.2rem; /* Larger button text */
    width: 100%;
  }
  
  #result-message {
    font-size: 1.1rem;
    padding: 1.5rem;
  }
  
  #notes p {
    padding: 2rem;
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  #notes .text {
    font-size: 1.2rem;
  }
  
  .line {
    height: 6px; /* Thicker lines on mobile */
    margin: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 20px; /* Even larger base font on small phones */
  }
  
  .centered {
    padding: 1rem;
  }
  
  .top-bar {
    padding: 2rem 1.5rem;
  }
  
  .top-bar .title {
    font-size: 2.5rem; /* Extra large title on small screens */
  }
  
  .nav-links a {
    font-size: 1.4rem; /* Extra large nav on phones */
    padding: 1.2rem 2rem;
  }
  
  .content {
    padding: 2rem 1.5rem;
  }
  
  .content h1 {
    font-size: 3rem; /* Large but manageable on small screens */
    line-height: 1.1;
  }
  
  .content p {
    font-size: 1.4rem; /* Very readable body text */
    line-height: 1.6;
  }
  
  .card {
    padding: 2.5rem 2rem;
    margin: 1rem;
    border-radius: 16px;
  }
  
  .card h2 {
    font-size: 2.5rem; /* Large but fits well */
    line-height: 1.1;
    margin-bottom: 2.5rem;
  }
  
  #question-text {
    font-size: 1.4rem; /* Very readable question */
    padding: 2rem 1.5rem;
    line-height: 1.5;
  }
  
  input[type="text"] {
    padding: 2rem 1.5rem;
    font-size: 1.3rem; /* Large, easy to type in */
    margin-bottom: 3rem;
    border-radius: 12px;
  }
  
  button {
    padding: 2rem 3rem;
    font-size: 1.3rem; /* Large, easy to tap */
    border-radius: 40px;
  }
  
  #result-message {
    font-size: 1.2rem;
    padding: 2rem;
    line-height: 1.5;
  }
  
  #notes p {
    padding: 2.5rem 2rem;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
  }
  
  #notes strong {
    font-size: 1.3rem;
  }
  
  #notes .text {
    font-size: 1.3rem;
    line-height: 1.6;
  }
  
  .line {
    height: 8px; /* Extra thick lines on phones */
    margin: 3rem 0;
  }
}

/* Extra large phones and small tablets */
@media (max-width: 390px) {
  .card h2 {
    font-size: 2.2rem;
  }
  
  .content h1 {
    font-size: 2.5rem;
  }
  
  .top-bar .title {
    font-size: 2.2rem;
  }
}