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

body {
  font-family: Arial, sans-serif;
  background: #f7f3ff;
  color: #222;
  line-height: 1.6;
}

.header {
  position: relative;
  text-align: center;
  padding: 28px 15px;
  background: #6a1b9a;
  color: white;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

.header h1 .site-logo {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  margin-right: 8px !important;
}

.header p {
  font-size: 18px;
}

/* Language selector */
.language-selector {
  position: absolute;
  top: 12px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-selector label {
  font-size: 18px;
}

.language-selector select {
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: white;
  color: #222;
  font-size: 14px;
  cursor: pointer;
}

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

.date-section {
  text-align: center;
  margin-bottom: 20px;
}

.date-section h2 {
  font-size: 22px;
}

.rashi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rashi-card {
  border: none;
  border-radius: 14px;
  padding: 18px 8px;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.rashi-card:hover {
  transform: translateY(-3px);
}

.rashi-card span {
  display: block;
  font-size: 36px;
  margin-bottom: 5px;
}

.rashi-card strong {
  display: block;
  font-size: 18px;
}

.rashi-card small {
  color: #777;
}

.prediction {
  margin-top: 25px;
}

.prediction h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #6a1b9a;
}

.prediction-item {
  background: white;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.prediction-item h3 {
  margin-bottom: 5px;
}

.hidden {
  display: none;
}

footer {
  padding: 20px 14px;
  text-align: center;
  color: #555;
  background: #eee;
  border-top: 1px solid #ddd;
  margin-top: 20px;
  font-size: 14px;
}

footer p {
  margin: 0;
}

.footer-links {
  margin: 0 0 12px;
  line-height: 2;
}

.footer-links a {
  color: #d4af37;
  text-decoration: none;
  margin: 0 5px;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .rashi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header h1 {
    font-size: 24px;
    padding-top: 15px;
  }

  .rashi-card span {
    font-size: 32px;
  }

  .language-selector {
    top: 8px;
    right: 10px;
  }

  .language-selector select {
    font-size: 13px;
    padding: 5px 6px;
  }
}
