@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
*{
    border: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
    font-family: "Josefin Sans";
    font-size: 16px;
    position: relative;
    padding-bottom: 50px;
}

.logo{
    padding: 35px 25px;
    width: 50%;
}

.hero {
    background: url("images/hero-mobile.jpg") no-repeat;
    height: 250px;
    background-size: cover;
}

.desktop-image{
    display: none;
}

.head span{
    font-weight: 400;
    color: hsl(0, 36%, 70%);
    display: block;
}
.head{
    font-weight: 600;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    color: hsl(0, 6%, 24%);
    margin: 50px 0 20px;
}

.text{
    font-weight: 300;
    padding: 0 25px;
    color: hsl(0, 36%, 70%);
    text-align: center;
    position: relative;
}

.contain{
    position: relative;
}
#mail{
    width: 75%;
    margin: 20px 10% 10px;
    padding: 15px;
    
    border: 1px solid hsl(0, 36%, 70%);
    border-radius: 20px;
    color: hsl(0, 36%, 70%);
    font-size: 12px;
}

#mail:focus{
    outline: none;
    border-color: hsl(0, 36%, 70%);
    color: hsl(0, 6%, 24%);
}

#mail:hover{
    border-color: hsl(0, 93%, 68%);
}

.mailto{
    background-color: hsl(0, 36%, 70%);
    border-radius: 40px;
    padding: 12px 29px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 73%;
    top: 22%;
}

.mailto img{
    width: 15px;
}

.mailto:hover{
    background-color: #f8cccd;
    box-shadow: 0 5px 15px hsl(0, 36%, 70%);
}

.error-icon{
    display: none;
    position: absolute;
    left: 65%;
    top: 46%;
}
.error-icon-active{
    display: inline-block;
    width: 20px;
}

.error-message{
    color: hsl(0, 93%, 68%);
    margin-left: 48px;
    font-size: 13px;
    /*! margin-bottom: 60px; */
}
.attribution { 
    font-size: 11px;  
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    color: hsl(0, 36%, 70%);
}

.attribution a {
    color: hsl(0, 6%, 24%); 
}

.hero-active{
    display: block;
    background-image: url("images/hero-desktop.jpg");
    height: 100vh;
    background-size: cover;
}

@media (min-width: 600px){

    #mail{
        width: 75%;
        margin-left: 10%;
    }
    .mailto{
        left: 80%;
    }

}



@media (min-width: 700px) {
    body{
        width: 100%;
        /*! height: 100vh; */
        background: url("images/bg-pattern-desktop.svg");
        display: grid;
        grid-template-columns: 53% 47%;
        grid-template-rows: 20vh 80vh;
        padding-bottom: 0;
    }
    .mobile-image{
        display: none;
    }

    .logo{
        position: relative;
        top: 40%;
        left: 20%;
        padding: 0;
        grid-column: 1/2;
        grid-row: 1/2;
    }

    .head{
        margin-top: 12%;
        margin-bottom: 8%;
        font-size: 55px;
        font-weight: 600;
        margin-left: 20%;
        text-align: left;
        letter-spacing: 15px;
}
    
    .text{
        width: 65%;
        margin-bottom: 8%;
        margin-left: 20%;
        padding: 0;
        font-size: 20px;
        text-align: left;
    }
    
    .hero{
        grid-column: 2/3;
        grid-row: 1/3;
    }
    
    .contain{
        width: 65%;
        margin-left: 20%;
        padding: 0;
        margin-top: 5%;
        margin-bottom: 2%;
        grid-column: 1/2;
        grid-row: 2/3;
    }
    
    #mail{
        margin: 0;
        width: 90%;
        font-size: 18px
    }

    .mailto{
        top: 50%;
        transform: translateY(-50%);
        padding: 18px 35px
    }
    
    .error-icon-active{
        top: 50%;
        left: 70%;
        transform: translateY(-50%);
        width: 25px;
    }
    
    .error-message{
        font-size: 20px;
        margin-left: 22%;
        font-size: 20px;
    }
    .attribution{
    position: initial;
    margin-top: 10%;
    margin-left: 20%;
    text-align: left;
    }
}