/* Quando a tela estiver com a largura maior que a altura esconde as DIV abaxo que exibem uma mensagem para virar o celular quando ele estiver na vertical por exemplo */
@media screen and (max-width: 100vh) {
  #cabecalho,
  #primeiro,
  #segundo,
  #ver,
  #voltar,
  #inicio,
  #direitos {
    display: none !important;
  }
}


@media screen and (max-height: 100vw) {
  .divVire {
    display: none !important;
  }

  @media screen and (max-width: 1000px) {
    footer {
      background-color: transparent !important;
      color: black !important;
      text-align: right !important;
    }
  }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  background: linear-gradient(#87CEEB, #E0F6FF);
}

#mensagem {
  font-size: 2.5vw;
  width: 100%;
  text-align: center;
}

.divVire {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.vire {
  height: 160px;
  width: 160px;
  background-image: url('../imagens/vire.gif');
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

#cabecalho {
  /* border: 1px solid red; */
  text-align: center;
  padding: 10px;
  width: 100%;
  font-size: 1.3vw;
}

.mesa {
  /* border: 1px solid green; */
  text-align: center;
  display: flex;
  width: 100%;
  height: 20vw;
  justify-content: center;
  align-items: center;
 
}

.mesa4 {
  width: 50%;
  aspect-ratio: 3/1.1;
  position: absolute;
  display: flex;
  justify-content: space-between;
}

.mesa3 {
  width: 37.50%;
  aspect-ratio: 2.1/1;
  position: absolute;
  display: flex;
  justify-content: space-between;
}

.espaco {
  border-radius: 4%;
  box-shadow: inset 0 0 10px 10px #9d870c;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  /* Faz com que cada div ocupe a mesma quantidade de espaço disponível */
  background-color: rgba(128, 128, 128, 0.61)
}

.carta {
  width: 80%;
  aspect-ratio: 1.3/3;
}

#carta1,
#carta2,
#carta3,
#carta4,
#carta5,
#carta6,
#carta7 {
  background-size: 85%;
  background-position: center;
  background-repeat: no-repeat;
  background-size:contain ;

}

#carta1 {
  background-image: url('../imagens/1PP.png');
}

#carta2 {
  background-image: url('../imagens/10PP.png');
}

#carta3 {
  background-image: url('../imagens/7PP.png');
}

#carta4 {
  background-image: url('../imagens/3PP.png');
}

#carta5 {
  background-image: url('../imagens/2PP.png');
}

#carta6 {
  background-image: url('../imagens/5PP.png');
}

#carta7 {
  background-image: url('../imagens/9PP.png');
}

.button {
  width: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.botao {
  padding: 5px 10px;
  background-color: #3498db;
  color: #fff;
  border: 2px solid #2980b9;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.3vw;
  display: flex;
  bottom: 20%;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.botao:hover {
  background-color: #2980b9;
  border-color: #3498db;
}

.timer {
  width: 100%;
  height: 10vh;
  display: flex;
  justify-content: center;
}

.intervalo {
  margin-top: -10%;
  width: 60%;
  height: 21vw;
  position: absolute;
}

.bloco {
  position: absolute;
  width: 15%;
  height: 21vw;
  background-image: url('../imagens/coringa.png');
  background-size: 100%;
  background-repeat: no-repeat;
  animation: bloco 0.5s infinite linear;
}

@keyframes bloco {

  0%,
  100% {
    left: 0%;
  }

  50% {
    left: 85%;
  }
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 5px;
  position: fixed;
  bottom: 0;
  width: 100%;
}