@font-face {
  font-family: "Inter";
  src: url("./src/font/Inter-VariableFont_slnt\,wght.ttf");
}

:root {
  --xivo-orange: #ff906e;
}

body {
  font-family: "Inter";
  width: 90vw;
  margin: auto;
  background-color: #f4f5f8;
}

h2 {
  text-align: center;
  margin: 0px;
  font-size: 48px;
}

h2::after {
  content: ".";
  font-size: 62px;
  color: var(--xivo-orange);
}

.page {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 300px;
}

.summary {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: calc(100vh - 32px);
  width: 300px;
  min-width: 150px;
  padding: 16px 18px;
  overflow-y: auto;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 5px 5px 10px -3px rgba(0, 0, 0, 0.2);

  a {
    text-decoration: none;
    color: var(--xivo-orange);
  }
}

.chapter {
  padding: 8px;
  font-weight: 700;
}

.chapter:hover {
  background-color: #ff906e;
  border-radius: 15px;
  color: white;
}

.sub-chapter {
  margin-left: 42px;
  padding: 8px 16px;
}

.sub-chapter:hover {
  background-color: #ffdcd1;
  border-radius: 15px;
  color: #7c554a;
}

.header {
  text-align: center;
  margin: 32px;
  margin-bottom: 32px;
  margin-left: 300px;
}

.xivo-logo {
  width: 100px;
  height: 100px;
  margin: auto;
}

.title-description {
  text-align: center;
  margin: 0px;
}

.section {
  margin: 24px;
  padding: 16px 48px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 5px 5px 10px -3px rgba(0, 0, 0, 0.2);
}

.documentation {
  flex-grow: 1;
  width: 100%;
  max-width: 900px;
  margin: auto;
  font-size: 18px;

  h3 {
    font-size: 24px;
    margin-bottom: 32px;
  }

  h3::before {
    content: ".";
    font-size: 48px;
    color: var(--xivo-orange);
  }
}

p {
  text-align: justify;
}

h4 {
  padding-left: 14px;
}

.pannel-title {
  background-color: #f4f4ff;
  border-radius: 15px;
  margin-top: 32px;
  text-align: center;

  img {
    margin-top: 16px;
    max-width: 100%;
    border-radius: 15px;
  }
}

.text-with-screenshot {
  display: flex;
  margin: 12px 0;

  img {
    width: 50%;
    border-radius: 15px;
    margin: 12px;
    box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.2);
  }

  p {
    width: 50%;
    text-align: start;
  }
}

.images-alone {
  text-align: center;
  margin: 12px 0;

  img {
    max-width: 100%;
    box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.2);
  }
}

.text-with-screenshot p,
.profile-section p {
  background-color: #ffdcd1;
  border-radius: 15px;
  font-size: 21px;
  color: #7c554a;
  margin: 12px;
  display: flex;
  align-items: center;
  padding: 16px;
  font-weight: 500;
}

.profile-section img {
  border-radius: 15px;
  margin: 12px;
  border-radius: 8px;
  box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.2);
}

.profile-section-images-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.horizontal-display {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;

  .text-with-screenshot {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    width: auto;

    img {
      width: 100%;
      margin: 22px 0;
    }

    p {
      width: 100%;
      margin: 0;
    }
  }

  .web-mobile {
    width: 100%;
    padding: 12px;
  }
}

.web-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f4f4ff;
  border-radius: 15px;
  margin: 12px;
  padding: 12px;
  width: 50%;

  p {
    background-color: transparent;
    text-align: center;
    width: auto !important;
    color: black;
  }

  img {
    padding: 0 !important;
    width: 100%;
  }
}

.icons {
  width: 100px !important;
}

@media (max-width: 800px) {
  body {
    margin: 0;
    width: 100%;
  }

  .header {
    margin-left: 0;
  }

  .page {
    margin-left: 0;
  }

  .documentation {
    width: 100%;
    min-width: 100%;
  }

  .summary {
    display: none;
  }

  .section {
    width: auto;
    margin: 12px 0;
    padding: 12px;
  }

  .profile-section-images-container,
  .horizontal-display {
    flex-wrap: wrap;
  }

  .text-with-screenshot {
    padding: 0 !important;
    flex-wrap: wrap;
    justify-content: center !important;

    p {
      max-width: fit-content;
    }
  }

  .web-mobile {
    padding: 0 !important;
    margin: 0 !important;
  }
}
