* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: initial;
}

body {
  background-color: #262626;

  font-family: "Roboto Slab", serif;

  position: relative;
  overflow-x: hidden;
}

#home-link {
  color: #f2f2e4;
  text-decoration: none;
  font-family: "Space Mono", monospace;

  position: fixed;
  top: 0.8rem;
  left: 1.4rem;
}

#home-link h1 {
  font-size: 1.7rem;
  font-weight: 400;
}

#header {
  background-color: #0c0c0c;

  height: 4rem;
  width: 100vw;

  position: fixed;
  top: 0;

  z-index: 10;
}

/* Hamburger menu */
#menu a {
  text-decoration: none;
  color: #262626;
}

#menu a:hover {
  color: #0c0c0c;
}

#menu-toggle {
  display: block;

  position: fixed;
  top: 1.35rem;
  right: 1.4rem;

  z-index: 1;
}

#menu-checkbox {
  display: block;

  width: 40px;
  height: 32px;

  position: absolute;
  top: -5px;
  left: -4px;

  cursor: pointer;

  opacity: 0;
  z-index: 2;
}

#menu-toggle span {
  display: block;

  width: 33px;
  height: 4px;

  margin-bottom: 5px;
  position: relative;

  background: #f2f2e4;
  border-radius: 3px;

  z-index: 1;

  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

#menu-toggle span:first-child {
  transform-origin: 0% 0%;
}

#menu-toggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#menu-checkbox:checked ~ span {
  opacity: 1;

  transform: rotate(45deg) translate(-2px, -1px);

  background: #3f403b;
}

#menu-checkbox:checked ~ span:nth-last-child(3) {
  opacity: 0;

  transform: rotate(0deg) scale(0.2, 0.2);
}

#menu-checkbox:checked ~ span:nth-last-child(2) {
  opacity: 1;

  transform: rotate(-45deg) translate(0, -1px);
}

#menu {
  width: 70vw;
  height: 70vh;

  position: absolute;
  right: -100px;

  margin: -100px 0 0 0;
  padding: 50px;
  padding-top: 125px;
  border-radius: 1rem;

  background-color: #bfbfae;
  list-style: none;

  transform-origin: 0% 0%;
  transform: translate(100%, 0);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

#menu li {
  padding: 10px 0;

  font-size: 22px;
}

#active {
  background-color: #f2f2e4;

  border-radius: 3rem;
}

.menu-links {
  padding: 5px 20px 5px 20px;
}

#menu-checkbox:checked ~ ul {
  transform: none;

  opacity: 1;
}

/* image slider */

.slider {
  overflow: hidden;

  position: relative;
  top: 4rem;

  background: #000116;

  width: 100%;
  height: 91vh;

  border-radius: 0 0 1.4rem 1.4rem;
}

.slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;

  clip-path: circle(0% at 0 50%);
}

.slider .slide.active {
  clip-path: circle(150% at 0 50%);

  transition: 2s;
}

.slider .slide img {
  position: absolute;
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.slider .slide .info {
  position: absolute;
  top: 6%;

  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 25px rgb(1 1 1 / 5%);

  width: 75%;

  margin-left: 50px;
  padding: 20px;
  border-radius: 5px;
}

.slider .slide .info h2 {
  font-size: 2rem;
  font-family: "Space Mono", monospace;
  color: #0c0c0c;
}

.slider .slide .info p {
  font-size: 1.1rem;
  font-weight: 400;
  font-family: "Roboto Slab", serif;
  color: #262626;
}

.navigation {
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prev-btn,
.next-btn {
  z-index: 9;

  font-size: 2em;
  color: #f2f2e4;

  padding: 10px;
  border-radius: 2rem;

  cursor: pointer;
}

/* content */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 2% 0.1fr max-content 0.3fr max-content 0.3fr max-content 0.3fr;
  grid-template-areas:
    "title"
    "Aa"
    "Ab"
    "Ac"
    "Ba"
    "Bb"
    "Ca"
    "Cb";

  grid-gap: 2rem;
  margin: 7rem auto auto auto;
  width: 90%;
}

.content {
  margin: 0 auto;
  text-align: center;

  color: #d6d6ca;
  font-family: "Roboto Slab", serif;
  font-size: 1.1rem;
  line-height: 28px;
}

.content-wrapper img {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

#content-title {
  grid-area: title;
  font-family: "Space Mono", monospace;
  font-size: 2rem;
  margin-top: 2vh;
}

#main-content-text {
  grid-area: Aa;
}

#main-content-img {
  grid-area: Ab;
}

#main-content-img-text {
  grid-area: Ac;
}

#side-img {
  grid-area: Ba;
}

#side-img-text {
  grid-area: Bb;
}

#side-img-2 {
  grid-area: Ca;
}

#side-img-text-2 {
  grid-area: Cb;
}

/* Up arrow */
#scroll-button {
  display: none;

  position: fixed;
  bottom: 0.3rem;
  right: 0.4rem;

  z-index: 99;

  border: none;
  outline: none;

  background-color: transparent;
  color: #f2f2e4;
  font-size: 1.5rem;

  cursor: pointer;

  padding: 10px 15px 10px 15px;
  border-radius: 2rem;
}

/* footer */
#footer {
  position: relative;
  bottom: 0;

  width: 100%;

  margin-top: 5rem;
  padding-bottom: 6rem;

  background-color: #727365;

  text-align: center;
  font-family: "Roboto Slab", serif;
  font-size: 1.2rem;
}

#footer-text {
  padding-top: 2rem;
}

#credits {
  margin-top: 2rem;
}

/* Media queries */
@media only screen and (max-width: 350px) {
  #home-link {
    position: fixed;
    top: 0.6rem;
    left: 1rem;
  }

  #home-link h1 {
    font-size: 1.4rem;
  }

  #header {
    height: 3.3rem;
  }

  #menu {
    width: 90vw;
  }

  .menu-links {
    margin-left: -20px;
  }

  #menu-toggle span {
    width: 25px;
    height: 3px;

    margin-bottom: 0.21rem;
  }

  #menu-toggle {
    top: 1.15rem;
    right: 1.4rem;
  }

  .slider {
    top: 3rem;
  }

  .content-wrapper {
    grid-gap: 1rem;
    width: 93%;
  }

  .content {
    font-size: 1rem;
    line-height: 20px;
  }

  #content-title {
    font-size: 1.7rem;
  }
}

@media only screen and (min-width: 600px) {
  #menu {
    width: 50vw;
  }

  .content-wrapper {
    grid-gap: 3rem;
  }

  .content {
    font-size: 1.3rem;
    line-height: 28px;
  }

  #content-title {
    font-size: 2.5rem;
  }
}

@media only screen and (min-width: 769px) {
  /* main things */
  #header {
    position: absolute;
    top: 1.5rem;

    height: 3rem;

    background-color: transparent;
  }

  /* image slider */
  .slider {
    overflow: hidden;

    position: relative;
    top: 2vh;
    margin: auto;

    background: #000116;

    width: 98%;
    height: 95.5vh;

    border-radius: 1.4rem;
  }

  .slider .slide .info {
    bottom: 11%;

    height: fit-content;
  }

  .navigation {
    opacity: 0;

    transition: opacity 0.5s ease;
  }

  .slider:hover .navigation {
    opacity: 1;
  }

  /* nav-menu */
  #menu-checkbox {
    display: none;
  }

  #menu-toggle span {
    display: none;
  }

  #menu {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;

    background-color: rgba(160, 160, 160, 0.568);
    backdrop-filter: blur(15px);

    padding: 0 1rem 0 1rem;
    border-radius: 2rem;

    font-family: monospace;

    position: fixed;
    bottom: 1.35rem;
    right: 50%;
    transform: translate(50%, 0);

    height: fit-content;
    max-width: 50%;
    min-width: max-content;

    display: flex;
    justify-content: space-between;
  }

  #menu li {
    display: inline;
    margin-right: 1vw;

    font-size: 1.15rem;
  }

  #active {
    background-color: #f2f2e4;

    border-radius: 3rem;
  }

  .menu-links {
    padding: 8px 35px 8px 35px;
  }

  #home-link {
    display: none;
  }

  /* content */
  .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 4% 0.75fr max-content max-content max-content;
    grid-template-areas:
      " title title title "
      " Aa Aa Aa "
      " Ab Ac Ac "
      " Bb Bb Ba "
      " Ca Cb Cb ";

    grid-gap: 2.5rem;

    width: 80%;

    margin: 5rem auto auto auto;
  }

  .content {
    line-height: 28px;
    font-size: 1.15rem;
  }

  .content-wrapper img {
    width: 100%;
  }

  #content-title {
    grid-area: title;
    font-size: 2.5rem;
  }

  #main-content-text {
    grid-area: Aa;
  }

  #main-content-img {
    grid-area: Ab;

    margin-top: 3rem;
  }

  #main-content-img-text {
    grid-area: Ac;

    margin-top: 3rem;

    display: flex;
    align-items: center;
  }

  #side-img {
    grid-area: Ba;
  }

  #side-img-text {
    grid-area: Bb;

    display: flex;
    align-items: center;
  }

  #side-img-2 {
    grid-area: Ca;
  }

  #side-img-text-2 {
    grid-area: Cb;
    display: flex;
    align-items: center;
  }

  /* up arrow */
  #scroll-button {
    position: fixed;
    bottom: 1.1rem;
    right: 1rem;
  }

  #scroll-button:hover {
    background-color: rgba(160, 160, 160, 0.568);
    backdrop-filter: blur(15px);
  }

  /* scrollbar */
  ::-webkit-scrollbar {
    width: 13px;
  }

  ::-webkit-scrollbar-thumb {
    border-radius: 100px;
    border: 3px solid transparent;

    background-clip: content-box;

    background-color: rgb(88, 88, 88);
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: rgb(109, 109, 109);
  }
}

@media only screen and (min-width: 1200px) {
  #menu {
    bottom: 1.1rem;
  }

  #menu li {
    margin-right: 3vw;
    font-size: 1.25rem;
  }

  #scroll-button {
    bottom: 0.9rem;
  }

  .content {
    font-size: 1.3rem;
  }
}

/* image slider querys */
@media (max-width: 900px) {
  .slider .slide .info {
    position: relative;

    width: 80%;

    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 500px) {
  .slider .slide .info h2 {
    font-size: 1.8em;

    line-height: 40px;
  }

  .slider .slide .info p {
    font-size: 0.9em;
  }
}
