/* Mobile-First Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(to bottom, #e0f7fa, #b2ebf2);
  min-height: 100vh;
  padding: 20px 15px;
  color: #333;
  line-height: 1.5;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1a73e8;
  text-align: center;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #1a73e8;
  text-align: center;
}

/* Birthdate Form */
.birthdate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.birthdate-form label {
  font-weight: bold;
}

.birthdate-form input {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.birthdate-form button {
  padding: 12px;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.birthdate-form button:hover {
  background-color: #0d5bba;
}

/* Zodiac Cards Container */
.constellation-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin: 0 auto 30px;
}

.constellation-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  padding: 15px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  aspect-ratio: 2/3;
}

.constellation-card:active {
  transform: scale(0.98);
}

.symbol {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.name {
  font-size: 1rem;
  font-weight: bold;
  color: #1a73e8;
  text-align: center;
  margin-bottom: 8px;
}

.emoji {
  font-size: 1.8rem;
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  border-radius: 10px;
  padding: 25px 20px;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.popup h2 {
  font-size: 1.5rem;
  color: #1a73e8;
  margin-bottom: 15px;
  padding-right: 30px;
}

.popup p {
  font-size: 1rem;
  color: #555;
}

.close-popup {
  background-color: #e53935;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer Styles */
footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

footer a {
  color: #1a73e8;
  text-decoration: none;
}

/* Tablet Styles */
@media (min-width: 600px) {
  .constellation-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
}

/* Desktop Styles */
@media (min-width: 900px) {
  .constellation-container {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1000px;
  }
  
  .constellation-card:hover {
    transform: scale(1.05);
    background-color: #e3f2fd;
  }
}