/* Chase Sandy 3/12/2025
   New Perspectives on HTML and CSS
   Tutorial 6
   Case Problem 1

   Comment Form Style Sheet
   Author: 
   Date:   

   Filename:         comments.css
   Supporting Files: go.png, stop.png

*/

fieldset {
    background-color: rgb(245, 245, 255); 
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    width: 90%;
}

label {
    display: block;             
    float: left;                
    margin-top: 5px;            
    margin-bottom: 5px;         
    font-size: 0.9em;           
    width: 100%;                
    clear: both;                
}

input[type="text"], input[type="email"], input[type="password"], textarea {
    display: block;             
    float: right;               
    font-size: 0.9em;           
    width: 55%;                 
    margin-left: 10px;          
    margin-right: 10px;         
    padding: 5px;               
}

textarea {
    height: 150px;             
}

button[type="submit"] {
    display: block;             
    width: 200px;               
    height: 30px;               
    margin-top: 5px;            
    margin-bottom: 5px;         
    margin-left: auto;          
    margin-right: auto;         
    padding: 5px;               
    font-size: 1em;             
    cursor: pointer;  
    clear: both;         
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
    background-color: rgb(225, 225, 240); 
}

input[type="text"]:focus:valid, input[type="email"]:focus:valid, input[type="password"]:focus:valid {
    background-color: rgb(225, 240, 225); 
    background-image: url('go.png');      
    background-position: bottom right;   
    background-repeat: no-repeat;        
    background-size: contain;            
}


input[type="text"]:focus:invalid, input[type="email"]:focus:invalid, input[type="password"]:focus:invalid {
    background-color: rgb(240, 225, 225); 
    background-image: url('stop.png');    
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;            
}
