﻿/*========================================================================================================================================================*/
/*ALL SCREEN RESOLUTIONS (DEFAULT LAYOUT)*/
/*========================================================================================================================================================*/

.advertisingsection1, .advertisingsection2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/*SECTION 1----------------------------------------------------------------------------------------------------------------------------------------------*/
.advertisingsection1 {
    height: 600px;
}

.advertisingsection1container {
    display: flex;
    flex-direction: column;
}

.advertisingsection1img {
    position: relative;
    top: 0;
    left: 10%;
    animation: advertisingsection1img;
    animation-duration: 2s;
    z-index: 1;
}

    .advertisingsection1img img {
        width: 600px;
    }

@keyframes advertisingsection1img {
    from {
        top: 200px;
        opacity: 0.85;
    }

    to {
        top: 0;
        opacity: 1;
    }
}

.advertisingsection1shape {
    position: relative;
    top: -200px;
    background-color: #fc4444;
    width: 100%;
    height: 385px;
    z-index: 0;
}

.advertisingsection1captioncontainer {
    position: relative;
    width: 700px;
    top: -550px;
    right: -40%;
    z-index: 1;
    border-radius: 100px 0 100px 0;
    overflow: hidden;
}

.advertisingsection1caption {
    position: relative;
    top: 0;
    left: 0;
    width: 700px;
    padding: 30px;
    background: white;
    animation: advertisingsection1caption;
    animation-duration: 2s;
    z-index: 3;
    border-radius: 100px 0 100px 0;
    border: solid;
}

@keyframes advertisingsection1caption {
    from {
        left: -700px;
    }

    to {
        left: 0;
    }
}

.advertisingsection1caption h1 {
    font-size: 42px;
}

.advertisingsection1caption h2 {
    font-size: 24px;
    color: grey;
}

.advertisingsection1caption p {
    font-size: 18px
}
/*SECTION 2----------------------------------------------------------------------------------------------------------------------------------------------*/
.advertisingsection2 {
    justify-content: start;
    height: 600px;
    overflow: hidden;
}

.advertisingsection2img {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
}

.advertisingimg2-hidden {
    position: absolute;
    width: 80%;
    opacity: 0;
}

.advertisingimg2-visible {
    animation: advertisingsection2img;
    animation-duration: 1.5s;
    opacity: 1;
}

@keyframes advertisingsection2img {
    from {
        width: 50%;
    }

    to {
        width: 80%;
        opacity: 1;
    }

    0% {
        width: 105%;
        opacity: .05;
    }

    25% {
        width: 70%;
        opacity: .25;
    }

    50% {
        width: 95%;
        opacity: .5;
    }

    75% {
        width: 75%;
        opacity: 1;
    }
}

.advertisingsection2shape {
    position: relative;
    width: 85%;
    height: 100vh;
    background-color: #fc4444;
    top: 200px;
    left: 100px;
    z-index: -1;
    animation: advertisingsection2shape;
    animation-duration: 2s;
}

@keyframes advertisingsection2shape {
    from {
        left: 100%;
    }

    to {
        left: 100px;
    }
}

.advertisingsection2caption {
    position: relative;
    width: 550px;
    padding: 50px 20px 50px 20px;
    top: -50px;
    left: 650px;
    background-color: white;
    border-radius: 100px 0 100px 0;
    border: solid;
    animation: advertisingsection2caption;
    animation-duration: 2s;
}

    .advertisingsection2caption h1 {
        font-size: 32px;
        text-align: center;
    }

@keyframes advertisingsection2caption {
    from {
        top: 100px;
    }

    to {
        top: -50px;
    }
}

/*========================================================================================================================================================*/
/*TABLET AND PORTRAIT*/
/*========================================================================================================================================================*/

@media only screen and (max-width: 800px) {
    .advertisingsection1 {
        height: 55vh;
    }
    .advertisingsection1container {
        width:100%;
    }

    .advertisingsection1img {
        left: 10px;
    }

    .advertisingsection1shape {
        height: 500px;
    }

    .advertisingsection1captioncontainer {
        width: 700px;
        top: -600px;
        right: -85px;
    }

    .advertisingimg2-hidden {
        width: 95%;
    }

    @keyframes advertisingsection2img {
        from {
            width: 50%;
        }

        to {
            width: 95%;
            opacity: 1;
        }

        0% {
            width: 105%;
            opacity: .05;
        }

        25% {
            width: 70%;
            opacity: .25;
        }

        50% {
            width: 95%;
            opacity: .5;
        }

        75% {
            width: 75%;
            opacity: 1;
        }
    }

    .advertisingsection2shape {
        width: 97%;
        height: 500px;
        background-color: #fc4444;
        top: 200px;
        left: 10px;
    }

    @keyframes advertisingsection2shape {
        from {
            left: 100%;
        }

        to {
            left: 10px;
        }
    }

    .advertisingsection2caption {
        width: 550px;
        padding: 50px 20px 50px 20px;
        top: -50px;
        left: 50%; /* Start positioning from the center of the page */
        transform: translateX(-50%); /*Move the navbar back to be centered */
    }
}

/*========================================================================================================================================================*/
/*PHONE AND PORTRAIT*/
/*========================================================================================================================================================*/

@media only screen and (max-width: 480px) {
    .advertisingsection1 {
        height: 65vh;
    }

    .advertisingsection1img {
        top: 0;
        left: 2px;
    }

        .advertisingsection1img img {
            width: 355px;
        }

    .advertisingsection1shape {
        top: -200px;
        width: 100%;
        height: 300px;
    }

    .advertisingsection1captioncontainer {
        width: 340px;
        top: -350px;
        left: 15px;
        border-radius: 20px 0 20px 0;
    }


    .advertisingsection1caption {
        top: 0;
        left: 0;
        width: 340px;
        padding: 15px;
        border-radius: 20px 0 20px 0;
    }

    @keyframes advertisingsection1caption {
        from {
            left: -700px;
        }

        to {
            left: 0;
        }
    }

    .advertisingsection1caption h1 {
        font-size: 18px;
    }

    .advertisingsection1caption h2 {
        font-size: 14px;
        color: grey;
    }

    .advertisingsection1caption p {
        font-size: 12px
    }

    .advertisingsection2 {
        justify-content: unset;
        width: 100%;
        height: 350px;
    }

    .advertisingimg2-hidden {
        width: 95%;
    }

    @keyframes advertisingsection2img {
        from {
            width: 50%;
        }

        to {
            width: 95%;
            opacity: 1;
        }

        0% {
            width: 105%;
            opacity: .05;
        }

        25% {
            width: 70%;
            opacity: .25;
        }

        50% {
            width: 95%;
            opacity: .5;
        }

        75% {
            width: 75%;
            opacity: 1;
        }
    }

    .advertisingsection2shape {
        width: 380px;
        top: 50px;
        left: 5px;
    }

    @keyframes advertisingsection2shape {
        from {
            left: 100%;
        }

        to {
            left: 5px;
        }
    }

    .advertisingsection2caption {
        width: 350px;
        top: -50px;
        left: 175px;
        padding: 20px;
        border-radius: 50px 0 50px 0;
    }

        .advertisingsection2caption h1 {
            font-size: 18px;
        }

    @keyframes advertisingsection2caption {
        from {
            top: 100px;
        }

        to {
            top: -50px;
        }
    }

    .advertisingsection2caption p {
        font-size: 12px;
    }
}
