@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', sans-serif;
  color: #eee;
  background-color: #1a1a2e;
  transition: background-color 0.8s ease;
}

header {
  position: relative;
  height: 35vh;
  border-bottom: 4px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.2);
}

main {
  height: 65vh;
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.left {
  width: 52rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right {
  width: 52rem;
  font-size: 2rem;
}

h1 {
  font-size: 4rem;
  text-align: center;
  position: absolute;
  width: 100%;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 30px rgba(255,255,255,0.3);
  letter-spacing: 2px;
}

.number {
  background: #eee;
  color: #333;
  font-size: 6rem;
  width: 15rem;
  padding: 3rem 0rem;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.number:hover {
  transform: translate(-50%, 48%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.between {
  font-size: 1.4rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
  opacity: 0.7;
  letter-spacing: 1px;
}

.again {
  position: absolute;
  top: 2rem;
  left: 2rem;
}

.guess {
  background: rgba(255,255,255,0.05);
  border: 3px solid rgba(255,255,255,0.4);
  font-family: inherit;
  color: inherit;
  font-size: 5rem;
  padding: 2.5rem;
  width: 25rem;
  text-align: center;
  display: block;
  margin-bottom: 3rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
}

.guess:focus {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
}

.btn {
  border: 3px solid #eee;
  background-color: transparent;
  color: #eee;
  font-size: 1.6rem;
  font-family: inherit;
  padding: 1.8rem 2.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: #eee;
  color: #222;
}

.btn:active {
  transform: scale(0.97);
}

.message {
  margin-bottom: 8rem;
  height: 3rem;
  font-size: 1.8rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.label-score {
  margin-bottom: 2rem;
}

.level {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  opacity: 0.9;
}

.label-highscore {
  margin-top: 1rem;
  opacity: 0.7;
}
.next {
  margin-bottom: 2rem;
  margin-top: 2rem;
}