@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');

body {
  margin: 0;
  background-image: url("imgs/tile.png");
}

h1 {
  background-image: url("imgs/bar.png"); 
  color: beige;
  padding: 10px 0;
  margin: 0 0 1em 0;
  font-size: 1.75em;
  text-align: center;
  font-family: 'Kaushan Script', cursive;
}

img {
  width: 50px;
  height: 50px;
}

footer {
  z-index: 0;
  position: fixed;
  bottom: 0px;
  background-image: url("imgs/bar.png");
  width: 100%;
  height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

img.cloud {
  display: none;
}

img.figure {
  display: none;
}

img.counter {
  position: absolute;
  bottom: 4px;
  right: 20px;
  width: 60px;
  height: 60px;
}

span.num {
  position: absolute;
  font-family: 'Kaushan Script', cursive;
  bottom: 17px;
  right: 27px;
  font-size: 1.5em;
  color: beige;
  text-align: center;
  width: 50px;
}

[class^="row"] {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 999;
}

[class^="row"] div {
  min-width: 100px;
  min-height: 100px;
}

figure {
  margin: 5px 10px;
}

figcaption {
  display: none;
}

figure:hover figcaption {
  box-sizing: border-box;
  display: block;
  position: fixed;
  padding: 7px;
  border: 1px beige solid;
  background: rgba(0, 0, 0, 0.9);
  bottom: 66px;
  right: 0;
  max-width: 97vw;
  z-index: 9;
  color: beige;
  margin: 5px;
}

figcaption h3 {
  width: 100%;
}

p, span {
  color: gray;
}

span {
  float: right;
  padding-top: 7px;
}

h2,h3,span {
  text-transform: uppercase;
}

h2,h3,p {
  display: inline-block;
  margin: 0;
}
h3::before {
  content: "";
  width: 100%;
  display: inline-block;
  border-top: 1px solid beige;
}

button.share, button.reset {
  position: absolute;
  font-family: 'Kaushan Script', cursive;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1em;
  margin: 0;
  cursor: pointer;
  z-index: 666;
  /* background-image: url("imgs/ornament.png"), url("imgs/ornamentInverse.png");
  background-position: top, bottom;
  background-size: 50% 50%; */
}

button.share:hover {
  background-color: #EAFAF1;
}
button.reset:hover {
  background-color: #FDEDEC;
}

button.share {
  bottom: 15px;
  left: 20px;
}
button.reset {
  bottom: 15px;
  right: 40%;
}

figure.first img {
  filter: drop-shadow(0px 0px 10px white);
}

figure.second img {
  filter: drop-shadow(0px 0px 10px yellow);
}

.disable {
  pointer-events: none;
  touch-action: none;
  /* cursor: not-allowed; */
}


@media screen and (min-width: 400px) {

  img {
    width: 100px;
    height: 100px;
  }

  img.cloud {
    display: block;
    width: 300px;
    height: 300px;
  }

  img.figure {
    display: block;
    width: 500px;
    height: 500px;
    
  }

  img.counter {
    bottom: 40px;
    left: 30px;
    width: 100px;
    height: 100px;
  }

  span.num {
    bottom: 62px;
    left: 51px;
    font-size: 2.5em;
  }

  figure:hover figcaption {
    max-width: 400px;
    bottom: 0;
  }

  footer {
    position: fixed;
    bottom: 0px;
    background-image: none;
    /* width: unset; */
    height: unset;
  }

  button.share {
    top: 10px;
    left: 20px;
    bottom: unset;
  }
  button.reset {
    top: 10px;
    right: 20px;
    bottom: unset;
  }


}