
/* homepage */

.homepage-gray {
    background-image: linear-gradient(to bottom, #ffffff, #ffffff 47%, #f4f3f1);
    /* height: 2068px; */
    padding-bottom: 380px;
    /* border-top: 4px solid #e0757d; */
}

.homepage {
    padding-bottom: 100px;
    color: #475068;
    background-color: #fbfaf8;
}

.homepage__hero {
    height: 920px;
    position: relative;
}

.homepage__background {
    position: relative;
    z-index: 0;
}

.homepage__background__image {
    position: absolute;
    right: 0;
    height: 920px;
    background-size: cover;
    max-width: 66%;
    min-width: 66%;
}

.homepage__hero__content {
    position: relative;
    padding-top: 53px;
}

.homepage__hero h1, .homepage__hero h2 {
    /* color: #475068; */
    width: 500px;
    margin-bottom: 40px;
    margin-top: 125px;
}

.homepage__hero__content p {
    font-size: 18px;
    color: #475068;
    width: 276px;
    margin-bottom: 62px;
}

/* skítamix fyrir að textinn fari of lítið yfir bakgrunnsmyndina */
@media (min-width: 1780px) and (max-width: 2200px) {
  .homepage__hero__content p {
    /* max-width: 215px;  */
  }
}

.homepage__link {
    font-weight: 600;
    font-size: 16px;
    color: #475068;
    text-shadow: 0.5px 0.5px 0 rgba(71, 80, 104, 0.1);
    border-bottom: 2px solid #f3e1ba;
    text-decoration: none;
}

.homepage__logo img {
    height: 34px;
}

.homepage__block {
    position: relative;
    margin: auto;
    width: 84vw;
    max-width: 1419px;
}

/* homepage blocks - desktop */
@media (min-width: 769px) {
  .homepage-gray + .homepage__blocks {
    margin-top: -230px;
  }

  .homepage__hero + .homepage__blocks {
    margin-top: 113px;
  }

  .pageblock {
    display: flex;
    max-width: 1272px;
    height: 581px;
    box-shadow: 0 30px 60px 0 rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    margin-bottom: 200px;
    position: relative;
    z-index: 1;
    margin-left: auto;
  }

  .homepage__hero + .homepage__blocks .pageblock {
    box-shadow: 0 30px 60px 0 rgba(0, 0, 0, 0.25);
  }

  .pageblock__right {
    margin-left: 0;
    margin-right: auto;
  }

  .pageblock__image {
    margin-left: -147px;
    margin-top: -12px;
    width: 56%;
  }

  @media (min-width: 1300px) {
    .pageblock__image img {
      height: 580px;
      width: 700px;
    }
  }

  @media (max-width: 1299px) {
    .pageblock__image img {
      max-width: 100%;
    }
  }


  .pageblock__right .pageblock__image {
      margin-right: -79px;
      margin-left: auto;
      margin-top: -49px;
  }

  .pageblock__content {
      margin-left: 108px;
  }

  /* skítamix fyrir pageblock animation vesenið */
  .homepage__block:first-child .pageblock__image {
    margin-top: 8px;
  }
  .extra-rellax + .homepage__blocks .homepage__block:first-child .pageblock__image {
    margin-top: -11px;
  }
  .homepage__block:first-child .pageblock__box {
    top: 79px;
  }

  .homepage__hero + .homepage__blocks .pageblock__image {
    margin-top: 65px;
  }

  .homepage__hero + .homepage__blocks .pageblock__box {
    top: 58px;
  }

  .homepage__block:nth-child(2) .pageblock__image {
    margin-top: -25px;
  }
  .homepage__block:nth-child(2) .pageblock__box {
    top: 103px;
  }
  .homepage__block:nth-child(3) .pageblock__image {
    margin-top: -20px;
  }
  .homepage__block:nth-child(3) .pageblock__box {
    top: 120px;
  }
  .homepage__block:nth-child(4) .pageblock__image {
    margin-top: -53px;
  }
  .homepage__block:nth-child(4) .pageblock__box {
    top: 135px;
  }

  @media (max-width: 992px) {
    .pageblock__content {
      width: 50%;
      margin-left: auto;
      margin-right: auto;
      padding-left: 30px;
    }

    .pageblock__image {
      width: 62%;
      margin-top: 80px;
      margin-top: 210px;
    }
  }

  .pageblock__box {
      width: 954px;
      height: 566px;
      box-shadow: 0 30px 60px 0 rgba(0, 0, 0, 0.05);
      /* background-color: #f3e1ba; */
      position: absolute;
      z-index: 0;
      top: 38px;
      top: 103px;
      top: 112px;
      /* left: -35px; */
      right: 358px;
  }

  .pageblock__right + .pageblock__box {
    top: 131px;
    top: 166px;
  }

  .pageblock__box-lightblue {
    background-color: #c0deed;
  }

  .pageblock__box-darkblue {
    background-color: #4a5677;
  }

  .pageblock__box-red {
    background-color: #e3737b;
  }

  .pageblock__box-yellow {
    background-color: #f3e2b8;
  }

  .pageblock__right + .pageblock__box {
    right: auto;
    left: 358px;
  }

  .homepage__hero .container {
      height: 100%;
      position: relative;
  }
}

.pageblock h2 {
  margin-top: 97px;
  margin-bottom: 50px;
}

.pageblock p {
  width: 372px;
  font-size: 18px;
  color: #475068;
  margin-bottom: 17px;
  max-width: 100%;
  /* margin-bottom: 65px; */
}

/* homepage search form */
.homepage__searchform {
    position: absolute;
    bottom: 139px;
    width: 100%;
}

@media (max-width: 992px) and (min-width: 76px) {
}

/* mobile  */
@media (max-width: 768px) {

  .homepage h1, .homepage h2 {
    font-size: 35px;
    font-weight: bold;
    line-height: 1.43;
    color: #475068;
    text-align: center;
    max-width: 100%;
    }

  .homepage-gray {
    background: none;
  }
  .homepage {
    background-color: #fbfaf8;
    padding-bottom: 50px;
  }
  .homepage__hero {
    height: auto;
    padding-bottom: 42px;
  }
  .homepage__hero__image img {
    position: relative;
    max-width: 100%;
    display: flex;
  }

  .homepage__hero__content {
    padding-top: 40px;
    text-align: center;
    margin-bottom: 87px;
  }

  .homepage__hero h1, .homepage__hero h2 {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .homepage__hero__content p {
    width: auto;
    margin: auto;
    margin-bottom: 30px;
    max-width: 380px;
  }

  .homepage__search {
    text-align: center;
  }

  .homepage__search h1 {
    margin: auto;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .homepage__searchform {
    position: relative;
    bottom: unset;
    height: 263px;
  }

  .homepage-gray {
    height: auto;
    margin-bottom: 56px;
    padding-bottom: 0;
  }

  /* new apartments */
  .homepage .new-apartments {
    margin-top: 20px;
  }

  /* pageblocks */
  .pageblock__box {
    display: none;
  }

  .homepage__blocks {
    margin: 0;
    margin-top: 115px;
  }

  .homepage__hero + .homepage__blocks {
    margin: 0 0 30px;
  }

  .homepage__hero + .homepage__blocks .homepage__block {
    box-shadow: 8px 30px 60px 0 rgba(0, 0, 0, 0.05);
    background-color: #fff;
    padding: 15px 0 15px;
    margin-bottom: 40px;
  }

  .homepage__hero + .homepage__blocks p {
    font-size: 12px;
  }

  .homepage__block {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .pageblock__image img {
    max-width: 100%;
    width: 100%;
  }

  .pageblock__content {
    padding: 30px 20px 30px;
    text-align: center;
  }

  .pageblock h2 {
    margin: 0;
    margin-bottom: 35px;
  }

  .pageblock p {
    width: auto;
  }
}

.pageblock__left .color-boxes {
  right: 0;
}

.pageblock__right .color-boxes {
  left: 0;
}

.pageblock .color-boxes {
  position: absolute;
  display: flex;
  bottom: 35px;
}

.pageblock .color-boxes:last-of-type {
  bottom: 0;
}

.color-boxes__box {
  height: 35px;
  width: 35px;
}

.color-boxes__box-lightblue {
  background-color: #c0deed;
}

.color-boxes__box-darkblue {
  background-color: #4a5677;
}

.color-boxes__box-red {
  background-color: #e3737b;
}

.color-boxes__box-yellow {
  background-color: #f3e2b8;
}

@media (max-width: 768px) {
  .pageblock .color-boxes {
    display: none;
  }
}


@media (max-width: 768px) { .rellax { transform: translate3d(0,0,0) !important; } }


.homepage__searchform {
  bottom: unset;
  top: 270px;
  z-index: 10;
}
.homepage__search + .container {
  margin-top: 112px;
}
.homepage__hero__content p {
  width: 500px;
  box-shadow: 0 30px 60px 0 rgb(0 0 0 / 5%);
  background-color: #ffffff;
  padding: 36px 55px;
  color: #4A5677;
  line-height: 27px;
}

.homepage__hero h1, .homepage__hero h2 {
  color: #4A5677;

}
.homepage__hero__button {
  width: 368px;
  height: 50px;
  left: 263px;
  top: 202px;
  background: #4A5677;
  box-shadow: -10px 10px 150px rgba(0, 0, 0, 0.25);
  color: white;
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: #FFFFFF;
  display: flex;
}
.homepage__hero__button p {
  margin: auto;
}

.homepage__hero__content {
  padding-top: 82px;
}


/* mobile */
@media (max-width: 768px) {
  .homepage__search h2 {
    font-size: 18px;
    margin: 20px auto 15px;
  }
  .homepage__searchform {
    top: 7px;
  }
  .homepage__searchform .search-apartment form {}
  .homepage__search + .container {
    margin-top: 10px;
  }
  .homepage__hero__content {
    padding-top: 40px;
    margin-bottom: 30px;
  }
  .homepage__hero__content p {
    background: transparent;
    box-shadow: none;
    width: 80%;
    padding: 0;
  }
  .homepage__hero__button {
    width: auto;
  }
}
