.search-form {
  margin-top: 150px;
  display: flex;

  input {
    border-bottom: 1px solid $white;
    border-top: none;
    border-left: none;
    border-right: none;
    height: 55px;
    background: transparent;
    color: white;
    box-shadow: none;
    font-size: 24px;
    margin-bottom: 10px;
    padding: 0 10px;

    @include breakpoint (small down) {
      font-size: 18px;
    }


    &:focus {
      background: transparent;
      outline: none;
      box-shadow: none;
      border-bottom: 1px solid white;
      border-top: none;
      border-left: none;
      border-right: none;

      &::placeholder {
        color: transparent;
      }
    }

    &::placeholder {
      color: white;
    }

    &.search-submit {
      color: white;
    }
  }
}

.search svg {
  stroke: black;
}


.search-results {
  h2 {
    margin-bottom: 50px;

    @include breakpoint (medium down) {
      margin-bottom: 10px;
    }
  }
  .result {
    border-bottom: 3px solid $white;
    margin: 20px 0;
  }

  .thumb {
    padding-bottom: 20px;
    padding-right: 20px;
    margin-right: -20px;
    transition: .5s;

    &:hover {
      opacity: .8;
      cursor: pointer;
    }

    img {
      width: 100%;
    }

    h3 {
      padding: 20px 0;
      line-height: 32px;
      font-size: 24px;
      font-weight: 700;
      min-height: 120px;
    }
  }
}

#search {
    align-items: center;
    background: $red;
    top:0;
    height: 0;
    opacity: 0;
    position: fixed;
    transition: all .5s;
    width: 100vw;
    will-change: transform, opacity;
    z-index: -1;

    &:target {
      height: 100vh !important;
      opacity: 1;
      width: 100vw !important;
      z-index: +9999;

      .close-btn{
        display: block;
      }
    }
}

#searchbox {
  background: transparent;
  border: solid black;
  border-width: 0 0 1px 0;
  color: white;
  flex: 1 0 auto;
  font-size: 2rem;
  height: 2rem;
  max-width: 100%;
  outline: 0;
  padding: 2rem 1rem;
}

.close-btn {
  display: none;
  color: black;
  font-size: 2rem;
  position: absolute;
  top: 2rem;
  right: 9rem;
  font-size: 24px;

  @include breakpoint (medium down) {
    top: 2%;
    left: 2%;
  }

  span {
    position: absolute;
    top: -5;
    left: -100px;
    }
}

.fade a {
  &:hover {
    color: white;
  }
}

.search-result {
  h5 {
    padding: 10px 0;
    font-weight: 500;
  }
  a {
    color: $black;
  }

  p {
    padding: 0;
  }

  a.readmore {
    color: $red;
    font-family: $header-font-family;
    font-weight: 500;
    font-size: 14px;
  }

  .searchbox {
      margin-bottom: 30px;
  }
}
