@font-face {
  font-family: "Maison Neue Mono TRIAL";
  src: url("../fonts/maison-neue-mono-trial-bold.woff2") format("woff2"),
    url("../fonts/maison-neue-mono-trial-bold.woff2") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "FK Raster Grotesk Compact Blended Trial";
  src: url("../fonts/fk-raster-grotesk-trial-blended.woff2") format("woff2"),
    url("../fonts/fk-raster-grotesk-trial-blended.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
:root {
  --font-family-maison-neue-mono-trial-bold: "Maison Neue Mono TRIAL",
    sans-serif;
  --font-family-fk-raster-grotesk-trial-blended: "FK Raster Grotesk Compact Blended Trial",
    sans-serif;
}

* {
  box-sizing: border-box;
}

/* styles.css */
main {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff4ea;
}
h1 {
  padding-top: 30px;
  font-size: 5rem;
  line-height: 80%;
  letter-spacing: 0.07rem;
  font-family: var(--font-family-fk-raster-grotesk-trial-blended);
  font-weight: normal;
  padding: 0;
  color: #000000;
}

p {
  font-size: 1.2rem;
  font-family: var(--font-family-maison-neue-mono-trial-bold);
  font-weight: normal;
  color: rgb(0, 0, 0);
}

.controls {
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 130px;
  margin-left: 80px;
  margin-right: 80px;
}
.gamerules {
  display: flex;
  justify-content: center;
  padding-top: 80px;
}
div img {
  width: 15%;
  height: auto;
}
#open {
  font-size: 60px;
  cursor: pointer;
  position: fixed;
  top: 30px;
  right: 10px;
  z-index: 9;
  color: #f2a649;
  font-weight: normal;
  line-height: 0px;
  transition: all 0.3s;
  padding: 8px;
}
#open:hover {
  transform: scale(1.05);
  transition: cubic-bezier(0.075, 0.82, 0.165, 1);
}

.overlay {
  /* height: 100vh;
    width: 0; */
  height: 0vh;
  width: 100%;
  position: fixed;
  z-index: 11;
  top: 0;
  left: 0;
  background-color: #6156a6;
  overflow: hidden;
  transition: 0.5s;
  z-index: 1000;
}

.overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  /*    text-align: center;*/
  /*margin-top: 30px;*/
  /*border:1px solid red;*/
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overlay a {
  font-size: 100px;
  padding: 30px;
  font-family: var(--font-family-maison-neue-mono-trial-bold);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  overflow: hidden;
  position: relative;
  color: transparent;
}

.overlay a span {
  background: linear-gradient(to right, #000000 50%, #f2a649 50%);
  background-size: 200%;
  background-position: left bottom;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.5s ease;
  z-index: 1;
  position: relative;
}

/* Hover effect to slide the color across the text */
.overlay a:hover span {
  background-position: right bottom;
}
.closebtn {
  position: absolute;
  z-index: 99;
  top: 30px;
  right: 10px;
  font-size: 60px !important;
  line-height: 0px;
  cursor: pointer;
  padding: 8px;
  text-decoration: none;
  color: #f2a649;
  transition: all 0.3s;
  text-transform: uppercase;
  font-weight: normal;
}

.start-game {
  position: center;
  width: 8em;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-family-maison-neue-mono-trial-bold);
  color: white;
  background-color: #f2a649;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  padding: 10px;
  margin: 3 0px;
  z-index: 999;
}

.start-game:hover {
  background-color: #b4dcf5;
  transform: scale(1.05);
}

.start-button:active {
  transform: scale(0.98);
}
/* Reset default anchor tag styles */
a.start-game {
  text-decoration: none; /* Removes underline */
  color: inherit; /* Inherits text color */
  display: inline-block; /* Allows padding and other button-like styling */
  color: white;
}
footer {
  width: 100vw;
  position: absolute;
  display: flex;
  bottom: 0;
  justify-content: space-between;
  text-align: center;
  font-weight: normal;
  font-family: var(--font-family-maison-neue-mono-trial-bold);
  padding-left: 1em;
  padding-right: 1em;
  overflow: hidden;
}
.copyrights {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copyrights p {
  font-size: 1.2rem;
}
.copyrights span {
  padding-right: 10px; /* Adds space to the right of the link */
  font-size: 1.2rem;
}

.socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
}
.socials a {
  padding-right: 20px; /* Adds space to the right of the link */
}
.icon {
  width: 1.1em; /* Adjust size as needed */
  height: 1.1em;
  margin-right: 10px; /* Space between icon and next element */
  vertical-align: middle; /* Align with text */
}

.flower_red1 {
  position: absolute;
  bottom: 36%;
  left: 7%;
  width: 5%;
  height: auto;
  animation: rotateel 3s linear infinite;
}
.obstacle1 {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 13%;
  height: auto;
  pointer-events: none;
  z-index: 5;
}
