/* style for all headers on the page */

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

/* style for all <h1> elements on the page */

header h1 {
    margin: 0;
}

/* style for all <h2> elements on the page */

h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Apply the background image to the absolute base container layer */

html {
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #f4f4f4;
  height: 100%;
}

/* Keep the layout alignment rules strictly on the body container block */ 
body { 
  font-family: Arial, sans-serif; 
  margin: 0; 
  padding: 0; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: transparent; 
}

/* style for all <nav> elements on the page */
nav {
    background-color: #444;
    color: #fff;
    padding: 0.5rem 0;
    text-align: center;
}

/* style for all <nav a> elements on the page */

nav a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
}

/* style for all <nav a> elements on the page when hovered */

nav a:hover {
    text-decoration: underline;
}

/* style for all <section> elements on the page */

section {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* style for all <footer> elements on the page */

footer { 
  background-color: #333; 
  color: #fff; 
  padding: 1rem 0; 
  text-align: center; 

  /* This line tells the footer to automatically snap to the bottom of the body */
  margin-top: auto; 
}


/* style for all <footer> elements on the page when hovered */

footer:hover {
    background-color: #444;
}

/* style for all <footer> elements on the page when focused */

footer:focus {
    background-color: #555;
}

/* style for all <p> elements on the page */
p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
/* style for all <a> elements on the page */    
a {
    color: #333;
    text-decoration: none;
}
/* style for all <a> elements on the page when hovered */
a:hover {
    color: #666;
    text-decoration: underline;
}
/* style for all <ul> elements on the page */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* style for all <li> elements on the page */
li {
    margin-bottom: 0.5rem;
}
/* style for all <button> elements on the page */

button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* style for all <button> elements on the page when hovered */

button:hover {
    background-color: #666;
}

/* style for all <input> elements on the page */

input {
    border: 1px solid #ccc;
    padding: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* style for all <input> elements on the page when focused */

input:focus {
    border-color: #333;
    outline: none;
}

/* style for all <select> elements on the page */

select {
    border: 1px solid #ccc;
    padding: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* style for all <select> elements on the page when focused */

select:focus {
    border-color: #333;
    outline: none;
}

/* style for all <textarea> elements on the page */

textarea {
    border: 1px solid #ccc;
    padding: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* style for all <textarea> elements on the page when focused */

textarea:focus {
    border-color: #333;
    outline: none;
}

/* style for all <form> elements on the page */

form {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* style for all <form> elements on the page when hovered */

form:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* style for all <form> elements on the page when focused */

form:focus {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

