* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 800px;
    height: 480px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #000;
}

#calendar {
    width: 800px;
    height: 480px;
    padding: 16px 18px 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#calendar-header {
    flex: 0 0 auto;
    border-bottom: 3px solid #000;
    padding-bottom: 7px;
    margin-bottom: 10px;
}

#calendar-header h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
}

#days {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

#today-column {
    width: 58%;
    flex: 0 0 58%;
    min-width: 0;
    padding-right: 14px;
    border-right: 2px solid #000;
}

#right-column {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.day {
    min-width: 0;
}

#today-column .day {
    height: 100%;
}

#right-column .day {
    flex: 0 0 auto;
}

.day-heading {
    display: flex;
    align-items: baseline;
    gap: 7px;
    border-bottom: 2px solid #000;
    padding-bottom: 3px;
    margin-bottom: 5px;
}

.day-label {
    font-size: 18px;
    font-weight: 800;
}

.day-date {
    font-size: 15px;
    font-weight: 700;
}

.day-0 .day-label {
    font-size: 23px;
}

.day-0 .day-date {
    font-size: 17px;
}

.event {
    margin-bottom: 5px;
    line-height: 1.12;
}

.event-main {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.event-time {
    flex: 0 0 88px;
    font-size: 13px;
    white-space: nowrap;
    font-weight: 700;
}

.event-title {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
}

.event-meta {
    margin-left: 94px;
    margin-top: 1px;
    font-size: 11px;
}

.all-day .event-time {
    font-size: 11px;
}

.source {
    font-weight: 700;
}

.location {
    font-weight: 400;
}

.empty {
    font-size: 13px;
    font-style: italic;
}

#upcoming {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 2px solid #000;
    overflow: hidden;
}

.upcoming-heading {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 5px;
}

.upcoming-date {
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
    margin-bottom: 1px;
    text-transform: uppercase;
}

#upcoming .event {
    margin-bottom: 3px;
}

#upcoming .event-time {
    flex-basis: 88px;
    font-size: 12px;
    white-space: nowrap;
}

#upcoming .event-title {
    font-size: 12px;
}

#upcoming .event-meta {
    margin-left: 94px;
    font-size: 10px;
}

#upcoming .all-day .event-time {
    font-size: 10px;
}

#calendar-footer {
    flex: 0 0 auto;
    border-top: 1px solid #000;
    margin-top: 8px;
    padding-top: 5px;
    text-align: right;
    font-size: 10px;
}

#calendar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: initial;
}

#footer-calendar {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 11px;
    border: 1.5px solid #000;
    border-radius: 1px;
}

#footer-calendar::before {
    content: "";
    position: absolute;
    left: -1.5px;
    right: -1.5px;
    top: 2px;
    border-top: 1.5px solid #000;
}

#footer-calendar::after {
    content: "";
    position: absolute;
    width: 1.5px;
    height: 3px;
    top: -3px;
    left: 2px;
    background: #000;
    box-shadow: 5px 0 0 #000;
}
