@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --border: rgb(56, 56, 56);
}
body {
  background-image: url("../assets/background-7.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  font-family: "Anton", sans-serif;
}

/* =====================header====================== */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  /* color: white; */
  font-size: 4rem;
  margin: 25px;
  font-style: italic;
  letter-spacing: 0.5rem;
}

/* =====================main====================== */
main {
  margin: auto;
  display: flex;
  justify-content: center;
  width: 75vw;
  gap: 150px;
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
button {
  width: 42px;
  height: 42px;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  border: 2px solid rgb(48, 47, 47);
  outline: none;
}

.uil {
  font-size: 1rem;
}
/* =====================grid======================= */

.grid {
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
  height: 700px;
  width: 350px;
  border-radius: 10px;
  background-color: white;
  border: 5px solid var(--border);
  padding: 2px;
}

.grid div {
  border: 1.5px solid white;
  flex-grow: 1;
  height: 5%;
  width: 10%;
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
}
.uil-pause {
  display: none;
}

.uil-music-tune-slash {
  display: none;
}
.icon-display {
  display: block;
}
.icon-disappear {
  display: none;
}

/* =====================prompt======================= */
.prompt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.result > div {
  height: 150px;
  width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 10px;
  border: 5px solid var(--border);
}

.result > div > p {
  font-size: 1.5rem;
}

.result > div > div {
  height: 100px;
  width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
}
/* =====================next up======================= */
/* .nextBoard {
  height: 210px;
  width: 210px;
  border: 1px solid black;
  background-color: rgb(232, 232, 230);
} */
.nextBoardContainer {
  height: 150px;
  width: 220px;
  border: 5px solid var(--border);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nextBoard {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  /* height: 100%; */
  height: 140px;
  width: 210px;
  border-radius: 10px;
  background-color: white;
}

.nextBoard div {
  border: 1.5px solid white;
  flex-grow: 1;
  height: 35px;
  width: 35px;
  background-color: white;
  border-radius: 5px;
  /* border: 3px solid black; */
}

/* ====================modal====================== */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  border: 1px solid black;
  border-radius: 10px;
  z-index: 10;
  background-color: white;
  width: 500px;
  max-width: 80%;
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 3px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid black;
}

.modal-header .title {
  font-size: 1.25rem;
  font-weight: bold;
}

.modal-header .close-button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-size: 1.25rem;
  font-weight: bold;
}

.modal-body {
  padding: 10px 15px;
}

#overlay {
  position: fixed;
  opacity: 0;
  transition: 200ms ease-in-out;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* .gameover-header {
  justify-content: center;
  gap: 10px;
} */

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

.instruction-table td {
  padding: 5px;
}
