@import url('https://fonts.googleapis.com/css2?family=Merriweather');

* {
    box-sizing: border-box;
    user-select: none;
    -moz-user-select: none;
    -webkit-text-select: none;
    -webkit-user-select: none;
}

body {
    font-family: 'Merriweather', serif;
    display: flex;
    background-color: #e1e1e1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    position: relative;
}

.home-link {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #444;
}

.home-link:hover {
    color: #111;
}

.fadeMe {
  opacity:    0.8;
  width:      100%;
  height:     100%;
  z-index:    10;
  top:        0;
  left:       0;
  position:   fixed;
}

.fadeMe.win {
  background: #277414;
}

.fadeMe.lose {
  background: #000000;
}

.window {
  z-index: 11;
  border: none;
  height: 20vh;
  width: 40vh;
  position: absolute;
  top: 40vh;
  border-radius: 7px;
  letter-spacing: 4px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.window.win {
  background-color: limegreen;
}

.window.lose {
  background-color: rgb(92, 92, 92);
}

.window h2 {
  text-align: center;
  font-weight: bolder;
  font-size: 48px;
}

.endbtn {
  width: 50%;
  position: relative;
  margin: auto;
  height: 50px;
  font-size: larger;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 4px 2px 5px rgba(0,0,0,0.3);
}

.endbtn:active {
  transform: scale(0.98);
}

.endbtn.win {
  background-color: lime;
}

.endbtn.lose {
  background-color: grey;
}

.letter {
  border-radius: 5px;
  height: 100px;
  width: 100px;
  margin:  40px 20px;
  font-size: 60pt;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(106, 212, 216);
  cursor: pointer;
}

.container {
  margin: 25px;
  justify-content: center;
  width: 80vw;
  height: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.letter:hover {
  transform: scale(0.98);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
  background-color: rgb(96, 202, 206);
}

.letter:active, .letter.activated {
  background-color: aqua;
  box-shadow: none;
  transition: all 0.02s ease-in-out;
  color: rgba(0,0,0,0.8);
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.topcontainer {
  border-bottom: 2px solid black;
  height: auto;
  width: 80vw;
  position: relative;
  text-align: center;
  font-size: 48pt;
  font-weight: bolder;
  letter-spacing: 4px;
  justify-content: center;
  min-height: 100px;
}

.btn {
  min-width: 10vw;
  height: 60px;
  margin: auto 20px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  color: white;
  font-size: larger;
}

.btn:active {
  transform: scale(0.98);
}

.btn.submit {
  background-color: green;
}

.btn.reset {
  background-color: rgb(189, 0, 0);
}

.hidden {
  display: none;
}

.video {
  background-color: pink;
  height: 60vh;
  width: 80vh;
  position: absolute;
  top: 20vh;
  border-radius: 15px;
}

iframe {
  text-align: center;
  margin: auto;
  justify-content: center;
  height: 40vh;
}

@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    justify-content: flex-start;
    padding: 56px 0 32px;
  }

  .topcontainer {
    font-size: 28pt;
    min-height: 64px;
    letter-spacing: 2px;
  }

  .letter {
    height: 64px;
    width: 64px;
    margin: 12px 8px;
    font-size: 32pt;
  }

  .window h2 {
    font-size: 32px;
  }
}
