* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background: #000;
    min-height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 40px;
    overflow: hidden;
    position: relative;
  }
  
  /* Magnet Container */
  .magnet-container {
    border-radius: 10px;
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: calc(100% - 400px);
    pointer-events: none;
  }
  
  .magnet {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    cursor: grab;
    user-select: none;
    box-shadow:
      0 4px 15px rgba(255, 68, 68, 0.3),
      0 2px 5px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.1s, box-shadow 0.2s;
    pointer-events: auto;
    touch-action: none;
    z-index: 100;
  }
  
  .magnet:hover {
    transform: scale(1.05);
    box-shadow:
      0 6px 20px rgba(255, 68, 68, 0.4),
      0 3px 8px rgba(0, 0, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  
  .magnet.dragging {
    cursor: grabbing;
    transform: scale(1.1);
    z-index: 1000;
    box-shadow:
      0 10px 30px rgba(255, 68, 68, 0.5),
      0 5px 15px rgba(0, 0, 0, 0.7),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  
  .magnet.attached {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 4px;
  }
  
  /* Clock Container */
  .clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    left: -5%;
    gap: 40px;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 100;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  
  /* Analog Clock */
  .analog-clock {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
    cursor: pointer;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent);
    box-shadow:
      0 0 40px rgba(255, 255, 255, 0.05),
      inset 0 0 20px rgba(255, 255, 255, 0.02);
  }
  
  .clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  }
  
  .hand { position: absolute; bottom: 50%; left: 50%; transform-origin: 50% 100%; transform: translateX(-50%); border-radius: 10px; }
  .hour-hand   { width: 3px; height: 50px; background: linear-gradient(to top, #fff 90%, transparent); box-shadow: 0 0 8px rgba(255, 255, 255, 0.3); }
  .minute-hand { width: 2px; height: 65px; background: linear-gradient(to top, #fff 95%, transparent); box-shadow: 0 0 6px rgba(255, 255, 255, 0.3); }
  .second-hand { width: 1px; height: 70px; background: linear-gradient(to top, #ff3e3e 95%, transparent); box-shadow: 0 0 4px rgba(255, 62, 62, 0.5); }
  
  /* Clock markers */
  .marker { position: absolute; width: 1px; height: 8px; background: rgba(255, 255, 255, 0.3); left: 50%; transform-origin: 50% 100px; transform: translateX(-50%); }
  .marker.major { height: 12px; width: 2px; background: rgba(255, 255, 255, 0.5); }
  
  /* Digital Clock */
  .digital-clock { display: flex; flex-direction: column; align-items: center; gap: 15px; cursor: default }
  .time-display {
    font-size: 48px; font-weight: 200; color: #fff; letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); font-variant-numeric: tabular-nums;
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.9} }
  
  .date-display { font-size: 25px; color: rgba(255, 255, 255, 0.794); letter-spacing: 3px; text-transform: uppercase; font-weight: 300; }
  .seconds { color: #ff3e3e; font-size: 24px; margin-left: 8px; font-weight: 100; }
  .tstat   { font-size: 24px; font-weight: 200; color: #fff; letter-spacing: 6px; text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); font-variant-numeric: tabular-nums; }
  
  /* Fullscreen Buttons */
  .fullscreen-btn {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 30px; color: #fff;
    font-size: 16px; font-weight: 300; letter-spacing: 2px; cursor: pointer; transition: all 0.3s ease;
    backdrop-filter: blur(10px); z-index: 1000;
  }
  .fullscreen-btn:hover { background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08)); transform: translateX(-50%) scale(1.05); box-shadow: 0 10px 30px rgba(255,255,255,0.1); }
  
  .exit-fullscreen-btn {
    position: fixed; top: 20px; left: 20px; width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; color: #fff; font-size: 20px;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); z-index: 10000;
  }
  .exit-fullscreen-btn:hover { background: rgba(255, 68, 68, 0.8); transform: scale(1.1); }
  body.fullscreen .exit-fullscreen-btn { display: flex; }
  body.fullscreen .fullscreen-btn { display: none; }
  
  /* Board Container */
  .board-container {
    position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%);
    width: 940px; background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 30px;
    backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); z-index: 10;
    max-height: 100vh;
  }
  
  .board-title {
    text-align: center; color:#fff; font-size: 28px; font-weight: 600; letter-spacing: 3px; margin-bottom: 25px; text-transform: uppercase;
  }
  
  /* 상태창 그리드: 2열, 행 수는 자동. 3행만 낮게는 개별 카드 오버라이드로 처리 */
  .board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* 기본 카드 크기 */
  .board-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    height: 240px;               /* 기본 높이 */
    transition: all 0.3s ease;
    position: relative;
    overflow: auto;              /* 내용 많으면 스크롤 */
  }
  .board-section:hover    { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
  .board-section.drag-over { background: rgba(255,255,255,0.12); border-color: rgba(255,68,68,0.5); box-shadow: 0 0 20px rgba(255, 68, 68, 0.2); }
  
  /* ✅ 3행(프로젝트/조기입실)만 더 낮게 */
  .board-section[data-category="project"],
  .board-section[data-category="early"] {
    height: 165.5px;               /* 원하는 값으로 조절 */
  }
  
  /* 섹션 내부 */
  .section-title {
    color: rgba(255, 255, 255, 0.925);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .section-content {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1.5;
    min-height: 70px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
  }
  
  /* Attendance Info */
  .attendance-info {
    position: fixed; right: 160px; bottom: 150px;
    color: rgba(255, 255, 255, 0.6); font-size: 35px; line-height: 1.8; letter-spacing: 1px; text-align: right; z-index: 100;
  }
  .attendance-info .label  { color: rgba(255, 255, 255, 0.4); margin-right: 8px; }
  .attendance-info .number { color: rgba(255, 255, 255, 0.8); font-weight: 400; }
  .attendance-info .absent-count { color: #ff3e3e; }
  
  /* Magnets outline */
  .magnet-outline {
    position: absolute; border: 0.2px solid #fff; border-radius: 12px; pointer-events: none; opacity: 0.2; z-index: 50;
    transition: left .08s, top .08s, width .08s, height .08s;
  }
  #magnetOutline { display: none !important; }
  
  /* Dialog (이유 입력) */
  .dialog-overlay[hidden] { display: none; }
  .dialog-overlay {
    position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(0,0,0,0.45);
  }
  .dialog {
    width: min(1040px, 184vw); height: 40%; background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 18px; color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  }
  .dialog-title { font-size: 30px; font-weight: 600; margin-bottom: 10px; }
  .dialog textarea {
    width: 100%; resize: vertical; min-height: 65%;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; color: #fff; padding: 10px; outline: none;
    font-size: 35px;
  }
  .dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
  .dialog .actions button { font-size: 20px; padding: 12px 22px; min-height: 44px; min-width: 110px; border-radius: 10px; }
  .dialog .actions .primary { background: #ff3e3e; border-color: transparent; }
  
  /* 이유 툴팁 */
  #Tooltip {
    position: fixed; z-index: 10001; max-width: 260px; padding: 10px 12px; border-radius: 10px;
    background: rgba(20,20,20,0.95); color: #fff; font-size: 25px; line-height: 1.45;
    border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  }
  
  /* 기타 사유 패널 */
  #reasonPanel {
    position: fixed; left: 40px; top: 40px; width: 320px; max-height: 320px; overflow: auto;
    background: rgba(20,20,20,0.9); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; padding: 14px; color: #fff; z-index: 1000;
    transform: scale(1.3); transform-origin: top left;
  }
  #reasonPanel .panel-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
  
  #reasonList { display: flex; flex-direction: column; gap: 8px; }
  
  /* 한 사유당 한 줄 */
  .reason-item { display: flex; align-items: center; gap: 10px; }
  .reason-item .badges { display: flex; gap: 6px; flex-wrap: wrap; }
  .reason-item .badge {
    min-width: 22px; height: 22px; border-radius: 50%;
    background: #ff3e3e; color: #fff; font-size: 12px; font-weight: 700;
    display: grid; place-items: center;
  }
  .reason-item .reason-text { color: #fff; opacity: 0.95; font-size: 14px; }
  
  /* 색상 군 */
  .magnet.color-red    { background: linear-gradient(135deg, #ff4444, #cc0000); }
  .magnet.color-orange { background: linear-gradient(135deg, #ff8c1a, #ff5e00); }
  .magnet.color-yellow { background: linear-gradient(135deg, #ffd84d, #ffb300); color:#333; }
  .magnet.color-green  { background: linear-gradient(135deg, #0e8837, #0fb957); }
  .magnet.color-blue   { background: linear-gradient(135deg, #3aa1ff, #0066ff); }
  .magnet.color-purple { background: linear-gradient(135deg, #b36bff, #7a2cff); }
  
  .badge.color-red    { background: linear-gradient(135deg, #ff4444, #cc0000); }
  .badge.color-orange { background: linear-gradient(135deg, #ff8c1a, #ff5e00); }
  .badge.color-yellow { background: linear-gradient(135deg, #ffd84d, #ffb300); color:#333; }
  .badge.color-green  { background: linear-gradient(135deg, #0e8837, #0fb957); }
  .badge.color-blue   { background: linear-gradient(135deg, #3aa1ff, #0066ff); }
  .badge.color-purple { background: linear-gradient(135deg, #b36bff, #7a2cff); }
  
  /* FAB (게임/정보) */
  .gfab-container { position: fixed; right: 24px; bottom: 24px; z-index: 2000; }
  .ifab-container { position: fixed; right: 108px; bottom: 24px; z-index: 2000; }
  .fab {
    width: 64px; height: 64px; border-radius: 50%;
    background: #2a2a2a; border: 1px solid rgba(255,255,255,0.15);
    display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  }
  .fab:hover { transform: translateY(-1px); background: #333; }
  .fab:active { transform: translateY(0); }
  .fab img { width: 32px; height: 32px; display: block; }
  
  .fab-menu { position: absolute; right: 0; bottom: 72px; display: none; gap: 8px; flex-direction: column; }
  .fab-menu.open { display: flex; }
  .fab-item {
    min-width: 140px; padding: 10px 14px; font-size: 14px; text-align: left;
    color: #fff; background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
    cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  }
  .fab-item:hover { background: rgba(40,40,40,0.95); }
  
  /* 폭죽 오버레이 */
  .fireworks { position: fixed; inset: 0; pointer-events: none; z-index: 1500; }
  
  /* 우측 장식 이미지 */
  .ultraman {
    width: 100px;
    height: auto;
    position: absolute;
    right: 190px;
    top: 370px;
  }
  #ultraman { width: 100%; opacity: 0.8; }
  
  /* 진행도 바 */
  #start-time, #end-time {
    position: absolute;
    color: white;
    font-weight: 600;
    bottom: 50px;
  }
  #start-time { right: 200px; }
  #end-time { left: 200px; }
  
  #progressbar {
    inline-size: 15em;
    block-size: 2em;
    width: 15em;
    height: 2em;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 24px;
    background: rgba(40,40,40,0.95);
    position: relative;
    overflow: hidden;
  }
  #progressbar::-webkit-progress-bar { background: transparent; }
  #progressbar::-webkit-progress-value { background: transparent; }
  #progressbar::-moz-progress-bar { background: transparent; }
  #progressbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0.7;
    transform: translateX(-100%);
    transform-origin: left center;
  }
  #progressbar[value]::before {
    transform: translateX(calc(-100% + (var(--p, 0) * 1%)));
  }
  .progress {
    position: absolute;
    right: 110px;
    top: 270px;
  }
  
  /* ===== Reason Quick Buttons ===== */
  .reason-quick { margin-top: 12px; }
  .reason-quick__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .5px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
  }
  .reason-quick__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 36vh;
    overflow: auto;
    padding-right: 4px;
  }
  .reason-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .2px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  }
  .reason-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255,255,255,0.1);
  }
  .reason-btn:active {
    transform: translateY(0);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .reason-btn:focus-visible {
    outline: none;
    border-color: rgba(255,62,62,0.7);
    box-shadow:
      0 0 0 3px rgba(255,62,62,0.25),
      0 6px 18px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255,255,255,0.1);
  }
  .reason-btn.is-selected {
    border-color: rgba(255,62,62,0.8);
    background: linear-gradient(180deg, rgba(255,62,62,0.22), rgba(255,62,62,0.12));
  }
  .reason-quick__grid::-webkit-scrollbar { width: 8px; }
  .reason-quick__grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 8px; }
  .reason-quick__grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 8px; }
  
  /* Meal Modal */
  .meal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .meal-modal-overlay.visible { opacity: 1; pointer-events: auto; }
  .meal-modal-content {
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
  }
  .meal-modal-overlay.visible .meal-modal-content { transform: scale(1); }
  .meal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .meal-modal-title { font-size: 24px; font-weight: 600; letter-spacing: 1px; }
  .meal-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  .meal-modal-close:hover { opacity: 1; }
  .meal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
  }
  .meal-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
  }
  .meal-card-title {
    font-size: 20px;
    font-weight: 500;
    color: #ff8c1a;
    margin-bottom: 15px;
  }
  .meal-card-menu {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    white-space: pre-wrap;
    flex-grow: 1;
  }

/* Timetable Modal */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.modal-content {
  background: rgba(25, 25, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 900px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.modal-close:hover { opacity: 1; }

.modal-content h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.timetable-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.timetable-controls select {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
}

.timetable-controls select:focus {
  outline: none;
  border-color: rgb(52, 152, 219);
}

#timetableContainer {
  overflow-x: auto;
}

#timetableContainer table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
}

#timetableContainer th, #timetableContainer td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 8px;
}

#timetableContainer th {
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

#timetableContainer td {
  background-color: rgba(255, 255, 255, 0.05);
  height: 40px;
}
  

/* Time-based Event Image */
.time-event-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 2000; /* Ensure it's on top of most elements */
    visibility: hidden;
}

.time-event-container img {
    display: none; /* Hide all images by default */
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); /* Smooth ease-out */
}

.time-event-container.visible {
    visibility: visible;
}

.time-event-container.visible img.active {
    display: block;
    animation-name: riseUp;
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes goDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
}

.time-event-container.visible img.active.hiding {
    animation-name: goDown;
}

/* Final Countdown */
.final-countdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 40vw; /* Very large font size */
    font-weight: 900; /* Bold */
    -webkit-text-stroke: 4px rgba(0,0,0,0.5); /* Text outline */
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 2001; /* Higher than the event images */
    visibility: hidden;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.final-countdown.visible {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}
