@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Montserrat:wght@100;400;500&display=swap');

* {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:root {
  --pri: 173, 139, 5;
  --light: 209, 178, 54;
  --sec: 29, 29, 29;
  --prif: "Pacifico", cursive;
  --secf: "Montserrat", sans-serif;
  font-family: var(--secf);
}

body {
  display: grid;
  min-height: 100vh;
}

header.main-header {
  position: relative;
  display: grid;
  width: 100%;
  padding: 1em;
  background-color: rgb(var(--sec));
}

.main-header nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  margin: auto;
  list-style-type: none;
  width: 100%;
  max-width: 800px;
}

.main-header nav li {
  margin: auto;
}

.main-header nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-header nav a::before {
  position: absolute;
  content: '';
  bottom: -.75em;
  left: 0;
  width: 100%;
  height: 2px;
  transition: background-color .3s;
}

.main-header nav a.active::before {
  background-color: rgb(var(--pri));
}

.main-header nav a:hover::before {
  background-color: rgb(var(--pri));
}

.main-header nav img {
  height: 5em;
  padding-top: .5em;
}

.main-header .buttons {
  display: grid;
  grid-auto-flow: column;
  position: absolute;
  top: 50%;
  right: 2em;
  transform: translateY(-50%);
  grid-column-gap: 1.5em;
}

.main-header .buttons a {
  position: relative;
  text-align: center;
  margin: auto;
  color: rgb(var(--pri));
  text-decoration: none;
}

.main-header .buttons a img {
  height: 2em;
}

.main-header .buttons a span {
  position: absolute;
  color: rgb(var(--pri));
  background-color: rgb(var(--sec));
  bottom: -5px;
  right: -5px;
  padding: 2px 5px 1px;
  font-weight: bold;
  border-radius: 50%;
}

footer {
  display: flex;
  background-color: rgb(var(--sec));
  justify-content: center;
  flex-wrap: wrap;
}

footer img {
  height: 5em;
  margin: 1em;
}

footer p {
  flex-basis: 100%;
  text-align: center;
  margin: .5em;
  color: #999;
  text-transform: uppercase;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  } 100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  } 100% {
    opacity: 0;
  }
}

@keyframes fade-in-right {
  0% {
    position: relative;
    opacity: 0;
    left: -2em;
  } 100% {
    position: relative;
    opacity: 1;
    left: 0;
  }
}

@keyframes fade-in-left {
  0% {
    position: relative;
    opacity: 0;
    right: -2em;
  } 100% {
    position: relative;
    opacity: 1;
    right: 0;
  }
}

@media (max-width: 1200px) {
  .main-header .buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    position: static;
    transform: none;
  }

  .main-header .buttons a {
    margin: 1em 0;
  }
}

@media (max-width: 600px) {
  .main-header nav {
    grid-template-columns: repeat(4,1fr);
  } .main-header nav li:not(#logo) {
    margin: 1.5em auto;
  } .main-header nav #logo {
    grid-column: 1/5;
    grid-row: 1/2;
  }
}
