/* 
  Author: Rylan Closs
  Course: ITWP 1050 - Web Programming
  Assignment: Homework 5 - Responsive Design and Animation
*/

/* ===== GENERAL PAGE STYLING ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.8;
  background: linear-gradient(to bottom, #f9f3e4, #e4d5b7);
}

/* ===== HEADER STYLING ===== */
header {
  text-align: center;
  padding: 2rem;
  background: url('coffee-header-bg.jpg') no-repeat center center;
  background-size: cover;
  color: white;
}

h1 {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px #000;
  letter-spacing: 2px;
  font-variant: small-caps;
  white-space: nowrap;
}

/* ===== PARAGRAPH STYLING ===== */
p {
  padding: 0 1rem;
  max-width: 800px;
  margin: 1rem auto;
}

/* ===== IMAGE STYLING ===== */
/* Images are responsive */
img {
  display: block;
  max-width: 100%; /* responsive */
  height: auto;
  margin: 1rem auto;
  border: 4px solid #5a3e2b;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

/* ===== FLEX SECTION STYLING ===== */
/* this class controls the styling for the 5-item responsive section */
.flex-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background-color: #d7ccc8;
}

.flex-section div {
  background-color: #8d6e63;
  color: white;
  padding: 1rem;
  flex: 1 1 150px;
  text-align: center;
  border-radius: 8px;
  font-size: 1.2rem;
}

/* ===== FOOTER STYLING ===== */
footer {
  text-align: center;
  background-color: #3e2723;
  color: white;
  padding: 1rem;
}

footer a {
  color: #ffe082;
  margin: 0 10px;
  text-decoration: none;
}

/* ===== FONT FACE (Web Font Embedding) ===== */
@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* ===== MEDIA QUERIES ===== */

/* Adjust font sizes at 800px or less */
@media (max-width: 800px) {
  /* this query adjusts the h1 font size */
  h1 {
    font-size: 2rem;
  }

  /* this query adjusts the body font size */
  body {
    font-size: 0.9rem;
  }
}

/* Change background color at 600px or less */
@media (max-width: 600px) {
  /* this query changes the background color */
  body {
    background: #c8e6c9; /* light green */
  }
}