* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  // -webkit-font-smoothing: antialiased;
  // -moz-osx-font-smoothing: grayscale;
  font-family: EduMonument;
  font-weight: 400;
}

:root {
  --text-color: black;
  --background-color: white;

  background-color: var(--background-color);
  font-size: 2vw;
}

@font-face {
  font-family: "EduMonument";
  src: url(./EduMonumentGroteskVariable-cb986b6b.ttf);
}

header > h1 {
  font-size: 7.1rem;
  letter-spacing: -0.25rem;
  line-height: 1;
  text-align: center;
  margin-left: -1rem;
}

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

.transition-fade {
  transition: 0.3s;
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
}

body {
  overflow-x: hidden;
}

header {
  position: relative;
}

main {
  margin-bottom: 5rem;
}

.btn {
  padding: 0.3rem 0.8rem;
  background-color: var(--background-color);
  border: 1px solid var(--text-color);
  border-radius: 3vw;
  box-shadow: 0px 0.3vw 0.6vw 0px rgba(0, 0, 0, 0.66);
  cursor: pointer;
}

.info-btn {
  position: absolute;
  top: 2.8rem;
  right: 35.5%;
  transform: rotate(-25deg);
  font-size: 3.5vw;

  transition: all 0.3s ease-in-out;
}

.info-btn:hover {
  top: 3rem;
  transform: rotate(-20deg) scale(1.1);
  box-shadow: 0px 0.8vw 1.5vw 0px rgba(0, 0, 0, 0.66);
}

.websites-btn {
  position: absolute;
  top: 2.9rem;
  right: 33.5%;
  transform: rotate(-25deg);
  font-size: 2.8vw;

  transition: all 0.3s ease-in-out;
}

.websites-btn:hover {
  top: 3rem;
  transform: rotate(-20deg) scale(1.1);
  box-shadow: 0px 0.8vw 1.5vw 0px rgba(0, 0, 0, 0.66);
}

.text-container {
  margin-top: 1rem;
  padding: 0.6rem;
}

.website {
  width: 35rem;
  left: 10%;
  border: 1px solid var(--text-color);
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  background-color: var(--background-color);
  position: absolute;
  z-index: 1;

  --website-v-start: 2rem;
  --website-v-gap: 6rem;
}

.website:nth-child(1) {
  top: calc(var(--website-v-start) + var(--website-v-gap));
  left: 5%;
}

.website:nth-child(2) {
  top: calc(var(--website-v-start) + var(--website-v-gap) * 2);
  left: 25%;
}

.website:nth-child(3) {
  top: calc(var(--website-v-start) + var(--website-v-gap) * 3);
  left: 15%;
}

.website:nth-child(4) {
  top: calc(var(--website-v-start) + var(--website-v-gap) * 4);
  left: 7.5;
}

.website:nth-child(5) {
  top: calc(var(--website-v-start) + var(--website-v-gap) * 5);
  left: 20%;
}

.website-header {
  border-bottom: 1px solid var(--text-color);
  cursor: move;
  background-color: white;
  border-radius: 0.5rem 0.5rem 0 0;
  font-size: 0.6rem;
}

.website-header h2 {
  padding: 0.1rem 0.4rem;
}

.website-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: 100%;
  background-position: center center;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: all 0.3s ease-in-out;
}

.website-main:hover {
  background-origin: center;
  background-size: 103%;
}

.hover-info {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%);

  transition: all 0.3s ease-in-out;
}

.hover-info a {
  display: block;
  width: max-content;
  margin: 0 auto;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid black;
  padding: .2rem 0.5rem;
}

.hover-info .credits {
  margin-top: 1rem;
  font-size: 0.7rem;
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.hover-info .credits span{
  background-color: white;
  white-space: nowrap;
  border-radius: 0.5rem;
  border: 1px solid black;
  padding: .2rem 0.5rem;
}

.website-main:hover .hover-info {

  opacity: 1;
  pointer-events: unset;
  transform: translate(-50%, -40%);
}

/* —————————————————————————————— INFO SECTION —————————————————————————————— */

.text {
  margin-bottom: 2rem;
}

.text > p {
  margin-bottom: 1rem;
  line-height: 1.3;
  width: 70%;
}

.text > p.bigger {
  margin-left: 30%;
  font-size: 1.2rem;
}

.two-col {
  margin-bottom: 2rem;
  display: flex;
}

.two-col h2 {
  font-size: 1.2rem;
  width: 30%;
}

.two-col ul {
  list-style: none;
  /* display: flex;
  flex-wrap: wrap;
  gap: .3rem; */
}

.two-col li {
  /* background-color: white;
  white-space: nowrap;
  border-radius: 0.5rem;
  border: 1px solid black;
  padding: .2rem 0.5rem;
  font-size: .7rem; */
}

/* —————————————————————————————— UTILITY —————————————————————————————— */

.hidden {
  display: none;
}

/* —————————————————————————————— MEDIA QUERIES —————————————————————————————— */

@media (max-width: 800px) {
  main {
    display: none;
  }
}