.main{
    position: relative;
    width: 100vw;
    height: calc(100vh - 4.5rem);
    top: 4.5rem;
    box-shadow: 0 -1px 3px black;
}

html{
    overflow: hidden;
}

body{
    margin: 0;
    padding: 0;
}

.old, .new {
    overflow: hidden;
    background-color: black;
    position: absolute;
}

.contentText{
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    font-family: sans-serif;
    font-size: 2em;
    color: white;
    filter: drop-shadow(0 0 5px black);
    transform: translateY(-50%);

}


img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.titleHeader {
    position: absolute;
    background-color: #e6a400;
    left: 0px;
    right: 0px;
    text-align: center;
    line-height: 1.5;
    font-family: sans-serif;
    color: white;
    font-size: 3em;
}

@media screen and (min-width: 720px) {

    .old, .new {
        transition: width 0.4s ease;
    }

    .old:not(:hover) > img, .new:not(:hover) > img {
        filter: blur(15px);
    }

    
    .old{
        clip-path: polygon(0% 0%, 100% 0%, 75% 100%, 0% 100%);
        width: 60%;
        left: 0;
        top: 0;
        bottom: 0;
    }

    .old > img {
        position: relative;
        width: calc(100% + 100px);
        left: -100px;
    }

    .new{
        width: 60%;
        clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
        right: 0;
        top: 0;
        bottom: 0;
    }

    .old:hover ~ .new{
        width: 45%;
    }

    .old:hover, .new:hover {
        width: 75%;
    }

    .contentText {
        right: 10%;
    }

}
