header {
    display: block;
    text-align: center;
    box-shadow: 0 0 25px 2px #b7b7b7;
    -webkit-box-shadow: 0 0 25px 2px #b7b7b7;
    -moz-box-shadow: 0 0 25px 2px #b7b7b7;
}

header img {
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 18rem;
}

body {
    font-size: 1.5rem;
    padding-bottom: 3rem;
}

.bodywrapper {
    width: 100%;
    max-width: 1050px;
    margin: 0rem auto;

}

h1 {
    font-size: 4rem;
    font-weight: bold;
    line-height: 5rem;
}

h2 {
    font-size: 2rem;
}

.footer {
    margin-top: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #345ea3;
    width: 100%;
    padding: 0 4rem;
    bottom: 0px;
    position: fixed;
    color: white;


}

.footer p {
    font-size: 1.5rem;
}

span.footer__heart {
    color: #E25555;
    font-size: 2rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.event_grid_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 5rem 0;


}

.back {
    position: relative;
    top: -30px;
    margin: 0 auto;
    text-align: right;
    width: 100%;
    max-width: 1050px;
    text-transform: uppercase;

}


#page_header_wrapper {
    margin-bottom: 3rem;
    border-bottom: 1px solid #c8c8c8;
}

.event_grid_item {
    background: #466368;
    background: -webkit-linear-gradient(#648880, #293f50);
    background: -moz-linear-gradient(#648880, #293f50);
    background: linear-gradient(#f5f5f5, #bfbfbf);
    border-radius: 5px;
    color: #000;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 49%;
    min-height: 20rem;
    margin-bottom: 2%;
    transition: 0.3s;

}

.event_grid_item:hover {
    box-shadow: 3px 3px 10px 1px #6b6b6b;
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

.event_grid_title {
    max-width: 75%;
    text-align: center;

}


.classes_grid_title {
    max-width: 80%;
    text-align: center;
    line-height: 3.5rem;

}




.classes_grid_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.classes_grid_item {
    background: #466368;
    background: -webkit-linear-gradient(#648880, #293f50);
    background: -moz-linear-gradient(#648880, #293f50);
    background: linear-gradient(#f5f5f5, #bfbfbf);
    border-radius: 5px;
    color: #000;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 23%;
    min-height: 7.5rem;
    margin-bottom: 2%;
    transition: 0.3s;
    padding: 2rem 0;
}

.classes_grid_item:hover {
    box-shadow: 3px 3px 10px 1px #6b6b6b;
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}




.result_wrapper {}

.resultbox_row {
    display: flex;
}


.resultbox_title {
    font-weight: bold;
    font-size: 2.5rem;
}

.resultbox_place {
    text-align: right;
    width: 5%;
    padding-right: 10px;

}

.resultbox_place.center {
    text-align: center;
    padding: 0;
}

.resultbox_name {
    width: 35%;

}

.resultbox_time {
    text-align: right;
    width: 12%;

}

.resultbox_time_diff {
    text-align: right;
    width: 13%;
    padding-right: 10px;

}

.resultbox_club {
    width: 35%;

}

.resultboxes {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.resultbox_row:nth-child(odd) {
    background: #dedede;
}



.missing_row {
    width: 100%;
    display: flex;
}

.missing_kat {
    width: 20%;
}

.missing_name {
    width: 30%;
}

.missing_club {
    width: 30%;
}

.missing_time {
    width: 20%;
}

.running {
    font-style: italic;
}

.resultbox_disq {
    width: 25%;
    text-align: right;
    padding-right: 10px;
}


@media only screen and (max-width: 1080px) {
    .bodywrapper {
        max-width: 950px;
    }

}

@media only screen and (max-width: 1049px) {
    .back {
        padding-right: 2rem;
    }

    .bodywrapper {
        width: 100%;
        padding: 0 2rem;
    }

}

@media only screen and (max-width: 450px) {
    h2 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .classes_grid_item {
        font-size: 2rem;
    }

    .classes_grid_title {
        word-break: break-word;
        line-height: 2rem;
    }

    .resultbox_title {
        font-size: 1.8rem;
    }

    .resultboxes {
        font-size: 1.5rem;
    }

    .resultbox_club {
        display: none;
    }

    .resultbox_place {
        width: 8%;
        padding-right: 5px;
    }

    .resultbox_time {
        width: 25%;
    }

    .resultbox_time_diff {
        width: 25%;
        padding-right: 5px;
    }

    .resultbox_name {
        width: 42%;
    }

    .resultbox_disq {
        width: 50%;
    }

    .event_grid_item {
        width: 100%;
        margin-bottom: 5%;
        min-height: 8rem;
    }

    header img {

        width: 10rem;
    }

}


@media only screen and (max-width: 375px) {
    .bodywrapper {
        padding: 0 1rem;
    }

    .footer {
        padding: 0 1rem;
        height: 2rem;
    }

    .footer p {
        font-size: 1rem;
    }

    span.footer__heart {
        font-size: 1rem;
    }

    .resultboxes {
        font-size: 1.2rem;
    }

    .event_grid_item {
        font-size: 2rem;
    }

}