@media only screen and (max-width: 510px) {
    #thanks {
	width:320px;
	padding:2px;
	right:calc((100% - 320px) / 2);
	top:200px;
	border:1px solid #000;
}
#thanks p {
    margin:30px 32px 10px 32px ;
    font-size:18px;
}

#thanks span {
	font-size:15px;
}

    div#form form label {
        margin:5px;
        font-size:13px;
        border:.3px solid;
        width:70px;
    }

    #contact a div {
        font-size:15px;
    }

    #sub-nav ul {
         display:block;
         padding:0;
     }
}
@media only screen and (max-width: 1010px) {
    #contact a div {
        width:60%;
    }

    div#contact a {
        width:90%;
    }
}
