*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
}

body {
  background: rgba(0, 0, 0, 0.9);
  background: url(../midias/estadio.svg);
  background-position: center center;
  background-size: cover;
}

/* Tipografia */
body,
button,
input {
  font-family: Roboto, BlinkMacSystemFont, -apple-system, Segoe UI,
    Helvetica Neue, Helvetica, Arial, sans-serif;
  text-shadow: 0 0 1px transparent;
  font-weight: 400;
  font-size: calc(14px + 2 * ((100vw - 420px) / 860));
  line-height: 26px;
  font-family: Roboto, BlinkMacSystemFont, -apple-system, Segoe UI,
    Helvetica Neue, Helvetica, Arial, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased !important;
  -moz-font-smoothing: antialiased !important;
  text-rendering: optimizelegibility !important;
  -webkit-font-kerning: normal;
  font-kerning: normal;
}

#jogo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

/* Absolutos do jogo */
#luva {
  position: absolute;
  top: 0;
  bottom: 0;
}

#luva {
  display: none;
}

/* Bola */
#bola {
  position: absolute;
  width: 100px;
  height: 100px;
  left: 50%;
  top: 70%;
  margin-top: -50px;
  margin-left: -50px;
  overflow: hidden;
  display: none;
  transform: translate(0px, 0px) scale(0) rotate(0deg);
  transform-origin: center center;
  will-change: transform;
}

/* Modal de inicio e fim */
#modal {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
}

/*  Modal de início */
#inicio {
  margin-top: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ecf0f1;
  color: #2c3e50;
  padding: 15px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.4);
}

#ultimo-placar {
  display: flex;
  text-align: center;
  font-weight: bold;
  border-radius: 3px;
  margin-bottom: 15px;
  max-width: 200px;
  flex: 1;
}
#ultimo-placar span {
  margin-left: 5px;
}

button {
  display: flex;
  background: #3498db;
  border: none;
  border-radius: 3px;
  flex: 1;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  padding: 5px 15px;
  cursor: pointer;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

#placar {
  display: none;
  position: absolute;
  width: 200px;
  height: 80px;
  top: 5px;
  left: 50%;
  margin-left: -100px;
  background: rgba(0, 200, 230, 1);
  border: rgba(0, 200, 230, 1) solid 2px;
  border-radius: 30px;
  line-height: 80px;
  z-index: 200px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 66px;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.6);
}

#feedback {
  position: absolute;
  width: 200px;
  height: 80px;
  z-index: 200px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 36px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.6s;
}
