:root {
  font-size: 16px;
  --background-color: #041E3F;
  --title-text-color: #FEF2BF;
  --green-button: #008000;
  --red-button: #FF0000;
  --yellow-button: #FFFF03;
  --blue-button: #0603FF;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  background-color: var(--background-color);
  height: 100vh;
}

.wrapper {
  height: 99vh;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
}

dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 80vh;
  max-width: 80vw;
  padding: 20px;
  background: rgb(85, 85, 85, 0.95);
  border: 10px solid black;
  border-radius: 40px;
}

dialog > h3 {
  color: var(--title-text-color);
  font-size: 3.5rem;
  padding: 20px;
}

dialog > p {
  color: var(--title-text-color);
  font-size: 2.5rem;
  padding: 50px;
  line-height: 120%;
}

dialog > button {
  position: absolute;
  bottom: 5%;
  right: 5%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

dialog > button:focus {
  outline: none;
}

dialog > button:hover {
  transform: scale(1.2);
}

dialog > button > i {
  font-size: 5rem;  
}

.title {
  height: 25%;
}

h1 {
  color: var(--title-text-color);
  height: 100%;
  font-size: 5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

h2 {
  color: var(--title-text-color);
  font-size: 5rem;
}

.btn-wrapper {
  height: 49%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-container {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 550px;
  height: 550px;
}

.btn {
  display: inline-block;
  width: 75%;
  aspect-ratio: 1;
  border: 10px solid black;
  border-radius: 20%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.1);
}

.no-hover .btn {
  transform: none;
}

.green-btn {
  background: var(--green-button);
}

.red-btn {
  background: var(--red-button);
}

.yellow-btn {
  background: var(--yellow-button);
}

.blue-btn {
  background: var(--blue-button);
}

.high-score {
  height: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.fa-question {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.fa-question:hover {
  transform: scale(1.2);
}

.brighten {
  filter: brightness(10);
}

.highlight {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.8);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.pixelify-sans-font {
  font-family: "Pixelify Sans", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

/* 2xl */
@media (max-width: 1536px) and (max-height: 1220px) {
  .container {
    max-width: 1280px;
  }

  dialog > h3 {
    font-size: 3.5rem;
  }

  dialog > p {
    font-size: 2.2rem;
  }

  h1, h2 {
    font-size: 4rem;
  }

  dialog > button > i {
    font-size: 4rem;
  }

  .fa-question {
    font-size: 4rem;
  }

  .btn-container {
    height: 400px;
    width: 400px;
  }
}

/* xl */
@media (max-width: 1280px) and (max-height: 1220px) {
  .container {
    max-width: 1024px;
  }

  dialog > h3 {
    font-size: 3rem;
  }

  dialog > p {
    font-size: 2rem;
  }
}

/* lg */
@media (max-width: 1024px) and (max-height: 1220px) {
  .container {
    max-width: 768px;
  }

  dialog {
    height: 75%;
    width: 75%;
  }

  dialog > h3 {
    font-size: 3rem;
  }

  dialog > p {
    font-size: 2.2rem;
    padding: 20px;
  }
}

/* md */
@media (max-width: 768px) and (max-height: 1220px) {
  .container {
    max-width: 640px;
  }

  h1, h2 {
    font-size: 3.5rem;
  }

  dialog > p {
    font-size: 2.1rem;
    padding: 10px;
  }
}

/* sm */
@media (max-width: 640px) and (max-height: 1220px) {
  .container {
    max-width: 475px;
  }
  
  h1, h2 {
    font-size: 2.8rem;
  }

  dialog > h3 {
    font-size: 2.3rem;
  }

  dialog > p {
    font-size: 2rem;
  }

  dialog > button > i {
    font-size: 3rem;
  }

  .fa-question {
    font-size: 3rem;
  }
}

/* xs */
@media (max-width: 475px) and (max-height: 1220px) {
  .container {
    width: 100%;
  }

  h1, h2 {
    font-size: 2.8rem;
  }

  dialog > h3 {
    font-size: 2.5rem;
  }

  dialog > p {
    font-size: 1.5rem;
  }
}

@media (max-width: 1024px) and (max-height: 1400px) {
  .container {
    max-width: 768px;
  }

  dialog {
    height: 75%;
    width: 75%;
  }

  h1, h2 {
    font-size: 4.5rem;
  }

  dialog > button > i {
    font-size: 4rem;
  }

  .fa-question {
    font-size: 4rem;
  }
}

@media (max-width: 768px) and (max-height: 1400px) {
  .container {
    max-width: 640px;
  }

  h1, h2 {
    font-size: 3.5rem;
  }

  dialog {
    height: 60%;
    width: 80%;
  }

  dialog > h3 {
    font-size: 3rem;
  }

  dialog > p {
    font-size: 2.1rem;
    padding: 10px;
  }

  dialog > button > i {
    font-size: 3rem;
  }

  .fa-question {
    font-size: 3rem;
  }
}

/* sm */
@media (max-width: 640px) and (max-height: 1400px) {
  .container {
    max-width: 475px;
  }
  
  h1, h2 {
    font-size: 3.3rem;
  }

  dialog > h3 {
    font-size: 2.3rem;
  }

  dialog > p {
    font-size: 2rem;
  }
}

/* xs */
@media (max-width: 475px) and (max-height: 1400px) {
  .container {
    width: 100%;
  }

  h1, h2 {
    font-size: 2.5rem;
  }

  dialog > h3 {
    font-size: 2.5rem;
  }

  dialog > p {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) and (max-height: 860px) {
  .container {
    max-width: 640px;
  }

  h1, h2 {
    font-size: 3.5rem;
  }

  dialog > h3 {
    font-size: 2.5rem;
  }

  dialog > p {
    font-size: 1.6rem;
    padding: 10px;
  }
}

@media (max-width: 640px) and (max-height: 860px) {
  .container {
    max-width: 475px;
  }
  
  h1, h2 {
    font-size: 2.6rem;
  }

  dialog {
    height: 50%;
  }

  dialog > h3 {
    font-size: 2rem;
  }

  dialog > p {
    font-size: 1.4rem;
  }

  dialog > button > i {
    font-size: 3rem;
  }

  .fa-question {
    font-size: 3rem;
  }
}

@media (max-width: 475px) and (max-height: 860px) {
  .container {
    width: 340px;
  }
  
  dialog {
    height: 65%;
  }

  .btn-container {
    width: 300px;
    height: 300px;
  }

  .title {
    height: 15%;
    padding-top: 20px;
  }

  .high-score {
    height: 15%;
  }

  h1, h2 {
    font-size: 2.5rem;
  }

  dialog > h3 {
    font-size: 1.7rem;
  }

  dialog > p {
    font-size: 1.2rem;
  }
}