/* .container {
    display: flex;
    align-items: center;
    justify-content: center;
}
*/

.calendar-controls {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: flex-start;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    padding: 8px 15px 1px 15px;
    margin-bottom: 8px;
    background-color: #b2c2b0;
    border-radius: 4px;
}

.calendar-value {
    position: relative;
    z-index: 1000;
    display: inline;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    font-size: 24px;
    top: 3px;
}

.calendar-value.text {
    top: -4px;
    padding-top: 0px;
}

div.calendar-value.year:hover {
    cursor: pointer;
}

button.direction {
    padding: 5px 5px 7px 5px;
    margin: 0px 5px 10px 5px;
    background: #849b76;
    border-color: #748f71;
    border-radius: 8px;
    border-right-width: 3px;
    border-style: solid;
    border-bottom-width: 3px;
    border-top-width: 1px;
    border-left-width: 2px;
}

button.btn-home {
    padding: 4px 4px 6px 4px;
    margin-left: 20px;
}

.calendar .active-day {
    background: #fefefe;
}

.calendar div.day div .day-name {
    position: relative;
}

.calendar .day.active-day.type-2 .number,
.calendar .day.active-day.type-3 .number {
    font-weight: bold;
}

.calendar div.day.active-day.type-3 .number {
    color: red;
}

.calendar div.day.active-day.type-2 .number {
    color: rgb(230 15 213);
}

#display {
    display: none;
    width: 400px;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    position: absolute;
    background-color: rgb(122 151 122 / 90%);
    z-index: 1000;
    left: 380px;
    top: 20px;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border-color: #748f71;
}

#display .title {
    background-color: rgb(122 151 122);
    font-weight: bolder;
    padding: 10px;
    border-bottom-color: #748f71;
    border-bottom-style: solid;
    border-radius: 5px;
}

#display .title .name {
    font-size: 18px;
    text-align: center;
}

#display>div.title>button.close {
    padding: 8px;
    padding-top: 5px;
    background: rgb(132 155 118);
    border-radius: 3px;
    height: 28px;
    width: 28px;
    float: right;
    margin-top: -3px;
    margin-right: -5px;
}

#display .description {
    text-align: left;
    padding: 5px;
}

#display .footer {
    background-color: rgb(122 151 122);
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.color-1 .type {
    color: black;
}

.color-2 .type {
    color: rgb(230 15 213);
    font-weight: 900;
}

.color-3 .type {
    color: red;
    font-weight: 900;
}

.links {
    margin-top: 20px;
}

.calendar div.today .number {
    font-weight: 800;
    background-color: #b2c2b0;
    padding: 5px;
    border-radius: 8px;
    width: 20px;
    text-align: center;
}

body {
    margin: 50px;
}

.calendar {
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    width: 100%;
}

.box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.box .row {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.box .header {
    display: flex;
    justify-content: center;
}

.box .row.top .col,
.box .row.header .col,
.box .row.footer .col {
    text-align: center;
}

.box .row .col {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 11.75%;
    /* white-space: nowrap; */
    overflow: hidden;
}

.box .row .col.x1 {
    flex-basis: 6%;
}

.col.x1,
.col.x2,
.col.x3,
.col.x4,
.col.x5,
.col.x6,
.col.x7,
.col.x8 {
    padding-left: 4px;
}

.box .row.weeks {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 1.3vw;
}

.box .row.weeks>.row {
    display: none;
}

.box .row.weeks .col {
    border: 1px solid rgb(89, 122, 124);
    border-radius: 3px;
}

.box .row.header {
    height: 65px;
}

.box .row.weeks {
    height: 100%;
}

.box .row.top {
    height: 27px;
}

.box .row.footer {
    height: 0px;
}

div.row.weeks>.row {
    display: none;
}

div.row.weeks>.row.visible {
    display: flex;
    background: #c6dab9;
}

.calendar div.col.week-nr {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 550px) {
    div.calendar .button-container>button.btn-home {
        display: none;
    }
}

@media (max-width: 500px) {
    .menu-container {
        display: none;
    }
}

@media (max-width: 450px) {
    .calendar .calendar-value.text {
        display: none;
    }
}

@media (max-width: 350px) {
    .calendar .button-container>.month-group {
        display: block;
        padding-left: 30px;
    }
}