/*
      New Perspectives on HTML, CSS, and JavaScript
      Final Project
      Author: Michael LaTour
      Date: 11/8/15
      IT 270

*/

form#survey {
    margin-left: 240px;
}

fieldset {
    background-color: rgb(255,246,205);
    border: 2px solid burlywood;
    float: left;
    margin: 0px auto;
    width: 35%;
}

legend {
   font-weight: bold;
   text-align: center;
   font-size: 18px;
   color:  white;
   background-color: burlywood;
   width: 100%;

   -moz-border-radius-topleft: 10px;
   -webkit-border-top-left-radius: 10px;
   border-top-left-radius: 10px;

   -moz-border-radius-topright: 10px;
   -webkit-border-top-right-radius: 10px;
   border-top-right-radius: 10px;
}

label {
    clear: left;
    display: block;
    float: left;
    width: 40%;
    font-size: 11px;
}

input {
    display: block;
    float: left;
    font-size: 11px;
    width: 45%;
}


input#state {
    width: 50px;
}



textarea {
    display: block;
    font-size: 11px;
    float: left;
    height: 90px;
    margin: 10px;
    width: 45%;
}

#newsletter {
    color: burlywood;
    float: none;
    margin: 10px;
    text-align: center;
    width: 90%;
}

#newsletter input {
    display: inline;
    float: none;
    width: 20px;
}

#visitPerMonth {
    width: 50px;
}

label.sliderLabel {
    clear: none;
    font-size: 11px;
    margin: 10px;
    text-align: center;
    width: 10px;
}

input[type="range"] {
    width: 150px;
    margin: 5px
}


p {
    height: 40px;
    max-width: 400px;
    margin-left: 240px;
}

/* Styles for input validation or invalidation */

input:focus:valid {
    background: rgb(123,323,123) url("go.png") bottom right no-repeat;
    
    -o-background-size: contain;
    -moz-background-size: contain;
    -webkit-background-size: contain;
    background-size: contain;
}

input:focus:invalid {
    background: rgb(250,25,25) url("stop.png") bottom right no-repeat;
    
    -o-background-size: contain;
    -moz-background-size: contain;
    -webkit-background-size: contain;
    background-size: contain;
}