/* STRUCTURE */

header {
    background-color: #f7f7f7;
    height: 80px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Box Outline */
.Rectangle-5 {
  text-align: center;
  border-radius: 10px;
  background-color: #ffffff;
  border: solid 1px #9b9b9b;

  width: 55%;
  max-width: 1000px;
  padding: 15px 15px 30px 15px;

  position: fixed;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
}

svg {
  margin: 15px 0px 10px 0px;
}

/* FONTS */

/* For Thank You Text */
h1 {
  width: 100%;
  height: 48px;
  font-family: "League Spartan";
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  color: #44444a;
}

/* For Your Payment Has Been Received Text */
p {
  width: 100%;
  height: 32px;
  font-family: "Nunito Sans";
  font-size: 24px;
  font-weight: 300;
  text-align: center;
  color: #44444a;
}

/* BUTTON */

.button {
  background-color: #ed327d;
  border: none;
  border-radius: 6px;
  width: 180px;
  height: 60px;

  margin-top: 40px;
  margin-bottom: 20px;

  font-family: "Nunito Sans";
  text-align: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;

}

.button:hover {
  opacity: .85;
}

.button:active {
  opacity: .5;
  outline:0;
}

.button:focus {
  outline:0;
}

/* Changes box to relative when height, but not width, shrinks. */
@media screen and (min-width: 501px) and (max-height: 730px) {
  /* Box Outline */
  .Rectangle-5 {
    position: relative;
    margin: auto;
    margin-top: 30px;

    top: 0;
    left: 0;
    transform: none;
  }
}

/* For Mobile */
@media screen and (max-width: 500px) and (min-height: 561px){

  /* STRUCTURE */

  header {
    height: 59px;
  }

  /* Box Outline */
  .Rectangle-5 {
    width: 70%;
    height: 70%;
    padding: 0px 20px 30px 20px;
    margin: 5vh 0 5vh 0;
  }

  img {
    width: 143px;
    height: 40px;
    padding: 9px 0px 10px 1px;
  }

  svg {
    width: 100px;
    height: 100px;
  }

  /* FONT */

  /* For Thank You text */
  h1 {
    font-size: 26px;
  }

  /* For Your Payment Has Been Received Text */
  p {
    font-size: 24px;
  }

  /* BUTTON */

  .button {
    position: absolute;
    bottom: 15px;
    transform: translateX(-50%);
  }
}


/* For Mobile, Changes box to relative when height, but not width, shrinks */

@media screen and (max-width: 500px) and (max-height: 560px){

  /* STRUCTURE */

  header {
    height: 59px;
  }

  /* Box Outline */
  .Rectangle-5 {
    width: 70%;
    height: 70%;
    padding: 0px 20px 20px 20px;

    position: relative;
    margin: auto;
    margin-top: 35px;

    top: 0;
    left: 0;
    transform: none;

  }

  img {
    width: 143px;
    height: 40px;
    padding: 9px 0px 10px 1px;
  }

  svg {
    width: 100px;
    height: 100px;
  }

  /* FONT */

  /* For Thank You text */
  h1 {
    font-size: 26px;
  }

  /* For Your Payment Has Been Received Text */
  p {
    font-size: 24px;
  }
}


/* For Mobile, Changes box to relative when height, but not width, shrinks */

@media screen and (max-width: 500px) and (max-height: 560px){

  /* STRUCTURE */

  /* BUTTON */

  .button {
    position: relative;
    margin: 20px 0px 20px 0px;
    transform: 0;
    bottom: 0;
  }

  /* Box Outline */
  .Rectangle-5 {
    width: 70%;
    height: 70%;
    padding: 0px 20px 20px 20px;

    position: relative;
    margin: auto;
    margin-top: 35px;

    top: 0;
    left: 0;
    transform: none;
  }

  img {
    width: 143px;
    height: 40px;
    padding: 9px 0px 10px 1px;
  }

  svg {
    width: 100px;
    height: 100px;
  }

  /* FONT */

  /* For Thank You text */
  h1 {
    font-size: 26px;
  }

  /* For Your Payment Has Been Received Text */
  p {
    font-size: 24px;
  }

  /* BUTTON */

  .button {
    position: relative;
    margin: 20px 0px 20px 0px;
    transform: 0;
    bottom: 0;
  }
}
