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