/* ==== MAIN ====  */

/* ====VARIABLES ====  */
:root {
    --left-bg-color: rgba(73, 63, 47, 0.7);
    --right-bg-color: rgba(43, 43, 43, 0.8);
    --left-btn-hover-color: rgba(54, 44, 29, 0.7);
    --right-btn-hover-color: rgba(48, 43, 43, 1);
    --hover-width: 75%;
    --other-width: 25%;
    --speed: 1000ms
}
/* ==== STYLING ====  */
*{
    box-sizing: border-box;
    margin: 0;
}
 body{
    height: 100vh;
    overflow: hidden;
    background-color: black;
    font-family: 'Poppins', sans-serif;
 }

 h1{
    font-size: 4rem;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    white-space: nowrap;
 }
 .container{
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #333;
 }

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

 .split.left{
    left: 0;
    /* background: url('https://images.unsplash.com/photo-1617864064479-f203fc7897c0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8cGxheXN0YXRpb24lMjA1fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=600&q=60'); */
    background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80');
    background-repeat: no-repeat;
    background-size: cover;
 }

 .split.left::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--left-bg-color);
 }

 .split.right{
    right: 0;
    /* background: url('https://images.unsplash.com/photo-1621259182978-fbf93132d53d?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MXx8eGJveCUyMHNlcmllcyUyMHh8ZW58MHx8MHx8&auto=format&fit=crop&w=600&q=60'); */
    background: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80');
    background-repeat: no-repeat;
    background-size: cover;
 }

 .split.right::before{
    content: ''; /* always use content when ::before is used */
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--right-bg-color);
 }

 .split.right, .split.left, .split.right::before, .split.left::before {
    transition: all var(--speed) ease-in-out;
 }
 .landing-btn{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    top: 40%;
    transform: translateX(-50%); /* to put it in the middle */
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    border: #fff solid 0.2rem;
    font-size: 1rem;
    font-weight: bold;
    width: 15rem;
    padding: 1.5rem;
 }
 .split.left .landing-btn:hover{
    background-color: var(--left-btn-hover-color);
    border-color: var(--left-btn-hover-color);
 }
 .split.right .landing-btn:hover{
    background-color: var(--right-btn-hover-color);
    border-color: var(--right-btn-hover-color);
 }

 /* ==== HOVERING AFFECT====  */

  /* ==== IF HOVERED LEFT ====  */
 .hover-left .left{
    width: var(--hover-width);
 }
 .hover-left .right{
    width: var(--other-width);
 }
 /* ==== IF HOVERED RIGHT ====  */
 .hover-right .right{
    width: var(--hover-width);
 }
 .hover-right .left{
    width: var(--other-width);
 }

 @media(max-width: 800px){
    h1{
        font-size: 2rem;
        top: 30%;
    }

    .landing-btn{
        padding: 1.2rem;
        width: 12rem;
    }
 }