header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 10rem;
  width: 100%;

  h1 {
    text-align: center;
    font-size: 3rem;
    color: var(--text-color);
  }

  p {
    color: var(--text-color-light);
    font-size: 1.2rem;
  }
}

main {
  display: flex;
  justify-content: center;
  gap: 15rem;
  align-items: center;
  padding: 10px 20px;
  height: 23rem;

  aside {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;

    h1 {
      font-size: 2.5rem;
      color: var(--text-color);
    }

    p {
      font-size: 1rem;
      color: var(--text-color-light);
    }

    a {
      padding: 10px 20px;
      border-radius: 40px;
      background-color: var(--accent-color);
      color: white;
      cursor: pointer;
      text-decoration: none;
      transition: all .3s ease;

      &:hover {
        transform: scale(1.05);
      }

      &:active {
        transform: scale(.95);
      }
    }
  }

  section {
    margin-top: 10rem;
    padding: 20px;
    background-color: var(--primary-color);
    border-radius: 40px;
    height: 32rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;


    details {
      /* border-bottom: .5px solid var(--text-color-light); */
      width: 45rem;
      cursor: pointer;


      summary {
        display: flex;
        justify-content: space-between;
        gap: 5px;
        padding: 5px 20px;
        user-select: none; 

        div {
          display: flex;
          align-items: center;
          gap: 10px;

          h1 {
            font-size: 1.5rem;
            color: var(--text-color);
          }
        }

        .arrow-down {
          transition: transform .3s ease;
        }
      }

      &[open] .arrow-down {
          transform: rotate(180deg);
      }

      p {
        padding: 10px 20px;
        cursor: text;
      }
    }

    @media screen and (min-width: 768px) and (max-width: 1440px) {
      height: 20rem;
      margin-top: 0;

      details {
        
        summary {
          h1 {
            font-size: 1.2rem;
          }
        }

        p {
          font-size: .9rem;
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {

  header {
    margin-bottom: 5em;
    h1 {
      font-size: 2rem;
    }

    p {
      display: none;
    }


  }

  main {
    flex-direction: column-reverse;
    gap: 50px;

    section {
      width: 23rem;
      height: fit-content;

      details {
        width: 22rem;
        border-bottom: .5px solid var(--text-color-light);

        summary {
          h1 {
            font-size: 1.2rem;
          }
        }
        p {
          font-size: .9rem;
        }
      }
    }
  }
}
