@font-face {
  font-family: "Goubi Regular";
  src: url("./fonts/Goubi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

html {
  font-family:
    "Goubi Regular",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

body {
  height: 100vh;
  margin: 0;
  padding: 2rem;
  box-sizing: border-box;
}

.container {
  max-width: 600px;
  height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-content: center;
  margin: 0 auto;
}

.container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.img-container {
  position: relative;
}

.matthieu {
  grid-column: 1 / 2;
}

.anthony {
  grid-column: 2 / 3;
}

h1 {
  grid-column: 1 / -1;
  font-size: 120px;
  text-align: center;
  margin: 0;
}

#custom-cursor {
  width: .625rem;
  height: .625rem;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2.375rem;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: #000;
  font-size: 2.625rem;
  white-space: nowrap;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
}

#custom-cursor.is-moving {
  width: 2.375rem;
  height: 2.375rem;
}

#custom-cursor .text {  
  padding: 0.5rem 1rem;
}

/* Keep in sync with the media query in script.js */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  
  #custom-cursor {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  #custom-cursor {
    transition: none;
  }
}
