html {
    box-sizing: border-box;
    overflow-x: hidden;
    margin-right: calc(-1 * (100vw - 100%));
    /*overflow-y: scroll;*/
    font-family: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
    font-weight: normal;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
}

nav {
    display: flex;
    justify-content: center;
    background-color: white;
    color: white;
    padding: 10px 25px;
}

nav img {
    max-height: 100px;
    max-width: 75%;
}

main {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#navlinks {
    background-color: darkblue;
    width: 100%;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iconlinks {
    color: white;
    display: flex;
    width: 400px;
    justify-content: space-evenly;
    align-items: stretch;
    @media (max-width: 500px) {
        width: 75%;
    }
}

.iconlinks a {
    color: inherit;
    text-decoration: inherit;
    /*cursor: inherit;*/
}

.iconlinks > div {
    flex: 1 1 0;
    text-align: center;
}

.iconlinks > div:not(:last-child) {
    border-right: 1px solid dimgray;
}

.iconlinks svg {
    width: 2rem;
    margin-bottom: 2px;
}


footer {

    font-size: smaller;
    display: flex;
    justify-content: center;
    margin: auto 0 0 0;
    background-color: lightgray;
    padding: 0 1em;
}

.events {
    display: flex;
    flex-direction: column;
    margin: 10px;
    width: 75%;
    max-width: 500px;
}

.events > hr {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(0, 0, 139, 0.75), rgba(0, 0, 0, 0.15));
    width: 100%;
    height: 1px;
    border: 0;
}

.events a {
    color: inherit;
    text-decoration: inherit;
}

.event {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    /*border: rgba(147, 147, 163, 0.48) solid 1px;*/
    /*border-radius: 4px;*/
    padding-left: 5px;
    justify-content: flex-start;
}

.event-disabled {
    color: dimgray;

}

.event > div {
    margin-left: 10px;
    line-height: 1em;

    h3 {
        margin-top: 0.5em;
        margin-bottom: 0.75em;
    }

    p {
        margin-top: 0;
        margin-bottom: 0.75em;
    }
}

.event svg {
    max-width: 20px;
    flex-grow: 1;
    justify-self: right;
    text-align: right;
    margin-left: auto;
    stroke-width: 2px;
}

.event img {
    flex-grow: 0;
    max-height: 75px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
}

.event-disabled img {
    filter: grayscale(100%) opacity(50%);
}

.event-disabled svg {
    display: none;
}
