@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
  --color-primary: #061d1d;
  --color-secundary: #dea345;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
  letter-spacing: 0px;
}

body {
  background: url('../images/bg.png'), no-repeat center;
  background-size: 100%;
  min-height: 100vh;
  padding-bottom: 50px;
}

header {
  background: var(--color-primary);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  & img {
    width: 90%;
    max-width: 1100px;
  }

  &::before {
    content: '';
    width: 100%;
    height: 40%;
    background: var(--color-primary);
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
  }
}

.__content {
  width: 80%;
  max-width: 450px;
  min-height: 100%;
  background: var(--color-primary);
  border-radius: 15px;
  padding: 45px 25px;
  margin: 0 auto;
  margin-top: -50px;
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.__link_item {
  margin-left: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secundary);
  font-size: 25px;
  text-decoration: none;
  position: relative;
  border: solid 1px var(--color-secundary);
  padding: 8px 20px;
  transition: all 0.3s;

  & img {
    width: 40px;
    background: var(--color-primary);
    position: absolute;
    left: -20px;
    margin: auto;
    top: 0;
    bottom: 0;
    transition: all 0.2s;
  }

  &:hover {
    background: var(--color-secundary);
    color: var(--color-primary);

    & img {
      left: -45px;
      background: transparent;
    }
  }
}

@media (max-width: 1000px) {
  header {
    height: 90px;
  }

  .__banner {
    & img {
      min-height: 200px;
      object-fit: cover;
    }
  }

  .__content {
    padding: 35px 25px;
    gap: 35px;
  }
  
  .__link_item {
    font-size: 18px;
    
    & img {
      width: 35px;
    }

    &:hover {
      & img {
        left: -40px;
      }
    }
  }
}
