/* General body and font styling */
html, body {
    margin: 0;
    padding: 0;
    overflow-y: scroll; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    height: auto; /* Allow content to grow dynamically */
    width: 100%;
    font-family: Arial, sans-serif;
    background-color: #fa0a3a;
    color: white;
    text-align: center;
    position: relative;
    scrollbar-width: none; /* Firefox: Hides scrollbar */
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari: Hides scrollbar */
}

/* Main heading */
h1 {
    color: white;
    margin-bottom: 100px;
    font-size: clamp(2rem, 5vw, 6rem); /* Adjust these values as needed */
    line-height: 1.2;
    z-index: 10;
    position: relative;
    text-transform: uppercase; /* Optional: makes text stand out */
}


/* Calendar container */
.calendar {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next row */
    justify-content: center; /* Center the items horizontally */
    margin: 0 auto;
    padding: 20px; /* Add space around the calendar */
    z-index: 10; /* Ensure calendar is above the canvas */
    position: relative;
    max-width: 100%; /* Prevent horizontal overflow for large screens */
}

/* Individual day element */
.day {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency for snowflake visibility */
    color: black;
    width: 400px; /* Default width for larger screens */
    height: 400px; /* Default height */
    line-height: 400px; /* Vertically center text */
    margin: 40px; /* Add space between day blocks */
    border-radius: 40px; /* Rounded corners */
    font-weight: bold;
    font-size: 4rem; /* Default font size */
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth scaling and shadow effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.day:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}

/* Locked days styling */
.day.locked {
    background-color: rgba(128, 128, 128, 0.7); /* Dimmed look for locked days */
    color: white;
    cursor: not-allowed; /* Indicate non-clickable */
}

.day.locked:hover {
    transform: none; /* Disable hover effects for locked days */
    box-shadow: none;
}

/* Responsive Design - Tablet adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem; /* Adjust heading font size */
        margin-bottom: 50px; /* Reduce margin */
    }

    .day {
        width: 250px; /* Adjust width for tablets */
        height: 250px; /* Adjust height for tablets */
        line-height: 250px; /* Align text vertically */
        font-size: 3rem; /* Adjust font size */
        margin: 20px; /* Reduce spacing between blocks */
    }
}

/* Responsive Design - Mobile adjustments */
@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem; /* Smaller font size for heading on mobile */
        margin-bottom: 30px; /* Reduce spacing for smaller screens */
    }

    .day {
        width: 200px; /* Adjust width for mobile devices */
        height: 200px; /* Adjust height for mobile */
        line-height: 200px; /* Align text vertically */
        font-size: 2.5rem; /* Adjust font size for smaller blocks */
        margin: 10px; /* Reduce margin to fit more days */
    }

    .calendar {
        padding: 10px; /* Adjust padding for tighter fit */
    }
}

/* Canvas styling */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Ensure canvas is behind interactive elements */
    pointer-events: none; /* Allow clicks to pass through to elements below */
    width: 100%; /* Cover entire viewport width */
    height: 100%; /* Cover entire viewport height */
}
