body {
  background-color: #66c4ee;
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

#logo-container {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0px;
}

#logo {
  width: 300px;
  height: auto;
  animation: fadeIn 1s ease-in;
}

#subtext {
  text-align: center;
  font-size: 25px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 5px;
  font-family: "Roboto", sans-serif;
}

#stats-container {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 0px;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.labels {
  margin: auto;
  margin-top: 10px;
  text-align: center;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  word-wrap: break-word;
  margin-bottom: 0px;
}

.frame {
  padding: 5px 0px;
  width: 56px;
  border: 2px solid #ffffff;
  text-align: center;
}

.controls-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  background-color: #2898d5;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #0f4c8d;
  transform: scale(1.1);
}

.btn-rounded {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fa, .fas {
  font-size: 18px;
  line-height: 1;
}

.flipx {
  transform: scaleX(-1);
}

#score, #timer {
  margin-top: 5px;
}

#outer-board {
  width: 300px;
  margin: auto;
  overflow: hidden;
}

#board {
  position: relative;
  background-color: #66c4ee;
  width: 280px;
  height: 448px;
  margin: 10px auto;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 120px;
  background-color: #2898d5;
  color: #ffffff;
  z-index: 2;
  text-align: center;
  animation: pulse 2s infinite;
}

#message {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 20px;
  margin: 10px;
  margin-top: 20px;
  white-space: normal;
}

#new-game {
  font-weight: 100;
  cursor: pointer;
}

.block,
.empty {
  position: absolute;
  background-color: #ffffff;
  width: 28px;
  height: 28px;
}

.empty {
  opacity: 0.2;
}

.inner-tile {
  position: absolute;
  background-color: #2898d5;
  border: 4px solid #0f4c8d;
  width: 14px;
  height: 14px;
  margin: 3px;
}

.inner-inner-tile {
  position: absolute;
  background-color: #0f4c8d;
  width: 8px;
  height: 8px;
  margin: 3px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Media Queries for Tablets (601px - 1024px) */
@media screen and (max-width: 1024px) and (min-width: 601px) {
  #logo {
    width: 250px;
  }

  #subtext {
    font-size: 22px;
  }

  #stats-container {
    gap: 80px;
  }

  .labels {
    font-size: 11px;
  }

  .frame {
    width: 50px;
    padding: 4px 0;
  }

  #outer-board {
    width: 280px;
  }

  #board {
    width: 260px;
    height: 416px;
  }

  .block,
  .empty {
    width: 26px;
    height: 26px;
  }

  .inner-tile {
    width: 12px;
    height: 12px;
    margin: 3px;
    border-width: 3px;
  }

  .inner-inner-tile {
    width: 6px;
    height: 6px;
    margin: 3px;
  }

  #banner {
    width: 220px;
    height: 100px;
  }

  #message {
    font-size: 18px;
  }

  #new-game {
    font-size: 14px;
  }

  .controls-container {
    gap: 10px;
  }

  .btn-rounded {
    width: 45px;
    height: 45px;
  }

  .fa, .fas {
    font-size: 16px;
  }
}

/* Media Queries for Mobile (max-width: 600px) */
@media screen and (max-width: 600px) {
  body {
    padding: 5vw;
  }

  #logo-container {
    margin-bottom: 3vh;
    margin-top: 20px;
  }

  #logo {
    width: 70vw;
    max-width: 250px;
  }

  #subtext {
    font-size: 20px;
    margin-top: 2vh;
  }

  #stats-container {
    gap: 4vw;
    margin-bottom: 3vh;
  }

  .labels {
    font-size: 12px;
    margin-top: 1.5vh;
    margin-bottom: 1.5vh;
  }

  .frame {
    width: 12vw;
    max-width: 50px;
    padding: 0.5vh 0;
    font-size: 10px;
  }

  .controls-container {
    gap: 3vw;
    margin-top: 2vh;
  }

  .btn-rounded {
    width: 12vw;
    height: 12vw;
    max-width: 50px;
    max-height: 50px;
  }

  .fa, .fas {
    font-size: 16px;
  }

  #score, #timer {
    font-size: 10px;
  }

  #outer-board {
    width: 70vw;
    max-width: 280px;
    margin: 0 auto;
  }

  #board {
    width: 93.33%;
    height: calc(70vw * 1.6);
    max-height: 420px;
    margin: 2vh auto;
  }

  #banner {
    width: 83.33%;
    max-width: 220px;
    height: calc(70vw * 0.4);
    max-height: 100px;
  }

  #message {
    font-size: 16px;
    margin: 1.5vh;
    margin-top: 2.5vh;
  }

  #new-game {
    font-size: 12px;
  }

  .block,
  .empty {
    width: calc(70vw / 10);
    height: calc(70vw / 10);
    max-width: 26px;
    max-height: 26px;
  }

  .inner-tile {
    width: 50%;
    height: 50%;
    margin: 10%;
    border-width: 3px;
  }

  .inner-inner-tile {
    width: 50%;
    height: 50%;
    margin: 15%;
  }
}

/* Media Queries for Small Mobile (max-width: 400px) */
@media screen and (max-width: 400px) {
  body {
    padding: 4vw;
  }

  #logo-container {
    margin-top: 15px;
  }

  #logo {
    width: 60vw;
    max-width: 200px;
  }

  #subtext {
    font-size: 18px;
    margin-top: 2vh;
  }

  #stats-container {
    gap: 3vw;
  }

  .controls-container {
    gap: 2vw;
  }

  .btn-rounded {
    width: 14vw;
    height: 14vw;
    max-width: 45px;
    max-height: 45px;
  }

  .fa, .fas {
    font-size: 14px;
  }

  #outer-board {
    width: 75vw;
    max-width: 260px;
  }

  #board {
    width: 93.33%;
    height: calc(75vw * 1.6);
    max-height: 400px;
  }

  #banner {
    width: 83.33%;
    max-width: 200px;
    height: calc(75vw * 0.4);
    max-height: 90px;
  }

  #message {
    font-size: 14px;
  }

  #new-game {
    font-size: 10px;
  }
}