@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');

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

body {
  font-family: 'Press Start 2P', sans-serif;
  position: relative;
  font-size: 62.5%;
  overflow: hidden;
  background-color: #000;
}

.game-screen {
  width: 100%;
  aspect-ratio: 11/9;
  max-height: 90rem;
  background-color: #000;
}

.coin-img {
  width: 18px;
  height: auto;
}

.game-header {
  position: absolute;
  background-color: rgba(0, 0, 0, 0);
  width: 100%;
  color: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  font-size: 1.2rem;
}

.level-value {
  margin-left: 2.4rem;
}

.help-icon {
  color: #fff;
  background-color: #333;
  padding: 5px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
}

.reset-container {
  position: absolute;
  background-color: rgba(0, 0, 0, 0);
  transform: translate(-50%, -150%);
  left: 50%;
  top: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 1;
}

.reset-text {
  font-size: 1.2rem;
  text-align: center;
  color: #fff;
  line-height: 1.7;
}

.reset-btn {
  font-size: 1rem;
  line-height: 1.5;
  width: 50%;
  padding: 1.2rem 1rem;
  font-weight: 600;
  border-radius: 8px;
  /* border: 3px solid #000; */
  cursor: pointer;
  background-color: #fff;
  text-align: center;
}

.help-container,
.low-res-screen {
  background-color: #333;
  padding: 20px;
  position: absolute;
  transform: translate(-50%, 0);
  border-radius: 10px;
  max-width: 600px;
  left: 50%;
  top: 30%;
  font-size: 20px;
  color: #fff;
  line-height: 1.7;
  z-index: 3;
}

.low-res-screen {
  display: none;
}
.help-container p:first-of-type {
  line-height: 2.5;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 0;
  right: 2%;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 2;
}

.secret-btn {
  opacity: 0;
}

.secret-btn:checked {
  opacity: 1;
  /* background-image: url(http://csscheckbox.com/checkboxes/mario-style.png); */
}

footer {
  position: absolute;
  width: 100%;
  padding-left: 1rem;
  bottom: 0;
  left: 0;
  color: #fff;
  font-size: 0.75rem;
  background-color: #000;
}

a:link,
a:visited {
  text-decoration: none;
  color: #fff;
}

a:visited,
a:active {
  color: #fff;
}

.loading-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; /* 100% / 100vh */
  background-color: #000;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.loading-content {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

/******************************************************************************/
/* Controls */
/******************************************************************************/

.controls {
  position: absolute;
  bottom: 25%;
  width: 90%;
  left: 5%;
  display: none;
}

.control-stick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* column-gap: 0.5rem; */
  /* row-gap: 0.5rem; */
}

.controls button {
  width: 5rem;
  height: 5rem;
  opacity: 0%;
  /* border-radius: 50%; */
}

.key-up {
  grid-row: 1;
  grid-column: 2;
}

.key-left {
  grid-row: 2;
  grid-column: 1;
}

.key-right {
  grid-row: 2;
  grid-column: 3;
}
.key-down {
  grid-row: 3;
  grid-column: 2;
}

.stick-img {
  position: absolute;
  width: 15rem;
}

.control-buttons {
  margin-left: auto;
  margin-top: 5rem;
  display: flex;
  gap: 3rem;
}

.button-img1,
.button-img2 {
  position: absolute;
  right: 8rem;
  top: 5rem;
  width: 5rem;
  height: 5rem;
}
.button-img2 {
  right: 0;
}
