/* 3333.css */

/* 기본 스타일 */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #f4f4f4;
}

.calendar-title {
  text-align: center;
  margin: 20px auto;
  font-size: 1.8em;
  font-weight: bold;
}

.calendar-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin: 0 auto 40px;
}

@media (max-width: 600px) {
  .calendar-container {
    grid-template-columns: 1fr;
  }
  .calendar-title {
    font-size: 1.6em;
  }
  .day-title {
    font-size: 1.1em;
  }
  .day-date, .event-description {
    font-size: 0.85em;
  }
  .add-event-btn, .delete-event-btn, .edit-event-btn {
    font-size: 0.75em;
    padding: 4px 8px;
  }
}

/* 달력 블록 */
.day-block {
  background: #fff;
  /* 기존 테두리 설정 */
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  min-height: 240px;
  position: relative;
  box-sizing: border-box;
}

/* 헤더 */
.day-header {
  margin-bottom: 10px;
}
.day-title {
  font-size: 1.2em;
  margin: 0;
}
.day-date {
  font-size: 0.9em;
  color: #666;
  margin-top: 2px;
}

/* 이벤트 추가 버튼 */
.add-event-btn {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  margin-top: 8px;
}
.add-event-btn:hover {
  background: #e05500;
}

/* 이벤트 목록 */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* 이벤트 항목 */
.event-item {
  padding: 6px;
  border-radius: 4px;
  color: #fff;    
  font-weight: bold;
  background: #666;
  word-break: break-all;
  position: relative;
}

/* 이벤트 제목 및 링크 */
.event-title {
  font-size: 1em;
}
.event-title a {
  color: #fff;
  text-decoration: underline;
}

/* 이벤트 설명 */
.event-description {
  margin-top: 4px;
  font-size: 0.9em;
  font-weight: normal;
}

/* 수정/삭제 버튼 */
.delete-event-btn, .edit-event-btn {
  position: absolute;
  top: 5px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8em;
  z-index: 10;
}
.delete-event-btn {
  right: 5px;
}
.edit-event-btn {
  right: 50px;
}
.delete-event-btn:hover, .edit-event-btn:hover {
  background: #666;
}

/* 플래쉬 효과 애니메이션 */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
.flash {
  animation: blink 1s linear infinite;
}

/* 요일별 테두리 색상 (강제 적용) */
.day-sun {
  border: 2px solid #000000 !important; /* 일요일: 검정 */
}
.day-mon {
  border: 2px solid #ff0000 !important; /* 월요일: 빨강 */
}
.day-tue {
  border: 2px solid #0000ff !important; /* 화요일: 파랑 */
}
.day-wed {
  border: 2px solid #00aa00 !important; /* 수요일: 녹색 */
}
.day-thu {
  border: 2px solid #ffaa00 !important; /* 목요일: 주황 */
}
.day-fri {
  border: 2px solid #aa00ff !important; /* 금요일: 보라 */
}
.day-sat {
  border: 2px solid #00cccc !important; /* 토요일: 청록 */
}


.today-label {
  display: inline-block;
  margin-left: 17px;
  font-size: 0.9em;
  color: #ff0000;
  font-weight: bold;
  animation: today-blink 1s ease-in-out infinite;
}

@keyframes today-blink {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 6px #ff6600;
  }
  50% {
    opacity: 0.5;
    text-shadow: 0 0 12px #ff6600;
  }
}




