@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@500;700&display=swap");
html {
  box-sizing: border-box;
}
body {
  background-color: #faf8ef;
  display: flex;
  font-family: "Alexandria", cursive;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0px;
  direction: ltr;
  text-align: left;
  padding: 0px;
}

h1 {
  font-size: 40px;
  line-height: 0.7;
  color: #776e65;
  margin: 0px;
}

.container {
  width: 100%;
  max-width: 468px;
  margin: auto;
}

.info {
  margin-bottom: 20px;
  direction: rtl;
  text-align: right;
  margin-top: 15px;
}
.info-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  align-items: center;
}
#result {
  width: 100%;
  flex: 1;
  font-size: clamp(12px, 3vw, 20px);
}

.grid {
  display: flex;
  flex-wrap: wrap;
  width: 95%;
  max-width: 456px;
  height: auto;
  aspect-ratio: 1/1;
  background-color: #bbada0;
  border: 7px solid #bbada0;
  border-radius: 6px;
  margin: 20px auto 0;
}

.grid div {
  width: calc(25% - 14px);
  height: auto;
  aspect-ratio: 1/1;
  margin: 7px;
  border-radius: 3px;
  background-color: #eee4da;
  color: #afa192;
  font-weight: bold;
  text-align: center;
  font-size: clamp(30px, 8vw, 60px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-container {
  text-align: center;
  width: 90px;
  height: 60px;
  border-radius: 3px;
  background-color: #8f7a66;
  color: #ffffff;
  padding-top: 8px;
}

#score {
  font-size: 30px;
}

.score-title {
  font-size: 16px;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

.horizontal-controls {
  display: flex;
  gap: 10px;
}

.control-btn {
  width: 40px;
  height: 40px;
  font-size: 24px;
  background-color: #8f7a66;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.control-btn:active {
  background-color: #6d5c4d;
}

@media (min-width: 768px) {
  .controls {
    display: none;
  }
}


