
/* Variables */

:root {
  --color-win: #FEE715;
  --color-lose: #D94545;
  --color-start: #fff;
  --color-neutral: #fff;
  --color-neutral-light: #D2D2D2;
  --color-keys: #222;
  --color-keys-light: #E5E5E5;
  --font-size-large: 60px;
  --font-size-medium: 15px;
  --transition: all .2s ease-in-out;
}

/* main */

* {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

body {
  justify-content: space-evenly;
  flex-direction: column;
  display: flex;
  height: 100vh;
  max-width: 100%
}

li, ol, ul {
  padding: 0;
  display: inline-block;
  font-size: 20px;

}

h2 {
  text-transform: uppercase;
  font-size: var(--font-size-large);
  margin: 0;
}

h1 {
  font-size: 25px;
}

button {
  margin: 6px;
  border: 1px solid transparent;
  color: var(--color-keys);
  font-size: var(--font-size-medium);
  background-color: var(--color-keys-light);
  border-radius: 5px;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  cursor: pointer;
}

#btn__reset {
	width: 200px;
	margin: 0 auto;
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  max-height: 900px;
  text-align: center;
}

.section {
  width: 100%;
margin: auto;
}

#phrase ul li{
  margin-left: auto;
  margin-right: auto;
  }

/* Title */

.header {
  color: #FEE715;
}


/* Phrase */

.letter {
  font-size: 20px;
  height: 30px;
  width: 30px;
  margin-right: 5px;
  color: transparent;
  background: var(--color-neutral-light);
  border-radius: 2px;
  text-align: center;
}

[disabled] {
  background-color: darkgray;
}

.space {
  width: 25px;
  height: 20px'
}



.show {
  color: #222;
  background-color: #FEE715;
  font-size: 20px;
  height: 30px;
  width: 30px;
  -webkit-animation-duration: .5s;
  animation-duration: .5s;
  
}


/* Keyboard */

.keyrow {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}

.chosen {
  background: #FEE715;
  font-size: var(--font-size-medium);
  color: #FFFFFF;
}

.wrong {
  background: #b44545;
  color: #FFFFFF;
}

.btn__reset {
  padding: 16px;
  margin: 50px auto;
  background: #FEE715;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  border-bottom: solid 4px rgba(0, 0, 0, .3);
  border-right: solid 3px rgba(0, 0, 0, .3)
}

.btn__reset:active {
  padding: 14px 16px 16px 14px;
  border-bottom: solid 4px rgba(0, 0, 0, 0);
  border-right: solid 3px rgba(0, 0, 0, 0);
}


#scoreboard {
  display: flex;
  justify-content: space-around;
  margin-top: 50px;
}

/* Overlay */

#overlay {
  display: flex;
  flex-direction: column;
  position: fixed;
  color: #FFFFFF;
  justify-content: center;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 5px;
}

.title {
  color: #222;

}

.start {
  background-color: #fff;
}

.start a {
  color: #fff;
}

.win {
  background-color: var(--color-win);
}

.win a {
  color: var(--color-win);
}

.lose {
  background-color: #ccc;
}

.lose a {
  color: var(--color-lose);
}



@media (max-width: 1000px) {
  .center{}
  .center-inner{left:25%;top:25%;position:absolute;width:50%;height:300px;background:#f0f;text-align:center;max-width:500px;max-height:500px;}
}
@media (min-width: 1000px) {
  .center{left:50%;top:25%;position:absolute;}
  .center-inner{width:500px;height:100%;margin-left:-250px;height:300px;background:#f0f;text-align:center;max-width:500px;max-height:500px;}
}

