@font-face {
    font-family: 'BariolRegular';
    src: url('../fonts/BariolRegular.eot');
    src: local('../fonts/BariolRegular'), url('../fonts/BariolRegular.woff') format('woff'), url('../fonts/BariolRegular.ttf') format('truetype');
}
html,
body {
    height: 100%;
}
body {
    font-family: sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #333;
    overflow: auto;
}
h1,
h2,
h3 {
    font-family: 'BariolRegular';
    margin: 0px;
}
h1 {
    font-size: 60px;
}
.content p {
    line-height: 24px;
    font-size: 16px;
    color: #616161;
    margin: 30px 0px;
}
.wrapper {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
}
.content {
    width: 940px;
    position: relative;
    margin: 5% auto;
    text-align: center;
    align-self: center;
    height: auto;
}

/*Accounts*/

.accounts-wrap {
    margin-top: 40px;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.accounts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.accounts li {
    padding: 30px;
    background: #fff;
    width: 300px;
    text-align: center;
    box-sizing: border-box;
    margin-right: 20px;
    margin-bottom: 20px;
}
.accounts li:nth-child(3n) {
    margin-right: 0;
}
#travisperkins .btn:hover {
    background: #0A4F38;
}
#cityplumbingsupplies .btn:hover {
    background: #1A3B69;
}
#keyline .btn:hover {
    background: #0066A1;
}
#benchmarx .btn:hover {
    background: #6B1D2F;
}
#ccf .btn:hover {
    background: #009B3A;
}
.account-img {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    vertical-align: middle;
}
#travisperkins img {
    width: 100%;
}
#cityplumbingsupplies img {
    width: 60%;
}
#keyline img {
    width: 70%;
}
#benchmarx img {
    width: 80%;
}
#ccf img {
    width: 60%;
}
.accounts .btn {
    display: block;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 14px;
    height: 50px;
    line-height: 50px;
    background: #d3d3d3;
    color: #333;
}
.accounts .btn:hover {
    color: #fff;
}
.end-text p {
    font-size: 14px;
}
.link {
    color: #4d2940;
}
.accountname .link {
    display: block;
    font-size: 14px;
    margin-top: 10px;
    position: relative;
}

/*Footer*/

.footer {
    position: relative;
    align-self: flex-end;
    width: 100%;
}
.footer_block {
    background-color: #4d2940;
    color: #FFF;
    padding: 0 20px;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: normal;
    overflow: hidden;
}

/* Smartphones (portrait and landscape) ----------- */

@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) {
    /* Styles */
    .wrapper {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
    }
    .content {
        margin: 10% 5%;
    }
}

/* Smartphones (landscape) ----------- */

@media only screen and (min-width: 415px) and (max-device-width: 768px) {
    /* Styles */
    .accounts li {
        width: 47.5%;
        margin-right: 5%;
        margin-bottom: 5%;
    }
    .accounts li:nth-child(2n) {
        margin-right: 0%;
    }
    .accounts li:nth-child(3n) {
        margin-right: 5%;
    }
}

/* Smartphones (portrait) ----------- */

@media only screen and (max-width: 414px) {
    /* Styles */
    .accounts li {
        width: 100%;
        margin-right: 0;
    }
    .account-img {
        height: auto;
    }
}

/* Desktops and laptops ----------- */

@media only screen and (min-width: 801px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
    /* Styles */
    .accounts li {
        padding: 30px;
        background: #fff;
        width: 270px;
        text-align: center;
        box-sizing: border-box;
        margin-right: 20px;
        margin-bottom: 20px;
    }
    .accounts li:nth-child(3n) {
        margin-right: 0;
    }
}

/* Large desktop ----------- */

@media only screen and (min-device-width: 1920px) {
    /* Styles */
    .wrapper {
        height: 100%;
    }
    .footer {
        top: -44px;
    }
}
