/* Components */

/* Confirm Panel Component */

.confirm-panel-card {
  overflow: hidden;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white-color);
  text-align: left;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  max-width: 290px;
  z-index: 1000;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.header {
  padding: 1.25rem 1rem 1rem 1rem;
  background-color: var(--white-color);
}

.image {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  background-color: #fee2e2;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
}

.image svg {
  color: rgba(255, 0, 0, 1);
  width: 1.5rem;
  height: 1.5rem;
}

.content {
  margin-top: 0.75rem;
  text-align: center;
}

.title {
  color: var(--black-color);
  font-size: var(--font-size-content-M);
  font-weight: bolder;
}

.message {
  margin-top: 0.5rem;
  color: var(--secondary-color);
  font-size: var(--font-size-content-S);
}

.actions {
  margin: 0.75rem 1rem;
  background-color: #f9fafb;
}

.confirm {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 0, 0, 1);
  color: var(--white-color);
  font-size: var(--font-size-content-M);
  border: none;
  justify-content: center;
  width: 100%;
  border-radius: 0.375rem;
  transition: all 250ms ease;
  cursor: pointer;

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

  &:active {
    background-color: rgba(128, 0, 0, 1);
  }
}

.cancel {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: var(--white-color);
  color: var(--secondary-color);
  font-size: var(--font-size-content-M);
  justify-content: center;
  width: 100%;
  border-radius: 0.375rem;
  border: none;
  border: 1px solid #d1d5db;
  transition: all 250ms ease;
  cursor: pointer;

  &:hover {
    color: var(--main-color);
    border-color: var(--main-color);
  }

  &:active {
    color: var(--main-color-button-hover);
    border-color: var(--main-color-button-hover);

  }
}

/* Fin Confirm Panel Component */

/* Fin Components */

header:not(main header) {
  position: relative;
  background: url(../images/bg.avif);
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0 0 clamp(50px, 8dvh, 130px) 0;

  &:after {
    content: "";
    border-bottom: 2px solid var(--black-color);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 95%;
  }
}

main {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: clamp(20px, 5vw, 40px) 2.5vw;
}

article {
  margin: 3dvh 0;
}

main header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: var(--width-content-title);
}

h1 {
  font-family: serif;
  text-transform: uppercase;
}

header h2 {
  margin-bottom: 1dvh;

  &:after {
    border-bottom: none;
  }
}

h2 span {
  background-color: var(--main-color);
  padding: 0 8px;
  white-space: nowrap;

  &::selection {
    background-color: var(--main-color-button-hover);
  }
}

h4 {
  color: var(--black-color);
}

li {
  margin: 0.5dvh 0;
}

footer li {
  list-style-type: none;
}

footer.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8dvh;
  padding: 5dvh 10dvh;
  background-color: var(--main-color-two);
}

.footer * {
  color: var(--white-color);
}

.footer p {
  margin-top: 0;
}

.footer_top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: row;
  gap: 15dvh;
}

.footer_top h2 {
  flex: 1;
}

.footer_top h2 span {
  display: inline-block;
}

.footer_top-right {
  flex: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
}

.footer_top-right p span,
.footer_bottom-right div>p span {
  color: var(--main-color);

  &::selection {
    color: var(--white-color);
  }
}

.footer_bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
}

.footer_bottom-left {
  display: flex;
  width: 40vw;
  justify-content: center;
  flex-direction: column;
}

.footer_bottom-left-top {
  display: flex;
  flex-direction: row;
  gap: 5dvh;
}

.footer_bottom-left-top li {
  list-style-type: none;
  margin: 0.5dvh 0;
  position: relative;
  width: fit-content;

  &::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: 50% 50%;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transition: transform 250ms;
  }

  &:hover {
    &::after {
      transform: translateX(-50%) scaleX(1);
    }
  }
}

.footer_bottom-left-top li * {
  text-decoration: none;
}

.footer_bottom-left-top>* {
  flex: 1;
}

.footer_bottom-left-top>*:not(:last-child) {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    right: -2.5dvh;
    top: 12.5%;
    width: 1px;
    height: 75%;
    background-color: var(--secondary-color);
  }
}

.footer_bottom-left-top p,
.footer_copyright *:not(.back_to-top) {
  color: var(--main-color);

  &::selection {
    color: var(--white-color);
  }
}

.footer_bottom-left-top *,
.footer_copyright * {
  font-size: var(--font-size-content-S);
  font-style: normal;
}

.footer_copyright {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer_copyright * {
  font-weight: normal;
}

.back_to-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--white-color);

  >svg {
    width: 22px;
    height: 22px;
    stroke: var(--white-color);
  }

  &::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: 50% 50%;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transition: transform 250ms;
  }

  &:hover {
    &::after {
      transform: translateX(-50%) scaleX(1);
    }
  }
}

.footer_bottom-left-top p {
  font-size: var(--font-size-content-M);
  font-weight: bold;
  word-spacing: 1px;
}

.footer_bottom-right {
  width: 35vw;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: 2dvh;
}

.footer_bottom-right .last_bibliography {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 0.5dvh;
  text-decoration: none;
  padding: 0.5dvh 3dvh 3dvh 3dvh;
  border-radius: 5px;
  transition: background-color 250ms;

  &::before {
    content: "";
    position: absolute;
    top: 0.5dvh;
    left: 5px;
    width: 1px;
    height: calc(100% - 3.5dvh);
    background-color: var(--main-color);
    transition: background-color 250ms;
  }

  &:hover {
    >p {
      color: var(--main-color);
    }
  }

  &:active {
    &::before {
      background-color: var(--main-color-button-hover);
    }

    >p {
      color: var(--main-color-button-hover);
    }
  }
}

.last_bibliography p {
  font-size: var(--font-size-content-S);
  font-weight: normal;
  transition: color 250ms;
}

.footer_bottom-right .download {
  width: fit-content;
  display: flex;
  padding: 0;
}

.footer_bottom-right .download-button {
  color: var(--white-color);

  &::before {
    z-index: 0;
  }
}

.footer_bottom-right .download-button span {
  position: relative;
  z-index: 2;
}

.faq {
  width: 100%;
  padding: clamp(50px, 8vw, 100px);
}

.faq__heading {
  color: var(--main-color);
  font-size: var(--font-size-title-M);
  height: fit-content;
}

.faq__detail,
.last__detail {
  border-bottom: 1px solid var(--gray-color);
  margin: 20px 0 0 0;
  padding: 5px 0 20px 0;
}

.faq__summary:hover,
.faq__summary:active,
.faq__summary:focus {
  color: var(--main-color);
  cursor: pointer;
}

.faq__detail[open]>.faq__summary {
  color: var(--main-color);
  font-weight: 700;
}

.faq__summary {
  color: var(--main-color);
  list-style: none;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__summary {
  display: block;
  padding: 0;
  position: relative;
  text-align: right;
}

.faq__summary:after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 10px;
  background-image: url("../images/chevron-up-outline.svg");
  background-repeat: no-repeat;
  background-position: right center;
  text-align: right;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

details[open] .faq__summary:after {
  transform: rotate(180deg);
}

.faq__question,
.last__question {
  left: 0;
  position: absolute;
  text-align: left;
  top: 0;
  width: 90%;
}

.faq__question,
.last__question {
  display: inline-block;
  margin: 5px 0;
  text-align: left;
  width: 90%;

  >i {
    font-size: smaller;
  }
}

.faq__question {
  user-select: none;
}

.faq__summary {
  color: var(--black-color);
  font-size: var(--font-size-title-S);
}

.faq__text {
  color: var(--secondary-color);
  font-size: var(--font-size-content-M);
  line-height: 1.6;
  margin: 10px 0 0 0;
}

.faq__text li {
  list-style-type: none;
}

.faq__text a:not(.faq__text p a) {
  position: relative;
  color: var(--black-color);
  text-decoration: none;
  padding-bottom: 2px;

  &::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: 50% 50%;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transition: transform 250ms;
  }

  &:hover {
    &::after {
      transform: translateX(-50%) scaleX(1);
    }
  }
}

.faq__special {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--gray-color);
  margin: 25px 0 5px 0;
  padding: 5px 0 20px 0;
  color: var(--black-color);
  font-size: var(--font-size-title-S);
}

a.faq__special{
  text-decoration: none;
  &:hover{
    color: var(--main-color);
  }
}

@media (max-width: 1100px) {
  .footer_top {
    align-items: flex-start;
    flex-direction: column;
    gap: 2dvh;
    margin-bottom: 5dvh;
  }

  .footer_bottom {
    align-items: center;
    flex-direction: column;
    gap: 8dvh;
  }

  .footer_bottom-left,
  .footer_bottom-right {
    width: 100%;
  }

  .footer_bottom-right .last_bibliography {
    padding: 0.5dvh 0 3dvh 3dvh;
  }
}

@media (max-width: 1050px) {
  .faq {
    padding: clamp(50px, 8vw, 100px) clamp(20px, 4vw, 50px);
  }

  .faq__text {
    margin-top: 5dvh;
  }

  .faq__heading {
    margin-bottom: 4dvh;
  }

  .faq__question {
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  details[open] .faq__question {
    white-space: wrap;
    overflow: visible;
    text-overflow: clip;
    height: auto;
  }

  main header {
    width: 90%;
  }

  header h2 {
    margin-bottom: 5dvh;
  }
}

@media (max-width: 550px) {
  footer.footer {
    padding: 5dvh 2.5vw;
    gap: 5dvh;
  }

  footer.footer>* {
    padding: 0 clamp(20px, 4vw, 50px);
  }

  .footer_top {
    margin-bottom: 0;
  }

  .footer_top h2 span {
    display: inline;
    white-space: wrap;
    margin: 0 4px;
  }

  .footer_top-right {
    width: 100%;
  }

  .footer_top-right,
  .footer_top h2 {
    flex: unset;
  }

  form.footer_group {
    width: 100%;
  }

  .footer_bottom-left-top {
    flex-direction: column;
  }

  .footer_bottom-left-top>*:not(:last-child)::after {
    right: unset;
    top: unset;
    left: 0;
    bottom: -2.5dvh;
    width: 100%;
    height: 1px;
  }

  .footer_copyright {
    align-items: flex-start;
    flex-direction: column;
    gap: 2dvh;
  }

  .confirm-panel-card {
    width: 80vw;
  }
}