@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");

@media only screen and (max-width: 1270px) {
  .banner__content h1 {
    width: 80%;
  }
}

@media only screen and (max-width: 1060px) {
  .cards__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 973px) {
  .brand__button {
    font-size: 11px;
  }

  .banner__content h1 {
    width: 100%;
    font-size: 30px;
  }

  .banner__content p {
    font-size: 15px;
  }

  .section__heading {
    font-size: 25px;
  }

  .card__heading {
    font-size: 15px;
  }

  .card__content {
    font-size: 11px;
  }

  .about__content h3 {
    font-size: 20px;
  }

  .about__content p {
    font-size: 15px;
  }
}

@media only screen and (max-width: 770px) {
  .nav__items {
    position: fixed;
    top: 60px;
    right: -40%;
    height: 100vh;
    width: 40%;
    display: block;
    text-align: center;
    background-image: linear-gradient(90deg, #814096, #f83292);
    transition: all 0.5s ease-in;
    opacity: 0.8;
  }

  nav input:checked ~ .nav__items {
    right: 0;
  }

  .nav__items li {
    display: block;
    margin-top: 30px;
  }

  .nav__items li a {
    color: #fff;
  }

  .nav__items li a:hover {
    color: #09f8f8;
  }

  nav label {
    display: block;
  }
}

@media only screen and (max-width: 720px) {
  .cards__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .banner__section {
    grid-template-columns: repeat(1, 1fr);
  }

  .about__section {
    grid-template-columns: repeat(1, 1fr);
  }

  .contact {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media only screen and (max-width: 644px) {
  .submit__button {
    padding: 10px 15px;
    font-size: 12px;
  }

  #email {
    padding: 15px 10px;
  }

  .about__buttons {
    width: 84%;
  }
}

@media only screen and (max-width: 500px) {
  .email__form {
    width: 100%;
  }

  .about__buttons {
    justify-content: space-between;
    width: 100%;
  }
}
