/* ===== Reset ===== */
* {
  box-sizing: border-box;   /* padding and border count inside an element's size */
  margin: 0;                /* remove default outside spacing */
  padding: 0;               /* remove default inside spacing */
}

body {
  font-family: "Times New Roman", Times, serif;
  color: #222;
}

/* ===== Outer container: stacks header, nav, bodycopy, footer ===== */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;        /* at least as tall as the browser window */
}

/* ===== Green header ===== */
.header {
  display: flex;
  justify-content: center;  /* center left to right */
  align-items: center;      /* center top to bottom */
  gap: 24px;                /* space between logo and title */
  height: 200px;
  background-color: green;
}

.header img {
  height: 130px;
}

.header h1 {
  font-size: 56px;
  color: #fff;
}

/* ===== Dark nav bar ===== */
.nav {
  display: flex;
  align-items: center;
  height: 85px;
  background-color: #333;
}

.nav a {
  color: white;
  text-decoration: none;    /* no underline */
  font-size: 26px;
  padding: 0 24px;
  line-height: 85px;        /* hover color fills the whole bar height */
}

.nav a:hover {
  background-color: #555;
}

/* ===== Orange bodycopy: fills leftover height ===== */
.bodycopy {
  display: flex;
  flex-direction: row;
  flex: 1;
  background-color: orange;
}

/* Left column: fixed 250px */
.col-left {
  flex: 0 0 250px;
  padding: 30px;
  font-size: 20px;
  background-color: #ffb733;
}

/* Right column: the rest */
.col-right {
  flex: 1;
  padding: 30px 40px;
  font-size: 22px;
  line-height: 1.5;
  border-left: 2px solid yellow;
}

.col-left img,
.col-right img {
  max-width: 100%;          /* images never spill out of their column */
  height: auto;
  display: block;
}

.col-left img {
  margin-bottom: 16px;
}

.col-left h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.col-left ul {
  margin-left: 22px;
}

.col-right h2 {
  font-size: 38px;
  margin-bottom: 14px;
}

.col-right p {
  margin-bottom: 16px;
}

/* ===== Photos page grid ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.gallery figure {
  background-color: #fff3d6;
  border: 3px solid #333;
  border-radius: 10px;
  padding: 12px;
}

.gallery figcaption {
  font-size: 18px;
  margin-top: 8px;
  text-align: center;
}

/* ===== Contact form ===== */
.req {
  color: #d01012;              /* red star for required fields */
}











.contact-form fieldset {
  border: 10px solid #333;      /* box around each group of fields */
  border-radius: 30px;          /* rounded corners */
  padding: 16px 20px;          /* space inside the box */
  margin-bottom: 20px;         /* space between the two groups */
  background-color: rgb(0,0,0,.5);
  padding-bottom: 20px;
}

.contact-form legend {
  font-weight: bold;
  margin: 0px 80px;               /* space on each side of the group title */
  background-color: rgb(0,0,0,.5);
    border-radius: 10px;  
    color: #fff;
    padding: 10px;
}

.contact-form label {
  display: block;              /* each label on its own line */
  margin-top: 12px;
  font-weight: bold;
  color: #fff;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;              /* each box on its own line, under its label */
  width: 100%;
  max-width: 500px;            /* never wider than 500px */
  padding: 12px;                /* space inside the box */
  font-size: 18px;
  font-family: inherit;        /* use the page's font, not the browser's */
  border: 2px solid #999;
  border-radius: 6px;
  background-color: rgb(0,0,0,.5);
  color: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: green;         /* highlight the box you are typing in */
  outline: none;               /* the green border replaces the default outline */
}

.contact-form button {
  padding: 12px 28px;
  font-size: 20px;
  background-color: green;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;             /* hand cursor, so it looks clickable */
}

.contact-form button:hover {
  background-color: #1b5e20;   /* darker green under the mouse */
}













/* ===== Yellow footer ===== */
.footer {
  display: flex;
  flex-direction: column;   /* stack the two footer lines */
  justify-content: center;
  align-items: center;
  height: 145px;
  background-color: yellow;
}

.footer .copy {
  font-size: 28px;
  font-weight: bold;
}

.footer .built {
  font-size: 18px;
  margin-top: 6px;
}
