*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}

@font-face {
    font-family: 'Roboto';
    src:url(newsletter-sign-up-with-success-message-main/assets/fonts/Roboto-Regular.ttf) format('truetype'),
    url(newsletter-sign-up-with-success-message-main/assets/fonts/Roboto-Bold.ttf) format('truetype')
    ;       
}

:root{
    --Red: #ff6257;
    --Blue-800: hsl(234, 29%, 20%);
    --Blue-700: hsl(235, 18%, 26%);
    --Grey: hsl(0, 0%,58%);
    --White: hsl(0, 0%, 100%);
}

body{
    font-family: 'Roboto', serif;
}


main{
    width: 100vw;
    height: 100vh;
}


/* --hero-img-esction-- */
picture img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/*--body --*/
#sub-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1.3rem;
    position: relative;
    max-width: 85vw;
}

#sub-container h1{
    align-self: flex-start;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--Blue-800);
}


#news-usecase{
    color: var(--Blue-700);
    font-weight: 500;
}

#news-usecase p {
    margin-bottom: 1.1rem;
}


ul{
    list-style: none;
    padding-left: 0;
}

li{
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

li::before{
    content: "";
    background: url(newsletter-sign-up-with-success-message-main/assets/images/icon-list.svg) no-repeat center;
    background-size: contain;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 0.15rem;
}


/* ---form--- */

form {
    margin-top: 2rem;
}

#email, button{
    width: 100%;
}

form input{
    padding: 0.7rem 0.8rem;
    border-radius: 7px; 
    border: 1px solid var(--Grey);
    margin-bottom: 1rem;
}

form label{
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    color: var(--Blue-700);
    margin-bottom: 0.5rem;
}

label #error {
    color: var(--Red);
    display: none;
}

form button{
    padding: 0.9rem 0.8rem;
    margin-bottom: 1rem;
    color: var(--White);
    background-color: var(--Blue-700);
    border-radius: 7px;
    font-weight: 700;
}

form input:invalid:not(:placeholder-shown){
    border: 2px solid var(--Red) !important;
    color: var(--Red);
    background-color: #FFE7E6;
}

form button:active{
    background: linear-gradient(#FF6A3A, #FF527B);
    border: #ff6257;
}


/* ---tablet --- */
@media (min-width: 768px){

    main{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100vw;
        height: 100vh;
    }
   
    .hero-section{
        width: 100%;
        max-width: none;
        height: 358.29px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }
    picture {
        width: 100%;
        height: 100%;
        display: block;
        overflow: hidden;
    }

    picture img {
        width: 100%;
        height: 100%; 
        display: block;
        object-fit: cover; 
        border-radius: 1rem;
    }
    
    #news-letter-items{
        display: grid;
        grid-template-rows: 50% 50%;
        justify-content:center;
        align-items:center ;
        height: auto;
        width: 100%;
    }

}

/* --- big-screens ---*/

@media (min-width: 1020px){
    #news-letter-items{
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: 1fr;
        justify-content:center;
        align-items:center ;
        height: auto;
        width: 100%;
        max-width: 840px; 
            
    }
    .hero-section{
        height: 593px;
        grid-column: 2;
        grid-row: 1;
        width: 400px;
        padding: 0;
    }
    picture img {
        width: 100%;
        height: 100%; 
        object-fit: contain; 
    }

        
    #sub-container{
        grid-column: 1;
        grid-row: 1;
    }
        
    #sub-container h1{
        align-self: normal;
        font-size: 2.5rem;
        margin-bottom: 1.3rem;
            
    }
        
        
    #news-usecase{
        color: var(--Blue-700);
        font-weight: 550;
    }
        
    #news-usecase p {
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }
        
        
    ul{
        list-style: none;
        padding-left: 0;
        margin-top: 2rem 0;
    }

    
    form {
        margin-top: 2.7rem;
    }

    form label{
        font-weight: 600;
    }


}



/* --- confirmation - page --- */

#confirmation{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2.7rem;
}

#confirmation header{
    margin: 1.5rem 0;
}

 #confirmation p {
    font-weight: 400;
    color: var(--Blue-700);
}

#confirmation #user-email {
    font-weight: 900;
    color: var(--Blue-800);
    font-size: 1.1rem;
}

#confirmation button{
    margin-top: 7rem;
    padding: 0.9rem 0.8rem;
    color: var(--White);
    background-color: var(--Blue-700);
    border-radius: 7px;
    font-weight: 700;
    border: var(--Blue-700);
}

#confirmation button:active{
    background: linear-gradient(#FF6A3A, #FF527B);
    border: 1px solid #FF6A3A;
    position: relative;
}

#confirmation button:active::after{
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: -8px;
    background: linear-gradient(#FF6A3A, #FF527B);
    border-radius: 10px;
    filter: blur(10px);
    z-index: -1;
}



@media(min-width: 500px){
    .thanks-msg{
        width: 504px;
        height: auto;
    }

    #confirmation button{
        margin-top: 2rem;
    }

}
