@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

body,
button {
  font: 16px Poppins, sans-serif;
}

hr {
  margin: 16px auto;
  width: 70%;
  border: solid 4px #5fedff;
}
input {
  height: 34px;
  width: 100%;
  border-radius: 3px;
  border: 1px solid transparent;
  border-top: none;
  border-bottom: 1px solid #ddd;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.39), 0 -1px 1px #fff, 0 1px 0 #fff;
}
button {
  margin-top: 16px;
  display: flex;
  align-content: center;
  align-self: center;
  align-items: center;
  justify-content: center;
  background-color: #00c2fb;
  padding: 4px 8px 4px 0px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer !important;
  transition: all 0.4s;
  outline: none;
  border: none;
}

button:hover {
  background-color: #5e5e5e;
  transition: all 0.6s;
}
i {
  margin: 0 16px;
}
a {
  text-decoration: none;
}

main button {
  max-width: 512px;
  margin: 16px auto;
}

/* end reset */
.center {
  text-align: center;
}

.cards-container ul li p {
  font-size: 14px;
}

h3 {
  font-weight: 300;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  color: #363636;
}
h2,
h4,
strong {
  color: #363636;
}
label {
  font-size: 12px;
}
.container {
  margin: 0 32px;
}
h1 {
  color: #363636;
  line-height: 50px;
  max-width: 55%;
  margin: 32px 0 32px 0;
}

.nav-container {
  text-align: center;
}
#slider-questions {
  padding: 32px 0;
}
#slider-questions h3 {
  text-align: center;
}
#slider-questions nav {
  display: flex;
  align-items: center;
}
#slider-questions nav ul {
  flex: 1;
  /* max-width: 100px; */
  /* justify-content: space-around; */
  margin: 16px auto;
}
#slider-questions nav ul li {
  display: inline;
  align-items: center;
  padding: 0 32px 64px;
}
.cards-container {
  font-size: 14px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  margin: 32px 0;
  text-align: center;
}

.cards-container ul li {
  margin: 0 32px 64px;
  align-items: center;
  border-bottom: solid 2px #eee;
}
.cards-container ul li img {
  margin-bottom: 16px;
}

#pre-footer p {
  margin-top: 32px;
  font-size: 16px;
}
#pre-footer ul {
  margin: 32px 0;
}
#pre-footer ul li {
  margin: 16px;
}

footer {
  display: flex;

  background: #ece9e6; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to bottom,
    #ffffff,
    #ece9e6
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to bottom,
    #ffffff,
    #ece9e6
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

footer p {
  margin: 32px 0;
}
.form-container form {
  display: flex;
  flex-direction: column;
  padding-top: 32px;
}
footer form,
.form-container form {
  margin: 0 auto;
color: #b5b5b5;
}

footer form input,
.form-container form input {
  padding: 8px;

  margin-bottom: 16px;
  outline: none;
}

footer form button,
.form-container form button {
  margin: 0 auto 32px;
  
  text-align: center;
}

#post-footer {
  background: #fff;
  margin: 16px 0;
  text-align: center;
  font-size: 12px;
}
section .wrapper p {
  margin: 16px 0;
  line-height: 200%;
}
/* end main styling */

@media (max-width: 500px) {
  button {
      width:100%;
      text-align:center;
  }
  .mobile {
    visibility: visible;
  }
  .desktop {
    display: none;
  }
  h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 150%;
  }
  h2 {
text-align: center;
    font-size: 20px;
    margin-bottom: 8px;
  }
  p {
    font-size: 16px;
    line-height: 180%;
    margin-top: 16px;
  }
  header {
    min-height: 900px;
    background: url("../images/background-mobile.jpg") no-repeat center;
    background-size: cover;
  }
  .cards-container {
    background: #f5f6fc;
  }
  .cards-container ul li {
    background: #fff;
    border-radius: 8px;
    padding: 16px 8px;
  }
  .cards-container ul li:first-child {
    margin-top: 32px;
  }
  .form-container {
    display: none;
  }

  #pre-footer {
    background: url("../images/background-pre-footer.jpg") no-repeat bottom;
    background-size: contain;
    min-height: 980px;
  }
  section > .wrapper {
    margin: 32px auto;
  }
  section > .wrapper p {
    text-align: center;
  }
}

@media (min-width: 501px) {
  section > div.wrapper {
    max-width: 960px;
    margin: 64px auto;
  }

  .desktop {
    visibility: visible;
  }
  .mobile {
    display: none;
  }
  header {
    min-height: 900px;
    background: url("../images/background-desktop.jpg?v2") no-repeat center;
    background-size: cover;
  }
  h1 {
    font-size: 64px;
    line-height: 60px;
  }

  #slider-questions {
    background: #f5f6fc;
  }
  .cards-container {
    background: #fff;
    margin: 16px 32px;
  }
  .cards-container ul {
    padding-top: 32px;
    display: flex;
    flex-direction: row;

    margin: 0 auto;
  }
  .cards-container ul li {
    padding-bottom: 32px;
  }
  .form-container {
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 32px;
    visibility: visible;
    width: 512px;
    display: flex;
    flex-direction: column;

    background: #ece9e6; /* fallback for old browsers */
    background: -webkit-linear-gradient(
      to bottom,
      #ffffff,
      #ece9e6
    ); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(
      to bottom,
      #ffffff,
      #ece9e6
    ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  }

  #pre-footer {
    background: url("../images/background-pre-footer.jpg?v2") no-repeat right;
    background-size: contain;
    /* min-height: 900px; */
    padding: 32px 0;
  }
  #pre-footer ul li {
    display: inline;
  }
  footer {
    display: none;
  }
}

/* end breakpoints */
