body {
  height: auto;
}

.container {
  height: 100%;
  display: grid;
  grid-template-rows: 10vh 90vh 6vh;
  place-items: center;
}

main {
  grid-row: 2;
  width: 60vw;
  height: 100%;
  display: grid;
  place-items: center;
  grid-template-columns: 45% 55%;
  grid-template-rows: 10% 90%;
  gap: 0 4%;
}

header {
  grid-row: 1;
  grid-column: 1/3;
  font-size: 1.2em;
}

.content {
  grid-row: 2;
  grid-column: 2;
  width: 100%;
  height: 90%;
  /* background: rgb(24, 24, 24); */
  border-radius: 1rem;
  padding: 0 2rem;
}

.content ul h2 {
  font-size: 2.3rem;
  text-align: center;
  padding: 0.5rem 1.5rem;
  background: rgb(24, 24, 24);
  border-radius: 1rem;
}

.content ul {
  grid-row: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style: none;
}

.content ul li {
  margin-top: 3rem;
  font-size: 1.3rem;
  color: #b9b9b9;
  background: rgb(24, 24, 24);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  transition: 0.4s background, color linear;
}

.active {
  margin-top: 1rem;
  color: #fff !important;
  background: #da9e34 !important;
}

.img {
  grid-row: 2;
  grid-column: 1;
  width: 100%;
  height: 90%;
  background-image: url(../img/packer.webp);
  background-position: 70%;
  background-size: cover;
  border-radius: 1rem;
}

.show {
  animation: show-img 0.4s linear;
}

@keyframes show-img {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

footer {
  grid-row: 3;
  width: 100vw;
  height: 6vh;
  background: var(--main);
  display: grid;
  place-items: center;
}

@media screen and (width: 1280px) {
  html {
    font-size: 11px;
  }
}

@media screen and (width: 3840px) {
  html {
    font-size: 32px;
  }
}

@media screen and (min-width: 641px) and (max-width: 1000px) {
  html {
    font-size: 24px;
  }
  body {
    height: auto;
  }
  .container {
    grid-template-rows: 10vh 140vh 6vh;
    width: 100vw;
  }

  nav {
    width: 100vw;
    height: 10vh;
    display: grid;
    background: rgb(24, 24, 24);
    grid-template-columns: 20% 80%;
    place-items: center;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 999;
  }

  .links {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #da9e34;
    justify-content: center;
    align-items: start;
    flex-flow: column;
    font-size: 2rem;
  }

  .links a {
    margin-top: 3vh;
    margin-left: 20%;
  }

  .links a:nth-child(1) {
    margin: 0;
    margin-left: 20%;
  }

  .lang {
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
  }

  a.lang {
    margin: 0;
    margin-left: 20%;
    position: absolute;
    top: 3vh;
  }

  .spacer {
    display: none;
  }

  .sm {
    display: flex;
    gap: 3rem;
    margin-top: 3vh;
    margin-left: 20%;
  }
  .ic {
    width: 3rem;
    height: 3rem;
    z-index: 111;
    margin-top: 1vh;
  }

  .links a:hover {
    color: #525252;
  }

  .ic:hover {
    color: #fff;
  }

  .ic:focus {
    color: #525252;
  }

  .menu {
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    top: 3vh;
    right: 10vw;
    display: block;
    cursor: pointer;
  }

  .menu:active {
    color: #da9e34;
  }

  main {
    grid-row: 2;
    width: 100vw;
    height: 100%;
    display: grid;
    place-items: center;
    grid-template-columns: 100%;
    grid-template-rows: 20% 80%;
  }

  header {
    grid-row: 1;
    grid-column: 1;
    font-size: 1.3rem;
    text-align: center;
  }

  .content {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    height: 90%;
    border-radius: 1rem;
    display: grid;
    place-items: center;
  }

  .content ul h2 {
    font-size: 2.3rem;
    text-align: center;
    padding: 0.5rem 1.5rem;
    background: rgb(24, 24, 24);
    border-radius: 1rem;
  }

  .content ul {
    grid-row: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
  }

  .content ul li {
    margin-top: 3rem;
    font-size: 1.3rem;
    color: #b9b9b9;
    background: rgb(24, 24, 24);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    transition: 0.4s background, color linear;
  }

  .active {
    margin-top: 1rem;
    color: #fff !important;
    background: #da9e34 !important;
  }

  .img {
    display: none;
  }
}

@media screen and (min-width: 641px) and (max-width: 768px) {
  body {
    height: auto;
  }

  .container {
    grid-template-rows: 10vh 150vh 6vh;
  }

  html {
    font-size: 22px;
  }
}

.menu-show {
  animation: 0.2s menu-show linear;
}

@keyframes menu-show {
  0% {
    left: 100%;
  }
  100% {
    right: -100%;
  }
}

.menu-close {
  animation: 0.2s menu-close linear;
}

@keyframes menu-close {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(150%);
  }
}

@media screen and (max-width: 600px) {
  html {
    font-size: 15px;
  }
  body {
    height: auto;
  }
  .container {
    grid-template-rows: 10vh 130vh 6vh;
    width: 100vw;
  }

  nav {
    width: 100vw;
    height: 10vh;
    display: grid;
    background: rgb(24, 24, 24);
    grid-template-columns: 20% 80%;
    place-items: center;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 999;
  }

  .links {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #da9e34;
    justify-content: center;
    align-items: start;
    flex-flow: column;
    font-size: 2rem;
  }

  .links a {
    margin-top: 3vh;
    margin-left: 20%;
  }

  .links a:nth-child(1) {
    margin: 0;
    margin-left: 20%;
  }

  .lang {
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
  }

  a.lang {
    margin: 0;
    margin-left: 20%;
    position: absolute;
    top: 3vh;
  }

  .spacer {
    display: none;
  }

  .sm {
    display: flex;
    gap: 3rem;
    margin-top: 3vh;
    margin-left: 20%;
  }
  .ic {
    width: 4rem;
    height: 4rem;
    z-index: 111;
    margin-top: 1vh;
  }

  .links a:hover {
    color: #525252;
  }

  .ic:hover {
    color: #fff;
  }

  .ic:focus {
    color: #525252;
  }

  .menu {
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 3vh;
    right: 10vw;
    display: block;
    cursor: pointer;
  }

  .menu:active {
    color: #da9e34;
  }

  main {
    grid-row: 2;
    width: 100vw;
    height: 100%;
    display: grid;
    place-items: center;
    grid-template-columns: 100%;
    grid-template-rows: 20% 80%;
  }

  header {
    grid-row: 1;
    grid-column: 1;
    font-size: 1.3rem;
    text-align: center;
  }

  .content {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    height: 90%;
    border-radius: 1rem;
    display: grid;
    place-items: center;
  }

  .content ul h2 {
    font-size: 2.3rem;
    text-align: center;
    padding: 0.5rem 1.5rem;
    background: rgb(24, 24, 24);
    border-radius: 1rem;
  }

  .content ul {
    grid-row: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
  }

  .content ul li {
    margin-top: 3rem;
    font-size: 1.3rem;
    color: #b9b9b9;
    background: rgb(24, 24, 24);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    transition: 0.4s background, color linear;
  }

  .active {
    margin-top: 1rem;
    color: #fff !important;
    background: #da9e34 !important;
  }

  .img {
    display: none;
  }
}

@media screen and (max-width: 400px) {
  body {
    height: auto;
  }
  .container {
    grid-template-rows: 10vh 160vh 6vh;
    width: 100vw;
  }

  html {
    font-size: 12px;
  }
}

@media screen and (max-width: 400px) and (min-height: 600px) {
  body {
    height: auto;
  }
  .container {
    grid-template-rows: 10vh 115vh 6vh;
    width: 100vw;
  }

  html {
    font-size: 12px;
  }
}

@media screen and (min-width: 250px) and (max-width: 300px) {
  html {
    font-size: 10px;
  }
}
