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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background-color: #FFFFFF;

}

.github-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.github-link:hover {
    opacity: 0.7;
}

.github-logo {
    width: 40px;
    height: 40px;
    display: block;
}

.background-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./background.png');
    background-size: auto 100%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}



.calendar-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2vmin;
    padding: 2vmin;
    z-index: 2;
}

.calendar-window {
    position: relative;
    cursor: pointer;
    transform: scale(0.95);
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
     background: linear-gradient(135deg, rgba(52, 178, 51, 0.2) 0%, rgba(107, 207, 127, 0.2) 100%);
}

.calendar-window:hover:not(.locked) {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.calendar-window.locked {
    cursor: not-allowed;
    opacity: 0.2;
    filter: grayscale(0.5);
    background:none;
    
}

.window-content {
    width: 100%;
    height: 100%;
    border: 3px dashed #018285;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(2px);
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    animation: zoomFromBox 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-scrollable-content {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    padding: 2rem;
    border-radius: 20px;
}

.modal-type-badge {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border-radius: 5%;
    object-fit: cover;
  
    display: none;
    z-index: 10;
}

@keyframes zoomFromBox {
    from {
        transform: translate(var(--origin-x, 0), var(--origin-y, 0)) scale(0.1);
        opacity: 0;
    }
    to {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #4FC17C;
}

.modal-day {
    font-size: 2.5rem;
    font-weight: bold;
    color: #018285;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-tip {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
    font-style: italic;
    background: #f9f9f9;
    padding: 1.0rem;
    border-left: 4px solid #feca57;
    border-radius: 5px;
    white-space: pre-line; /* renders \n as line breaks */
}

.modal-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    margin-bottom: 0.5rem;
    display: none; /* hidden until populated */
}

.modal-creator {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.0rem;
}
.modal-creator a {
    color: #018285;
    font-weight: 600;
    text-decoration: none;
}
.modal-creator a:hover {
    text-decoration: underline;
}

.nav-btn {
    background: linear-gradient(135deg, #018285 0%, #4FC17C 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-btn {
    margin-top: 1rem;
}

.next-btn {
    margin-top: 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    clear: both;
    gap: 1rem;
    margin-top: 1rem;
}

.nav-container button {
    flex: 1;
}
