:root {
  --shadow: 0 3px 5px rgba(0, 0, 0, 0.233);
  --main-color: rgb(175, 120, 120);
  --main-darker-color: rgb(105, 10, 10);
}

* {
  box-sizing: border-box;
}

body {
  background-color: rgb(230, 218, 218);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

button:focus,
input:focus,
select:focus {
  outline: 0;
}

/*----------------------------------------------*/
#setting-form {
  position: fixed;
  top: 0;
  height: 60px;
  width: 100%;
  background-color: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(0);
  transition: transform 0.4s ease-out;
}
#setting-form.hide {
  transform: translateY(-100%);
}

#setting-form label {
  color: white;
  margin-right: 10px;
}

#setting-form select {
  border: 0;
  height: 30px;
  width: 200px;
  border-radius: 4px;
}

button {
  border: 0;
  background-color: var(--main-color);
  box-shadow: var(--shadow);
  color: white;
  height: 40px;
  width: 60px;
  border-radius: 0 3px 3px 0;
  position: fixed;
  left: 0;
  font-size: 18px;
  cursor: pointer;
  transition: 0.4s;
}
button:hover {
  background-color: var(--main-darker-color);
  box-shadow: none;
  transition: 0.4s;
}

/*----------------------------------------------*/
.game-container {
  background-color: rgba(218, 136, 136, 0.199);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 290px;
  padding: 40px 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.time-score {
  display: flex;
  width: 80%;
  justify-content: space-between;
  margin-bottom: 30px;
  font-size: 12px;
  font-weight: 600;
}

.game-container p {
  margin: 0;
}
.game-container p span {
  color: var(--main-darker-color);
  font-size: 14px;
}

.game-container h2 {
  margin-top: 0;
  border: dashed 1px;
  border-radius: 5px;
  width: 240px;
  padding: 10px 0;
  color: var(--main-darker-color);
}

.game-container h1 {
  margin-top: 5px;
}

.game-container input {
  border: 0;
  width: 200px;
  border-radius: 4px;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--main-darker-color);
  letter-spacing: 1px;
}
.game-container input::placeholder {
  font-weight: normal;
  font-size: 14px;
  letter-spacing: 0;
}

/*end game*/
.end-game {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 215, 238);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.end-game p {
  font-weight: 600;
  margin-bottom: 20px;
}

.end-game p span {
  font-weight: 600;
  font-size: 20px;
}

.end-game button {
  position: static;
  width: 90px;
  font-size: 15px;
  border-radius: 3px;
}
