html { box-sizing: border-box; } 

*, *::before, *::after { box-sizing: inherit; } 

body {
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
    margin: 0;
    background-color: #993399;
    overflow: scroll;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: #993399;
}
h1.page-title {
  color: #333399;
}
p {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5em;
}
p.summary {
  font-size: xx-large;
  font-weight: 400;
  text-align: center;
}
p.button {
  background-color: #ccc;
}
a {
    color: #333399;
    text-decoration: underline;
}
a:hover {
    color: #993399;
    text-decoration: underline;
}
h1 a {
  color: #993399;
  text-decoration: none;
}
h1 a:hover {
  text-decoration: none;
}
a.button-link {
  text-decoration: none;
  color: #fff;
  padding: 10px;
  background-color: #333399;
  transition: 0.2s;
}
a.button-link:hover {
  background-color: #993399;
  text-decoration: underline;
}

h2 a.header-link {
  color: #993399;
  text-decoration: none;
}
#flex-container {
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;
    flex-direction: column;
    flex-wrap: wrap;
    background-color: #fff;
    width: 100%;
}

#flex-container > div {
    background-color: #fff;
    width: 100%;
    text-align: left;
    padding: 0 0px;
    border: 0;
}

div #header {
    background-color: #fff;
    text-align: center;
    color: #993399;
}

div #navigation {
    background-color: #333399;
    text-align: center;  
    width: 100%;
}

div #nav-container {
    color: #fff;
    padding: 0px 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-around; 
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}
div #nav-container a {
  text-decoration: none;
}

div #nav-container span {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-around; 
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 5px;
}

div #nav-container a {
    color: #fff;
    transition: 0.2s;
}
div #nav-container a:hover {
    background-color: #993399;
    text-decoration: underline;
}

#flex-container div#main {
  padding: 10px;
}
div #footer {
    background-color: #993399;
    text-align: center;
    color: #fff;
}

div #nav-container-footer {
  color: #fff;
  padding: 0px 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-around; 
  flex-direction: column;
  flex-wrap: wrap;
}
div #nav-container-footer span {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-around; 
  flex-direction: row;
  flex-wrap: wrap;
  padding: 10px 10px;
}
div #nav-container-footer a {
  color: #fff;
  transition: 0.2s;
}
div #nav-container-footer a:hover {
  background-color: #993399;
}
.selected {
  background-color: #993399;
}

img#logo {
    padding: 0;
    margin-bottom: -10px;
    width: 116px;
    height: 92px;
}
div.teams {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
div.partners {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
div.teams ul.team-container {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
ul.team-container li {
  list-style-type: none;
}
.herophoto {
  background-image: url('../images/firetruck_team.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  height: 400px;
  background-position-y: 0px;
}
.misty {
  height: 100%;
  width: 100%;
}
iframe {
  width: 336px;
  height: 189px;
}
ul li {
  line-height: 1.5em;
}
.row {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
.row > .col {  
  padding: 0 0px;
  flex: 50%;
}
div #footer p a {
  text-decoration: none;
  color: #fff;
}

div:has(> blockquote) {
  background-color: #ededed;
  margin: 10px auto;
  padding: 15px;
  border-radius: 5px;
  width: 80%;
}

blockquote p::before {
  content: "\201C";
}

blockquote p::after {
  content: "\201D";
}
blockquote + p {
  text-align: right;
}

@media screen and (max-width: 400px) {
  div #nav-container {
    display: block;
  }
}
@media screen and (min-width: 800px) {

  img#logo {
    width: 232px;
    height: 185px;
}
  div #main {
      width: 800px;
  }
  div #nav-container {
    justify-content: center;
  }
  div #nav-container span {
    padding: 20px 30px;
    justify-content: center; 
  }
  div #nav-container-footer {
    justify-content: center;
    flex-direction: row;
  }
  div #nav-container-footer span {
    padding: 20px 30px;
    justify-content: center; 
  }
  div #nav-container a:hover {
    background-color: #993399;
    text-decoration: underline;
}

  .misty {
    clip-path: circle(50%);
  }
  iframe {
    width: 560px;
    height: 315px;
  }
  .row {
    flex-direction: row;
  }
  .row > .col {
    padding: 0 10px;
  }
}

@media screen and (min-width: 800px) and (max-width: 1199px) {
  .herophoto {
    background-position: center center;
    background-size: 100%;
    background-position-y: -100px;
  }
}

@media screen and (min-width: 1200px) {
  .herophoto {
    background-position: center center;
    background-size: 70%;
    background-position-y: -200px;
  }
}