.at-quadBlock {
    overflow: hidden;
}

.at-quadBlock__intro {
    position: relative;
    padding: 1em;
    background-color: #f8e3ab;
}

.at-quadBlock__title {
    margin-top: 0;
    padding-bottom: 1.3em;
    color: #002b5c;
    background: transparent url(../../img/wave-dark-blue.png) repeat-x 0 100%;
    background-size: 14px;
}

.at-quadBlock__intro p {
    margin-bottom: 0;
}

/** Arrow */
.at-quadBlock__intro:before {
    content: "";
    position: absolute;
    z-index: 2;
    right: 50%;
    bottom: 0;
    display: block;
    width: 0;
    margin-bottom: -30px;
    margin-right: -15px;
    border-width: 15px;
    border-style: solid;
    border-color: #f8e3ab transparent transparent;
}

/**
 * Blocks
 */

.at-quadBlock__blocksWrapper {
    position: relative;
    background: #fff url(quadBackground-min.svg) no-repeat 50% 50%;
    background-size: contain;
    z-index: 1;
}

.at-quadBlock__blocks {
    position: relative; /** For position the center circle (.at-quadBlock__center) text absolute */
    width: 100%;
    padding-top: 50%;
}

.at-quadBlock__block {
    width: 50%;
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 1em;
}

.at-quadBlock__block + .at-quadBlock__block {
    left: 50%;
}

.at-quadBlock__blockTitle {
    position: absolute;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    color: #002b5c;
}

.at-quadBlock__block:hover {
    /*background: #eaaf2d;*/
    -webkit-animation: bgTransition .5s forwards;
    animation: bgTransition .5s forwards;
}

.at-quadBlock__block:hover .at-quadBlock__blockTitle:after {
    position: absolute;
    margin-left: .5em;
    content: '\2192';
    font-family: 'icons', sans-serif;
}

.at-quadBlock__images {
    opacity: 0;
    transition: opacity .3s;
}

.at-quadBlock__center {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 7em;
    height: 7em;
    margin: auto auto auto -3.5em;
    padding: 2.5em 0;
    transform: translateY(-50%);
    border-radius: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
    background: #fff;
}

@media screen and (min-width: 560px) and (min-height: 460px) {
    .at-quadBlock__blocksWrapper:hover {
        background-color: transparent;
    }

    .at-quadBlock {
        position: relative;
        background-color: #f8e3ab;
    }

    .at-quadBlock__intro,
    .at-quadBlock__blocksWrapper {
        display: inline-block;
        vertical-align: middle;
    }

    .at-quadBlock__intro {
        width: 33.3%;
    }

    .at-quadBlock__intro:before {
        right: 0;
        bottom: 50%;
        margin: 0px -30px -15px 0;
        border-color: transparent transparent transparent #f8e3ab;
    }

    .at-quadBlock__blocksWrapper {
        width: 66.6%;
    }

    .at-quadBlock__blocksWrapper:hover .at-quadBlock__blockTitle {
        opacity: 0;
    }

    .at-quadBlock__images {
        position: absolute;
        z-index: -1;
        background-size: cover;
        background-position: 50% 50%;
    }

    .at-quadBlock__block:hover .at-quadBlock__images,
    .at-quadBlock__block:hover .at-quadBlock__blockTitle {
        opacity: 1;
        -webkit-animation: imgOpacity 1s forwards;
        animation: imgOpacity 1s forwards;
    }

    .at-quadBlock__images--1 {
        top: 0;
        left: 0;
        right: -100%;
        bottom: -100%;
    }

    .at-quadBlock__images--2 {
        top: 0;
        left: -100%;
        right: 0;
        bottom: -100%;
    }

    .at-quadBlock__images--3 {
        top: -100%;
        left: 0;
        right: -100%;
        bottom: 0;
    }

    .at-quadBlock__images--4 {
        top: -100%;
        left: -100%;
        right: 0;
        bottom: 0;
    }
}

@media screen and (min-width: 560px) {
    .at-quadBlock__center {
        font-size: 14px;
    }
}

@media screen and (min-width: 1400px) {
    .at-quadBlock__intro {
        width: 16%;
    }

    .at-quadBlock__blocksWrapper {
        width: 34%;
    }

    .at-quadBlock__blocksWrapper:hover .at-quadBlock__blockTitle {
        opacity: 1;
    }

    .at-quadBlock__blocksWrapper:hover,
    .at-quadBlock__blocksWrapper:hover .at-quadBlock__block--1 {
        background-color: #fff;
    }

    .at-quadBlock__block--1 {
        background: #eaaf2d;
    }

    .at-quadBlock__images {
        display: none;
    }

    .at-quadBlock__images--1,
    .at-quadBlock__block:hover .at-quadBlock__images {
        display: block;
    }

    .at-quadBlock__block--1 .at-quadBlock__images {
        opacity: 1;
    }

    .at-quadBlock__images--2,
    .at-quadBlock__images--4 {
        right: -300%;
        left: 100%;
    }

    .at-quadBlock__images--1,
    .at-quadBlock__images--3 {
        right: -400%;
        left: 200%;
    }
}

@-webkit-keyframes bgTransition {
    0% { background: #fff; }
    100% { background: #eaaf2d; }
}
@keyframes bgTransition {
    0% { background: #fff; }
    100% { background: #eaaf2d; }
}



@-webkit-keyframes imgOpacity {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes imgOpacity {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

