/* Basic page style resets */
* {
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: arial, helvetica, sans-serif;
  background-color: #5595DD;
  color: white;
}

main {
  display: grid;
  place-items: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 2rem;
}

h1 {
  text-align: center;
  font-style: normal;
  font-weight: bold;
  font-size: 4em;
  line-height: 105%;
  color: white;
}

p {
  text-align: center;
  font-size: 1.6em;

}

.error {
  background-color: #EA2027;
}

.highlight {
  color: #FFC312;
  text-decoration: underline;
}

#meaning {
  max-width: 960px;
  display: grid;
  place-items: center;
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#share,
#settings {
  text-align: center;
  display: grid;
  place-items: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

span:after {
  content: "";
  display: inline-block;
  width: 6px;
}

button {
  display: flex;
  margin: 0 auto;
  padding: 20px;
  border: 0;
  border-radius: 50px;
  font-size: 1.6em;
  background-color: white;
  cursor: pointer;
  overflow: hidden;
}

.rocket {
  display: block;
  width: 60px;
  height: 34px;
  margin-left: 20px;
  background: url(assets/rocket.png) right center no-repeat;
  background-size: 60px;
}

.started .rocket {
  animation: zoomOutRight 1s;
  animation-iteration-count: 1;
  transform-origin: right center;
}

.started button:before {
  content: "re";
}

.button:hover .rocket {
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

#typedValue { 
  width: 360px;
  display: block;
  margin: 0 auto;
  padding: 20px;
  font-size: 2em;
  border: 0;
  border-radius: 10px;
  box-shadow: inset 1px 0px 5px 4px rgba(0,0,0,0.2);
}

.congrats {
  text-transform: uppercase;
  font-size: 1.5em;
  font-weight: bold;
  color: #FFC312;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes zoomOutRight {
  100% {
    opacity: 0;
    transform: scale(0.1) translate(500px, 0);
  }
}



/*  Glitch remix button styles*/
/* Navigation grid */
.footer {
  position: absolute;
  bottom: 30px;
}

.btn--remix {
  background: white;
  padding: 10px;
  border-radius: 30px;
  text-decoration: none;
  color: #333333;
}

.btn--remix:hover {
  background: #FFC312;
}

.winner {
  background-image: url(assets/confetti.gif);
}

.img {
  display: grid;
  align-items: center;
  place-items: center; 
  margin: 0 auto;
  padding: 20px; 
  filter: grayscale(0%);
  max-width: 350px;
}

.img:hover {
    filter: grayscale(100%);
}

footer {
  padding: 4rem;
  display: grid;
  place-items: center;
  align-items: center;
}


.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555555;
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
