/*Mobile-------------------------------------*/
@media only screen and (max-width: 570px) {
  .hanging-spider img {
    display: none;
  }

  .banner {
    background-image: url("../assets/banner.jpg");
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;
  }

  .form-container {
    width: 80%; /* change width for different screen sizes*/
    display: block;
    margin: 0em auto;
  }

  .form {
    padding: 1em;
  }

  .form label {
    font-size: 1em;
  }

  .hello img {
    padding: 3em 0;
    width: 6em;
  }
}

/*Tablet-------------------------------------*/
@media only screen and (min-width: 571px) and (max-width: 1024px) {
  .hanging-spider img {
    display: none;
  }

  .banner {
    background-image: url("../assets/banner.jpg");
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;
  }

  .form-container {
    width: 70%; /* change width for different screen sizes*/
    display: block;
    margin: 0em auto;
  }

  .form {
    padding: 1.5em;
  }

  .form label {
    font-size: 1em;
  }

  .hello img {
    padding: 3em 0;
    width: 7em;
  }
}
/*Desktop-------------------------------------*/
@media only screen and (min-width: 1025px) {
  .hanging-spider img {
    width: 80%;
  }

  .banner {
    background-image: url("../assets/banner.jpg");
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;
  }

  .form-container {
    width: 50%; /* change width for different screen sizes*/
    display: block;
    margin: 0em auto;
  }

  .form {
    padding: 2em;
  }

  .form label {
    font-size: 1.5em;
  }

  .hello img {
    padding: 3em 0;
    width: 8em;
  }
}

.hanging-spider {
  position: fixed;
  top: 0;
  right: 0;
}

h1 {
  color: white;
  font-family: "Days One", sans-serif;
}
h2 {
  color: var(--main-blue);
  font-family: "Days One", sans-serif;
  font-size: 1.25em;
}

.description {
  text-align: center;
  font-style: italic;
  padding: 2em 1em;

  font-size: 1.25em;
}

.form {
  border-radius: 37px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  color: var(--main-blue);
}
.form-control {
  margin-bottom: 70px;
  padding-bottom: 20px;
  position: relative;
  border: none;
}

.send {
  display: inline-block;
  margin-top: 120px;
}
button:focus {
  outline: none;
}

.form-control label {
  display: inline-block;
  margin-bottom: 5px;
}

.form-control input {
  display: block;
  font-family: inherit;
  padding: 10px;
  width: 100%;
}

.form-control input:focus {
  outline: 0;
  border-color: #777;
}

.form-control.success input {
  border-color: #2ecc71;
}

.form-control.error input {
  border-color: #e74c3c;
}

.form-control i {
  font-size: 1.1em;
  visibility: hidden;
  position: absolute;
  top: 40px;
  right: 20px;
}

.form-control.success i.fa-check-circle {
  color: #2ecc71;
  visibility: visible;
}

.form-control.error i.fa-exclamation-circle {
  color: #e74c3c;
  visibility: visible;
}

.form-control small {
  color: #e74c3c;
  position: absolute;
  padding: 0.5em;
  visibility: hidden;
}

.form-control.error small {
  visibility: visible;
}

label {
  color: var(--main-blue);
}

input[type="text"] {
  width: 90%;
  padding: 0.2em;
  margin: 0 0.25em;
  border: none;
  border-bottom: 1px solid black;
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 15px;
  height: 8em;
  border-radius: 0.5em;
}

.send i {
  padding: 1em;
  font-size: 1.25em;
  color: white;
}

.send {
  display: block;
  margin: 12em auto 0;
  background-color: var(--main-blue);
  border: 0;
  border-radius: 50%;
}

.send:hover {
  background-color: var(--black);
  box-shadow: 0px 15px 10px rgba(0, 0, 0, 0.15);
}
.email {
  color: black;
  text-decoration: underline;
}
.email:hover {
  color: var(--main-blue);
}

.number {
  color: black;
}
.number:hover {
  color: var(--main-blue);
}

.contact-details {
  padding: 5em 0 5em 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  font-size: 1.6em;
}

/* style menu link on current page - underline remains*/
.current a::before,
a:focus::before {
  transform: scale(1, 1) !important;
}

/* style alert box for form validation */
.alert {
  background-color: rgba(255, 0, 0, 0.65);
  color: white;
  border: none;
}
