html, body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}
.sub-head {
    width: 100%;
    font-size: 4rem;
    text-align: center;
    margin-top: 10px;
    font-family: 'Courier New', Courier, monospace;
}
.top {
    width: 100%;
    height: 50vh;
    background-image: url('../images/dogs.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 70%;
    margin: 0;
    padding: 0;
    position: relative;
}
.top-text {
    color: #fff;
    font-size: 1.5em;
    font-weight: 300;
    margin: 0;
    padding: 0;
    /* absolute vertical center */
    position: absolute;
    text-align: center;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    width: max-content;

}
.top-text h1 {
    font-size: 5em;
    font-weight: 700;
    margin: 0;
    padding: 0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.quotes {
    margin: 5%;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    column-gap: 50px;
}
/* quote class flex box */
.quote {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  flex-direction: column;
  column-gap: 100px;
  background-color: rgb(255, 255, 255);
  box-shadow: 12px 15px 29px -6px rgba(0, 0, 0, 0.6);
  -webkit-box-shadow: 12px 15px 29px -6px rgba(0, 0, 0, 0.342);
  padding: 20px 20px 0;
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 50px;
}
/* a quote text box with a white background */
.quote-text {
    margin: 10px;
    width: fit-content;
    color: #383838;
    max-width: 50ch;
}
.quote-text :first-child {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 5px;
}
.quote-text :last-child {
    font-size: 1.2em;
    font-style: italic;
    text-align: right;
}
.quote-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 12px 15px 29px -6px rgba(0, 0, 0, 0.37);
    -webkit-box-shadow: 12px 15px 29px -6px rgba(0, 0, 0, 0.342);
}
.problems {
    background-color: #111111ff;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 50px 0;
}
.problem-title {
    font-size: 3rem;
    color: #fff;
    margin: 0;
}
.count {
    display: inline;
    margin: 0 !important;
}
.problem-value, .count {
    font-size: 2.5rem;
    text-align: center;
    margin: 10px;
    font-weight: 700;
}
.problem-value, .problems .sub-head, .count {
    color: #ea558dff;
}
.incidents {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 50px 0;
    column-gap: 50px;
    row-gap: 40px;
}
/* incident image and text class */
.incident {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 12px 15px 29px -6px rgba(0, 0, 0, 0.37);
    -webkit-box-shadow: 12px 15px 29px -6px rgba(0, 0, 0, 0.342);
}
.incident-image img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    margin: 0;
    padding: 0;
    border-radius: 10px 10px 0 0;
}
.incident-text {
    font-size: 1.5em;
    font-weight: 300;
    margin: 0;
    padding: 0;
    text-align: center;
}
.ducks {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 50px 0;
    column-gap: 50px;
    row-gap: 40px;
}
.ducks .sub-head {
    margin-bottom: 0;
}
.duck-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 15%;
    padding: 0;
    width: 100%;
}
.switch {
    flex-direction: row-reverse;
}
.duck-image img {
    width: 100%;
    width: 200px;
    object-fit: cover;
    aspect-ratio: 1/1;
    margin: 0;
    padding: 0;
    border-radius: 50%;
}
/* duck-text is a quote */
.duck-text {
    font-size: 1.5em;
    font-weight: 300;
    margin: 0;
    padding: 0;
    text-align: center;
    max-width: 40ch;
    font-weight: 800;
}
.duck-text :last-child {
    font-size: 0.8em;
    font-style: italic;
    text-align: right;
    font-weight: 300;
}
.duck-story {
    max-width: 60%;
    font-size: 1.5rem;
}
/* a three column grid */
table {
    background-color: #111111ff;
    color: #ea558dff;
    max-width: 550px;
}
th {
    padding: 10px;
}
tr {
    font-size: 1.1rem;
}
table tr:first-child {
    background-color: #ea558dff;
    font-size: 1.5rem;
    color: #111111ff;
}
table tr:nth-child(odd):not(:first-child) {
    background-color: rgb(43, 43, 43);
}
.compare {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin: 0 5% 100px;
}
.conclusion {
    font-size: 1.4rem;
    margin: 0 15%;
}
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
    background-color: #111111ff;
    color: white;
}
.footer p {
    margin: 0;
}
@media (max-width: 950px) {
    .top {
        height: 20vh;
    }
    .top-text h1 {
        font-size: 1.5em;
    }
    .sub-head {
        font-size: 3rem;
    }
    .quote {
        margin-bottom: 25px;
    }
    .quote-text :first-child {
        font-size: 1.3rem;
        margin: 0
    }
    .quote-text :last-child {
        font-size: 1rem;
    }
    .problems {
        flex-direction: column;
    }
    .problem-title {
        font-size: 2rem;
        text-align: center;
    }
    .problem-value, .count {
        font-size: 2rem;
    }
    .incidents {
        row-gap: 0;
    }
    .incident {
        margin: 20px;
    }
    .duck-section {
        margin: 0 5%;
    }
    .duck-story {
        max-width: 90%;
    }
}