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

:root {
  --color-primary: #222;
  --color-secondary: #eee;
  --color-tertiary: #60b347;
  --color-secondary-darker: #ccc;
}

* {
  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: var(--color-secondary);
  background-color: var(--color-primary);
}

/* LAYOUT */
header {
  position: relative;
  height: 35vh;
  border-bottom: 7px solid;
  border-color: var(--color-secondary);
}

main {
  height: 65vh;
  color: var(--color-secondary);
  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;
}

/* ELEMENTS STYLE */
h1 {
  font-size: 4rem;
  text-align: center;
  position: absolute;
  width: 100%;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#answer {
  background: var(--color-secondary);
  color: #333;
  font-size: 6rem;
  width: 15rem;
  padding: 3rem 0rem;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  transition: width cubic-bezier(0.39, 0.575, 0.565, 1) .5s;
}

#answer.correct {
  width: 100vw;
}

#between {
  font-size: 1.4rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

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

#guess {
  background: none;
  border: 4px solid;
  border-color: var(--color-secondary);
  font-family: inherit;
  color: inherit;
  font-size: 5rem;
  padding: 2.5rem;
  width: 25rem;
  text-align: center;
  display: block;
  margin-bottom: 3rem;
}

.btn {
  border: none;
  background-color: var(--color-secondary);
  color: #222;
  font-size: 2rem;
  font-family: inherit;
  padding: 2rem 3rem;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-secondary-darker);
}

.message:not(:last-child) {
  margin-bottom: 2rem;
}
