*{
  box-sizing: border-box;
}

:root {
  --primary-color-old: darkgoldenrod;
  --primary-color: #456546;
  --secondary-color: #2A3439;
  --tertiary-color: grey;
}

html {
  background-color: grey;
}

body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px;
  margin: auto;
  max-width: 1550px;
  background-color: var(--primary-color);
  font-family: "Copperplate", "Copperplate Gothic Light", serif;
}

section{
  border: solid black 5px;
  margin-top: 5px;
  padding: 5px;
}

h1,h2 {
  font-size: 2em;
}

h2 {
  color: black;
}

nav {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  margin-top: 10px;
  top: 0;
  z-index: 11000;
  border-radius: 5px;
  height: 250px;
  width: 25%;
  padding: 10px;
  background-color: grey;
}

a {

}

a:hover {
  color: var(--primary-color);
}

.no-dec {

  color: black;
  text-decoration: none;
}

.button {
  background-color: var(--tertiary-color);
  border: 2px solid var(--tertiary-color);
  border-radius: 5px;
}

.top-header{
  display: none;
}

.staff-member{
  border: solid grey 3px;
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

.team-head-shots {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  margin: 5px;
  border: 5px solid black;
  border-radius: 7px;
  opacity: 90%;
  background-color: white;
  object-fit: contain;
}

#menu-burger {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 30px;
  background-color: var(--primary-color);

}

.nav-menu {

}

.main-nav-button {

}


footer {

}

.footer-ul {
  list-style: none;
}

.project {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  margin: 5px;
  border: 3px solid grey;
  border-radius: 2px;
  min-height: 400px;
}

.project-text {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  flex: 1;
  margin: 5px;
}

.project-video {
  min-height: 315px;
}

.project-visual {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  margin: 5px;
  min-height: 315px;
}

form{
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 75%;
  border: grey solid 3px;
  border-radius: 5px;
  background-color: white;
}

input{
  color: white;
  background-color: var(--secondary-color);
}

textarea{
  color: white;
  background-color: var(--secondary-color);
}

label{
  background-color: var(--secondary-color);
}

#color-picker-div{
  background-color: var(--secondary-color);
}

#join-us-form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

#color-label{

  color: grey;
}

.video-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin: 20px auto;
}

.video-frame-wrapper {
  flex: 1;
  max-width: 80vw;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.carousel-btn {
  background-color: #2A3439;
  color: white;
  font-size: 2rem;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
}

.carousel-btn:hover {
  background-color: #456546;
}



@media screen and (min-width: 780px) {
  body{

  }

  section{
    border: solid black 5px;
    margin-top: 5px;
    padding: 5px;
  }

  #careers{
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-content: center;
  }

  form{
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 75%;
    border: grey solid 3px;
    border-radius: 5px;
  }

  #join-us-form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
  }

  #mobile-top-header{
    display: none;
  }

  .row {
    display: flex;
    flex-direction: row;
    flex: 1;
  }

  .top-header {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
  }

  .project {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 5px;
    border: 3px solid grey;
    border-radius: 2px;
  }

  .project-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 5px;
  }

  .project-visual {
    display: flex;
    flex: 1;
    margin: 5px;
  }

  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 1.5em;
  }


  #menu-burger {
    display: none;
  }

  nav {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    position: sticky;
    background-color: #2A3439;
    top: 0;
    z-index: 1000;
    border-radius: 5px;
    width: 100%;
    height: auto;
  }

  .main-nav-button {
    font-size: 1.5em;
    color: silver;
    background-color: #2A3439;
    padding: 0em 1em 0em 1em;
  }


  .two-by-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 1500px;
  }

  .staff-member {
    display: flex;
    flex-direction: row;
    flex: 1;
  }

  .team-text {
    display: flex;
    flex-direction: column;
    flex: 1;
  }


}

@media screen and (max-width: 650px) {

  body {
    padding: 10px;
  }

  .project {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    border: 3px solid grey;
    border-radius: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .project-text {
    width: 100%;
    margin: 5px;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: left;
  }

  .project-video {
    min-height: 50px;
    height: auto;
  }

  .project-visual {
    width: 100%;
    margin: 5px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .project-visual img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .top-header,
  nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .main-nav-button {
    font-size: 1em;
    padding: 0.5em 0;
    text-align: center;
  }

  .two-by-grid {
    display: block; /* Fall back to one column */
    width: 100%;
  }

  h1, h2 {
    font-size: 1.5em;
    word-break: break-word;
  }


}

