html,
body {
    padding: 0;
    margin: 0;
    font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

h1 {
    font-size: 2rem;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 30%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    white-space: nowrap;
}

.button {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 1.5rem 4.5rem;
    text-align: center;
    color: #1d1d1b;
    /*border: #fff solid 0.2rem;*/
    font-size: 2rem;
    font-weight: bold;
    /*text-transform: uppercase;*/
    text-decoration: none;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.split.left .button:hover {
    background-color: rgba(100,150,255,0.5);

    /*border-color: rgba(161, 11, 11, 0.3);*/
}

.split.right .button:hover {
    background-color: rgba(255, 50, 50, 0.5);
    /*border-color: rgba(92, 92, 92, 0.3);*/
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #333;
}

.split {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.split.left {
    left: 0;
   /* background: url(https://images.pexels.com/photos/1020315/pexels-photo-1020315.jpeg) no-repeat center center/cover;*/
}

.split.left:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: rgb(249 , 31, 31,0.6);
}

.split.right {
    right: 0;
   /* background: url(https://images.pexels.com/photos/270360/pexels-photo-270360.jpeg) no-repeat center center/cover;*/
}

.split.right:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: rgba(9, 98, 164, 0.96);
}

.split.left, .split.right, .split.left:before, .split.right:before {
    -webkit-transition: 1500ms all ease-in-out;
    transition: 1500ms all ease-in-out;
}



.hover-left .left {
    width: 70%;
}

.hover-left .right {
    width: 30%;
}

.hover-left .right:before {
    z-index: 2;
}

.hover-right .right {
    width: 70%;
}

.hover-right .left {
    width: 30%;
}

.hover-right .left:before {
    z-index: 2;
}

@media (max-width: 945px) {
    h1 {
        font-size: 3.3rem;
        top: 34%;
    }
    .button {
        font-size: 0.9rem;
        padding: 1rem 3rem;
    }
}

@media (max-width: 800px) {
    h1 {
        font-size: 3rem;
        top: 38%;
    }
    .button {
        font-size: 0.9rem;
        padding: 0.9rem 2.8rem;
    }
}

@media (max-width: 700px) {
    h1 {
        top: 20%;
    }
    .split {
        width: 100%;
        height: 50%;
    }
    .split.left {
        top: 0;
    }
    .split.right {
        bottom: 0;
    }
    .hover-left .left {
        height: 75%;
        width: 100%;
    }
    .hover-left .left h1 {
        top: 30%;
    }
    .hover-left .left button {
        bottom: 50%;
    }
    .hover-left .right {
        height: 25%;
        width: 100%;
    }
    .hover-left .right h1 {
        top: 0;
    }
    .hover-left .right button {
        bottom: 0;
    }
    .hover-left .right:before {
        z-index: 2;
    }
    .hover-right .right {
        height: 75%;
        width: 100%;
    }
    .hover-right .right h1 {
        top: 30%;
    }
    .hover-right .right button {
        bottom: 50%;
    }
    .hover-right .left {
        height: 25%;
        width: 100%;
    }
    .hover-right .left h1 {
        top: 0;
    }
    .hover-right .left button {
        bottom: 0;
    }
    .hover-right .left:before {
        z-index: 2;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 2.7rem;
    }
    .button {
        font-size: 0.9rem;
        padding: 0.7rem 2.5rem;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 2.4rem;
    }
    .button {
        font-size: 0.8rem;
        padding: 0.5rem 2.2rem;
    }
}

@media(max-height: 700px) {
    .button {
        top: 60%;
    }
}


