.green-column {
  background: linear-gradient(to bottom, #74c1ef, #94d0ef, #005482, #118b56, #163e46);
  height: 100vh;
  opacity: 0.8;
  display: flex;
  align-items: center;
  opacity: 0.8;
  border-left: 5px solid rgb(255, 255, 255);
  border-right: 5px solid rgb(255, 255, 255);
}

.bg-img {
  background-image: url(../images/cityscape.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.green-text {
  color: rgb(244, 240, 240);
  text-align: center;
  padding-top: 50px;
  font-weight: bold;
  font-size: 1em;

  /* Added a text shadow to create the appearance of a photoshop stroke */
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

video {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  margin: auto;
  width: 17%;
  height: auto;
  object-fit: contain;
  z-index: -1;
  border: 3px solid rgb(255, 255, 255);
  box-sizing: border-box;

}

.search-column {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#postcodeInput {
  width: 80%;
}

#searchButton {
  margin-left: 10px;
}

/* thiis section if for colour coding the energy ratings */
.rating_a {
  background: #008054;
}

.rating_b {
  background: #19b459;
}

.rating_c {
  background: #8dce46;
}

.rating_d {
  background: #ffd500;
}

.rating_e {
  background: #fcaa65;
}

.rating_f {
  background: #ef8023;
}

.rating_g {
  background: #e9153b;
}


@media (max-width: 767px) {
  .green-column {
    height: auto;
    display: block;
    text-align: center;
    padding: 20px;
    order: 2;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .search-column {
    height: auto;
    display: block;
    text-align: center;
    padding: 20px;
    order: 1;
  }
  video {
    width: 50%;
    position: relative;
    top: 0;
    left: 0;
    margin: auto;
  }
  .green-text {
    padding-top: 20px;
    font-size: 1.5em;
  }
  #postcodeInput {
    width: 100%;
  }
}