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

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(135deg, #0a1628 0%, #001f3f 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 50px;
  color: white;
}

header h1 {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-style: italic;
}

.nav-links {
  margin-top: 20px;
}

.nav-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 10px 25px;
  border: 2px solid white;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
  background-color: white;
  color: #001f3f;
}

.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.quote-card {
  background: white;
  border-radius: 15px;
  border: 2px solid #000000;
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.quote-card::before {
  content: '"';
  font-size: 80px;
  color: #001f3f;
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 1.55rem;
  line-height: 1.8;
  color: #000;
  margin-bottom: 20px;
  padding-left: 40px;
}

.quote-author {
  text-align: right;
  font-size: 1.1rem;
  color: #001f3f;
  font-style: italic;
}

.quote-author::before {
  content: '— ';
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.error {
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #c62828;
}

.error h3 {
  margin-bottom: 10px;
}

.hidden {
  display: none;
}

.no-quotes {
  text-align: center;
  padding: 60px 20px;
  color: white;
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  
  .quote-card {
    padding: 25px;
  }
  
  .quote-text {
    font-size: 1.25rem;
    padding-left: 20px;
  }
  
  .quote-card::before {
    font-size: 50px;
  }
}
