body,
html {
    position: relative;
    height: 100%;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    background: #ecf0f1;
}

* {
    box-sizing: border-box;
}

.container {
    position: absolute;
    top: 0px;
    width: 50%;
    height: 50%;
    background: url(../img/pexels-photo-199362.jpeg);
    background-size: cover;
    background-position: center center;
    display: grid;
    flex-flow: column nowrap;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.container1 {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    background: url(../img/pexels-photo-177567.jpeg);
    background-size: cover;
    background-position: center center;
    display: grid;
    flex-flow: column nowrap;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.container2 {
    position: absolute;
    top: 50%;
    width: 50%;
    height: 50%;
    background: url(../img/container2.jpg);
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.container3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: url(../img/container3.jpg);
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.container h1 {
    margin: auto;
    width: 105%;
    -webkit-transform: translateX(-2.5%);
    text-align: center;
    padding: .2em 0;
    border-radius: 2px;
    color: #7c795d;
    font-family: 'Trocchi', serif;
    font-size: 2.5em;
    font-weight: normal;
    line-height: 48px;
    background: rgba(255, 255, 255, .95);
    text-transform: uppercase;
    text-shadow: 0 2px white;
    box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
    margin-top: 2em;
    transition: all 0.3s ease-in-out;
}

.container1 h1 {
    margin: auto;
    width: 105%;
    -webkit-transform: translateX(-2.5%);
    text-align: center;
    padding: .2em 0;
    border-radius: 2px;
    color: #7c795d;
    font-family: 'Trocchi', serif;
    font-size: 2.5em;
    font-weight: normal;
    line-height: 48px;
    background: rgba(255, 255, 255, .95);
    text-transform: uppercase;
    text-shadow: 0 2px white;
    box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
    margin-top: 2em;
    transition: all 0.3s ease-in-out;
}

.container2 h1 {
    margin: auto;
    width: 105%;
    -webkit-transform: translateX(-2.5%);
    text-align: center;
    padding: .2em 0;
    border-radius: 2px;
    color: #7c795d;
    font-family: 'Trocchi', serif;
    font-size: 2.5em;
    font-weight: normal;
    line-height: 48px;
    background: rgba(255, 255, 255, .95);
    text-transform: uppercase;
    text-shadow: 0 2px white;
    box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
    margin-top: 2em;
    transition: all 0.3s ease-in-out;
}

.container3 h1 {
    margin: auto;
    width: 105%;
    -webkit-transform: translateX(-2.5%);
    text-align: center;
    padding: .2em 0;
    border-radius: 2px;
    color: #7c795d;
    font-family: 'Trocchi', serif;
    font-size: 2.5em;
    font-weight: normal;
    line-height: 48px;
    background: rgba(255, 255, 255, .95);
    text-transform: uppercase;
    text-shadow: 0 2px white;
    box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
    margin-top: 2em;
    transition: all 0.3s ease-in-out;
}

.container .desc {
    position: relative;
    top: 150px;
    background: rgba(255, 255, 255, .95);
    width: 100%;
    padding: 1em;
    letter-spacing: 1.2px;
    line-height: 1.5em;
    font-family: sans-serif;
    margin: 0;
    transition: all .3s ease-in-out;
}

.container1 .desc {
    position: relative;
    top: 150px;
    background: rgba(255, 255, 255, .95);
    width: 100%;
    padding: 1em;
    letter-spacing: 1.2px;
    line-height: 1.5em;
    font-family: sans-serif;
    margin: 0;
    transition: all .3s ease-in-out;
}

.container2 .desc {
    position: relative;
    top: 102px;
    background: rgba(255, 255, 255, .95);
    width: 100%;
    padding: 1em;
    letter-spacing: 1.2px;
    line-height: 1.5em;
    font-family: sans-serif;
    margin: 0;
    transition: all .3s ease-in-out;
}

.container3 .desc {
    position: relative;
    top: 102px;
    background: rgba(255, 255, 255, .95);
    width: 100%;
    padding: 1em;
    letter-spacing: 1.2px;
    line-height: 1.5em;
    font-family: sans-serif;
    margin: 0;
    transition: all .3s ease-in-out;
}

.desc span {
    font-size: .8em;
    color: gray;
}

.date {
    float: right;
}

.container:hover .desc {
    top: 35px;
}

.container1:hover .desc {
    top: 35px;
}

.container2:hover .desc {
    top: 5px;
}

.container3:hover .desc {
    top: 5px;
}

.container:hover h1 {
    padding-top: 4em;
    font-size: 2em;
    margin-top: -2.5em;
}

.container1:hover h1 {
    padding-top: 4em;
    font-size: 2em;
    margin-top: -2.5em;
}

.container2:hover h1 {
    padding-top: 4em;
    font-size: 2em;
    margin-top: -2.5em;
}

.container3:hover h1 {
    padding-top: 4em;
    font-size: 2em;
    margin-top: -2.5em;
}


/* Global Button Styles */

.btn {
    position: relative;
    display: block;
    margin: auto;
    padding: 14px 15px;
    width: 250px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    letter-spacing: .08em;
    border: 3px solid #ffcb2f;
    background: #222222;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.2);
    -webkit-transition: all 2s ease;
    -moz-transition: all 2s ease;
    -o-transition: all 2s ease;
    transition: all 2s ease;
}

.btn:hover {
    color: black;
    box-shadow: inset 300px 0 0 0 #ffcb2f;
    transition: all 2s ease;
}
