
/* Load Poppins for body text and Fredoka for headings */

/* General Text Font Styling */
body {
  font-family: 'Poppins', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  background: #fff;
  color: #222;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  margin: 0;
}

a {
  text-decoration: none;
}

.center-heading {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* --- Fancy Deluxe Centered Headings --- */
.gradient-heading {
  text-align: center;
  font-weight: bold;
  font-size: 2.5rem;
  background: linear-gradient(to right, #91c788, #11998e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.glow-heading {
  text-align: center;
  font-weight: bold;
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #11998e;
  text-shadow: 2px 2px 8px rgba(145, 199, 136, 0.6);
}

.gradient-strip-heading {
  text-align: center;
  font-weight: bold;
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: linear-gradient(to right, #91c788, #11998e);
  color: white;
  border-radius: 8px;
  display: inline-block;
}



/* Header Fix */
header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  }

/* Divider Bar */
.divider {
  margin-top: 0.5rem;
  height: 6px;
  background: linear-gradient(to right, #91c788, #11998e);
}



/* Logo and Title */
header img {
  height: 35px;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(to right, #91c788, #11998e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Menu Links Hover Effect */
.menu a:hover {
  background-color: #e0f0e9;
  border-radius: 0.5rem;
}

/* Carousel Section */
.carousel {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.carousel img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel img.active {
  opacity: 1;
  z-index: 1;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Main Content */
main {
  padding: 2rem;
  text-align: center;
}
/* Chart Style */
canvas#readingChart {
  max-height: 100%;
}

/* --- Star rating (L→R fill + tooltips) --- */
.rating {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.rating label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.rating input[type="radio"] {
  display: none; /* keep radios for form value, but hide them */
}

.rating .star {
  position: relative;            /* needed for tooltip */
  font-size: 30px;
  line-height: 1;
  color: #ccc;                   /* base (unlit) */
  transition: color .2s, text-shadow .2s, transform .05s;
  user-select: none;
}

/* lit state (hover or selected) */
.rating .star.is-lit {
  color: gold;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

/* optional: a tiny press effect */
.rating .star:active { transform: scale(0.98); }

/* tooltip bubble */
.rating .star::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #fffbe6;
  color: #333;
  border: 1px solid #ccc;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.rating .star:hover::after {
  opacity: 1;
}


/* Footer */
footer {
  background: linear-gradient(to right, #b5e7a0, #11998e);
  padding: 1rem;
  text-align: center;
  color: white;
}
