/* 
  Author: Rylan Closs
  Course: ITWP 1050 - Web Programming
  Assignment: Homework 3 - Styling with CSS
*/

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

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

/* This selector styles the main page heading */
h1 {
  font-family: 'Roboto', Arial, sans-serif; /* Web font with fallbacks */
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px #000; /* Adds shadow behind text */
  letter-spacing: 2px; /* Adds space between characters */
  font-variant: small-caps; /* Sets text to small caps */
  white-space: nowrap; /* Prevents the title from wrapping */
}

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

/* ===== IMAGE STYLING ===== */
/* First image default size, second one customized */
img {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 1rem auto;
  border: 4px solid #5a3e2b; /* Brown border like coffee */
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* ===== 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;
}
/* This embeds a custom web font for use in your CSS */
