
* {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit; /* See line 20 */
  color: black;
}

html {
  /* Declare your font family type in the html selector, then your font-family in the body selector */
  font-family: sans-serif;
  
  /* Make base font-size 100% of browser font-size */
  font-size: 100%;
  font-family: 'Roboto', sans-serif;
  /* Declare your box-sizing here, then inherit the box sizing below in the *, *::before and *::after selector */
  /* https://css-tricks.com/box-sizing */
  box-sizing: border-box;
  overflow-y: scroll;
  background-color: rgb(255, 255, 255);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

.container {
  display: grid;
  grid-template-columns: 1fr [page-start] 1fr 1fr auto 1fr 1fr [page-end] 1fr;
  grid-template-rows: auto auto auto;
}

.nav {
  grid-row: 1;
  grid-column: page-start / page-end;
  display: flex;
  flex-direction: row;
  padding: 1rem 0;
}

.links {
  padding: 1rem;
}

.links a {
  margin-right: 1rem;
  text-decoration: none;
}

.links a.selected {
  border-bottom: 1px solid;
}

.logo {
  font-weight: 700;
  padding: 1rem 0;
  margin-right: 2rem;
}

.logo a {
  text-decoration: none;
}

.h2 {
  color: rgb(10, 10, 10);
  font-weight: 700;
  font-size: 2rem;
  line-height: 2.286rem;
}

.h3 {
  color: rgb(10, 10, 10);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.857rem;
}

p {
  color: rgb(10, 10, 10);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5rem;
}

.details .h2 {
  margin: 0rem 0rem 1.15rem;
}

.details .h3 {
  margin: 0rem 0rem 0.8rem;
}

.details .p {
  margin: 0rem 0rem 1.7rem;
}

.main {
  grid-row: 2;
  grid-column: page-start / page-end;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  padding-bottom: 5rem;
}

.requests {
  min-width: 200px;
  height: fit-content;
  position: -webkit-sticky;
  position: sticky;
  padding-top: 3rem;
  top: 0;
}

.request-title {
  color: rgb(107, 107, 107);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5rem;
  text-transform: uppercase;
  padding: 0.6rem 0rem;
}

.request-item {
  color: rgb(107, 107, 107);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5rem;
}

.request-item a {
  display: flex;
  flex-direction: row;
  padding: 0.6rem 0rem;
  cursor: pointer;
  text-decoration: none;
}

.request-item > * {
  text-decoration: none;
}

.request-type {
  font-size: 0.7rem;
  background-color: rgb(58, 183, 149);
  color: white;
  border-radius: calc(2.25rem);
  padding: 0px 0.571rem;
  width: fit-content;
  margin-right: 0.5rem;
}

.details {
  width: 100%;
}

.details .query {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: rgb(107, 107, 107);
  margin: 0rem 0rem 0.75rem;
  line-height: 1.5rem;
}

.details .details--entry {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 3.5rem;
}

.description {
  max-width: 80ch;
}

.response {
  min-width: 280px;
  height: fit-content;
  position: -webkit-sticky;
  position: sticky;
  padding-top: 1rem;
  top: 0;
  margin-left: 1rem;
}

.response--title {
  color: rgb(107, 107, 107);
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.5rem;
  text-transform: uppercase;
}

.param {
  border-top: 1px solid rgb(199 199 199);
  padding: 1rem 0;
}

.param .name {
  font-weight: 700;
}

.param .info {
  color: rgb(107, 107, 107);;
}

.param .p {
  margin: 0 0 0.3rem;
}

.response {
}

.code {
  padding: 1.75rem;
  background-color: rgb(246, 246, 246);
  border-radius: 0.25rem;
  margin: 0rem 0rem 2.25rem;
}

.code > .text {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgb(107, 107, 107);
}

.footer {
  grid-row: 3;
  grid-column: 1 / 11;
  position: relative;
  background: rgb(246, 246, 246);
  height: auto;
  padding: 2rem 0;

  display: grid;
  grid-template-columns: 0.5fr [page-start] 1fr 1fr auto 1fr 1fr [page-end] 0.5fr;
  grid-template-rows: auto auto;
}

.footer--main {
  grid-row: 1;
  grid-column: page-start / page-end;
}

.icon {
  font-size: 1.5rem;
}

.contact {
  display: flex;
  flex-direction: row;
}

.contact a {
  margin-right: 1rem;
}

.footer .contact {
  margin-top: 0.5rem;
}

.footer .contact .icon {
  font-size: 1.25rem;
}

@media only screen and (max-width: 1280px) {
  .container {
    display: grid;
    grid-template-columns: 0.5fr [page-start] 1fr 1fr auto 1fr 1fr [page-end] 0.5fr;
    grid-template-rows: auto auto auto;
  }
}
@media only screen and (max-width: 960px) {
  .container {
    display: grid;
    grid-template-columns: 2rem [page-start] 1fr 1fr auto 1fr 1fr [page-end] 2rem;
    grid-template-rows: auto auto auto;
  }
  
  .details .details--entry {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .response {
    margin-left: 0;
  }
}

@media only screen and (max-width: 690px) {
  .main {
    flex-direction: column;
  }
  .requests {
    position: relative;
  }
}
