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

@font-face {
  font-family: "HermeneuseOne";
  src: url("../fonts/hermeneusone-regular.ttf") format("truetype");
}

@font-face {
  font-family: "mplusrounded";
  src: url("../fonts/mplusrounded.ttf") format("truetype");
}

/* @import url("https://use.typekit.net/ajz3yfv.css"); */

:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-yellow: #ffc80c;
  --color-white: #fff;
  --color-grey: #777;
  --color-brown: #9B6656;
  --color-light: #efefef;
  --color-text: #000;
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-yellow);
  --border-radius-M: 1.2rem;
  --border-radius-S: 0.5rem;
  --font-family-sans: "HermeneuseOne", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  --font-fun: "carrotflower", sans-serif;
  --padding-S: 1rem;
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
  position: relative;

}

body {
  font-family: var(--font-family-sans);
  width: 100%;
  height: 100%;
  overflow: auto;
  position: relative;
}

body.no-scroll {
  overflow: hidden;
  ;
}

main {
  font-family: var(--font-family-sans);
  width: 100%;
  min-height: 100%;
  /* overflow: hidden; */
}

main.no-scroll {
  overflow: hidden;
}

/* -------- GENERAL -------- */

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: var(--padding-S);
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}

.grid:not(:last-child)>.column {
  margin-bottom: calc(var(--padding-S) * 4);
}

.column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--padding-S);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.text :first-child {
  margin-top: 0;
}

.text :last-child {
  margin-bottom: 0;
}

h1,
.text h1,
.intro {
  font-size: 3rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}

.text h2,
h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.3rem;
}

.align-center {
  text-align: center;
}

img {
  width: 100%;
}

.inner-section {
  position: relative;
  padding: calc(var(--padding-S) * 2) var(--padding-S);
  /* padding-top: calc(var(--padding-S)*3); */
  max-width: 70rem;
  margin: 0 auto;
  width: calc(100% - 3rem);
}

.inner-section .inner-section {
  margin-bottom: 0;
}

li {
  list-style: none;
}

a {
  color: currentColor;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}

hr {
  border: none;
  border-top: 1px solid var(--color-yellow);
  margin: 2rem 0;
  width: 100%;
}

.spacer-s {
  height: var(--padding-S);
}

.spacer-m {
  height: calc(var(--padding-S) * 2);
}

.spacer-l {
  height: calc(var(--padding-S) * 4);
}

/* -------- HEADER -------- */
.desktop-header {
  display: block;
}

.mobile-header {
  display: none;
}

.desktop-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.mobile-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;

  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 1rem;
}

.mobile-header .mobile-top {
  padding: 1rem;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 15dvh;
  align-items: flex-start;
}

.mobile-header button {
  flex: 0 0 auto;
  color: var(--color-yellow);
  background-color: white;
  padding: 0.5rem;
  border-radius: var(--border-radius-S);
}

.burger {
  width: 2rem;
  height: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.burger span {
  display: block;
  height: 0.2rem;
  width: 100%;
  background: var(--color-yellow);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation to cross */
.burger.open span:nth-child(1) {
  transform: translateY(0.4rem) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

.mobile-header .mobile-top img {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 10dvh;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-menu {
  position: absolute;
  z-index: -1;
  padding-top: 10rem;
  background-color: #dfecf2;
  display: flex;
  width: 100%;
  height: 100dvh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--padding-S);
  font-size: 1.5rem;
  transition: top 0.5s ease-in-out;
  top: -100dvh;
}

.mobile-menu .languages {
  margin-top: 1rem;
}

.mobile-menu .languages ul {
  font-size: 1rem;
}

.mobile-header .languages li {
  padding: 0.4rem 0.6rem;
}

.mobile-menu[hidden] {
  top: 0dvh;
}

.mobile-menu a {
  padding-bottom: var(--padding-S);
}

.header-seperator-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-40%);
  z-index: -1;
  pointer-events: none;
}

.header-separator {
  width: 100%;
  height: auto;
}

.menu {
  display: flex;
  height: 8dvh;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding-S);
  padding-top: var(--padding-S);
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
}

.menu-left,
.menu-right {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0;
}

.menu-left .menu-dot:last-of-type,
.menu-right .menu-dot:last-of-type {
  display: none;
}

.menu-center-logo {
  transform-origin: top;

  transition: width 0.3s ease;
  width: 30%;
  height: 130%;
}

.menu-center-logo.shrink {
  width: 15%;
}

.menu-center-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-filter: drop-shadow(3px 3px 1px #22222224);
  filter: drop-shadow(3px 3px 1px #22222224);
}

.languages {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  background-color: white;
  border-radius: 5px;
  border: 1px solid black;
}

.languages li a {
  padding: 0.2rem 0.3rem;
}

.languages ul {
  font-size: 0.7rem;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.languages li.active {
  text-decoration: underline;
  text-underline-offset: 0.1rem;
}

.languages li:first-child {
  border-right: 1px solid black;
}

.languages li:last-child {
  border-left: 1px solid black;
}

.logo {
  padding: var(--padding-S);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.menu {
  display: flex;
}

.menu a {
  padding: 0.3rem 0.5rem;
  display: block;
}

.menu a[aria-current] {
  background-color: white;
  border-radius: 25px;
}

.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h2 {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 7rem;
  line-height: 1;
  text-align: center;
  color: var(--color-yellow);
  -webkit-text-stroke: 15px white;
  paint-order: stroke fill;
  font-family: "carrotflower", sans-serif;
  font-weight: 600;
}

.grid {
  grid-template-columns: repeat(12, 1fr);
}

.grid>.column {
  grid-column: span var(--columns);
}

/* -------- HOMEPAGE -------- */
/* Intro */

.intro {
  max-width: 40rem;
}

.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

/* -------- FOOTER -------- */

.footer {
  padding: 12rem 0 0rem;
  background-color: #d9b67e;
  position: relative;
}

.footer-seperator-container {
  position: absolute;
  top: 0;
  left: 0;

  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.footer-separator {
  width: 100%;
  height: auto;
}

/* .footer .grid:nth-child(1){
  display: flex;
  flex-direction: row;
} */

.grid.footer-links .column ul {
  display: flex;
  flex-direction: row;
  gap: var(--padding-S);
}

.grid.footer-links .column:nth-child(3) ul {
  justify-content: flex-end;
  width: 100%;
}

.footer h2 {
  margin-bottom: 0.75rem;
}

.footer p {
  max-width: 15rem;
}

.footer a:hover {
  color: var(--color-text);
}

.footer .footer-image {
  -webkit-filter: drop-shadow(3px 3px 1px #22222224);
  filter: drop-shadow(3px 3px 1px #22222224);
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

.social a {
  display: contents;
  padding: 0 0.5rem;
}

/* .social a:first-child {
  padding-left: 0;
} */

/* -------- FEATURES -------- */
/* FOSSILS CORNER */
.corner-image {
  position: absolute;
  z-index: 10;
  width: 100px;
  /* Adjust size as needed */
  height: auto;
  animation: float 6s ease-in-out infinite;
  transform-origin: center;
  padding: var(--padding-S);
}

.game-container {
  font-family: "mplusrounded";

}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.corner-image img {
  transition: transform 0.5s ease;
}

.corner-image img:hover {
  transform: rotate(360deg);
}

.corner-image.top-right {
  top: 0;
  right: 0;
}

.corner-image.top-left {
  top: 0;
  left: 0;
}

.corner-image.bottom-right {
  bottom: 0;
  right: 0;
}

.corner-image.bottom-left {
  bottom: 0;
  left: 0;
}

.corner-image.bottom-right {
  bottom: 0;
  right: 0;
}

.corner-image.bottom-left {
  bottom: 0;
  left: 0;
}

.page-fade {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  background: var(--color-yellow);
  /* semi-transparent so blur is visible */
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  z-index: 9999;
}

.page-fade.hidden {
  opacity: 0;
}

.page-fade.active {
  opacity: 1;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* --------- MEDIA QUERIES --------- */

@media (max-width: 1024px) {
  body {
    /* color: rgba(78, 0, 0, 0.539); */
  }
}

@media (max-width: 768px) {
  body {
    /* color: rgb(0, 0, 117); */
  }

  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .custom-articles {
    flex-direction: column;
  }

  .menu-center-logo.shrink {
    width: initial;
  }

  .footer {
    padding: 5rem 0 0rem;
  }

  .footer-separator,
  .header-separator {
    width: 150%;
  }

  .footer .footer-image {
    width: 70%;
    margin: 0 auto;
  }

  .footer .grid:first-child .column:nth-child(1),
  .footer .grid:first-child .column:nth-child(2) {
    display: none;
  }

  .grid.footer-links .column ul {
    flex-direction: column;
    gap: 0.2rem;
  }

  .grid.footer-links .column:nth-child(1) ul {
    flex-direction: row;
    gap: .5rem;
  }
}

@media (max-width: 480px) {

  /* html {
    font-size: 18px;
  } */
  body {
    /* color: rgb(0, 63, 0); */
  }

  h2 {
    font-size: 2rem;
    line-height: 1;
  }

  .grid {
    display: block;
    /* grid-template-columns: initial; */
  }

  .inner-section {
    width: 100%;
  }

  .footer .footer-image {
    width: 100%;
  }

  .footer-separator,
  .header-separator {
    width: 200%;
  }

  .mobile-header .mobile-top {
    max-height: 10dvh;
  }

  .hero h2 {
    font-size: 5rem;
  }

  .inner-section {
    padding: calc(var(--padding-S) * 2) var(--padding-S);
  }


  .social a:first-of-type {
    padding-left: 0;
  }

  .social {
    padding: 0.5rem 0;
  }
}
