/* ---------- index sidens egenskaber ---------- */

body {
  background-image: url("../images/desktop/hero_image.png");
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ---------- index sidens main content ---------- */

main {
  max-width: 1440px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  justify-content: center;
}

main picture {
  width: 400px;
  height: auto;
  align-self: center;
  margin-left: 2em;
  margin-right: 2em;
  margin-top: -280px;
}

/* fixer footeren. kun fixed på index siden */
footer {
  position: fixed;
  bottom: 0;
}

/* ---------- knapperne ---------- */

.buttons {
  position: absolute;
  width: 100%;
  bottom: 15%;
  z-index: -100;
  display: flex;
  flex-direction: column;
}

.buttons a {
  align-self: center;
  min-width: 200px;
  max-width: 400px;
  width: 50%;
  margin-bottom: 1em;
  padding: 10px 1px;
  background-color: #fff;
  text-decoration: none;
  color: #000;
  text-align: center;
  box-shadow: 1px 1px 24px 0px rgba(0, 0, 0, 0.62);
  -webkit-box-shadow: 1px 1px 24px 0px rgba(0, 0, 0, 0.62);
  -moz-box-shadow: 1px 1px 24px 0px rgba(0, 0, 0, 0.62);
}

/* ---------- media queries ---------- */

@media only screen and (min-width: 501px) {
  @media only screen and (max-height: 750px) {
    main picture {
      margin-top: -180px;
    }
  }
}

@media only screen and (min-width: 501px) {
  @media only screen and (max-height: 650px) {
    main picture {
      transition: opacity 0.2s ease-in-out;
      opacity: 0;
    }
  }
}

@media only screen and (max-width: 500px) {
  main picture {
    display: block;
    align-self: start;
    width: 88%;
    margin: 1.2em 0;
  }
  footer {
    display: none;
  }
  body {
    background-image: linear-gradient(
        176deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 50%
      ),
      url("../images/desktop/hero_image.png");
  }
  .buttons {
    bottom: 5%;
  }
}
