.popup {
  visibility: hidden;
  display: none;
  z-index: 1;
  height: 150px;
  top:50%;
  margin-top: -75px;
  width: 350px;
  left:50%;
  margin-left:-175px;
  position: absolute;
  background-color: #fff;
  text-align: center;
  box-shadow: 0 4px 18px 0 rgba(0,0,0,.3);
  border-radius: 30px;
  padding: 20px 0; 
}
body { margin:0; text-align: center; font-family: "Poppins", Sans-serif; }
.destaque {color: #fff; font-weight: bold; border-radius: 20px; padding: 10px; font-size: 20px;  border:0; margin: 5px auto; }
.amarelo {background-color: #FFD400;}
.laranja {background-color:#FF7F00;}
.azulescuro {background-color:#002E45;}
.azulrealce {background-color:#5CCFE5;}
.azul {background-color:#0088cc;}
#timer {background-color: #0088cc; padding: 10px 0; width: 100%;}
main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image: url('../images/bg.jpg');
  background-size: cover;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  color:#fff;
}

/*header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 1.2em;
  width: 100%;
  max-width: 800px;
  padding: 30px;
  margin: 0 0 30px;
  border-radius: 5px;
}*/

.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  aspect-ratio: 1/1;
  width: 100%;
  border-radius: 5px;
  position: relative;
  transition: all 400ms ease;
  transform-style: preserve-3d;
  background-color: #ccc;
}

.face {
  width: 100%;
  height: 100%;
  position: absolute;
  background-size: cover;
  background-position: center;
  border: 1px solid #0088CC;
  border-radius: 5px;
  transition: all 400ms ease;
}

.front {
  transform: rotateY(180deg);
}

.back {
  background-image: url('../images/back.png');
  backface-visibility: hidden;
}

.reveal-card {
  transform: rotateY(180deg);
}

.disabled-card {
  filter: saturate(0);
  opacity: 0.5;
}

@media only screen and (max-width: 600px){
    .grid { grid-template-columns: repeat(3, 1fr);}
}
@media only screen and (min-width: 601px){
    .grid { grid-template-columns: repeat(6, 1fr);}
}