/*
   New Perspectives on HTML5 and CSS3, 8th Edition
   Tutorial 7
   Review Assignment

   Customer Information Validation Style Sheet
   Author: Matt Johnson
   Date:   11/10/24

   Filename: rb_validate.css

*/


/* Validation Styles */

input:focus,
select:focus,
textarea:focus {
   background-color: rgb(255, 255, 180);
}

input#nameBox:valid,
input#phoneBox:valid {
   background-color: rgb(220, 255, 220);
   background-image: url(rb_okay.png);
   background-repeat: no-repeat;
   background-position: right;
}

input#nameBox:invalid,
input#phoneBox:invalid {
   background-color: rgb(255, 230, 230);
   background-image: url(rb_warning.png);
   background-repeat: no-repeat;
   background-position: right;
}