* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #009688;;
}
img{
  width:100%;
  height: 100%;
  border-radius: 10px;
}

.container {
  position: relative;
  background-color: #14141470;
  width: 60%;
  height: 85%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  border-radius: 10px;
  perspective: 1000px;
  margin-top: 20px;
  padding-top: 10px;
  padding-left: 10px;
}
@media(max-width :776px){
  img{
    width: 100%;
  }
  .container{
    width: 90%;
  }
}
.info{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #14141470;
  border-radius: 10px;
  padding: 10px;
  position: fixed;
  top: -50px;
  font-size: 20px;
  color: #eee;
}
.card {
  width: 90%;
  height: 130px;
  position: relative;
  border-radius: 10px;
  background-color: #333;
  transform-style:preserve-3d;
  transition: all 0.2s;
  box-shadow: 0 0 10 px #333;
}
.card:active{
  transform: scale(.95);
  transition: all .2s;
}
.back,
.fornt {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  border: 10px;
  backface-visibility: hidden;
}
.card.flip{
  transform: rotateY(180deg);
}

.win{
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #02010177;
  transform: translateY(-100%);
  transition: all 0.5s;
}
.win .box{
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
  width: 270px;
  height: 150px;
  border-radius: 8px;
  padding: 10px;
  gap: 10px;
}

.win .box h3{
  text-transform: uppercase;
} 

.win .box button{
  width: 120px;
  height: 50px;
  border-radius: 8px;
  border: navajowhite;
  background-color: #333;
  color: #eee;
  cursor: pointer;
}
.win .box button:hover{
  background-color: #EEE;
  color: #333;
  border: 1px solid #333;

}

.in {
  height: 30px;
  margin-bottom: 5px;
  outline: none;
  border-radius: 8px;
  padding: 0 10px ;
  font-size:18px;
  border:1px solid #333;
  
}
.hid{
  opacity: 0;
}
