* {
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family:Arial, Helvetica, sans-serif
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

li {
  font-size: 12px;
}

#container {
  display: flex;
  flex-direction: column;
}

main {
  display: flex;
  flex-direction: column;
  background: silver;
  border: 3px solid grey;
  border-top: solid snow;
  border-left: solid snow;
  margin: 0px 0px 10px 0px;
}

#options {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 5px 5px;
}

#optionscontainer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#difficulty {
  font-size: 10px;
  width: 80px;
  cursor: pointer;
  margin: 0px 0px 2px 0px;
}

#newgame {
  font-size: 10px;
  width: 80px;
  cursor: pointer;
}

#howtoplay {
  font-size: 10px;
  width: 80px;
  cursor: pointer;
  align-self: flex-end;
  margin: 5px 5px;
}

#howtodiv {
  font-size: 8px;
  width: 80px;
  position: absolute;
  top: 10vh;
  right: 50vh;
  width: 450px;
  background: silver;
  border: 3px solid grey;
  border-top: solid snow;
  border-left: solid snow;
  color: black;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  border: 3px solid grey;
  border-bottom: solid snow;
  border-right: solid snow;
  margin: 5px 5px 0px 5px;
  padding: 5px 10px;
}

.headerelement {
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 0;
  margin: 0;
}

.timers {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  height: 23px;
  width: 13px;
}

#scoreboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  
}

.boards {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  padding: 0 30px 20px 30px;
}

h2 {
  font-size: 20px;
  padding: 0;
  margin: 0;
  text-decoration: underline;
}

h3 {
  font-size: 15px;
  padding: 0;
}

ol {
  font-size: 10px;
  padding: 0;
}

#smiley {
  padding: 0;
  margin: 0;
  height: 25px;
  width: 25px;
}

#grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 5px;
  border: 3px solid grey;
  border-bottom: solid snow;
  border-right: solid snow;
}

.time0 {
  background: url('./images/time0.png') no-repeat;
  background-size: contain;
}

.time1 {
  background: url('./images/time1.png') no-repeat;
  background-size: contain;
}

.time2 {
  background: url('./images/time2.png') no-repeat;
  background-size: contain;
}

.time3 {
  background: url('./images/time3.png') no-repeat;
  background-size: contain;
}

.time4 {
  background: url('./images/time4.png') no-repeat;
  background-size: contain;
}

.time5 {
  background: url('./images/time5.png') no-repeat;
  background-size: contain;
}

.time6 {
  background: url('./images/time6.png') no-repeat;
  background-size: contain;
}

.time7 {
  background: url('./images/time7.png') no-repeat;
  background-size: contain;
}

.time8 {
  background: url('./images/time8.png') no-repeat;
  background-size: contain;
}

.time9 {
  background: url('./images/time9.png') no-repeat;
  background-size: contain;
}

.timeneg {
  background: url('./images/timeneg.png') no-repeat;
  background-size: contain;
}

.smileyooh {
  background: url('./images/smiley-ooh.png') no-repeat;
  background-size: contain;
}

.smiley {
  background: url('./images/smiley.png') no-repeat;
  background-size: contain;
}

.smileydown {
  background: url('./images/smiley-down.png') no-repeat;
  background-size: contain;
}

.smileydead {
  background: url('./images/smiley-dead.png') no-repeat;
  background-size: contain;
}

.smileywin {
  background: url('./images/smiley-win.png') no-repeat;
  background-size: contain;
}

.facingDown {
  background: url('./images/facingDown.png') no-repeat;
  background-size: contain;
}

.revealed {
  background: url('./images/0.png') no-repeat;
  background-size: contain;
}

._0 {
  background: url('./images/0.png') no-repeat;
  background-size: contain;
}

._1 {
  background: url('./images/1.png') no-repeat;
  background-size: contain;
}

._2 {
  background: url('./images/2.png') no-repeat;
  background-size: contain;
}

._3 {
  background: url('./images/3.png') no-repeat;
  background-size: contain;
}

._4 {
  background: url('./images/4.png') no-repeat;
  background-size: contain;
}

._5 {
  background: url('./images/5.png') no-repeat;
  background-size: contain;
}

._6 {
  background: url('./images/6.png') no-repeat;
  background-size: contain;
}

._7 {
  background: url('./images/7.png') no-repeat;
  background-size: contain;
}

._8 {
  background: url('./images/8.png') no-repeat;
  background-size: contain;
}

.mine {
  background: url('./images/0.png') no-repeat;
  background-size: contain;
  content: url('./images/bomb.png');
  position: relative;
}

.minedead {
  background: red;
  background-size: contain;
  content: url('./images/bomb.png');
  position: relative;
}

.minewrong {
  background: url('./images/0.png') no-repeat;
  background-size: contain;
  content: url('./images/bomb-wrong.png');
  position: relative;
}

.flagged {
  background: url('./images/flagged.png') no-repeat;
  background-size: contain;
}