*{
    margin: 0;
    box-sizing: border-box;
}

:root{
    --main-bg:hsl(233, 47%, 7%);
    --card-bg:hsl(244, 38%, 16%);
    --tertiary-color:hsl(277, 64%, 61%);
}

main{
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-columns: 330px;
    grid-template-rows: 1fr;
    justify-content: center;
    align-items: center;
    background-color: var(--main-bg);
}

.container{
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  
  display: flex;
  flex-direction: column;
  height: 500px;
}

.container .gradient{
    background-image: url('image/image-header-mobile.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 0 0;
    position: relative;
    isolation: isolate;
}

.container .gradient::after{
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--tertiary-color);
    opacity: .29;
    border-radius: 10px 10px 0 0;
}

section{
    text-align: center;
    background-color: var(--card-bg);
    margin-top: -4px;
    padding: 0.7rem 0.8rem;
    color: #fff;
    border-radius: 0 0 10px 10px;
}

section h1{
    margin-bottom: 0.8rem;
    padding-top: 0.8rem;
}

span{
    color: var(--tertiary-color);
}

section p{
    margin-bottom: 1.4rem;
    opacity: 0.7;
    font-size: small;
}

.data{
    padding-bottom: 0.8rem;
}

.data h6{
    padding-top: 0.1rem;
    opacity: 0.7;
}

@media screen and (min-width:750px){
    
main{
    display: flex;
}

    .container{
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        display: flex;
        flex-direction: row;
        width: 670px;
        height: 315px;
        
      }

    .container .gradient{
        background-image: url('image/image-header-desktop.jpg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 0 10px 10px 0;
        width: 700px;
        position: relative;
        isolation: isolate;
        order: 1;
    }

    .container .gradient::after{
        content: '';
        position: absolute;
        z-index: -1;
        inset: 0;
        background: var(--tertiary-color);
        opacity: .29;
        border-radius: 0 10px 10px 0;
    }

    section{
        width: 100%;
        border-radius: 10px 0 0 10px;
        margin-top: 0;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 1.5rem;
        padding-right: 3.5rem;
    }

    section .text{
        text-align: start;
    }

    section .text h1{
        margin-bottom: 1.1rem;
    }

    section .text p{
        margin-bottom: 2.5rem;
        opacity: .6;
    }

    section .analysis{
        display: flex;
        justify-content: space-between;
    }

    section .analysis .data h6{
        opacity: .6;
    }