html {
    scroll-behavior: smooth;
}

h3 {
    text-transform: uppercase;
}

.vk-btn {
    padding: 1px 20px !important;
    border-radius: 0 !important;
    border: none;
    color:#A52A2A;
    font-size: 14px;
}

.vk-btn-primary {
    background: #A52A2A !important;
    color: white;
}

.year-day {
    align-items: baseline;
    border-bottom: #eee solid 2px;
    font-size: 15px;
    padding-left: 5px;
}

.year-day.text-danger {
    border-top: red solid 2px;
    border-color: red;
}

.digit {
    display: inline-block;
    width: 28px;
    margin-right: 4px;
    text-align: right;
    font-size: 1vw;
    font-weight: 600;
}

@media only screen and (max-width: 1024px) {
    .year-day {
        font-size: 14px;
    }

    .digit {
        font-size: 24px;
    }
}

.year-main{
    padding-top: 85px;
}

.row {
    flex-wrap: nowrap;
}

.container-fluid {
    width: auto;
}

.event-dates {
    width: 100%;
    text-align: right;
    padding: 0 5px;
}
.date-marker {
    text-decoration: none;
    font-size: 15px;
}
@media only screen and (max-width: 1024px) {
    .event-dates {
        display: block;
        padding: 0 5px 8px 15px;
        text-align: left;
    }

    .date-marker {
        display: block;
    }
}

.event-date {
    font-size: 25px;
    padding-right: 15px;
}

.toolbar {
    border-bottom: black solid 1px;
    position: fixed;
    background-color: white;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    text-align: center;
}

.month-row {
    z-index: 99;
    position: fixed;
    top: 54px;
    width: 100%;
    font-weight: 700;
    background-color: white;
    text-transform: uppercase;
    font-size: 1vw;
}

.legend {
    column-count: 4;
}
.legend-item {
    display: block;
    font-size: 12px;
}

@media only screen and (max-width: 1024px) {
    .month-row {
        left: 0;
    }

    .legend-item {
        font-size: 16px;
    }
}

.year {
    color: #bbb;
}

.event-table-head {
    table-layout: fixed;
    width: 100%;
    background: #eee;
}

.event-table-head th {
    text-align: center;
    padding: 15px 0 15px;
    border: white solid 10px;
    border-top: none;
    border-bottom: none;
    color: white;
    text-transform: uppercase;
    background: #828282;
}

.event-table-head th:first-child {
    border-left: none;
}

.event-table-head th:last-child {
    border-right: none;
}

.event-table-head th.weekday-7 {
    background: red;
}

.event-table {
    width: 100%;
    height: calc(100vh - 62px);
    border-collapse: collapse;
    margin-top: 38px;
}

.event-table .seven {
    width: 14.285%;
    overflow: auto;
    vertical-align: top;
    border: white solid 5px;
    padding: 5px 10px;
    background: #f2f2f2;
}

.event-table .seven.empty {
    background: #fafafa;
}

.event-table .seven.weekday-7 {
    background: #ffefed;
    color: red;
}

.event-table .seven .month-day {
    font-size: 24px;
    font-weight: 400;
}

.event-table .seven .month-day .month-weekday {
    font-size: 14px;
    text-transform: uppercase;
}

.event-table .seven .event-item {
    margin: 0;
    padding: 0;
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    height: 20px;
    line-height: 1;
}

.event-table .seven .event-item .time {
    font-family: monospace;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    .event-table {
        width: 100%;
        height: auto;
    }

    .seven {
        width: 100% !important;
        height: auto !important;
    }

    .navi {
        font-size: 15px;
    }

    .logo {
        height: 46px !important;
    }
}

.pointer {
    cursor: pointer;
}

.event:hover {
    background: white;
}

.months .seven {
    font-size: 0.8vw;
    font-weight: 600;
    background: #777;
    color: white;
    text-align: center;
    height: auto;
    text-transform: uppercase;
    padding: 8px 0;
    overflow: auto;
}

.admin-bar .calendar-main {
    padding-top: 99px;
}

.admin-bar .toolbar {
    top: 32px;
    width: 100%;
    z-index: 100;
}

.admin-bar .month-row {
    top: 80px;
}

#overlay {
    height: 100vh;
    width: 100vw;
    display: none;
    background: rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

:target:before {
    content: "";
    display: block;
    height: 100px;
    margin: -100px 0 0;
}

.overflow-hidden {
    overflow: hidden;
}

.logo {
    height: 59px;
    width: auto;
    position: absolute;
    left: 2px;
    top: 2px;
}
