body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ffe4e1; /* 薄ピンク */
}

#calendar-container {
    text-align: center;
    background: #fff0f5; /* 薄ピンクの背景 */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ffc0cb; /* ピンクの枠線 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.day {
    padding: 10px;
    background: #ffe4e1; /* 薄ピンク */
    color: #333;
    border: 1px solid #ffc0cb; /* ピンクの枠線 */
    border-radius: 5px;
    text-align: center;
}

#header {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: bold;
    margin-bottom: 10px;
}

.current-day {
    background-color: #ffb6c1; /* 強調された薄ピンク */
    color: #fff;
    font-weight: bold;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fff0f5; /* モーダルの薄ピンク背景 */
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #ffc0cb; /* ピンクの枠線 */
    width: 80%; /* Could be more or less, depending on screen size */
}

.close-button {
    color: #ff69b4; /* 濃いピンク */
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style for event dots */
.event-dot {
    display: block;
    width: 6px;
    height: 6px;
    margin: 2px auto 0;
    background-color: #ff69b4; /* 濃いピンク */
    border-radius: 50%;
}

/* Loader styles with animation */
#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#prev-month {
    left: -20%; /* 左に-20% */
}

#next-month {
    left: 20%; /* 左に20% */
}

#prev-month, #next-month {
    background-color: #ffc0cb; /* ピンク */
    color: #fff;
    border: none;
    position: relative;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;    
}

#prev-month:hover, #next-month:hover {
    background-color: #ff69b4; /* 濃いピンク */
    transform: scale(1.1);
}

.calendar-modal-element {
    padding: 10px;
    background: #fff0f5; /* 薄ピンク */
    color: #333;
    border: 1px solid #ffc0cb; /* ピンクの枠線 */
    border-radius: 5px;
    margin-bottom: 10px;
}

.calendar-modal-element img {
    max-width: 500px;
    height: auto;
    border-radius: 5px;
}

.calendar-modal-element .youtube-event {
    background-color: #ff0026e1; /* YouTubeの赤 */
}

.calendar-modal-element .niconico-event {
    background-color: #ffffff; /* ニコ生の白 */
}

.calendar-modal-element .fciu-event {
    background-color: #f8bbd0 ; /* FCのピンク */
}

.calendar-modal-element .api-event {
    background-color: #000000; /* APIの薄いピンク */
}