@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap");

* {
  font-family: "Noto Sans Thai", sans-serif;
}

:root {
  --main-bg-color: #9ca4b2;
  --main-text-color: #c7e0de;
  --primary-color: #b5c6cf;
  --secondary-color: #6c757d;
  --font-size: 16px;
}

body {
  background-color: var(--main-bg-color);
  font-family: "Noto Sans Thai", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#textTime,
#timer {
  font-size: 18px;
}

.grid {
  width: 100%;
  background-color: var(--main-text-color);
  padding: 20px;
  border: 2px solid var(--secondary-color);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.grid h1 {
  font-size: 60px;
  color: white;
  margin-bottom: 20px;
  text-shadow: #ffcc00;
}

#question {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

button {
  background-color: var(--main-bg-color);
  font-size: 16px;
  color: white;
  border: 1px solid black;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
}

button:hover {
  background-color: #636363;
}

button:focus {
  outline: 0;
}

footer {
  margin-top: 20px;
}

#progress {
  font-size: 16px;
  color: black;
  text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
  .grid {
    padding: 10px;
  }

  button {
    font-size: 14px;
    padding: 8px;
  }
}

.text-border {
  font-size: 48px;
  color: white; /* Text color */
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 3px 0 #000,
    1px 5px 0 #000; /* Border color */
}

.textintimmer {
  color: white;
}

.correct {
  background-color: #4caf50;
  color: white;
}

.incorrect {
  background-color: #f44336;
  color: white;
}
