#greeting {
  margin: 0;
  padding: 8px 4px 2px 4px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

#dateMini {
  margin: 0;
  padding: 2px 4px 8px 4px;
  color: var(--secondary-color);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
}

/* Main Content */
#main-wrapper {
  flex: 1;
  display: grid;
  flex-direction: column;
  gap: var(--section-gap);
  padding: var(--outer-padding);
  max-height: calc(100vh - var(--header-height) - var(--outer-padding)*2);
  width: min(1200px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

body.has-banner #main-wrapper{
  max-height: calc(100vh - var(--header-height) - var(--outer-padding)*2 - var(--banner-height));
}
/* Banner */
.banner {
  background: var(--palette-alertTeal);
  margin: 0 16px;
  color: var(--palette-offBlack);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  height: var(--banner-height);
  display: none;
  font-size: 1.25em;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.banner.visible {
  display: block;
}

/* Slideshow Container */
#slideshow {
  position: relative;
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(220px, 30vh, 360px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

#slides {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-bottom: 8px;
}

/* Slides */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-content {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  height: 100%;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  text-align: center;
}

.slide-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0;
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 4px;
}

.slide-subtitle {
  margin: 0;
  text-align: center;
  color: var(--secondary-color);
}

/* Navigation Buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 95%;
  transform: translateY(-50%);
  padding: 0 0 4px 0;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.3rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease;
  z-index: 5;
}

.prev { left: 16px; }
.next { right: 16px; }

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Dots */
.dot-container {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: inline-flex;
  border: none;
  padding: 0;
  appearance: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.dot.active,
.dot:hover {
  background-color: var(--alert-color);
  transform: scale(1.2);
}

/* Bottom Grid */
.bottom-grid {
  display: grid;
  min-height: 0;
  max-height: 100%;
  gap: var(--card-gap);
  grid-template-rows: 1fr auto;
  font-size: .75em;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
}

.card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  text-align: left;
}

.card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 100%;
}

.bottom-grid .card h2 {
  font-size: 1.25rem;
  text-align: center;
}

#homeCard h2 {
  margin-bottom: 0;
}

#statusBox {
  display: flex;
  justify-content: space-evenly;
}

.two-column-layout {
  display: grid;
  gap: var(--section-gap);
  height: 100%;
}

.two-column-layout h2 {
  font-size: 1.15em;
}

.two-column-dinner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.two-column-groceries {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 24px;
  background: var(--secondary-color);
  color: #1c202b;
  border-radius: 16px;
}

.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.events-list li,
.birthdays-list li {
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  background: var(--bg-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.forecast-grid {
  flex: 1 1 auto;
  display: grid;
  gap: var(--card-gap);
  align-items: stretch;
  justify-items: stretch;
  min-height: 0;
  height: 100%;
}

.forecast-card {
  background: var(--bg-color);
  border-radius: 14px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  text-align: center; 
  justify-content: space-around;
  align-items: center;
}

.forecast-date {
  font-weight: bold;
  font-size: 1.5em;
}

.forecast-icon {
  font-size: clamp(3rem, 6vw, 5rem);
  
}

.forecast-temps {
  display: flex;
  gap: 0.65rem;
  font-size: 600;
  flex-direction: column;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0;
}

.word-term {
  text-align: center;
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}

.word-pos {
  font-size: 0.45em;
  font-style: italic;
}

.word-definition {
  text-align: center;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  margin: 0 auto;
  max-width: 42ch;
}

.card-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
  border-radius: 12px;
}

.bottom-grid img {
  max-width: 80%;
  max-height: 80%;
  object-fit: scale-down;
  border-radius: 12px;
}

#paintcanvas {
  margin-bottom: 12px;
  justify-content: top;
  align-items: top;
  border-radius: 20px;
  max-width: 100%;
  max-height: auto;
  overflow: hidden;
}
#paintBody {
  padding: 12px;
  margin: 0;
  justify-content: top;
  align-items: center;
  border-radius: 20px;
  max-width: 100%;
  max-height: fit-content;
  overflow: hidden;
}

#paintBody #paint_erase {
  padding: 2px 8px;
  background-color: #f5a19d;
  color: var(--palette-darkGrey);
  border-right: 2px solid #de6963;
  border-bottom: 2px solid #de6963;
  border-left: 1px solid #fce4e2;
  border-top: 1px solid #fce4e2;
}

#paintBody #paint_clear {
  padding: 2px 8px;
  background-color: var(--palette-darkGreen);
  color: var(--palette-offWhite);
  border-right: 2px solid var(--palette-offBlack);
  border-bottom: 2px solid var(--palette-offBlack);
  border-left: 1px solid var(--palette-liteGrey);
  border-top: 1px solid var(--palette-liteGrey);
}

/* Responsive views */
@media (max-width: 600px) {
  .page-container { overflow-x:hidden; }
  .bottom-grid { display:none; }
  .forecast-grid { grid-template-rows: repeat(5, minmax(0, 1fr)); }
  .forecast-card { flex-direction: row;  }
  .two-column-layout { grid-template-rows: 2fr 3fr; }
  .two-column-groceries {flex-wrap: wrap; }
}

@media screen and (min-width: 800px) {
  * { font-size: 1.05em; }
  #main-wrapper { grid-template-columns: 72% 25%; width: 90%; justify-content: center; }
  .banner { margin: 16px 15%; }
  .prev, .next { display: none; }
  .forecast-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .forecast-card { flex-direction: column; font-size: 1.5rem; }
  .slide-content { margin: 4px; }
  .two-column-layout { grid-template-columns: 3fr 2fr; }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
}
