* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --highlight-color: #e94560;
  --text-color: #ffffff;
  --text-muted: #b0b0b0;
  --card-bg: rgba(255, 255, 255, 0.1);
  --card-hover: rgba(255, 255, 255, 0.2);
  --border-radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", sans-serif;
  background: linear-gradient(to bottom, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
  min-height: 100vh;
  color: var(--text-color);
  padding: 5px;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Background Container - Now used for individual cards */
.background-container {
  display: none; /* Hidden - we don't need page-wide background */
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start; /* allow auto margins to center calendar */
}

/* Desktop - default styles (no media query needed) */

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  padding: 15px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 15px;
  position: relative;
}

.company-logo {
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.header-top .btn-icon {
  position: absolute;
  right: 0;
}

/* Kontor Display Font */
@font-face {
  font-family: "Kontor Display";
  src: url("assets/fonts/KONTD___.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

header h1 {
  font-family: "Kontor Display", "Barlow Condensed", "Barlow Condensed Fallback",
    sans-serif !important;
  font-size: 3.2rem;
  color: rgb(215, 198, 165);
  text-align: center;
  width: 100%;
  margin: 0;
}

header h1 .year-text {
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", sans-serif !important;
}

.header-controls {
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn-icon {
  background: var(--card-bg);
  border: none;
  color: var(--text-color);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-icon:hover {
  background: var(--card-hover);
  transform: scale(1.05);
}

.btn-close {
  background: transparent;
  border: none;
  color: #000000;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.btn-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.btn-nav {
  background: var(--card-bg);
  border: none;
  color: var(--text-color);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-nav:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.btn-action {
  background: var(--highlight-color);
  border: none;
  color: var(--text-color);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-action:hover {
  background: #d6364f;
  transform: translateY(-2px);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--text-color);
  padding: 10px 15px;
  cursor: pointer;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: var(--highlight-color);
}

/* Calendar Container */
.calendar-container {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 10px;
  box-shadow: var(--shadow);
  /* Vertically center between header and footer */
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(90vw, 1200px);
  align-self: center;
}

.calendar-header {
  text-align: center;
  margin-bottom: 15px;
}

.calendar-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.year-navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(10, 1fr);
  grid-auto-rows: auto;
  gap: 20px !important;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  padding: 24px !important;
  grid-auto-flow: dense;
  align-items: stretch;
  position: relative;
  aspect-ratio: var(--calendar-bg-aspect, 16 / 9);
  background-image: var(--calendar-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.3);
  min-height: clamp(560px, 55vw, 760px);
  box-sizing: border-box;
  border-radius: var(--border-radius);
  overflow: hidden;
  /* Ensure grid fits within background image */
  max-height: 100%;
}

/* iPad breakpoint (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .calendar-grid {
    background-size: cover;
    background-position: center center;
    padding: 18px !important;
    gap: 20px !important;
    min-height: clamp(480px, 60vw, 640px);
  }
}

@media (max-width: 768px) {
  .calendar-container {
    padding: 12px 8px;
    margin-bottom: 20px;
  }

  .calendar-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
    gap: 12px !important;
    max-width: 100%;
    padding: 12px !important;
    min-height: 480px;
    aspect-ratio: 3 / 4;
  }

  .day-card-wide {
    grid-column: span 2;
  }

  .day-card-wide-3 {
    grid-column: span 3;
  }

  .day-card {
    min-height: 60px;
    aspect-ratio: 1;
  }

  .day-card::before {
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    padding: 2px;
    background: repeating-linear-gradient(
      45deg,
      #dc143c 0px,
      #dc143c 8px,
      #ffffff 8px,
      #ffffff 16px
    );
  }
}

/* Removed 480px breakpoint - using only 3 breakpoints (desktop, iPad, mobile) */

.day-card {
  background: transparent;
  border: none;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  aspect-ratio: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Candy cane border - 2D diagonal red and white stripes (border only) */
.day-card::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: var(--border-radius);
  background: repeating-linear-gradient(
    45deg,
    #dc143c 0px,
    #dc143c 12px,
    #ffffff 12px,
    #ffffff 24px
  );
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
  /* Clip to show only the border area, hide the center */
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  padding: 5px;
  box-sizing: border-box;
}

.day-card-wide {
  grid-column: span 2;
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
}

.day-card-wide-3 {
  grid-column: span 3;
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
}

.day-card-tall {
  grid-row: span 2;
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
}

.day-card-merry-christmas {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  background: transparent;
}

.day-card-merry-christmas::before {
  display: none;
}

.day-card-merry-christmas::after {
  display: none;
}

.merry-christmas-text {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  z-index: 2;
  position: relative;
  text-align: center;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .merry-christmas-text {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
}

/* Removed 480px breakpoint */

/* Blur background layer - positioned on top of card background */
.day-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 1;
  pointer-events: none;
  border-radius: var(--border-radius);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(0, 0, 0, 0.8);
}

.day-card.locked::after {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(0, 0, 0, 0.85);
}

.day-card:not(.opened):not(.locked)::after {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(0, 0, 0, 0.8);
}

.day-card:not(.opened):not(.locked):hover::after {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.5);
}

/* Hover effects - only for non-locked days */
.day-card:not(.locked):hover {
  transform: translateY(-5px) scale(1.05);
  background: transparent;
}

.day-card:not(.locked):hover::before {
  background: repeating-linear-gradient(
    45deg,
    #c1121f 0px,
    #c1121f 12px,
    #ffffff 12px,
    #ffffff 24px
  );
}

.day-card:not(.locked):not(.opened):hover::after {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.5);
}

.day-card.opened {
  opacity: 0.3;
  background: transparent;
}

.day-card.opened::after {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
}

.day-card.opened::before {
  background: repeating-linear-gradient(
    45deg,
    rgba(220, 20, 60, 0.3) 0px,
    rgba(220, 20, 60, 0.3) 12px,
    rgba(255, 255, 255, 0.3) 12px,
    rgba(255, 255, 255, 0.3) 24px
  );
  opacity: 1;
}

.day-card.locked {
  cursor: not-allowed;
  opacity: 0.5;
}

.day-card.locked:hover {
  transform: none;
  background: transparent;
  cursor: not-allowed;
}

/* Ensure locked cards have no hover effects */
.day-card.locked:hover::before {
  background: repeating-linear-gradient(
    45deg,
    #dc143c 0px,
    #dc143c 12px,
    #ffffff 12px,
    #ffffff 24px
  );
}

.day-card.locked:hover::after {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.7);
}

/* Blur for days that haven't been opened yet */
.day-card:not(.opened):not(.locked) {
  opacity: 0.7;
}

.day-card:not(.opened):not(.locked):hover {
  opacity: 0.9;
}

.day-number {
  font-size: 4.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

/* Dim the number on opened cards (20% opacity) */
.day-card.opened .day-number {
  opacity: 0.2;
}

/* Day Display Modal */
.day-display {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.day-display[style*="block"] {
  display: flex !important;
}

.day-display.active {
  display: flex;
}

.day-header {
  display: none;
}

.day-content {
  max-width: 1200px;
  width: 100%;
  max-height: calc(100vh - 40px);
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.day-content-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
}

.day-popup-header {
  position: relative;
  padding: 20px 60px 20px 40px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-popup-header h2 {
  font-size: 2rem;
  margin: 0;
  color: #000000;
}

.day-popup-close {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.day-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  min-height: 500px;
  overflow-y: auto;
  box-sizing: border-box;
}

.day-popup-left {
  display: none;
}

.day-text-content {
  color: #000000;
}

.day-text-content .day-message {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #000000;
  white-space: pre-wrap;
  text-align: center;
  max-width: 800px;
  margin-top: 0;
}

.day-popup-center {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.media-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.video-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #000;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.video-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  width: 100%;
  color: inherit;
}

.video-link-thumbnail {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.video-play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-link-card:hover .video-play-icon {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.8);
}

.video-link-label {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--highlight-color);
}

.video-error-text {
  color: #000000;
  font-size: 1rem;
  text-align: center;
}

.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.youtube-watch-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

/* YouTube Thumbnail for non-embeddable videos */
.youtube-thumbnail-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.youtube-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
}

.youtube-thumbnail-link:hover .youtube-thumbnail-wrapper {
  transform: scale(1.02);
}

.youtube-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.youtube-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border-radius: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.youtube-thumbnail-link:hover .youtube-play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.youtube-play-button svg {
  display: block;
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.image-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #000;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio - matches video container */
  height: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--border-radius);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-container.clickable-image-container {
  cursor: pointer;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* Clickable Images */
.clickable-image {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--border-radius);
}

.clickable-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Image Lightbox */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -50px;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.lightbox-close:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(95vh - 80px);
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-footer {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.lightbox-download-btn {
  background: var(--highlight-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lightbox-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background: #c1121f;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: -35px;
    right: -40px;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .lightbox-image {
    max-height: calc(95vh - 100px);
  }

  .lightbox-download-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

.day-popup-right {
  display: none;
}

.day-content-placeholder {
  font-size: 1.2rem;
  padding: 60px 20px;
  color: #666666;
  text-align: center;
}

@media (max-width: 968px) {
  .day-display {
    padding: 16px;
  }

  .day-content {
    max-height: calc(100vh - 32px);
  }

  .day-popup-content {
    padding: 16px;
  }

  .day-text-content .day-message {
    margin-top: 0;
  }

  .day-popup-center {
    padding: 15px;
  }

  .day-popup-header {
    padding: 15px 20px;
  }

  .day-popup-header h2 {
    font-size: 1.5rem;
  }

  .media-container {
    max-width: 100%;
  }
}

@media (max-width: 1180px) {
  .day-content {
    width: 100%;
    max-width: 600px;
    max-height: 75vh;
    margin: auto;
  }

  .day-popup-content {
    min-height: auto;
    padding: 30px;
  }

  .day-popup-header {
    padding: 12px 44px 12px 15px;
  }

  .day-popup-header h2 {
    font-size: 1.25rem;
  }

  .day-text-content .day-date {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .day-text-content .day-message {
    font-size: 1.1rem;
    margin-top: 0;
  }

  .day-popup-center {
    padding: 10px;
  }

  .video-link-thumbnail {
    max-width: 100%;
  }

  .video-play-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .video-link-label {
    font-size: 1rem;
  }

  .media-container {
    max-width: 100%;
  }

  .image-container {
    max-width: 100%;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow);
  color: #000000; /* Ensure all text in modal is black */
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-size: 2rem;
  color: #000000;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #000000; /* Ensure all text in modal body is black */
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  color: #000000; /* Ensure text is black */
}

.setting-item label {
  min-width: 100px;
  font-weight: 500;
  color: #000000;
}

.setting-item input[type="range"] {
  flex: 1;
  min-width: 200px;
}

.setting-item span {
  min-width: 50px;
  text-align: right;
  color: #000000;
}

.debug-section {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  margin-top: 10px;
  color: #000000;
}

.debug-section span {
  color: #000000;
}

.debug-section input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-right: 10px;
}

.debug-input-section {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-top: 10px;
}

.debug-input-section[style*="flex"],
.debug-input-section.show {
  display: flex !important;
}

.debug-input-section label {
  min-width: auto;
  width: 100%;
  color: #000000;
}

.debug-input-section input[type="text"],
.debug-input-section input[type="number"] {
  width: 100%;
  padding: 10px;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: #000000;
  font-size: 1rem;
  margin: 10px 0;
}

.debug-input-section input[type="text"]:focus,
.debug-input-section input[type="number"]:focus {
  outline: none;
  border-color: var(--highlight-color);
  background: #ffffff;
}

.debug-input-section input[type="text"]::placeholder,
.debug-input-section input[type="number"]::placeholder {
  color: #666666;
}

.debug-input-section .btn-action {
  margin-right: 10px;
  margin-top: 5px;
}

.debug-input-section .btn-action:last-child {
  margin-right: 0;
}

.debug-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.debug-buttons .btn-action {
  flex: 1;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
  flex-shrink: 0;
}

footer .btn-link {
  color: #808080;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

footer .btn-link:hover {
  color: #666666;
}

/* Responsive Design */
/* Optimized for larger screens (1366px and above) */
/* Removed conflicting media queries - using only 3 breakpoints */

@media (max-width: 768px) {
  body {
    padding: 10px 5px;
  }

  header {
    padding: 15px;
    margin-bottom: 15px;
  }

  .company-logo {
    max-height: 45px;
  }

  header h1 {
    font-size: 2.3rem;
  }

  .day-number {
    font-size: 1.5rem;
  }

  .day-content {
    padding: 20px;
  }

  .day-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 8px 4px;
  }

  header {
    padding: 12px;
    margin-bottom: 12px;
  }

  .company-logo {
    max-height: 35px;
  }

  header h1 {
    font-size: 1.9rem;
  }

  .day-number {
    font-size: 1.2rem;
  }

  .day-content {
    width: 100%;
    max-width: 500px;
    max-height: 75vh;
  }

  .day-popup-content {
    padding: 16px;
  }

  .day-popup-header {
    padding: 10px 40px 10px 12px;
  }

  .day-popup-header h2 {
    font-size: 1.1rem;
  }

  .day-text-content .day-date {
    font-size: 0.85rem;
  }

  .day-text-content .day-message {
    font-size: 1rem;
    margin-top: 0;
  }

  .day-popup-center {
    padding: 8px;
  }

  .video-play-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .video-link-label {
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.day-card {
  animation: fadeIn 0.5s ease forwards;
}

/* CMS Styles */
.cms-modal-content {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  color: #000000; /* Ensure all text in CMS is black */
}

.cms-controls {
  margin-bottom: 20px;
}

.cms-day-selector {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cms-day-selector label {
  font-weight: 500;
  min-width: 80px;
  color: #000000;
}

.cms-day-selector select {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: #000000;
  font-size: 1rem;
}

.cms-day-selector select:focus {
  outline: none;
  border-color: var(--highlight-color);
  background: #ffffff;
}

.cms-day-selector .btn-action {
  flex-shrink: 0;
}

.cms-section {
  display: none;
}

.cms-section.show {
  display: flex;
}

.cms-editor {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid rgba(0, 0, 0, 0.2);
}

.cms-form-group {
  margin-bottom: 20px;
}

.cms-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #000000;
}

.cms-form-group input[type="text"],
.cms-form-group input[type="number"],
.cms-form-group textarea,
.cms-form-group select {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: #000000;
  font-size: 1rem;
  font-family: inherit;
}

.cms-form-group input[type="text"]:focus,
.cms-form-group input[type="number"]:focus,
.cms-form-group textarea:focus,
.cms-form-group select:focus {
  outline: none;
  border-color: var(--highlight-color);
  background: #ffffff;
}

.cms-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.cms-form-group input[type="number"]:read-only {
  background: rgba(255, 255, 255, 0.7);
  cursor: not-allowed;
}

.cms-form-group small {
  display: block;
  margin-top: 5px;
  color: #666666;
  font-size: 0.85rem;
}

.cms-preview {
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.cms-preview h3 {
  margin-bottom: 15px;
  color: #000000;
}

.cms-preview-day {
  padding: 15px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.cms-preview-day h4 {
  margin-bottom: 10px;
  color: var(--highlight-color);
}

.cms-preview-day p {
  margin: 5px 0;
  color: #000000;
  line-height: 1.6;
}

.cms-preview-media {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .cms-day-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .cms-day-selector select {
    min-width: 100%;
  }

  .cms-day-selector .btn-action {
    width: 100%;
  }
}

/* Snow Effect */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10%;
  color: #ffffff;
  font-size: 1em;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", sans-serif;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: snowflakes-fall linear infinite;
  user-select: none;
  cursor: default;
}

@keyframes snowflakes-fall {
  0% {
    top: -10%;
    transform: translateX(0);
  }
  100% {
    top: 110%;
    transform: translateX(var(--snow-translate));
  }
}

@keyframes snowflakes-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(80px);
  }
}

/* Random positions and timings for each snowflake */
.snowflake:nth-child(1) {
  left: 10%;
  animation-duration: 10s;
  animation-delay: 0s;
  --snow-translate: 20px;
  font-size: 1em;
}

.snowflake:nth-child(2) {
  left: 20%;
  animation-duration: 12s;
  animation-delay: 1s;
  --snow-translate: -30px;
  font-size: 1.2em;
}

.snowflake:nth-child(3) {
  left: 30%;
  animation-duration: 11s;
  animation-delay: 2s;
  --snow-translate: 40px;
  font-size: 0.9em;
}

.snowflake:nth-child(4) {
  left: 40%;
  animation-duration: 13s;
  animation-delay: 0.5s;
  --snow-translate: -20px;
  font-size: 1.1em;
}

.snowflake:nth-child(5) {
  left: 50%;
  animation-duration: 10s;
  animation-delay: 1.5s;
  --snow-translate: 30px;
  font-size: 1em;
}

.snowflake:nth-child(6) {
  left: 60%;
  animation-duration: 12s;
  animation-delay: 0.8s;
  --snow-translate: -40px;
  font-size: 1.3em;
}

.snowflake:nth-child(7) {
  left: 70%;
  animation-duration: 11s;
  animation-delay: 2.5s;
  --snow-translate: 25px;
  font-size: 0.8em;
}

.snowflake:nth-child(8) {
  left: 80%;
  animation-duration: 13s;
  animation-delay: 1.2s;
  --snow-translate: -35px;
  font-size: 1.1em;
}

.snowflake:nth-child(9) {
  left: 15%;
  animation-duration: 10s;
  animation-delay: 3s;
  --snow-translate: 45px;
  font-size: 1em;
}

.snowflake:nth-child(10) {
  left: 25%;
  animation-duration: 12s;
  animation-delay: 1.8s;
  --snow-translate: -25px;
  font-size: 1.2em;
}

.snowflake:nth-child(11) {
  left: 35%;
  animation-duration: 11s;
  animation-delay: 0.3s;
  --snow-translate: 35px;
  font-size: 0.9em;
}

.snowflake:nth-child(12) {
  left: 45%;
  animation-duration: 13s;
  animation-delay: 2.2s;
  --snow-translate: -30px;
  font-size: 1.1em;
}

.snowflake:nth-child(13) {
  left: 55%;
  animation-duration: 10s;
  animation-delay: 1.5s;
  --snow-translate: 40px;
  font-size: 1em;
}

.snowflake:nth-child(14) {
  left: 65%;
  animation-duration: 12s;
  animation-delay: 0.7s;
  --snow-translate: -20px;
  font-size: 1.3em;
}

.snowflake:nth-child(15) {
  left: 75%;
  animation-duration: 11s;
  animation-delay: 2.8s;
  --snow-translate: 30px;
  font-size: 0.8em;
}

.snowflake:nth-child(16) {
  left: 85%;
  animation-duration: 13s;
  animation-delay: 1.3s;
  --snow-translate: -40px;
  font-size: 1.1em;
}

.snowflake:nth-child(17) {
  left: 5%;
  animation-duration: 10s;
  animation-delay: 3.5s;
  --snow-translate: 25px;
  font-size: 1em;
}

.snowflake:nth-child(18) {
  left: 95%;
  animation-duration: 12s;
  animation-delay: 0.9s;
  --snow-translate: -35px;
  font-size: 1.2em;
}

.snowflake:nth-child(19) {
  left: 18%;
  animation-duration: 11s;
  animation-delay: 2.1s;
  --snow-translate: 45px;
  font-size: 0.9em;
}

.snowflake:nth-child(20) {
  left: 28%;
  animation-duration: 13s;
  animation-delay: 1.6s;
  --snow-translate: -25px;
  font-size: 1.1em;
}

.snowflake:nth-child(21) {
  left: 38%;
  animation-duration: 10s;
  animation-delay: 0.4s;
  --snow-translate: 35px;
  font-size: 1em;
}

.snowflake:nth-child(22) {
  left: 48%;
  animation-duration: 12s;
  animation-delay: 2.7s;
  --snow-translate: -30px;
  font-size: 1.3em;
}

.snowflake:nth-child(23) {
  left: 58%;
  animation-duration: 11s;
  animation-delay: 1.1s;
  --snow-translate: 40px;
  font-size: 0.8em;
}

.snowflake:nth-child(24) {
  left: 68%;
  animation-duration: 13s;
  animation-delay: 3.2s;
  --snow-translate: -20px;
  font-size: 1.1em;
}

.snowflake:nth-child(25) {
  left: 78%;
  animation-duration: 10s;
  animation-delay: 1.9s;
  --snow-translate: 30px;
  font-size: 1em;
}

.snowflake:nth-child(26) {
  left: 88%;
  animation-duration: 12s;
  animation-delay: 0.6s;
  --snow-translate: -40px;
  font-size: 1.2em;
}

.snowflake:nth-child(27) {
  left: 12%;
  animation-duration: 11s;
  animation-delay: 2.4s;
  --snow-translate: 25px;
  font-size: 0.9em;
}

.snowflake:nth-child(28) {
  left: 22%;
  animation-duration: 13s;
  animation-delay: 1.7s;
  --snow-translate: -35px;
  font-size: 1.1em;
}

.snowflake:nth-child(29) {
  left: 32%;
  animation-duration: 10s;
  animation-delay: 0.2s;
  --snow-translate: 45px;
  font-size: 1em;
}

.snowflake:nth-child(30) {
  left: 42%;
  animation-duration: 12s;
  animation-delay: 3.1s;
  --snow-translate: -25px;
  font-size: 1.3em;
}

.snowflake:nth-child(31) {
  left: 52%;
  animation-duration: 11s;
  animation-delay: 1.4s;
  --snow-translate: 35px;
  font-size: 0.8em;
}

.snowflake:nth-child(32) {
  left: 62%;
  animation-duration: 13s;
  animation-delay: 2.9s;
  --snow-translate: -30px;
  font-size: 1.1em;
}

.snowflake:nth-child(33) {
  left: 72%;
  animation-duration: 10s;
  animation-delay: 0.8s;
  --snow-translate: 40px;
  font-size: 1em;
}

.snowflake:nth-child(34) {
  left: 82%;
  animation-duration: 12s;
  animation-delay: 2.3s;
  --snow-translate: -20px;
  font-size: 1.2em;
}

.snowflake:nth-child(35) {
  left: 92%;
  animation-duration: 11s;
  animation-delay: 1.6s;
  --snow-translate: 30px;
  font-size: 0.9em;
}

.snowflake:nth-child(36) {
  left: 8%;
  animation-duration: 13s;
  animation-delay: 3.4s;
  --snow-translate: -40px;
  font-size: 1.1em;
}

/* Orientation Overlay */
body.orientation-blocked {
  height: 100vh;
  overflow: hidden;
}

.orientation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 20, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.orientation-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.orientation-card {
  max-width: 22rem;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  animation: orientation-pop 0.6s ease;
}

.orientation-graphic {
  width: 150px;
  height: 120px;
  margin: 0 auto 1.25rem;
}

.orientation-icon {
  width: 100%;
  height: 100%;
}

.orientation-phone {
  transform-origin: center;
}

.orientation-landscape-group {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: orientation-pivot 2.8s ease-in-out infinite;
}

.orientation-rect {
  fill: none;
  stroke-width: 7;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
}

.orientation-rect.portrait {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-dasharray: 8 9;
}

.orientation-rect.landscape {
  stroke: #ffffff;
}
.orientation-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #fff;
}

.orientation-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

@keyframes orientation-pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes orientation-pivot {
  0% {
    transform: rotate(0deg);
    opacity: 0.2;
  }
  35% {
    opacity: 1;
  }
  65%,
  100% {
    transform: rotate(90deg);
    opacity: 1;
  }
}
