

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

::selection {
  background-color: transparent;
}

h1, .l1, .l2, .l3, .l4, .l5 {
  cursor: default;
}

nav, .l1, .l2, .l3, .l4, .l5, .keyRow span {
  justify-content: center;
  align-items: center;
}

body {
  min-height: calc(100vh - 3.5em);
  margin: 0;
  padding-top: 3.5em;
 /* background-color: #191919;*/
  font-family: Helvetica;
  color: #F67280;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 1.5em;
  text-transform: uppercase;
  font-weight: 900;
  color: #191919;
  text-shadow: 1px 1px 0 #F67280, 1px -1px 0 #F67280, -1px 1px 0 #F67280, -1px -1px 0 #F67280, 1px 0px 0 #F67280, 0px 1px 0 #F67280, -1px 1px 0 #F67280, 1px -1px 0 #F67280;
}

h3 {
  margin: 0;
}

button, .keyRow span, .close {
  cursor: pointer;
}

button {
  background-color: transparent;
  padding: 6px 10px;
  border: 2px solid #F67280;
  border-radius: 5px;
  color: #F67280;
  transition: 200ms;
}

button:hover {
  -webkit-box-shadow: 0px 0px 7px 0px #F67280, 5px 5px 15px 5px rgba(0,0,0,0); 
  box-shadow: 0px 0px 7px 0px #F67280, 5px 5px 15px 5px rgba(0,0,0,0);
  color: white;
  background-color: #F67280;
}

.greenButton {
  border-color: #4C956C;
  box-shadow: #4C956C;
  -webkit-box-shadow: #4C956C;
  background-color: #4C956C;
  color: #191919;
}

.greenButton:hover {
  -webkit-box-shadow: 0px 0px 7px 0px #4C956C, 5px 5px 15px 5px rgba(0,0,0,0); 
  box-shadow: 0px 0px 7px 0px #4C956C, 5px 5px 15px 5px rgba(0,0,0,0);
  color: white;
  background-color: #4C956C;
}

#outer-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;;
  padding: 10px 5px 0;
}

#container {
  margin: 0 auto;
}

#game {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 5px;
}

#guesses {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 5px;
  font-size: 2.2em;
}

#first, #second, #third, #fourth, #fifth, #sixth {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 2px;
  min-height: 55px;
  height: 7vh;
}

.l1, .l2, .l3, .l4, .l5 {
  display: grid;
  gap: 2px;
  background-color: #1f1f1f;
  color: #F67280;
  text-shadow: 0 0 10px #F67280;
  -webkit-box-shadow: inset 1px 1px 15px 0px #000000;
  box-shadow: inset 1px 1px 15px 0px #000000;
}

.l1 {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.l5 {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

#info {
  height: 20px;
  margin-bottom: 5px;
}

#keyboard {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  bottom: 0px;
  font-size: .7em;
  text-transform: uppercase;
}

.keyRow {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr;
}

.top {
  grid-template-columns: repeat(10, 1fr);
}

.middle {
  grid-template-columns: repeat(9, 1fr);
}

.bottom {
  grid-template-columns: 2fr repeat(7, 1.3fr) 2fr;
}

.keyRow span {
  display: grid;
  height: 65px;
  padding: 4px;
  margin: 1px;
  background-color: #1f1f1f;
  border-radius: 2px;
  transition: 100ms;
}

.keyRow span:hover {
  text-shadow: 0 0 10px #F67280;
}

.badLetter {
  color: #454545;
}

.keyRow span.badLetter:hover {
  text-shadow: none;
}

.correctLetter {
  background-color: #FA9F42;
  color: #FFFFFF;
  text-shadow: 0 0 10px #FFFFFF;
}

.correctPlace {
  background-color: #4C956C;
  color: #FFFFFF;
  text-shadow: 0 0 10px #FFFFFF;
}

#popupOverlay {
  position: absolute;
  top: 3.5em;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #191919;
}

#popupContainer {
  position: absolute;
  max-width: 500px;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background-color: #1f1f1f;
  padding: 20px;
  margin: 0 auto;
  font-size: .8em;
}

.popup {
  width: 100%;
  height: 100%;
  border: 1px solid #F67280;
  padding: 20px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
}

#gameOverPopup, #winGamePopup {
  text-align: center;
}

.word-reveal {
  display: flex;
  align-items: center;
  justify-content: center;;
}

.word-reveal p {
  margin-right: 15px;
}

.wordReveal {
  text-align: center;
  font-size: 3em;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.hidden, #gameInfoPopup.hidden, #gameOverPopup.hidden {
  width: 0px;
  height: 0px;
  border: none;
  padding: 0;
  display: none;
  visibility: hidden;
}

.close {
  display: block;
  text-align: center;
  text-decoration: underline;
}

@media only screen and (min-width: 350px) {
  #container {
    width: 80%;
  }
}

@media only screen and (min-width: 425px) {
  #first, #second, #third, #fourth, #fifth, #sixth {
    height: 50px;
  }

  #popupContainer {
    font-size: 1em;
  }
}

@media only screen and (min-width: 475px) {
  #first, #second, #third, #fourth, #fifth, #sixth {
    height: 60px;
  }

  #container {
    max-width: 70%;
  }
}

@media only screen and (min-width: 550px) {
  #first, #second, #third, #fourth, #fifth, #sixth {
    height: 75px;
  }
}

@media only screen and (max-height: 749px) {
  #outer-container {
    max-width: 350px;
  }

  #first, #second, #third, #fourth, #fifth, #sixth {
    height: 25px;
  }
}

@media only screen and (min-height: 750px) {
  #container {
    padding-top: 5vh;
  }
}

@media only screen and (min-height: 750px) and (min-width: 700px) {
  #keyboard {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 767px) {
  body {
    min-height: 0px;
    min-height: -webkit-fill-available;
  }
}