@import url(style.css);
/* ---------------------------------- SECTION 01 - START ---------------------------------- */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

header .title-section h1 {
  font-size: clamp(24pt, 5vw, 42pt);
}

header .title-section p {
  font-size: clamp(12pt, 2.5vw, 16pt);
/*text-wrap: pretty;*/
  text-align: center;
  color: var(--lightestgray);
}

header .title-box {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.75) 100%), url(../img/orange-sunset.png);
  background-size: cover;
  background-position: left bottom;
  outline: solid 1px var(--gray);
  outline-offset: 5px;
  border-radius: 1em;
  padding: 3em;
  display: flex;
  flex-direction: column;
  gap: 2em;
  color: var(--lightestgray);
}

@media screen and (max-width: 1000px) {
  header {
    margin-bottom: 1em;
  }
}
@media screen and (max-width: 600px) {
  header .title-box {
    padding: 1em;
  }
}
/* ----------------------------------- SECTION 01 - END ----------------------------------- */
/* ---------------------------------- SECTION 02 - START ---------------------------------- */
.section2 {
  /* max-width: 75em; */
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.section2 .box-group .rule-list {
  background-color: var(--dark);
  padding: 2em 3em;
  border-radius: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.section2 .box-group .rule-list h2 {
  font-weight: 500;
  font-weight: 400;
}
.section2 .box-group .rule-list h3 {
  font-weight: 400;
  font-size: 12pt;
  line-height: 0.5;
  color: var(--mediumgray);
}
.section2 .box-group .rule-list ol {
  font-weight: 300;
  color: var(--lightestgray);
  line-height: 1.75;
}
.section2 .box-group .rule-list ol li {
  border-top: var(--border-gray);
  padding: 1em;
  list-style: decimal-leading-zero inside;
  text-indent: 0.25em;
}
.section2 .box-group .rule-list ol li::marker {
  font-size: 16pt;
}
.section2 .box-group .rule-list ol li span {
  padding: 1em;
}
.section2 .box-group .rule-list ol li:first-child {
  border-top: none;
  /* margin-bottom: .75em; */
}

/* ----------------------------------- SECTION 02 - END ----------------------------------- */
/* ---------------------------------- SECTION 03 - START ---------------------------------- */
.section3 {
  /* max-width: 70em; */
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.section3 .box-group {
  display: inline-flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 1em;
  width: 100%;
  /* max-height: 50em; */
}

.section3 .box-group .box {
  scroll-margin-top: 5em;
  /* border: var(--border-gray); */
  border-radius: 1em;
  padding: 1em;
  background-color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: calc(50% - .5em);
  height: fit-content;
}
.section3 .box-group .box h2 {
  letter-spacing: 1px;
  font-weight: 600;
}
.section3 .box-group .box p {
  font-weight: 200;
}
.section3 .box-group .box:nth-child(1) h2 {
  color: var(--discord-green);
}
.section3 .box-group .box:nth-child(2) h2 {
  color: var(--discord-brown);
}
.section3 .box-group .box:nth-child(3) h2 {
  color: var(--discord-pink);
}
.section3 .box-group .box:nth-child(4) h2 {
  color: var(--discord-gold);
}
.section3 .box-group .box:nth-child(5) {
  width: 100%;
}
.section3 .box-group .box:nth-child(5) h2 {
  color: var(--discord-red);
}

.section3 .p-group {
  --max-lines: 3;
  --line-height: 1.58;
  max-height: calc(var(--max-lines) * 1em * var(--line-height));
  line-height: var(--line-height);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.section3 .p-group:has(+ .expand-p-group:not(:checked))::before {
  content: "";
  position: absolute;
  height: calc(2em * var(--line-height));
  width: 100%;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--dark));
}

.section3 .expand-p-group {
  appearance: none;
  border: var(--border-gray);
  padding: 0.5em 0.75em;
  border-radius: 0.5em;
  cursor: pointer;
  margin-top: 0.5em;
  width: fit-content;
  text-align: center;
  transition: 200ms background-color ease-in-out;
}

.section3 .expand-p-group:hover {
  background-color: var(--gray);
  transition: 200ms background-color ease-in-out;
}

.section3 .expand-p-group::before {
  content: "Mostrar más";
}

.section3 .expand-p-group:checked::before {
  content: "Mostrar menos";
}

.section3 .p-group:has(+ .expand-p-group:checked) {
  max-height: none;
}

@media screen and (max-width: 700px) {
  .section3 .box-group .box {
    width: 100%;
  }

  .section3 .expand-p-group {
    width: unset;
  }
}
/* ----------------------------------- SECTION 03 - END ----------------------------------- */