/* Base */

:root {
    background-color: var(--color-bg);
    transition: background-color 0.5s ease;
  --color-bg: #ffffff;
  --color-foreground: #01020a;
  --color-primary: #ea7a17;
  --color-muted: rgba(245, 247, 255, 0.7);
  --radius: 10px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  color: var(--color-foreground);
  padding: 0 50px 50px;
}

/* Loader */

.app-shell {
  transition: opacity 0.25s ease;
}

.app-shell-loading {
  opacity: 0;
}

#app-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#app-loader.is-hidden {
  opacity: 0;
  display: flex;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner-1 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.loader-spinner-1 span {
  display: inline-block;
  transform-origin: center;
  animation: loader-emoji-cycle 1.8s infinite ease-in-out;
}

.loader-spinner-1 span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-spinner-1 span:nth-child(3) {
  animation-delay: 0.3s;
}

.loader-spinner-1 span:nth-child(4) {
  animation-delay: 0.45s;
}

.loader-spinner-1 span:nth-child(5) {
  animation-delay: 0.6s;
}

.loader-spinner-1 span:nth-child(6) {
  animation-delay: 0.75s;
}

.loader-spinner-2 {
  display: flex;         /* This is the missing piece! */
  font-size: 0.8rem;
  align-items: center;   /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  text-align: center;    /* Backup for older browsers */
  min-height: 1.5rem;    /* Ensures there's space to center within */
}

@keyframes loader-emoji-cycle {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.9);
    filter: saturate(0.8);
  }

  50% {
    opacity: 1;
    transform: translateY(-0.18rem) scale(1.18);
    filter: saturate(1.2);
  }
}

/* Season */

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  gap: 1rem;
}

.season-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.season-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 400px;
    gap: 0.4rem;
}

#season-pic {
  font-size: 2.5rem;
  padding-right: 1rem;
}

#season-title {
    font-size: 1.5rem;
}

#season-caption {
    color: gray;
    font-size: 0.85rem;
    font-style: italic;
}

#season-number {
    color: rgb(172, 173, 175);
    font-size: 0.8rem;
}

/* Months */

.months-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
}

.month-title {
    font-weight: bold;
    font-size: 1.2rem;
    width: 100%;
    text-align: left;
    align-self: flex-start;
    margin-top: 15px;
    color: #CC5500;
}

.paksha {
    font-size: 0.6rem;
    width: 100%;
    text-align: left;
    align-self: flex-start;
    margin-top: 10px;
}

/* Dates */

.dates-grid {
    display: grid;
    gap: 0.25rem;
    width: 100%;
    padding: 0.25rem 0;
}

/* Ensure month-component has spacing between each month block */
month-component {
  display: block;
  margin-bottom: 50px;
}


/* Festivals */

.festivals-block {
    margin-top: 10px;
    margin-left: 40px;
}

#festivals-title {
    font-weight: bold;
    font-size: 1.4rem;
    width: 100%;
    /* align-self: flex-start; */
    margin-top: 15px;
    color: #00a4a7;
}

#festivals {
  column-count: 2;
  column-gap: 1rem;
}

.festival-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  break-inside: avoid;
  margin-bottom: 0.75rem;
  padding-right: 0.25rem;
  padding-bottom: 1rem;
}

.festival-date {
  font-size: 0.8rem;
  color: #8f959e;
  font-weight: lighter;
  font-family: 'Courier New', Courier, monospace;
}

.festival-name {
  /* color: #1f1002; */
  font-size: medium;
  font-size: 0.9rem;
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}


/* Ads */
.ads-block {
    margin-top: 10px;
    margin-left: 40px;
}

#ads-title {
    font-weight: bold;
    font-size: 1.4rem;
    width: 100%;
    /* align-self: flex-start; */
    margin-top: 15px;
    color: #babbbb;
}


/* Footer */
footer {
  font-size: x-small;
  font-weight: lighter;
  color: #bebebe;
  margin: 0 auto;
  padding-top: 250px;
}