html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.layout {
  font-family: 'Sour Gummy', sans-serif;
  background-color: #eeece9;
  color: #211c84;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.page {
  flex: 1 0 auto;
}

section {
  scroll-snap-align: start;
}

section:nth-of-type(1) {
  background-color: #9ecad6;
}

section:nth-of-type(2) {
  background-color: #a1c4fd;
}

section:nth-of-type(3) {
  background-color: #c2e9fb;
}

.hero {
  display: flex;
  flex-direction: column;
}

section {
  min-height: 100vh; /* full screen height */
  display: flex; /* use flexbox for centering */
  align-items: center; /* center vertically */
  justify-content: center; /* center horizontally */
  padding: 20px; /* breathing space inside */
  box-sizing: border-box; /* include padding in height calc */
}
.buttons-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.intro-quote {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  font-size: 40px;
  max-width: 800px;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-size: 40px;
}

.intro-text-description {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-size: 40px;
}

.main_buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
}

.main__login_button,
.main__register_button,
.main_add_activity,
.main_track_activity {
  background-color: #48b3af;
  width: 100px;
  padding: 15px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  color: white;
}

.main_buttons button:hover {
  background-color: #67c090;
  cursor: pointer;
}

/* Header styling */

:root {
  --nav-fg: #0c2a6a; /* deep navy for text */
  --nav-accent: #18e6a8; /* your logo’s green */
}

.navbar {
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-top: 10px;
  padding: 5px 40px;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .brand img {
  height: 36px;
  display: block;
}

.navbar .links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar a {
  color: var(--nav-fg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
}

#page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Logo styling - round the image as a circular logo */

.logo {
  display: flex;
  flex-direction: row;
}
.logo img {
  margin: 0;
  max-height: 60px;
}

.logo img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.alert {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 20px;
  margin: 10px auto;
  max-width: 600px;
}

/* Navigation links styling */

.nav-links a {
  color: #124170;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #8ebdd4;
}

.tracking li {
  list-style: none;
}

.tracking {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* REGISTER */

.register_container {
  margin-top: 20%;
  display: flex;
  flex-direction: column;
}

.register_container input {
  padding: 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.activity-item {
  width: 100px;
}
.activity-item.selected {
  border: 2px solid #000;
  border-radius: 30px;
  padding: 10px;
  width: 100px;
}
#submit {
  background-color: #ffab5b;
  width: 100px;
  padding: 15px;
  border-radius: 30px;
}

#submit:hover {
  background-color: #ffd65a;
  cursor: pointer;
}
.buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}

button:hover {
  background-color: #fbf3d5;
  cursor: pointer;
}

.all_buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:hover {
  background-color: #fbf3d5;
  cursor: pointer;
}

/* LOGIN */

.login-form div,
.register-form div {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.login-form,
.register-form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 10%;
}

.error-messages {
  margin-top: 10%;
}
input {
  width: 250px;
  padding: 10px;
  border-radius: 30px;
  margin-bottom: 10px;
}

/* Tracking  */

.tracking-page {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 40px;
}

.tracking-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tracking-existing-activities {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.tracking-container li {
  list-style: none;
  margin-bottom: 10px;
}

.prev-next-nav {
  margin-bottom: 5px;
  display: none;
}
.prev-next-nav:hover {
  transform: scale(1.1);
  cursor: pointer;
}
.cal-title {
  margin-top: -20px;
}
.new_activity_action {
  margin-top: 15px;
  margin-bottom: 10px;
}
.new_activity_action a:hover {
  background-color: #a8bba3;
}

.new_activity_action a {
  text-decoration: none;
  background-color: #cbdceb;
  padding: 10px;
  border-radius: 20px;
}

.chosen-activity-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-top: -80px;
  max-width: 400px;
}

.month-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding-left: 30px;
  padding-right: 30px;
}

/* Container that holds all day boxes */
.calendar-container {
  list-style: none;
  padding: 10px;
  width: 800px;
  margin-top: 3%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Months Nav */
.month-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: -20px;
}
.month-nav a {
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #cbdceb;
  border-radius: 10px;

  text-decoration: none;
  font-size: 14px;
  color: #333;
}
.month-nav a.active {
  background: #211c84;
  color: #fff;
  font-weight: 600;
}
.month-nav .divider {
  opacity: 0.5;
}

.month-nav a:hover {
  transform: scale(1.1);
  background-color: #6d94c5;
}
/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 60px); /* 7 columns */
  gap: 15px;
  justify-content: center;
  margin: 6px 0 18px;
  padding: 0;
  list-style: none;
}

.weekday-row li {
  font-weight: 600;
  text-align: center;
  opacity: 0.8;
}

/* Day cells */

:root {
  --ink: #afacac;
  --rough-fill: #9fd3f6;
}

.calendar-box {
  position: relative;
  height: 80px;
  width: 80px;
}

.calendar-box:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.calendar-box .sketch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.calendar-box > *:not(.sketch) {
  position: relative;
  z-index: 1;
}

.calendar-box.is-selected {
  border-radius: 6px;
}

.activity-pill.is-selected {
  border-radius: 30px;
  padding: 5px;
}

/* Icons */

.errors {
  color: #b00020;
  font-size: 0.9rem;
  margin-top: 4px;
}

.error-messages {
  color: #b00020;
  font-size: 1rem;
  margin-top: 10px;
}
/* Icon picker styles */
.new-activity-container {
  margin-top: 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.icon-picker {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  max-width: 800px;
  padding: 40px;
  gap: 12px;
}

.icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

button.icon-choice {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.icon-option:hover {
  border-color: #ccc;
}

.icon-option input {
  display: none; /* hide radio button */
}

.icon-option img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

.icon-option span {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* highlight selected */
.icon-option input:checked + img {
  border: 2px solid #25dd14;
  border-radius: 8px;
}
.icon-grid {
  display: flex;
  max-width: 600px;
  justify-content: space-around;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 10px;
}
.icon-choice img {
  gap: 20px;
  padding: 10px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  cursor: pointer;
  width: 30px;
  height: 30px;
}
.icon-choice.selected {
  outline: 2px solid #6cf;
}

/* Day icon layout */
.calendar-box {
  position: relative;
}
.day-icons {
  position: absolute;
  top: 10px;
  left: 15px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: calc(100% - 8px);
}

/* Icon size + look */
.day-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
}

.day-number {
  position: relative;
  top: 10px;
  left: 14px;
  color: #000;
  background-color: #8ab3d6;
  font-size: 10px;
  padding: 5px;
  border-radius: 50%;
}

.day-icons img.day-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Optional: selected pill styling */
.activity-pill.is-selected {
  outline: 2px solid;
  border-radius: 999px;
  background-color: #c4ccd4;
}

.activity-pill {
  position: relative;
  padding-right: 30px; /* room for the X */
  background-color: #ebd9d1;
  padding: 10px;
  border-radius: 30px;
}
.activity-pill:hover {
  cursor: pointer;
  background-color: #a8bba3;
  padding: 10px;
  border-radius: 30px;
}

.activity-pill:hover .pill-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pill-delete {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #999;
  background: #222;
  color: #eee;
  cursor: pointer;
  opacity: 0.85;
  display: none;
}

.pill-delete:hover {
  background-color: #445d94;
}

.submit_button {
  margin-top: 5px;
}

/* Footer styling */
.site-footer {
  background: #5d688a;
  color: #fff;
}

.footer-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-top: 20px;
}

.footer-logo {
  max-height: 80px;
  display: block;
}

.footer-logo:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list a {
  color: #f7f4ea;
  text-decoration: none;
}

.link-list a:hover {
  color: #c5cacf;
}
.link-list li {
  margin: 0.25rem 0;
}

.site-footer,
.site-footer p,
.site-footer ul {
  text-align: left;
}

.column-title {
  color: #f5d2d2;
}

/* Responsive Design Breakpoints */
@media (max-width: 320px) {
  .navbar {
    height: 60px;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: -10px;
  }

  .navbar a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    display: none;
  }

  .intro-text,
  .intro-text-description,
  .intro-quote {
    font-size: 24px;
    padding: 10px;
  }

  input {
    width: 100px;
    border-radius: 30px;
    margin-top: 30px;
  }

  .tracking-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    justify-content: center;
    margin: 6px 0 18px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
  }
  .prev-next-nav {
    display: none;
  }

  .icon-grid {
    display: flex;
    max-width: 300px;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
  }

  .weekday-row {
    margin-top: 80px;
    grid-template-columns: repeat(4, 60px);
    display: none;
  }

  .calendar-box {
    position: relative;
    height: 60px;
    width: 60px;
  }

  .chosen-activity-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    margin-top: 80px;
    max-width: 300px;
  }
}

/* ≥ 480px */
@media (320px <= width <= 480px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: -10px;
  }

  .hero h1 {
    font-size: 40px;
  }
  .footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    display: none;
  }

  .site-footer,
  .site-footer p,
  .site-footer ul {
    text-align: center;
  }

  .intro-text,
  .intro-text-description,
  .intro-quote {
    font-size: 24px;
    padding: 10px;
  }
  input {
    width: 100px;
    border-radius: 30px;
    margin-top: 30px;
  }
  .tracking-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    justify-content: center;
    margin: 6px 0 18px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
  }
  .weekday-row {
    margin-top: 80px;
    grid-template-columns: repeat(4, 60px);
    display: none;
  }

  .prev-next-nav {
    display: none;
  }

  .calendar-box {
    position: relative;
    height: 60px;
    width: 60px;
  }

  .chosen-activity-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    margin-top: 80px;
    max-width: 300px;
  }
  .icon-grid {
    display: flex;
    max-width: 300px;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
  }
}

@media (480px <= width <= 767px) {
  .hero h1 {
    font-size: 50px;
    padding: 20px;
  }
  .tracking-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    justify-content: center;
    margin: 6px 0 18px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
  }
  .weekday-row {
    margin-top: 80px;
    grid-template-columns: repeat(5, 60px);
  }

  .calendar-box {
    position: relative;
    height: 60px;
    width: 60px;
  }
  .chosen-activity-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    margin-top: 80px;
    max-width: 300px;
  }
}

/* ≥ 768px (tablet) */
@media (768px <= width <= 1023px) {
}
