#bottom-container {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-direction: normal;
  -moz-box-direction: normal;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-pack: start;
  -moz-box-pack: start;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
  -webkit-box-align: start;
  -moz-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
}

#centercontainer {
  -webkit-box-ordinal-group: 1;
  -moz-box-ordinal-group: 1;
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 50px;
  -webkit-align-self: stretch;
  -ms-flex-item-align: stretch;
  align-self: stretch;
}

#word {
  -webkit-box-ordinal-group: 1;
  -moz-box-ordinal-group: 1;
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  -webkit-align-self: stretch;
  -ms-flex-item-align: stretch;
  align-self: stretch;
}

#bottomcontainer {
  -webkit-box-ordinal-group: 1;
  -moz-box-ordinal-group: 1;
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  -webkit-align-self: stretch;
  -ms-flex-item-align: stretch;
  align-self: stretch;
}

#progressbar {
  -webkit-box-ordinal-group: 1;
  -moz-box-ordinal-group: 1;
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  -webkit-flex: 0 0 4px;
  -ms-flex: 0 0 4px;
  flex: 0 0 4px;
  -webkit-align-self: stretch;
  -ms-flex-item-align: stretch;
  align-self: stretch;
}

#centercontainer {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-direction: normal;
  -moz-box-direction: normal;
  -webkit-box-orient: horizontal;
  -moz-box-orient: horizontal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-pack: start;
  -moz-box-pack: start;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
  -webkit-box-align: start;
  -moz-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;

  overflow: hidden;
}

#leftcontainer {
  -webkit-box-ordinal-group: 1;
  -moz-box-ordinal-group: 1;
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  -webkit-align-self: stretch;
  -ms-flex-item-align: stretch;
  align-self: stretch;
}

#middlecontainer {
  -webkit-box-ordinal-group: 1;
  -moz-box-ordinal-group: 1;
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-align-self: stretch;
  -ms-flex-item-align: stretch;
  align-self: stretch;
}

#rightcontainer {
  -webkit-box-ordinal-group: 1;
  -moz-box-ordinal-group: 1;
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  -webkit-align-self: stretch;
  -ms-flex-item-align: stretch;
  align-self: stretch;
}

#word {
  text-align: center;
  width: 100%;
}

.smiley {
  padding-left: 10px;
  padding-right: 20px;
}
.letterline {
  box-sizing: border-box;
  max-width: 100%;
}

.letterbutton {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  min-width: 25px;
  height: 25px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 5px;
  margin-right: 5px;
  border: 2px solid black;
  border-radius: 5px;
  cursor: pointer;
}

.letterbutton.disabled {
  pointer-events: none;
  opacity: 0.1;
}

.wordletter {
  display: inline-block;
  text-align: center;
  height: 50px;
  width: 50px;
  margin: 0px;

  /* Test to see if weird problem with rendering goes away */
  -webkit-transform: translate3D(0, 0, 0);
}

.wrongletter {
  display: inline-block;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  width: 25px;
  height: 25px;
  margin: 10px;
  border-radius: 5px;
  color: darkred;
}

h2 {
  padding: 8px;
  margin: 0px;
}

#drawing-wrapper,
#drawing-size {
  position: relative;
  width: 360px;
  height: 360px;
  max-width: 100%;
  max-height: 100%;
}

#drawing svg,
#drawing-ghost svg {
  width: 360px;
  height: 360px;
  max-width: 100%;
  max-height: 100%;
}
#drawing-ghost {
  opacity: 0.1;
}

#drawing,
#drawing-ghost {
  position: absolute;
  top: 0px;
  width: 360px;
  height: 360px;
  max-width: 100%;
  max-height: 100%;
}

.line {
  stroke: black;
}

.hidden,
.line.hidden {
  display: none !important;
}

#welldone,
#toobad {
  position: absolute;
  width: 100%;
  bottom: 20px;
  text-align: center;
}

#alfabet-container {
  margin-top: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 100%;
}

.smallletters #alfabet-container {
  margin-top: 15px;
}

.tinyletters #alfabet-container {
  margin-top: 10px;
}

#leftcontainer,
#rightcontainer {
  text-align: center;
  padding-top: 20px;
}

#progressbar {
  overflow: hidden;
}

#progressbar .bw-progress-bar {
  position: relative;
  left: -100%;
  width: 100%;
  height: 4px;
}

.space {
  opacity: 0;
}

#rewardContainer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

#reward {
  /* position: absolute; */
  text-align: center;
  padding: 10px 30px 10px 30px;
  cursor: pointer;
  z-index: 200;
}

#leftmobile {
  display: none;
}

@media only screen and (max-width: 750px) {
  html div#reward {
    font-size: 30px;
  }
}

html .narrow #leftdesktop {
  display: none;
}

html .narrow #leftcontainer {
  -webkit-flex: 0 0 100px;
  -ms-flex: 0 0 100px;
  flex: 0 0 100px;
}

html .narrow #rightcontainer {
  display: none;
}

html .narrow #leftmobile {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 650px), only screen and (max-height: 650px) {
  html .wordletter {
    height: 40px;
    min-width: 40px;
  }

  html .smallletters .wordletter {
    height: 25px;
    min-width: 25px;
  }
  html .smallletters span.wordletter {
    font-size: 20px;
  }

  html .tinyletters .wordletter {
    height: 20px;
    min-width: 20px;
  }
  html .tinyletters span.wordletter {
    font-size: 16px;
  }

  html .letterbutton {
    margin: 0px;
  }

  html #drawing-wrapper,
  html #drawing-size,
  html #drawing,
  html #drawing-ghost {
    width: 100%;
    height: 95%;
  }

  #drawing svg,
  #drawing-ghost svg {
    width: 95%;
    height: 95%;
  }

  html span.wordletter {
    font-size: 30px;
  }

  html div.counter {
    font-size: 14px;
  }
}

@media only screen and (max-width: 400px) {
  #leftcontainer,
  #rightcontainer {
    padding-top: 10px;
  }
}

@media only screen and (max-height: 400px) {
  html #leftcontainer,
  html #rightcontainer {
    padding-top: 10px;
  }
}

html .smallletters span.letterbutton {
  font-size: 25px;
  padding: 7px;
  width: 20px;
  height: 20px;
}

html .tinyletters span.letterbutton {
  font-size: 20px;
  padding: 4px;
  width: 24px;
  height: 24px;
}

@media only screen and (max-width: 400px), only screen and (max-height: 400px) {
  html span.wordletter {
    font-size: 25px;
    height: 35px;
    min-width: 35px;
  }

  html .smallletters .wordletter {
    height: 25px;
    min-width: 25px;
  }
  html .smallletters span.wordletter {
    font-size: 20px;
  }

  html .tinyletters .wordletter {
    height: 20px;
    min-width: 20px;
  }
  html .tinyletters span.wordletter {
    font-size: 16px;
  }

  html span.letterbutton {
    font-size: 25px;
    padding: 7px;
    width: 20px;
    height: 20px;
  }

  html #toobad {
    font-size: 65px;
  }

  html #welldone {
    font-size: 65px;
  }
}

@media only screen and (max-width: 400px), only screen and (max-height: 400px) {
  html div#reward {
    font-size: 20px;
  }
}

#loginbutton {
  margin-top: 17px;
}
