@charset utf-8;

html {
  background: rgb(0, 0, 0);
  background: linear-gradient(
    328deg,
    rgba(0, 0, 0, 1) 0,
    rgba(0, 59, 10, 1) 32%,
    rgba(3, 74, 46, 1) 42%,
    rgba(2, 63, 1, 1) 51%,
    rgba(1, 45, 1, 1) 68%,
    rgba(0, 0, 0, 1) 100%
  );
}

* {
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  width: calc(100%);
  align-items: center;
}

/* ---- Snackbar toast ---- */

#snackbar,
#wackbar {
  opacity: 0;
  font-size: x-large;
  background-color: #008a55;
  border: 2px solid #333;
/*   border-color: hsla(0, 0, 0, 0.7); */
  border-radius: 0.3em;
  box-shadow: 0.12em 0.15em black;
  color: #fff;
  padding: 0.8em;
  position: absolute;
  text-align: center;
/*   visibility: hidden; */
  top: calc(100vh - 100px);
  z-index: 1000;
  text-shadow: 1px 1px 2px #111;
  height: fit-content;
}

#snackbar.show {
  animation: fadeinout 10.0s normal forwards;
  -webkit-animation: fadeinout 10.0s normal forwards;
/*   visibility: visible; */
}

#wackbar.show {
  animation: fadeinout 10.0s normal forwards;
  -webkit-animation: fadeinout 10.0s normal forwards;
/*   visibility: visible; */
}

/* Animations to fade the snackbar in and out */

@keyframes fadeinout {
  0% {
    opacity: 0;
  background-color: #008a55;
  }
  30% {
    opacity: 0.9;
  background-color: #ddee55;
  }
  70% {
    opacity: 0.9;
  background-color: #ee8a55;
  }
  90% {
    opacity: 0.6;
    background-color: #008855;
  }
  100% {
    opacity: 0;
    background-color: #008855;
  }
}
/* 
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.9;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.9;
  }
}

@-webkit-keyframes fadeout {
  from {
    opacity: 0.9;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    opacity: 0.9;
  }

  to {
    opacity: 0;
  }
}
 */
/* ---- grid ---- */

.grid {
  overflow-x: hidden;
  width: 89vw;
  transitionDuration: 0;
}

/* clear fix */
.grid:after {
  clear: both;
  content: "";
  display: block;
}

/* ---- .grid-item ---- */
.emoji-label {
  display: none;
  text-align: center;
}

.grid-item {
  background: #0d8;
  border: 2px solid #333;
  border-color: hsla(0, 0, 0, 0.7);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 50px;
  width: 50px;
  z-index: 100;
  align-items: center;
  transitionDuration: 0;
}

.grid-item img {
  height: 85%;
  margin: auto;
  max-height: 85%;
  max-width: 85%;
  overflow: hidden;
  width: 85%;
  z-index: 50;
}

.grid-item img:hover {
  height: 92%;
  max-height: 92%;
  max-width: 92%;
  width: 92%;
}

.label-show {
  display: block;
}

.label-hide {
  display: none;
}

.grid-item--width2 {
  width: 200%;
}

.grid-item--height2 {
  height: 200%;
}

.grid-item:hover {
  background: #8cf;
  border: 1px solid #333;
  cursor: pointer;
  filter: contrast(1.1);
/*   transitionduration: "0.8s"; */
}

.grid-item.gigante p {
  display: block;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 5%;
  overflow: hidden;
  padding-bottom: 0.5rem;
}

.grid-item.gigante img {
  height: 116px;
  margin-top: -15%;
  overflow: hidden;
  width: 116px;
}

.grid-item.gigante {
  background: #f80;
  height: 150px;
  overflow: hidden;
  width: 150px;
}
