@import url("reset.css");

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
:root {
  /* PRIMARY */
  --blue: hsl(223, 87%, 63%);

  /* SECONDARY */
  --pale-blue: hsl(223, 100%, 88%);
  --light-red: hsl(354, 100%, 66%);

  /* NEUTRAL */
  --gray: hsl(0, 0%, 59%);
  --dark-blue: hsl(209, 33%, 12%);
}
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  font-family: "Libre Franklin", sans-serif;
  font-size: 20px;
}
.box {
  padding-top: 22.5%;
  padding-bottom: 38px;
  max-width:645px;
  max-height:895px;
  margin:0 auto;
}
.main {
  text-align: center;
}
.main__logo {
  height: 16px;
  margin-bottom: 38px;
}
h1 {
  color: var(--gray);
  font-size: 1.4rem;
  margin-bottom: 21px;
}
.main__black {
  color: var(--dark-blue);
  font-weight: 700;
}
h2 {
  color: var(--dark-blue);
  font-size: 12px;
}
.main__form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
  position:relative;
  gap:0.6rem;
}
.main__form input {
  height: 40px;
  width: 74.6%;
  font-size: 0.75rem;
  border-radius: 2rem;
}

[type="email"] {
  border: 1px solid var(--pale-blue);
  padding-left: 32px;
}
small {
  display:none;
}
#email--error {
  border:1px solid var(--light-red);
}
[type="email"] + .error-message {
  margin:10px;
}
.error-message {
  display:block;
  position:relative;

  font-size:0.8rem;
  font-weight:300;
  color:var(--light-red);
  font-style:italic;
  font-family: "Libre Franklin", sans-serif;
}
::placeholder {
  /* padding-left:30px; */
  font-size: 0.78rem;
  color: var(--gray);
  opacity: 0.3;
}

[type="submit"] {
  border: none;
  background: var(--blue);
  color: white;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 600;
  box-shadow: 0px 5px 7px -1px hsl(223deg 87% 63% / 50%);
}
[type="submit"]:hover {
  opacity: 0.9;
}

.bottom {
  margin-top: 87px;
  font-size: 0.6rem;
  text-align: center;
  padding-bottom:1px;
}
.bottom__image {
  width: 85%;
  display: block;
  margin: 0 auto;
  margin-bottom: 120px;
}

.bottom__icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  box-sizing: content-box;
  margin-bottom: 28px;
}

.circle-icon {
  border-radius: 50%;
  padding: 7px;
  color: hsl(223, 87%, 63%);
}
.circle-icon:hover {
  color: white;
  background: var(--blue);
  cursor: pointer;
}
.copy {
  display:block;
  color: var(--gray);
  font-size: 10px;
  margin-bottom:50px;
}
#size1 {
  height:15px;
  width:15px;
}
#size2 {
  height:15px;
  width:15px;
}
#size3 {
  height:15px;
  width:15px;
}
@media (min-width: 700px) {
  h1 {
    font-size: 2.8rem;
    margin-bottom: 45px;
  }
  h2 {
    font-size: 24px;
  }
  .main__logo {
    height: 32px;
    margin-bottom: 80px;
  }

  .main__form {
    gap: 11px;
    margin-top: 65px;
  }
  .main__form input {
    height: 80px;
    border-radius: 2.4rem;
    font-size:1.6rem;
  }
  [type="email"] {
    border: 2px solid var(--pale-blue);
    padding-left: 60px;
    font-size: 1.6rem;

  }
  ::placeholder {
    font-size: 1.6rem;
    
  }
  .bottom {
    margin-top: 135px;
  }
  #size1 {
    height:30px;
    width:30px;
  }
  #size2 {
    height:30px;
    width:30px;
  }
  #size3 {
    height:30px;
    width:30px;
  }
  .circle-icon {
  padding:15px; 
  }
  .bottom__image {
    margin-bottom:240px;
  }
 
  .bottom__icons {
    gap:25px;
    margin-bottom:60px;
  }
  .copy {
      font-size:20px;
  }
  .box {
    padding-bottom:73px;
  }
}
@media (min-width: 1100px) {
  .error-message {
    display:block;
    position:absolute;
    top:68px;
    left:32px;
    font-size:0.8rem;
    font-weight:300;
    color:var(--light-red);
    font-style:italic;
    font-family: "Libre Franklin", sans-serif;
  }
  .box {
      padding-top:85px;
  }
  .main__logo {
    height:27px;
    margin-bottom:50px;
  }
  h1 {
    font-size:3rem;
    margin-bottom:22px;
  }
  h2 {
    font-size:20px;
  }

  .main__form {
    margin-top:45px;
    flex-wrap: nowrap;
  }
  .main__form input {
    font-size:1rem;
    height:57px;
    margin:0;
  }
  ::placeholder {
    font-size:1.1rem;
  }
  [type="email"] {
    flex:0.1 420px;
    padding-left:25px;
  }
  [type="submit"] {

    font-weight:700;
    flex:0.1 200px;
  }

  .bottom {
    margin-top:85px;
  }
  .bottom__image {
    height:390px;
    width:100%;
    margin-bottom:75px;
  }
  .bottom__icons {
    gap:15px;
    margin-bottom:25px;
  }
  #size1 {
    height:18px;
    width:18px;
  }
  #size2 {
    height:18px;
    width:18px;
  }
  #size3 {
    height:18px;
    width:18px;
  }
  .circle-icon {
    padding:7px;
    }
  .copy {
      font-size:12px;
  }

}