@font-face {
    font-family: Montserrat;
    src: url(../fonts/Montserrat-Regular.woff);
}
@font-face {
    font-family: Montserrat-Bold;
    src: url(../fonts/Montserrat-Bold.woff);
}

html, body {
    height: 100%;
    margin: 0px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #537caf;
    height: 100px;
    width: auto;
    padding: 0 45px;
    display: flex;
    align-items: center;
    -webkit-box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.36);
    -moz-box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.36);
    box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.36);
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

header div {
    height: 40px;
    width: auto;
    text-align: center;
}

header div img {
    height: 40px;
}

header p {
    text-align: center;
    margin: 0;
    color: #fff;
    font-size: 29px;
    width: 100%;
    height: 40px;
}

header p b {
    font-family: 'Montserrat-Bold', sans-serif;
}

.content {
    display: flex;
    width: 100%;
    flex: 1;
}

.content > div {
    height: 100%;
}

.content .merlo {
    background-image: url("../images/foto-merlo-activo.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    flex: 1;
}

.content .merlo:hover {
    background-image: url("../images/foto-merlo-over.jpg");
}

.content .cordoba {
    background-image: url("../images/foto-cordoba-activo.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    flex: 1;
}

.content .cordoba:hover {
    background-image: url("../images/foto-cordoba-over.jpg");
}

.content > div a {
    display: block;
    width: 200px;
    height: 45px;
    margin-top: 30%;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
    color: #000;
    text-decoration: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #fff;
    border-color: #fff;
    text-align: center;
    line-height: 45px;
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.36);
    -moz-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.36);
    box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.36);
}

.content > div:hover a {
    background-color: #537caf;
    color: #fff;
}

.content .divisor {
    width: 5px;
    display: flex;
    flex-direction: column;
    background-color: #537caf;
    overflow: visible;
    z-index: 1;
}

.content .divisor .content-circulo {
    flex: 1;
    display:flex;
    flex-direction: column;
    justify-content: space-around;
    margin-left: -9px;
}

.content .divisor .circulo {
    width: 20px;
    height: 20px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background: #537caf;
    border: 1px solid #fff;
}

.content .divisor .racing {
    padding: 20px 0;
    margin-left: -15px;
    position: relative;
}

.content .divisor .racing > img {
    width: 35px;
    cursor: pointer;
}

.content .divisor .racing .historia {
    position: absolute;
    bottom: 66px;
    left: -108px;
    display: none;
}

.content .divisor .racing:hover .historia {
    display: block;
}

.content .divisor .racing .historia img {
    width: 250px;
}

@media (max-width : 768px) {
    header {
        height: 67px;
        padding-top: 53px;
    }

    header div {
        position: absolute;
        top: 20px;
        left: 50%;
    }

    header div:first-child {
        left: calc(50% - 50px);
    }

    header div img {
        height: 25px;
    }

    header p {
        font-size: 22px;
    }

    .content {
        flex-direction: column;
    }

    .content div {
        height: initial;
    }

    .content .merlo {
        background-image: url("../images/foto-merlo-over.jpg") !important;
    }

    .content .cordoba {
        background-image: url("../images/foto-cordoba-over.jpg") !important;
    }

    .content > div a {
        background-color: #537caf;
        color: #fff;
        margin: 0;
        align-self: center;
    }

    .content .divisor {
        width: initial;
        height: 5px;
        flex-direction: row;
        position: relative;
    }

    .content .divisor .content-circulo {
        flex-direction: row;
        margin: -9px 0 0;
    }

    .content .divisor .racing {
        display: none;
    }
}

@media (max-width : 486px) {
    header p {
        font-size: 18px;
    }
}