* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

html,
body {
  width: 100%;
  padding: 50px;
  display: flex;
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-weight: 350;
  font-style: normal;
  font-size: 15px;
  color: hsla(0, 0%, 100%, 0.75);
  line-height: 25px;

  main {
    width: max-content;
    overflow: hidden;
    display: flex;
    border-radius: 8px;
    justify-content: center;
  }

  section {
    width: inherit;
    padding: 40px;

    h2 {
      font-family: "Big Shoulders", sans-serif;
      font-optical-sizing: auto;
      font-weight: 500;
      font-style: normal;
      font-size: 30px;
      color: hsl(0, 0%, 95%);
    }

    button {
      margin-top: 7em;
      width: max-content;
      padding: 1em 2em;
      border-radius: 24px;
      background-color: hsl(0, 0%, 95%);
      border: 2px solid hsl(0, 0%, 95%);
      resize: none;
      cursor: pointer;
      transition: all 0.5s ease-in;
    }

    &:first-child {
      background-color: hsl(31, 77%, 52%);
      button {
        color: hsl(31, 77%, 52%);
        &:hover {
          transform: translate(2px, -2px);
          color: hsl(0, 0%, 95%);
          background: none;
        }
      }
    }
    &:nth-child(2) {
      background-color: hsl(184, 100%, 22%);
      button {
        color: hsl(184, 100%, 22%);
        &:hover {
          transform: translate(2px, -2px);
          color: hsl(0, 0%, 95%);
          background: none;
        }
      }
    }
    &:last-child {
      background-color: hsl(179, 100%, 13%);
      button {
        color: hsl(179, 100%, 13%);
        &:hover {
          transform: translate(2px, -2px);
          color: hsl(0, 0%, 95%);
          background: none;
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  html,
  body {
    flex-direction: column;
    justify-content: center;
    padding: 0;

    main {
      flex-direction: column;
      margin: 50px;

      section {
        width: 30vh;
      }
    }
  }
}
