@font-face {
  font-family: "FuturaPTDemi";
  src: url("../assets/fonts/FuturaPTDemi.otf");
}

@font-face {
  font-family: "FuturaPTBold";
  src: url("../assets/fonts/FuturaPTBold.ttf");
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  font-size: 100%;
}

* {
  font-family: "FuturaPtDemi", Helvetica, sans-serif;
  color: #000;
}

*,
:after,
:before {
  box-sizing: border-box;
}

h1 {
  font-family: "FuturaPTBold", Helvetica, sans-serif;
  margin-top: 0;
  font-weight: bold;
}

.bg-top {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
}

.bg-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
}

header {
  margin: 100px;
  display: flex;
  justify-content: space-between;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  color: #fff;
  font-family: "FuturaPTBold", Helvetica, sans-serif;
  font-weight: bold;
  font-size: 3.75rem;
  margin-left: 50px;
  text-decoration: none;
  transition: border 0.05s ease-in-out;
}

nav ul li a:hover {
  border-bottom: 2px solid #fff;
}

nav ul li a.active {
  color: #fbb818;
}

main h1.header{
  display: block;
  font-size: 2rem;
  margin-top: -55px;
  position: absolute;
  width: 100%;
  text-align: center;
}

main ul {
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 100px;
}

main ul li {
  background-color: #fbb818;
  display: inline-block;
  width: 450px;
  height: 450px;
  position: relative;
  text-align: center;
  transition: transform 0.05s ease-in-out;
}

main ul li:hover {
  transform: scale(1.1);
}

main ul li a {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0 50px;
  text-decoration: none;
}

main ul li a h1 {
  font-size: 2.125rem;
}

main ul li a p {
  font-size: 1.5rem;
}

main ul li:nth-child(2) {
  background-color: #afdff9;
  margin: 0 80px;
}

main ul li:nth-child(3) {
  background-color: #9cc13a;
}

aside{
  bottom: 20px;
  position: absolute;
  right: 30px;
  width: 40px;
}
aside a{
  border: 1px solid #000;
  display: inline-block;
  padding: 0;
  margin: 5px;
  line-height: 0;
}

@media only screen and (max-width: 1600px) {
  html,
  body {
    font-size: 80%;
  }

  main ul li:nth-child(2) {
    margin: 0 40px;
  }

  main ul li {
    width: 350px;
    height: 350px;
  }

  .bg-top {
    max-height: 280px;
  }

  .bg-bottom {
    max-height: 380px;
  }
}

@media only screen and (max-width: 1280px) {
  html,
  body {
    font-size: 65%;
  }
  header {
    margin: 50px;
  }
  nav ul li a {
    font-size: 2.75rem;
    margin-left: 3rem;
  }
  main ul li {
    width: 250px;
    height: 250px;
  }
  .bg-top {
    max-height: 180px;
  }

  .bg-bottom {
    max-height: 280px;
  }
}

@media only screen and (max-width: 880px) {
  html,
  body {
    font-size: 50%;
  }
  header {
    margin: 20px;
  }
  header img {
    max-width: 70%;
  }
  header figure {
    margin: 0;
  }

  nav ul {
    padding: 0;
  }
  nav ul li a {
    font-size: 2.3rem;
    margin-left: 2rem;
  }
  main ul li {
    width: 250px;
    height: 250px;
  }
  .bg-top {
    max-height: 130px;
  }

  .bg-bottom {
    max-height: 280px;
  }
}

@media only screen and (max-width: 640px) {
  .bg-top {
    max-height: 85px;
  }
  header {
    display: block;
  }
  header figure {
    display: inline-block;
    padding: 0;
    width: 60%;
  }
  header nav {
    float: right;
  }

  main ul li:nth-child(2) {
    margin: 0px 10px;
  }
  main ul li a {
    padding: 0 15px;
  }
  main ul {
    margin: 100px 40px;
  }
  .bg-bottom {
    max-height: 220px;
  }
}
