.booking {
    display: flex;
    flex-direction: column;
    width: 60%;
    max-width: 550px;
    justify-content: center;
    align-items: center;
}

#form-block {
    padding: 5px 0 ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 96%;
    gap: 5px;
}

#canteen-number {
    padding: 2px;
    font-size: 1.1em;
    width: 98%;
    border: 1px #f8fbff solid;
    border-radius: 5px;
}

#sub-form {
    display: flex;
    width: 99%;
    gap: 9px;
}

#name {
    padding: 2px;
    font-size: 1.1em;
    width: 78%;
    border: 1px #f8fbff solid;
    border-radius: 5px;
}

#book-button {
    width: 22%;
    background-color: rgb(52, 54, 56) ;
    padding: 2px;
    font-size: 1.1em;
    font-weight: 500;
    color: #ffffff;
    border: 1px solid rgb(0, 68, 114);
    border-radius: 5px;
    transition: background-color 250ms;
}

#book-button:hover{
    background-color: #c9c9c9;
    color: #202124;
}

.calendar-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px rgba(60, 64, 67, 0.15);
    width: 100%;
    max-width: 500px;
    color: #202124;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nav-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #5f6368;
    transition: color 0.3s;
}

.nav-button:hover {
    color: #202124;
}

.month-year {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    color: #202124;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day, .date, .selected{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 3px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.emptyDate, .overflowDate, .full{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 3px;
    font-size: 14px;
}

.day {
    font-weight: bold;
    background-color: #f1f3f4;
    color: #5f6368;
}

.emptyDate {
    background-color: #fff;
    border: 0px;
    cursor: default;
    color: #3c4043;
}

.full{
    background-color: #fee8ec;
    border: 1px solid #fee8eb;
    cursor: default;
    color: #e02343;
}

.overflowDate{
    background-color: #fff;
    border: 0px solid #dadce0;
    cursor: default;
    color: #93989c;
}

.date {
    background-color: #fff;
    border: 1px solid #dadce0;
    cursor: pointer;
    color: #2c2f31;
}

.date:hover {
    background-color: #e8f0fe;
    color: #1a8be8;
    border-color: #e8f0fe;
}

.selected {
    background-color: #378eff;
    border: 1px solid #dadce0;
    color: #fff;
    border-color: #1a73e8;
    cursor: pointer;
}

@media (max-width: 600px) {
    .nav-button {
        font-size: 18px;
    }
    .month-year {
        font-size: 20px;
    }
    .day, .date, .emptyDate, .selected, .overflowDate, .full{
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .nav-button {
        font-size: 16px;
    }
    .month-year {
        font-size: 18px;
    }
    .day, .date, .emptyDate, .selected, .overflowDate, .full{
        padding: 6px;
        font-size: 10px;
    }
}

@media (max-width : 768px){
    
    .booking {
        width: 90%;
    }
}