/* Styling for un/matching smiley game */

/* simple browser default reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* maintain generous width to ensure a bit of challenge 😋 */
body {
  min-width: 780px;
  overflow-y: hidden;
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  padding: .75rem 0;
  text-shadow: -2px -3px 4px hsla(55, 55%, 90%, .75), 2px 3px 4px hsla(55, 55%, 90%, .75);
}

h1 span {
  font-size: .99rem;
}

h2 {
  color: hsla(55, 55%, 90%, 1);
  font-family: Copperplate, Fantasy;
  font-size: 1.5rem;
  font-weight: 400;
}

h2 span {
  color: hsla(270, 30%, 80%, 1);
  font-size: 1.4rem;
  font-weight: 300;
}

header {
  background-color: hsla(270, 50%, 25%, 1);
  color: hsla(55, 65%, 75%, 1);
  cursor: default;
  font-family: Sans-serif;
  height: auto;
  padding: 0 0 0.75em 0;
  text-align: center;
}

main {
  cursor: not-allowed;
  display: flex;
  height: 83%;
}

.console-panel {
  background-color: hsla(270, 30%, 60%, 0.5);
  border-bottom: 1px solid hsla(0, 100%, 0%, 1);
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 50%;
   z-index: 0;
}

.console-panel:first-child {
  border-right: 5px ridge hsla(0, 0%, 100%, 1);
  cursor: crosshair;
}

.game-clock {
  color: darkorange;
}

.play-level {
  background-color: hsla(270, 50%, 50%, 0.8);
  border-radius: 5px;
  border: groove 2px hsla(55, 55%, 90%, 1);
  color: lime;
  display: inline-block; 
  font-size: 1rem;
  margin-top: .5rem;
  padding-top: .3rem;
  width: 22rem;
}

.play-level p {
  display: inline-block;
  font-weight: 300;
  padding: 0 .35rem 0 0;
}

.play-again {
  font-size: .75rem;
  min-width: 85px;
  min-height: 40px;
}

.score {
  color: white;
  font-family: 'Comic Sans', Fantasy;
  font-size: 1.1rem;
  padding: 0 .25rem;
  width: 2rem;
}

.smiley {
  filter: drop-shadow(5px 8px 5px hsla(270, 50%, 25%, 1));
  font-size: 5rem;
  height: 5.5rem;
  position: absolute;
  width: 5rem;
  z-index: -1;
}

.winning-figure {
  animation-name: revealme;
  animation-direction: reverse;
  animation-duration: .6s;
  animation-iteration-count: 3;
  animation-timing-function: ease-out;
}

.winning-score {
  animation-name: revealbest;
  animation-direction: alternate;
  animation-duration: .20s;
  animation-iteration-count: 6;
  animation-timing-function: linear;
}

#app {
  height: 100vh;
}

#loser-mask {
  background-color: hsla(55, 65%, 55%, 0.65);
  border: 2px hsla(55, 85%, 80%, 0.8) solid;
  border-radius: 15px;
  box-shadow: 5px 3px hsla(55, 65%, 35%, 0.5);
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 97%;
  justify-content: flex-start;
  margin: 10px 11px 0 10px;
  padding: 6rem;
  text-align: center;
}

#loser-mask p {
  color: hsla(270, 50%, 35%, 1);
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}

#loser-mask .smiley {
  filter: drop-shadow(3px 2px 2px hsla(270, 50%, 25%, 1));
  font-size: 225%;
  position: relative;
  z-index: 1;
}

@keyframes revealme {
  from {
    filter: drop-shadow(3px 2px 2px hsla(270, 50%, 25%, 1));
  }
  to {
    filter: drop-shadow(8px 10px 12px lime);
  }
}

@keyframes revealbest {
  from {
    color: white;
    transform: scale(100%);
  }
  to {
    color: lime;
    transform: scale(140%);
  }
}
