/*
   JavaScript 7th Edition
   Chapter 5
   Project 05-01

   Filename: styles.css
*/

/* General Page Layout */
body {
   font-family: Arial, sans-serif;
   background-color: #f4f4f9;
   margin: 0;
   padding: 20px;
   display: flex;
   flex-direction: column;
   align-items: center;
}

h1 {
   color: #333;
}

/* Quiz Clock Interface */
#clock {
   background-color: #e0e0e0;
   padding: 10px 20px;
   border-radius: 5px;
   margin-bottom: 20px;
   font-weight: bold;
}

#quizclock {
   font-size: 1.2em;
   width: 50px;
   text-align: center;
   border: none;
   background: transparent;
   font-weight: bold;
}

/* Start Button */
#startQuiz {
   padding: 10px 20px;
   font-size: 1em;
   background-color: #007bff;
   color: white;
   border: none;
   border-radius: 5px;
   cursor: pointer;
}

#startQuiz:hover {
   background-color: #0056b3;
}

/* Quiz Overlay Classes (Managed by JavaScript) */
#overlay.hidequiz {
   display: none;
}

#overlay.showquiz {
   display: block;
   margin-top: 20px;
   background-color: white;
   padding: 20px;
   border-radius: 8px;
   box-shadow: 0 4px 8px rgba(0,0,0,0.1);
   width: 100%;
   max-width: 500px;
}

/* Quiz Question Formatting */
div#quiz div {
   margin-bottom: 15px;
}

div#quiz label {
   display: block;
   margin-bottom: 5px;
   font-weight: bold;
}

div#quiz input {
   width: 100%;
   padding: 8px;
   box-sizing: border-box;
   border: 1px solid #ccc;
   border-radius: 4px;
}

/* Feedback Class for Incorrect Answers (Managed by JavaScript) */
div#quiz input.wronganswer {
   background-color: #ffcccc;
   border: 2px solid #ff0000;
}