@import url('global.css');
@import url('navbar.css');
@import url('animations.css');

#main-section .main .description {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-size: 1.4lvw;
    background: linear-gradient(to bottom right, var(--light-beige), var(--dark-beige));
}
.section h3 {
    font-weight: bolder;
    margin-bottom: 1%;
    color: var(--other);
}

.sidebar {
    justify-content: space-around;
    width: 22.5%;
    background: linear-gradient(to bottom right, var(--light-beige), var(--dark-beige));
    font-size: 0.85lvw;
}
.pricing {
    display: flex;
    flex-direction: column;
}
.legend {
    display: flex;
    flex-direction: column;
}
.legend p {
    margin: 1%;
    padding: 1%;
    text-align: center;
}
.past-day {
    background-color: var(--dark);
    color: var(--light)
}
.booked-date {
    background-color: #14191f;
    color: var(--light)
}
.vacant-date {
    background-color: var(--light);
}

.calendar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    font-size: 0.65lvw;
    width: 75%;
    height: 90%;
}
.calendar .month {
    display: flex;
    background-color: var(--light);
    width: 22%;
    min-height: 35vh;
    padding: 1%;
    margin: 1%;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    border: solid 2px var(--dark);
    border-radius: 10px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
}
.calendar p {
    text-align: center;
    font-weight: bolder;
    justify-self: flex-start;
    font-size: 1.7lvh;
    margin-top: 1%;
    margin-bottom: 1.2%;
}
.calendar .days {
    width: 90%;
    text-align: center;
    border-collapse: collapse;
    margin-top: 3.5%;
    aspect-ratio: 1;
}
.calendar .days .days-of-the-week {
    background-color: var(--dark-beige);
    color: var(--light);
}
.calendar .days th, #calendar-section .main .calendar .days td {
    padding: 0.15vw;
    font-size: 1.8lvh;
}

@media all and (max-aspect-ratio: 1.75) {
    #main-section .main .description {
        font-size: 1.6lvw;
    }
    .sidebar {
        font-size: 1lvw;
    }
}
@media all and (max-aspect-ratio: 1.5) {
    #main-section .main .description {
        font-size: 1.7lvw;
    }
    .sidebar {
        font-size: 1.1lvw;
    }
}
@media all and (max-aspect-ratio: 1.25) {
    #main-section .main .description {
        font-size: 1.8lvw;
    }
    .calendar .days th, #calendar-section .main .calendar .days td {
        font-size: 1.5lvh;
    }
    .sidebar {
        font-size: 1.2lvw;
    }
}
@media all and (max-aspect-ratio: 1.1) {
    #main-section .main .description, .sidebar, #main-section .main .description p, #main-section .main .description h3 {
        font-size: 1.7lvh;
    }

    .section .main {
        flex-direction: column;
    }
    #main-section .main .description {
        width: 90%;
        height: 50%;
    }
    .map {
        width: 90%;
        height: 45%;
    }

    #calendar-section .main {
        justify-content: space-around;
    }

    .sidebar {
        width: 90%;
        height: auto;
        min-height: 40vh;
        max-height: 60vh;
        padding: 4%;
        font-size: 1.5lvh;
        flex-direction: row;
    }
    .pricing {
        height: 100%;
        width: 70%;
    }
    .legend {
        height: 100%;
        width: 30%;
    }

    .calendar {
        font-size: 1.5lvh;
        width: 90%;
        height: auto;
        min-height: 40vh;
    }
    .calendar .month {
        width: 25%;
        min-height: 50%;
        margin: 0;
        border: solid 1px var(--dark);
        border-radius: 0;
    }
    .calendar p {
        font-size: 1.3lvh;
    }
    .calendar .days th, #calendar-section .main .calendar .days td {
        font-size: 0.9lvh;
    }
}