@import url('https://fonts.googleapis.com/css?family=Poppins:200i,400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-white: #f3f3f3;
  --color-white-transparent: rgba(255, 255, 255, 0.8);
  --color-darkblue: #1b1b32;
  --color-darkblue-alpha: rgba(27, 27, 50, 0.8);
  --color-green: #37af65;
}

body {
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-white);
  background-color: var(--color-darkblue-alpha);
  background-image: linear-gradient(115deg,
      rgba(58, 58, 158, 0.8),
      rgba(136, 136, 206, 0.7)), url(https://cdn.freecodecamp.org/testable-projects-fcc/images/survey-form-background.jpeg);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

.container {
  margin: 3rem auto 1rem auto;
  max-width: 720px;
}

/* ===== header ===== */

h1,
p {
  text-align: center;
  text-shadow: 0 0 5px var(--color-darkblue-alpha);
}

p {
  display: inline-box;
  margin: 0.5em 0 1.5em 0;
}

/* header END */

/* ===== form wrapper ===== */

.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--color-darkblue-alpha);
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 5px var(--color-white);
}

/* form wrapper END */

/* ===== form ===== */

.form-group {
  margin: 0 auto 2rem auto;
}

.form-group p {
  text-align: left;
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
}

label {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form-control {
  font-size: 1.2rem;
  display: block;
  width: 100%;
  height: 3rem;
  padding: 0.375rem 0.75rem;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-radio,
.input-checkbox {
  display: inline-block;
  margin-right: 0.625rem;
  min-height: 1.25rem;
  min-width: 1.25rem;
}

.input-textarea {
  font-size: 1.2rem;
  min-height: 120px;
  width: 100%;
  padding: 0.625rem;
  resize: vertical;
}

.submit-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-green);
  color: inherit;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.4rem;
  transition: all 0.5s ease;
}

.submit-button:hover {
  color: var(--color-darkblue);
  border: 1px solid var(--color-white);
}

.submit-button:active {
  transform: translateY(2px);
}

/* form END */

/* ===== footer ===== */

.footer p {
  display: inline-block;
  width: 100%;
  margin: 1rem auto 0 auto;
  font-size: 1rem;
  text-shadow: none;
}

.footer a {
  text-decoration: none;
  color: var(--color-white);
  border-bottom: 1px solid var(--color-white);
  padding: 0.2rem 0.5rem;
  transition: all 0.4s ease;
}

.footer a:hover {
  color: black;
  background-color: var(--color-white-transparent);
  border-bottom-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

/* footer END */


/* ===== media ===== */

@media(max-width: 800px) {

  .container {
    margin: 2rem auto 1rem auto;
    max-width: 90%;
  }

  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1.2rem;
  }

  .form-group p {
    font-size: 1.2rem;
  }

  label {
    font-size: 1.2rem;
  }

  .form-control {
    font-size: 1rem;
  }

}

/* media END */
