@charset "utf-8";
/* 
   JavaScript 7th Edition
   Chapter 6
   Hands-on Project 6-4

   Filename: styles.css
*/

/* Apply a natural box layout model to all elements */
* {
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
}

/* Structural Styles */
html {
   background-color: #f6f6f6;
   font-family: Arial, sans-serif;
}

body {
   background-color: #ffffff;
   width: 100%;
   max-width: 620px;
   margin: 20px auto;
   padding: 20px;
   border: 1px solid #cccccc;
   box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
   background-color: #3f51b5;
   color: #ffffff;
   font-size: 1.8rem;
   text-align: center;
   margin-top: 0;
   padding: 15px;
}

article h2 {
   color: #333333;
   border-bottom: 2px solid #3f51b5;
   padding-bottom: 5px;
}

/* Form Styles */
fieldset {
   border: 1px solid #b0bec5;
   border-radius: 4px;
   padding: 15px 25px;
   margin-bottom: 20px;
   background-color: #fafafa;
}

legend {
   font-weight: bold;
   color: #3f51b5;
   padding: 0 10px;
}

label {
   display: block;
   font-weight: bold;
   margin-top: 15px;
   margin-bottom: 5px;
   color: #555555;
}

/* Selection Lists Layout */
select {
   width: 100%;
   padding: 8px;
   font-size: 1rem;
   border: 1px solid #cfd8dc;
   border-radius: 4px;
   background-color: #ffffff;
}

/* Specific styling for multi-line size select items */
select[size] {
   height: 120px;
}

option {
   padding: 4px 8px;
}

/* Button Configuration */
input[type="button"] {
   display: block;
   width: 100%;
   background-color: #4caf50;
   color: #ffffff;
   font-size: 1.1rem;
   font-weight: bold;
   padding: 12px;
   margin-top: 25px;
   border: none;
   border-radius: 4px;
   cursor: pointer;
   transition: background-color 0.2s ease;
}

input[type="button"]:hover {
   background-color: #43a047;
}

/* Output Display Area */
#output {
   background-color: #e8f5e9;
   border-left: 5px solid #4caf50;
   padding: 15px;
   margin-top: 20px;
   border-radius: 0 4px 4px 0;
}

#output h3 {
   margin-top: 0;
   color: #2e7d32;
}

#vehicle {
   font-size: 1.2rem;
   font-weight: bold;
   color: #1b5e20;
   margin: 0;
}