@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap");

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background: #f1fbff;
    position: relative; 
}

.navbar {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.nav-item {
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
}

.nav-item:hover {
    color: #ffcc00;
}

.calendar-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 60px); 
}

.months {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
    position: relative; 
}

.month {
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px; 
    font-size: 18px;
    color: #4070f4;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.month:hover {
    background: #4158A6; 
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.months::after {
    content: "";
    display: block;
    position: absolute;
    right: 10px; 
    top: 15%; 
    height: 70%; 
    width: 2px; 
    background-color: #ccc;
}

#tables {
    flex: 3; 
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.table {
    display: none;
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.table.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.table h2 {
    margin-top: 0;
    font-size: 22px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

.table p, .table ul {
    margin: 10px 0;
    line-height: 1.6;
}

.table ul {
    padding-left: 20px;
    list-style-type: disc;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    color: #fff;
}

.year-footer {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px; 
    background-color: #03346E;
    font-size: 17px;
    font-weight: bold;
}

@media (max-width: 600px) {
    .calendar-container {
        height: auto; 
    }

    .month {
        height: auto;
        font-size: 14px;
    }

    .table h2 {
        font-size: 18px;
    }

    .month:hover {
        transform: scale(1); 
    }
}


@media (max-width: 900px) {
    .calendar-container {
        flex-direction: column;
    }

    .months {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    }

    .month {
        font-size: 16px;
        padding: 5px;
    }

    .table h2 {
        font-size: 20px;
    }
}

