@media only screen and (max-width: 500px) {
  * {
    box-sizing: border-box;
  }

  main {
    position: relative;
  }

  h1 {
    margin-top: 120px;
    font-size: 2rem;
    line-height: 100%;
    letter-spacing: 0.07rem;
    font-family: var(--font-family-fk-raster-grotesk-trial-blended);
    font-weight: normal;
    padding: 0;
    color: #000000;
  }

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

  body {
    background-color: #fff4ea;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  .start-game {
    position: center;
    width: 7em;
    font-size: 16px;
    font-weight: bold;
    font-family: var(--font-family-maison-neue-mono-trial-bold);
    color: white;
    background-color: #f2a649;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    padding: 5px;
  }
  footer {
    position: fixed;
    bottom: 0;
    margin-bottom: 10px;
  }
  .copyrights p {
    margin: 0;
    font-size: 1rem;
  }

  .copyrights {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
  }
  .copyrights span {
    padding-right: 5px; /* Adds space to the right of the link */
    align-items: center;
    font-size: 1rem;
  }

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

  .overlay a {
    font-size: 38px;
    padding: 20px;
  }
  .overlay a span {
    transition: none;
  }

  .controls {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0;
    margin-top: 20%;
  }
  .gamerules {
    text-align: center;
    padding-top: 15%;
    margin-left: 30px;
    margin-right: 30px;
  }
  .obstacle1 {
    position: absolute;
    top: 73%;
    left: 0;
    width: 30%;
    height: auto;
  }
}
