html, body{
    background-color: #f9f9f9;
    font-size: 16px;
    line-height: 1.375rem;
}

.middle{
    max-width: 600px;
}

section{
    padding-top: 4rem;
    padding-bottom: 4rem;
}

section .title{
    margin-top: 0;
    margin-bottom: 3rem;
    text-align: center;
    color: rgba(0,0,0,0.87);
}

.past-events{
    border-top: 1px solid #eee;
}

.future-events{

}

.event_item{
    position: relative;
    min-height: 20px;
    width: 100%;
    background-color: white;
    margin-bottom: 2rem;
    border-radius: 5px;
    -webkit-box-shadow: 0 2px 5px rgba(50,50,93,.05), 0 2px 5px rgba(0,0,0,.04);
    box-shadow: 0 2px 5px rgba(50,50,93,.05), 0 2px 5px rgba(0,0,0,.04);
    transition: all 0.4s ease;
}

.event_item:not(:last-child){
    margin-bottom: 5rem;
}

@media (max-width: 768px){
    .event_item:not(:last-child){
        margin-bottom: 2rem;
    }
}

.event_item:hover{
    transform: translateY(-2px);
    -webkit-box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
    box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
    color: #187aed;
}

.event_cover{
    width: 100%;
    max-height: 250px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    object-fit: cover;
}
.event_info{
    padding: 2rem;
    max-height: 180px;
    overflow: hidden;
}
.event_title{
    margin: 0;
    margin-bottom: 0.5rem;
    line-height: 1.5rem;
}

.event_date_box{
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: #187aed;
    color: white;
    font-weight: 600;
    border-radius: 5px;
    padding: 16px;
    text-align: center;
    font-size: 15px;
    -webkit-box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
    box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
}

.event_date_box p{
    margin: 0;
}

@media (max-width: 768px){
    .event_date_box{
        position: absolute;
        top: 10px;
        left: 10px;
    }
}

.event_address{
    color: rgba(0,0,0,0.54);
    margin-bottom: 0;
}

.event_address .material-icons{
    color: rgba(0,0,0,0.54);
    font-size: 16px;
    vertical-align: bottom;
    margin-bottom: 1px;
    margin-right: 4px;
}

.event_cancelled{
    background: #fb3b5b;
    color: white;
    padding: 1rem 2rem;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.event_cancelled p{
    margin: 0;
}

.admin_panel .close{
    color: white;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.admin_action{
    display: block;
    width: fit-content;
    background-color: white;
    color: #187aed;
    padding: 10px 18px;
    border-radius: 4px;
    margin: 18px 0px;
    font-weight: 600;
}

.admin_action:hover{
    transform: translateY(-2px);
}

.admin_panel{
    position: relative;
}

.admin_panel .close{
    color: white;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.btn-load-more{
    text-align: center;
    display: inline-block;
    border: 2px solid rgba(0,0,0,0.12);
    border-radius: 1000px;
    padding: 1rem 2rem;
    color: rgba(0,0,0,0.54);
    font-size: 16px;
    text-transform: uppercase;
}

.btn-load-more .material-icons{
    font-size: 24px;
    vertical-align: bottom;
    margin-bottom: -1px;
    margin-left: 4px;
}

.btn-load-more:hover{
    color: #187aed;
    border-color: #187aed;
}

.no_upcoming_events{
    padding: 2rem;
    border: 2px solid #eee;
    border-radius: 10px;
}

.no_upcoming_events p{
    font-size: 20px;
    color: rgba(0,0,0,.89);
    text-align: center;
    margin: 0;
}