@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,900;1,700&family=Source+Serif+Pro:wght@300;400;600&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

@media only screen and (max-width: 75em) {
  html {
    font-size: 50%;
  }
}

body {
  font-family: "Source Sans Pro", sans-serif;
  color: #303030;
  font-weight: 300;
  line-height: 1.6;
}

a {
  color: #40A8E3;
  text-decoration: none;
}

a:hover {
  color: #015DAB;
  transition: all, .3s;
}

.container {
  display: grid;
  grid-template-rows: 80vh min-content 40vw repeat(3, min-content);
  grid-template-columns: minmax(6rem, 1fr) [center-start] repeat(8, [col-start] minmax(min-content, 14rem) [col-end]) [center-end] minmax(6rem, 1fr) [full-end];
  padding-top: 4rem;
}

@media only screen and (max-width: 62.5em) {
  .container {
    grid-template-rows: 6rem 80vh min-content 40vw repeat(3, min-content);
    grid-template-columns: [full-start] minmax(6rem, 1fr) [center-start] repeat(8, [col-start] minmax(min-content, 14rem) [col-end]) [center-end] minmax(6rem, 1fr) [full-end];
  }
}

@media only screen and (max-width: 50em) {
  .container {
    grid-template-rows: 6rem calc(100vh - 6rem);
  }
}

.heading-1,
.heading-2,
.heading-3,
.heading-4 {
  font-family: "Source Serif Pro", serif;
  font-weight: 400;
}

.heading-1 {
  font-size: 4.5rem;
  xcolor: #707070;
  line-height: 1;
}

.heading-2 {
  font-size: 3rem;
  line-height: 1;
}

.heading-2--light {
  color: #F8F8F8;
}

.heading-2--dark {
  xcolor: #707070;
}

.heading-3 {
  color: #40A8E3;
  text-transform: uppercase;
  font-size: 3rem;
}

.heading-4 {
  font-size: 1.9rem;
}

.heading-4--light {
  color: #F8F8F8;
}

.heading-4--dark {
  xcolor: #707070;
}

.btn {
  background-color: #707070;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 1.8rem 3rem;
  font-family: "Source Serif Pro", serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}

.btn:hover {
  background-color: #262626;
}

.mb-sm {
  margin-bottom: 2rem;
}

.mb-md {
  margin-bottom: 3rem;
}

.mb-lg {
  margin-bottom: 4rem;
}

.mb-hg {
  margin-bottom: 8rem;
}

.sidebar {
  background-color: #fff;
  grid-column: 2/3;
  grid-row: 1 / -1;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: 2rem;
}

@media only screen and (max-width: 62.5em) {
  .sidebar {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    justify-content: flex-end;
    align-items: center;
  }
}

.sidebar__list__header {
  font-size: 2.2rem;
  font-family: "Source Serif Pro", serif;
  font-weight: 400;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.sidebar__list__header::after {
  position: relative;
  content: url(../img/arrow_forward_ios.svg);
  display: inline;
  float: right;
  width: 2rem;
  height: 2rem;
  margin-right: 1.5rem;
  transform: rotate(90deg);
  transform-origin: center center;
  transform-style: preserve-3D;
  top: 6px;
  left: 10px;
}

.sidebar__list__header.open::after {
  transform: rotate(90deg);
  transform-origin: center center;
  transform-style: preserve-3D;
}

.sidebar__list__header.close::after {
  transform: rotate(270deg);
  transform-origin: center center;
  transform-style: preserve-3D;
  left: 1px;
}

.sidebar__list {
  font-size: 1.8rem;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  list-style: none;
  margin-bottom: 2rem;
  height: min-content;
  display: block;
  transition: all, .6s;
}

.sidebar__list__header.close+.sidebar__list {
  display: none;
  height: 0;
  transition: all, .6s;
}

.sidebar__list__checkbox {
  margin-right: .7rem;
}

.sidebar__list__item {
  position: relative;
  /* Hide the browser's default checkbox */
  /* Create a custom checkbox */
  /* On mouse-over, add a grey background color */
  /* When the checkbox is checked, add a blue background */
  /* Create the checkmark/indicator (hidden when not checked) */
  /* Show the checkmark when checked */
  /* Style the checkmark/indicator */
}

.sidebar__list__item .checkboxcontainer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.sidebar__list__item .checkmark {
  position: absolute;
  top: .6rem;
  left: 0;
  height: 1.8rem;
  width: 1.8rem;
  background-color: #e8e4e4;
}

.sidebar__list__item .checkboxcontainer:hover input~.checkmark {
  background-color: #707070;
  transition: all, .2s;
}

.sidebar__list__item .checkboxcontainer input:checked~.checkmark {
  background-color: #015DAB;
  transition: all, .2s;
}

.sidebar__list__item .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.sidebar__list__item .checkboxcontainer input:checked~.checkmark:after {
  display: block;
}

.sidebar__list__item .checkboxcontainer .checkmark:after {
  left: .5rem;
  top: 0.1rem;
  width: .7rem;
  height: 1.3rem;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.sidebar__list__item .labeltxt {
  margin-left: 2.86rem;
}

.header {
  grid-column: full-start / col-end 6;
  padding: 2rem 0;
  background-color: #F8F8F8;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: minmax(6rem, 1fr) repeat(8, minmax(min-content, 14rem)) minmax(6rem, 1fr);
  grid-row-gap: .5rem;
  justify-content: center;
}

@media only screen and (max-width: 50em) {
  .header {
    grid-column: 1 / -1;
  }
}

@media only screen and (max-width: 37.5em) {
  .header {
    padding: 5rem;
  }
}

.header__logo {
  height: 6rem;
  justify-self: start;
  grid-column: 2/2;
}

.header__package {
  grid-column: 3/10;
  margin-top: 1em;
  margin-left: 4em;
}

.header__search {
  display: flex;
  grid-column: 3/10;
  justify-content: center;
  align-items: center;
}

.header__input {
  width: 70%;
  height: 4rem;
  border-radius: 100rem;
  padding-left: 2rem;
  padding-right: 1rem;
  border: 1px solid #707070;
}

.header__input:focus {
  box-shadow: 0 0.3rem 0.4rem rgba(0, 0, 0, 0.1);
  outline: none;
  transition: all, .2s;
}

.header__btn {
  align-self: start;
  justify-self: start;
}

.maincontent,
.packagecontent {
  grid-column: 3/10;
  grid-row: 1/-1;
  padding: 0 4rem;
}

.maincontent {
  display: grid;
  grid-template-columns: 1fr;
  /* grid-template-rows: repeat(5, 28rem); */
  grid-template-rows: repeat(5, 22rem);
  gap: 2rem;
}

.packagecontent {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 10rem 5rem 1fr;
  gap: 2rem;
}

.footer {
  background-color: #262626;
  grid-column: full-start / full-end;
  padding: 3rem;
}

.footer__copyright {
  text-align: center;
  margin: 2rem auto 0;
  font-size: 1.4rem;
  color: #e8e4e4;
  width: 70%;
}

.package {
  width: 100%;
  height: 100%;
  border: 1px solid #e8e4e4;
  border-radius: .5rem;
  padding: 2.5rem;
  font-size: 1.6rem;
  display: grid;
  grid-template-columns: 1fr;
  /* grid-template-rows: 4.1rem 2rem 1fr 4rem 2rem; */
  grid-template-rows: 4.1rem 2rem 0fr 4rem 0rem;
  gap: 1.3rem;
}

.package:hover {
  box-shadow: 0 0.6rem 1rem rgba(0, 0, 0, 0.1);
  background-color: #F8F8F8;
  border: 1px solid #e8e4e4;
  transition: all, .3s;
}

.package__version {
  font-weight: 400;
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1;
  font-size: 1.8rem;
}

.package__timeago,
.package__author {
    margin-left: 2em;
}

.package__timeago:not(:empty)::before {
    content: "(";
}

.package__timeago:not(:empty)::after {
    content: ")";
}

.package__info {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.package__url {
  display: inline;
  width: max-content;
}

.package__url img {
  width: 180px;
  position: relative;
  left: 675px;
  top: -35px;
}
.package__apilink {
  margin-left: .5rem;
}

.package__versionlist {
  border-top: 1px solid #e8e4e4;
  display: grid;
  grid-auto-rows: 6rem;
}

.package__versionitem {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 0 2rem;
  align-items: center;
  border-bottom: 1px solid #e8e4e4;
}

.package__description {
  width: 640px;
}

.package__versionitem h1 {
    min-width: 10rem;
}

.package__date {
  font-size: 2rem;
}

.package__link {
  margin-left: auto;
}

.package__link img {
  width: 3rem;
  height: 3rem;
}

.infoblock {
  color: #015DAB;
  background-color: rgba(64, 168, 227, 0.1);
  padding: 0 1.8rem;
  font-size: 1.8rem;
  display: flex;
  flex-direction: row;
  gap: .8rem;
  align-items: center;
  border-radius: .5rem;
}

.infoblock__info {
  text-transform: uppercase;
}

.pageing {
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  display: flex;
}

.pageing__list {
  list-style: none;
  display: flex;
  flex-direction: row;
}

.pageing__listitem {
  border: 1px solid #e8e4e4;
  padding: 0.5rem 1.5rem;
  margin-right: -1px;
}

.pageing__listitem:first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.pageing__listitem:last-child {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.pageing__listitem.active,
.pageing__listitem:hover {
  background-color: #40A8E3;
  color: #fff;
  border-color: #40A8E3;
  cursor: pointer;
}

.packageinfoos {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.packageinfoos__published {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  font-size: 2.4rem;
  align-items: center;
  margin-right: auto;
}

.packageinfoos__icon {
  width: 2.4rem;
  height: 2.4rem;
  fill: #015DAB;
  opacity: 0.5;
  margin-right: .5rem;
}

.versionnr {
  color: #40A8E3;
  margin-left: 2.5rem;
}

.packagemenu {
  background-color: #F8F8F8;
  font-size: 2.2rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  border-radius: 5px;
}

.packagemenu__list {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-content: center;
}

.packagemenu__listitem {
  cursor: pointer;
}

.packagemenu__listitem:hover {
  color: #015DAB;
}

.packagemenu__listitem.active {
  color: #015DAB;
}

.package__subpage {
  display: none;
  width: 90rem;
  height: max-content;
  padding: 2rem;
  padding-bottom: 10rem;
}

.package__subpage:first {
  display: block;
}