@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

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

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

.box.left {
    left: 0;
    background: url('mac.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.box.left::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(92, 90, 235, 0.7);
}

.box.right {
    right: 0;
    background: url('iphone.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.box.right::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(72, 68, 68, 0.8);
}

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

.button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    text-decoration: none;
    color: #fff;
    border: 3px solid #fff ;
    font-size: 1rem;
    font-weight: bolder;
    text-transform: uppercase;
    width: 15rem;
    padding: 1.5rem;
}

.box.left .button:hover {
    background-color: rgba(92, 90, 235, 1);
    border-color: rgba(92, 90, 235, 1);
}

.box.right .button:hover {
    background-color: rgba(72, 68, 68, 1);
    border-color: rgba(72, 68, 68, 1);
}

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

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

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

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

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