@font-face {
    font-family: Poppins-Light;
    src: url(../fonts/Poppins-Light.ttf);
}

@font-face {
    font-family: Poppins-Regular;
    src: url(../fonts/Poppins-Regular.ttf);
}

@font-face {
    font-family: Poppins-ExtraBold;
    src: url(../fonts/Poppins-ExtraBold.ttf);
}

/*****************************************************/

main {
    display: block;
    width: 100%;
    margin-top: 100px;
    padding: 50px 0;
    position: relative;
}

#contact-form {
    display: block;
    width: 500px;
    margin: 0 auto;
}

#form-header {
    display: block;
    width: 100%;
    position: relative;
    padding-left: 100px;
    margin-bottom: 50px;
}

#form-header img {
    display: block;
    width: 80px;
    position: absolute;
    top: 0;
    left: 0;
}

#form-header h1 {
    display: block;
    width: 100%;
    line-height: 40px;
    font-size: 35px;
    font-family: Poppins-ExtraBold, sans-serif;
    font-weight: bolder;
    color: indianred;
    text-align: left;
}

#form-header p {
    display: block;
    width: 100%;
    line-height: 20px;
    font-size: 14px;
    font-family: Poppins-Light, sans-serif;
    font-weight: lighter;
    color: #444;
    text-align: left;
}

#form-header p span {
    display: block;
}

#form-header p a {
    color: blueviolet;
}

.night #form-header p a {
    color: skyblue;
}

.night #form-header h1,
.night #form-header p {
    color: #ddd;
}

.field {
    display: block;
    width: 100%;
    height: 60px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,.1);
    margin-bottom: 20px;
}

.night .field {
    background: #333;
}

#message {
    height: 100px;
}

.field label {
    display: block;
    width: 100%;
    line-height: 60px;
    font-size: 14px;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    padding: 0 15px;
    font-family: Poppins-Regular, sans-serif;
    color: #777;
    text-align: left;
    font-weight: normal;
    transition: .2s linear;
}

.night .field label {
    color: #bbb;
}

.field.active label {
    line-height: 30px;
    font-size: 10px;
}

.field input {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 15px;
    font-family: Poppins-Regular, sans-serif;
    color: #444;
    font-weight: normal;
    text-align: left;
    font-size: 16px;
}

.field.active input {
    height: 40px;
    top: 20px;
}

.field textarea {
    display: block;
    width: 100%;
    padding: 30px 15px;
    line-height: 20px;
    font-family: Poppins-Regular, sans-serif;
    color: #444;
    font-weight: normal;
    text-align: left;
    font-size: 16px;
    border: 0;
    outline: 0;
    background: transparent;
    resize: none;
    position: relative;
    z-index: 10;
}

.field textarea::-webkit-scrollbar {
    width: 0;
}

.night .field input,
.night .field textarea {
    color: #ddd;
}

#submit-message {
    display: block;
    width: 60%;
    margin-left: 40%;
    height: 50px;
    text-align: center;
    border: 0;
    outline: 0;
    background: #fff;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #444;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0,0,0,.1);
    transform-origin: center;
    transition: .1s linear;
}

#submit-message:hover {
    transform: scale(1.05);
}

.night #submit-message {
    background: #333;
    color: #ddd;
}

@media only screen and (max-width: 1000px){
    
    main {
        margin-top: 80px;
    }
    
}

@media only screen and (max-width: 700px){
    
    main {
        margin-top: 60px;
    }
    
    #contact-form {
        width: 90%;
    }
    
    #form-header {
        padding-left: 90px;
    }
    
    #form-header img {
        width: 70px;
    }
    
    #form-header h1 {
        line-height: 30px;
        font-size: 25px;
    }
    
    #form-header p {
        font-size: 12px;
    }
    
    @media only screen and (max-width: 500px){
        
        #contact-form {
            width: 100%;
            padding: 0 20px;
        }
        
        #form-header {
            padding: 0;
        }
        
        #form-header img {
            position: relative;
            margin: 0 auto 20px auto;
        }
        
        #form-header h1 {
            line-height: 25px;
            font-size: 20px;
            text-align: center;
            margin-bottom: 10px;
        }
        
        #form-header p {
            width: 250px;
            margin: 0 auto;
            text-align: center;
        }
        
        #form-header p span {
            display: none;
        }
        
        .field {
            margin-bottom: 15px;
        }
        
        #submit-message {
            width: 100%;
            margin: 0;
        }
        
    }
    
}