*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  font: inherit;
}

body {
  font-family: "Poppins", sans-serif;
  color: white;
}

.header-section .first-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.header-section .first-section .btn-section {
  display: flex;
  gap: 1rem;
}

.header-section .first-section .btn-section .btn {
  min-width: 4rem;
  border-radius: 0.3rem;
  border: 0;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  color: white;
  cursor: pointer;
}

.header-section .first-section .btn-section #start {
  background-color: #198754;
  display: none;
}

.header-section .first-section .btn-section #restart {
  background-color: #ffc107;
  display: none;
}

.header-section .first-section .btn-section #end {
  background-color: #dc3545;
}

.header-section .first-section .timer {
  color: #121212;
  font-weight: 600;
  padding-right: 0.1rem;
}

.header-section .first-section .remainTime {
  display: none;
}

.screen-section {
  border: solid 5px #121212;
  margin: 0 1rem 1rem 1rem;
  position: relative;
  height: 60vh;
  overflow: hidden;
  background-color: #ffff;
}

.screen-section .box {
  background-color: #ffe69c;
  color: #121212;
  border: 1px solid #121212;
  width: 4rem;
  height: 4rem;
  padding: 20px;
  margin: 1px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
}

.third-section {
  margin: 1rem;
  color: #121212;
}
.third-section .guidance {
  font-size: 1.1rem;
  font-weight: bold;
}

.third-section .guide-list {
  padding-top: 1rem;
  line-height: 1.1;
  padding-right: 0.5rem;
}
.third-section .guide-list li {
  padding-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-section {
  display: none;
  color: #121212;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-section .modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 0 10px 20px 20px;
  border: 1px solid #888;
  border-radius: 1rem;
}

.modal-section .modal-content .close {
  display: flex;
  justify-content: end;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
}

.modal-section .modal-content .close .icon {
  cursor: pointer;
}

.modal-section .modal-content .result {
  font-size: 2rem;
  font-weight: 800;
  padding: 0.5rem 2rem 1rem 2rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .game-screen {
    display: flex;
    flex-flow: column;
    justify-content: center;
    margin: auto;
    width: 50rem;
    padding-top: 2rem;
  }
}
