@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

*,
*:after,
*:before {
  box-sizing: border-box;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  user-select: none;
  font-family: "Inter", sans-serif;
  align-items: center;
  line-height: 1.5;
  min-height: 100vh;
  padding: 1rem 0;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  background-image: linear-gradient(to right, #de6262, #ffb88c);
}

section {
  width: 90%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;

  & + section {
    margin-top: 2.5em;
  }
}

h1 {
  font-weight: 700;
  line-height: 1.125;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

h2 {
  margin-top: 0.25em;
  color: #101820ff;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  & + * {
    margin-top: 1.5em;
  }
}

summary {
  border-radius: 15px;
  margin: 10px 0;
  background-color: #101820ff;
  color: rgb(247, 220, 186);
  position: relative;
  cursor: pointer;
  padding: 1em 0.5em;
  list-style: none; // Remove arrow
  &::-webkit-details-marker {
    display: none; // Remove arrow
  }

  &:hover {
    background-color: #f2f5f9;
  }

  div {
    display: flex;
    align-items: center;
  }

  h3 {
    display: flex;
    flex-direction: column;
  }

  small {
    color: #999;
    font-size: 0.875em;
  }

  strong {
    font-weight: 700;
  }

  span:first-child {
    width: 4rem;
    height: 4rem;
    border-radius: 10px;
    background-color: #f3e1e1;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-right: 1.25em;
    svg {
      width: 2.25rem;
      height: 2.25rem;
    }
  }

  span:last-child {
    font-weight: 700;
    margin-left: auto;
  }

  &:focus {
    outline: none;
  }

  .plus {
    color: #289672;
  }
}

details {
  /* border-bottom: 1px solid rgba(16, 24, 32, 0.685); */
  &[open] {
    box-shadow: -3px 0 0 rgba(16, 24, 32, 0.486);
  }

  &:first-of-type {
    border-top: 5px solid rgba(16, 24, 32, 0.575);
  }
  & > div {
    padding: 2em 2em 0;
    font-size: 0.875em;
  }
}

dl {
  display: flex;
  flex-wrap: wrap;
  dt {
    font-weight: 700;
  }
  div {
    margin-right: 4em;
    margin-bottom: 2em;
  }
}
