* {
  box-sizing: border-box;
}

body {
  font-family: 'Indie Flower', cursive;
  font-family: 'Yellowtail', cursive;
  background: rgba(232, 240, 181, 0.671);
}

.container {
  margin: 0 auto;
  z-index: 999;
}

header {
  min-height: 70px;
  background: rgba(88, 112, 115, 0.918);
  font-weight: 700;
  font-size: large;
  position: sticky;
  z-index: 999;
  top: 0;
  left: 0;
}

header a {
  text-decoration: none;
}

header a h4 {
  margin-top: 8px;

  font-size: 1em;
  color: #333;
}

header a h5 {
  font-size: 0.8em;
  color: #333;
}

header ul {
  list-style: none;
  min-height: 70px;
}

header ul li {
  padding: 16px;
}

header ul li a {
  color: rgb(107, 8, 38);
  display: block;
  padding-right: 24px;
  width: 80px;
}

nav a::after {
  content: " ";
  height: 2px;
  width: 0%;
  display: block;
  background: rgb(107, 8, 38);
  transition: 1000ms;
  margin: 0 auto;
}

nav a:hover:after {
  width: 100%;
}

header ul li a:hover {
  color: rgb(107, 8, 38);
}

main {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-image: url(img/car2.jpeg);
  height: 1000px;
  z-index: 500;
}
main .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  position: sticky;
  z-index: 500;
  top: 0;
  left: 0;
}

main h1 {
  color: rgb(12, 44, 44);
}

main h2 {
  text-align: center;
  color: rgb(12, 44, 44);
}

main button {
  width: 40%;
  background: rgb(53, 75, 75);
  text-align: center;
  padding: 8px;
  color: rgb(255, 255, 255);
  margin: 4px;
  cursor: pointer;
  transition: 1000ms;
  border: solid rgb(153, 149, 149) 4px;
  border-radius: 32px;
}

main button:hover {
  background: rgba(105, 45, 31, 0.822);
  color: rgb(255, 255, 255);
  border: solid rgb(46, 44, 44) 4px;
}


footer {
  min-height: 50px;
  background: rgb(161, 160, 160);
  color: rgb(30, 64, 82);
  border-top: solid 2px rgb(105, 105, 105);
}

footer ul li {
  padding-left: 32px;
}

footer .container ul li a .icon {
  font-size: 1.5em;
  min-height: 50px;
  color: rgb(30, 64, 82);
  width: 30px;
}

footer .container ul li a .icon :hover {
  font-size: 2em;
  color: rgba(105, 45, 31, 0.822);
}


@media (max-width:768px) {
  body {
    font-family: sans-serif;
  }

  header a h5{
    font-size: 0.4em;
    color: #333;
  }
  header a h4{
    margin-top: 8px;

    font-size: 0.7em;
    color: #333;
  }
      header .burger {
        display: block;
        font-size: 2em;
      }

  header .burger {
    display: block;
    font-size: 2em;
  }

  header nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(105, 45, 31, 0.918);
    width: 100%;
    max-width: 260px;
    transform: translate(0, -200%);
    transition: 1000ms;
    padding: 0 !important;
  }

  header .nav_open {
    transform: translate(0, 0);
  }

  header nav ul {
    flex-direction: column;
  }

  header nav ul li {
    text-align: center;
    border-bottom: 1px solid grey;
    height: 70px;
  }

  header nav ul li:hover {
    background: rgba(170, 152, 134, 0.548);
  }
  header nav ul li a {
    color: rgba(255, 255, 255, 0.918);
    width: 200px;
  }

  header nav ul :nth-child(6) {
    border: none;
  }

  header nav ul li a:hover {
    color: rgba(255, 255, 255, 0.918);
  }
  nav a::after {
    display: none;
  }
  main {
    background-size: cover;
    background-position: center;
    background-image: url(img/trivia.jpeg);
  }

  main button {
    width: 100%;

  }

}