:root {
  --Blue: hsl(223, 87%, 63%);
  --Pale-Blue: hsl(223, 100%, 88%);
  --Light-Red: hsl(354, 100%, 66%);
  --Gray: hsl(0, 0%, 59%);
  --Very-Dark-Blue: hsl(209, 33%, 12%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Libre Franklin", sans-serif;
  text-align: center;
  padding: 50px 0;
}

.heading h1 {
  font-weight: 300;
  padding: 50px 0 15px 0;
  color: var(--Gray);
}

.heading h1 span {
  font-weight: 700;
  color: var(--Very-Dark-Blue);
}

.heading p {
  font-size: 14px;
  padding-bottom: 30px;
}

.heading .form-control {
  width: 300px;
  margin: auto;
}

.heading .form-control input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--Blue);
  border: 1px solid var(--Pale-Blue);
  border-radius: 30px;
  outline: none;
}

.heading .form-control input::placeholder {
  color: var(--Pale-Blue);
}

.heading .form-control button {
  width: 100%;
  background-color: var(--Blue);
  color: #fff;
  font-family: inherit;
  margin-top: 20px;
  padding: 8px;
  font-size: 14px;
  border: 2px solid var(--Blue);
  border-radius: 30px;
  box-shadow: 1px 4px 10px var(--Pale-Blue);
  cursor: pointer;
  transition: all 0.3s ease-in;
}

.heading .form-control button:hover {
  opacity: 0.8;
}

.showcase {
  padding: 50px 20px 80px;
}

img {
  max-width: 100%;
}

ul {
  list-style-type: none;
}

.footer {
  margin-top: -30px;
}

.footer ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer ul li {
  margin: 0 12px;
}

.footer ul li a {
  background-color: #fff;
  padding: 6px;
  border: 1px solid var(--Pale-Blue);
  border-radius: 50%;
  color: var(--Blue);
  transition: all 0.3s ease-in-out;
}

.footer ul li a:hover {
  background-color: var(--Blue);
  color: #fff;
}

.footer p:first-of-type {
  padding-top: 20px;
  font-size: 12px;
  color: var(--Gray);
}

.footer p:last-of-type {
  padding-top: 10px;
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

.heading .form-control.error input {
  border-color: #e74c3c;
}
.heading .form-control.success input {
  border-color: #2ecc71;
}

.input {
  position: relative;
}
.feedback {
  display: none;
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  color: #e74c3c;
  font-size: 6px;
  text-align: center;
  margin-top: -6px;
  margin-bottom: 15px;
}

.showItem {
  display: block;
}

@media screen and (min-width: 700px) {
  .heading h1 {
    font-size: 36px;
  }

  .heading .form-control {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
  }

  .heading .form-control .input,
  .heading .form-control button {
    width: auto;
    padding: 12px 20px;
  }

  .heading .form-control .input {
    width: 300px;
  }

  .heading .form-control button {
    width: 150px;
    transform: translateY(-14px);
    padding: 8px 20px;
  }

  .showcase img {
    width: 500px;
  }

  .feedback {
    left: 0;
    transform: translateX(10%);
  }
}
