@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;700&family=Roboto:wght@300;400;700&display=swap");

@font-face {
  font-family: "Caviar Dreams";
  src: url("../fonts/CaviarDreams-Bold.woff2") format("woff2"),
    url("../fonts/CaviarDreams-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

h1 {
  background-color: hsla(48, 96%, 54%, 0.63);
  color: white;
  text-align: center;
  font-size: 36px;
  font-family: "Caviar Dreams", "Nunito", Verdana, Geneva, Tahoma, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px;
  margin-bottom: 0;
  margin-top: 0;
}

h2 {
  column-span: all;
  font-size: 30px;
}

body {
  background-color: rgb(201, 170, 136);
  font-family: "Roboto", "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  background-image: url("../images/congruent_pentagon.png");
}

.container {
  width: 960px;
  margin: 0 auto;
}

header nav {
  font-size: 22px;
  font-family: "Nunito", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-style: oblique;
  text-align: center;
  font-weight: 400;
  margin-top: 15px;
}

header nav a {
  display: inline-block;
  margin-right: 20px;
}

header nav a:last-child {
  margin-right: 0;
}

header nav a:link {
  color: rgb(66, 57, 57);
  text-decoration: none;
}

header nav a:visited {
  color: rgb(92, 14, 92);
}

header nav a:hover,
header nav a:focus {
  color: black;
  box-shadow: 3px 3px 5px black;
}

header nav a.active {
  color: black;
  font-weight: bold;
  text-decoration: underline;
}

p {
  font-weight: 500;
}

hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0));
  column-span: all;
}

.faq-list {
  color: rgb(59, 53, 53);
  column-count: 3;
  column-gap: 20px;
  column-width: 150px;
  column-rule: 2px solid black;
  padding-bottom: 30px;
  padding-top: 20px;
}

.before {
  background-image: url("./images/leaf.png");
  background-repeat: no-repeat;
  padding-left: 30px;
  display: block;
}

strong.question {
  color: rgb(54, 46, 46);
}

.image-container {
  display: flex;
  justify-content: space-between;
}

.image-container img {
  width: 30%;
  /* or any other desired width */
}

nav a:link {
  color: rgb(66, 57, 57);
  text-decoration: none;
}

nav a:visited {
  color: rgb(92, 14, 92);
}

nav a:hover,
nav a:focus {
  color: black;
  box-shadow: 3px 3px 5px black;
}

.border-img {
  border: 4px solid rgb(71, 64, 64);
  margin: 20px 0 20px 20px;
}

main p {
  margin-bottom: 40px;
  margin-top: 40px;
}

img.right {
  float: right;
  margin-left: 20px;
}

img.left {
  float: left;
  margin-right: 20px;
  margin-bottom: 20px;
}

.row {
  display: flex;
}

.clear {
  clear: both;
}

.box-shadow-right {
  box-shadow: 4px 4px 5px black;
}

.box-shadow-left {
  box-shadow: -4px 4px 5px black;
}

p.intro::first-letter {
  font-size: x-large;
  text-shadow: 2px 2px 5px rgb(59, 54, 54);
  font-family: "Caviar Dreams";
}

label {
  font-weight: 400;
}

.form-group,
.form-group-footer {
  margin: auto 0;
}

.form-group-select {
  margin: 30px 0;
}

.form-group input {
  border-radius: 4px;
  padding: 5px;
  display: block;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  min-width: 200px;
}

select {
  border-radius: 4px;
  padding: 5px;
  font-size: 16px;
  display: block;
}

.form-group textarea {
  border-radius: 4px;
  min-height: 200px;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.form-group-footer input {
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  margin-right: 20px;
}

input[type="submit"] {
  background-color: rgb(27, 112, 98);
  border-color: rgb(27, 112, 98);
  color: white;
}

textarea {
  padding: 10px;
  margin-top: 10px;
}

div.keep_together {
  display: inline-block;
  vertical-align: top;
  margin-right: 20px;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin: 40px auto;
  max-width: 1000px;
}

.gallery figure {
  margin: 0;
  margin-bottom: 30px;
  text-align: left;
  font-size: 0.8rem;
  position: relative;
}

.gallery img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.gallery figcaption {
  margin-top: 10px;
  position: absolute;
  bottom: -20px;
  left: 125px;
  transform: translateX(-50%);
  width: auto;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: none;
  text-align: center;
}

@media screen and (min-width: 925px) {
  .gallery figure {
    width: calc(100% / 3 - 10px);
  }
}

@media screen and (min-width: 768px) and (max-width: 924px) {
  .gallery figure {
    width: calc(100% / 2 - 10px);
  }
}

@media screen and (max-width: 767px) {
  .gallery figure {
    width: calc(100% - 10px);
  }
}

.gallery figure:hover img {
  transform: scale(1.1);
}

.gallery figure:hover figcaption {
  display: block;
  opacity: 1;
}

/* Adopt form */
input,
select,
textarea {
  display: block;
  margin-bottom: 20px;
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1rem;
  font-family: Arial, sans-serif;
}

textarea {
  height: 100px;
}

input[type="submit"] {
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #3e8e41;
}

.banner img {
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  background-color: hsla(48, 84%, 66%, 0.53);
  width: 90%;
  padding: 0.5em;
  margin: 1.5em auto;
  border: thin solid black;
  border-radius: 10px;
}

.flex-form {
  display: flex;
  margin-bottom: 0.3em;
}

.flex-form label {
  text-align: right;
  flex-basis: 8em;
  margin-top: 0.5em;
  margin-right: 0.5em;
}

.flex-form input,
select,
textarea {
  flex: 0.8;
}

.flex-radio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.flex-radio div {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  margin-right: 5px;
  justify-content: center;
}

.flex-radio label {
  margin-right: 3em;
  display: inline-flex;
  align-items: center;
}

.flex-buttons {
  display: flex;
  justify-content: center;
  margin: 5px;
}

input[type="radio"],
input[type="checkbox"] {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

textarea {
  height: 100px;
}

.no-wrap {
  white-space: nowrap;
}

fieldset {
  display: flex;
  flex-direction: column;
  margin: 0.5em;
  padding: 0.5em;
}

section {
  padding: 0.5em;
}

.form-response-table {
  width: 100%;
  border-collapse: collapse;
}

.form-response-table th, .form-response-table td {
  padding: 10px;
  border: 1px solid #333;
}

.form-response-table th {
  text-align: left;
  color:white;
  background-color: hsla(48, 96%, 54%, 0.63);
}

.form-response-table td.form-response-key {
  font-weight: bold;
}

.form-response-table td.form-response-value {
  font-style: italic;
}

.center {
  justify-content: center;
}

/* Style for footer section */
footer {
  background-color: hsla(48, 96%, 54%, 0.63);
  font-size: 14px;
  font-family: "Caviar Dreams", "Nunito", Verdana, Geneva, Tahoma, sans-serif;
  text-transform: uppercase;
  color: #fff;
  padding: 5px;
  text-align: center;
}