.race-listing-cards {
    font-family: "Montserrat", 'Segoe UI', 'Sans Serif Collection';
    margin: 5px;
    padding: 5px;
}

.calendar-logo {
    /* border: 1px orange solid; */
    min-width: 168px;
    float: left;
    vertical-align: top;
    position: relative;
    top: -65px;
}

.calendar-logo img {
    position: relative;
    z-index: 40;
    top: -96px;
    left: 6px;
    height: 150px;
    width: auto;
    width: auto;
}

.calendar-logo-date {
    position: relative;
    z-index: 99;
    top: 97px;
    left: 24px;
    text-align: center;
    font-size: 56px;
    font-weight: bold;
    color: black;
    max-width: 60px;
    /* border: 1px green solid; */
}

.calendar-logo-day {
    font-family: "Roboto", "Montserrat", 'Segoe UI', 'Sans Serif Collection';
    position: relative;
    z-index: 99;
    top: 37px;
    left: 93px;
    font-size: 22px;
    font-weight: bold;
    color: darkslategrey;
}

.calendar-logo-month {
    position: relative;
    z-index: 101;
    top: 98px;
    left: 45px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    /* border: 3px black solid; */
}

.calendar-item {
    text-align: left;
    padding: 5px 10px 5px 0px;
    background-color: #F8F8F8;
    box-shadow: 5px 10px 18px #888888;
    overflow: hidden;
    clear: both;
    border: 2px darkgray solid;
    border-radius: 10px;
    margin: 14px 5px;
}

.event-detail {
    overflow: hidden;
    clear: right;
    /* border: 1px brown solid; */
    padding: 5px 20px;
}

.event-title {
    text-align: left;
    font-weight: bold;
    font-size: 25px;
    padding: 0px 15px;
    margin-bottom: 10px;
    color: darkblue;
    background-color: #f0f0f0;
    border-bottom: 1px #a0a080 solid;
}


.event-logo img {
    float: left;
}

.event-logo img {
    height: 100px;
    width: auto;
    margin-right: 15px;
}

.event-descr {
    clear: right;
    font-size: 15px;
    padding: 10px;
}

.event-location {
    position: relative;
    z-index: 99;
    top: 105px;
    left: 10px;
    clear: both;
    font-weight: 600;
    text-align: left;
    color: #198f08;
    font-size: 33px;
    font-weight: bold;
}

.event-reg-link {
    background-color: rebeccapurple;
    color: white;
    border: 5px #9b9898 outset;
    border-radius: 6px;
    box-shadow: 2px 3px 3px #888888;
    max-height: 50px;
    max-width: 169px;
    padding: 3px;
    margin: 10px 15px 10px 100px;
    float: left;
}

    .event-reg-link a {
        color: white;
        font-size: 18px;
        font-weight: bold;
        text-decoration: none;
    }

    .event-reg-link a:visited {
        text-decoration: underline;
        color: white;
    }

    .event-reg-link a:hover {
        text-decoration: underline;
        color: yellow;
    }

    .event-reg-link:hover {
        box-shadow: 4px 7px 7px #444444;
    }

#race-listing-fmt-border {
    border: 1px white solid;
}

#race-listing-fmt-logo {
    margin-left: 10px;
    height: 28px;
    width: auto;
    animation: shake 0.5s;
    animation-iteration-count: 10;
}


@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.animated {
    -webkit-animation-duration: 10s;
    animation-duration: 10s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.swing {
    -webkit-transform-origin: top center;
    transform-origin: top center;
    -webkit-animation-name: swing;
    /* animation-name: swing; */
    animation: 1s swing linear 10;
}

@-webkit-keyframes swing {
    20%, 40%, 60%, 80%, 100% {
        -webkit-transform-origin: top center;
    }

    20% {
        -webkit-transform: rotate(15deg);
    }

    40% {
        -webkit-transform: rotate(-10deg);
    }

    60% {
        -webkit-transform: rotate(5deg);
    }

    80% {
        -webkit-transform: rotate(-5deg);
    }

    100% {
        -webkit-transform: rotate(0deg);
    }
}

@keyframes swing {
    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}


#btnScrollToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 40px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #444;
    opacity: 0.5;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
}

#btnScrollToTop:hover {
    color: black;
    background-color: #eee;
    border-color: #fff;
}

@media only screen and (max-device-width: 980px) {

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

    .event-location {
        font-size: 25px;
    }
}