* {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
}
/* PRIMERA PANTALLA */
.screen-one {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100vw;
  min-height: 100vh;
  background-image: url("./img/fondo.png");
  background-size: cover;
  background-position: 50%;
  color: #fff;
}
.screen-one img {
  width: 250px;
}
.div-img{
  width: 100%;
}
.welcome {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 90%;
  margin: 70px 0 0 0;
  /* margin: 20% 0 0 0; */
}
.welcome h1 {
  margin: 30px 0;
}

.welcome button {
  width: 130px;
  height: 30px;
  margin: 40px 0;
  font-weight: 700;
  border-radius: 20px;
  border: none;
  box-shadow: 0px 4.4541425704956055px 4.4541425704956055px 0px
    rgba(0, 0, 0, 0.25) inset;
}
.welcome button:hover {
  background-color: #fe2f13;
  color: #fff;
  transition: all 0.5s ease-in-out;
}

/* SEGUNDA PANTALLA */
.screen-two {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.board-cards {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  height: 80vh;
  justify-content: center;
  align-items: center;
  gap: 15px;
  perspective: 800px;
}
.container-card {
  width: 20%;
  position: relative;
  transform-style: preserve-3d;
  transition: all 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: rgba(0, 0, 0, 0.2) 0 5px 15px;
}
.front-card,
.back-card {
  width: 100%;
  height: 100%;
  position: absolute;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.back-card {
  backface-visibility: hidden;
  background: rgba(196, 196, 196, 1);
}
.front-card img {
  width: 70%;
}
.back-card img {
  width: 50%;
}
.toggleCard {
  transform: rotateY(180deg);
}
/* MODAL */
.modal-lose,
.modal-win {
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  padding: 40px;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.container-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 50%;
  min-height: 100px;
  background-color: #fff;
  position: relative;
  left: -30px;
  border-radius: 10px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  padding: 20px;
  text-align: center;
}
.container-modal h2{
  color: #fe2f13;
}
.container-modal img{
  margin: 20px;
  width: 70%;
}
.container-modal button{
  height: 35px;
  border-radius: 10px;
  margin: 15px 0;
  background-color: black;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: .5em;
}
.container-modal button:hover{
  background-color: #fe2f13;
  transition: all 0.5s ease-in-out;
}

@media (min-width: 430px) {
  .screen-one img {
    width: 320px;
  }
  .welcome h1 {
    font-size: 3rem;
    margin-top: 80px;
  }
  
  .welcome p{
    font-size: 1.3rem;
  }
  .welcome button{
    font-size: 1.3rem;
    height: 50px;
  }
}
@media (min-width: 750px) {
  .screen-one{
    position: relative;
  }
  .div-img{
    position: absolute;
    bottom: 0;
    width: 50%;
  }
  .screen-one img {
    width: 400px;
  }
  .welcome{
    margin: 120px 0 0 0;
  }
  .welcome h1 {
    font-size: 3.5rem;
  }
  .welcome p{
    font-size: 1.5rem;
  }
  .welcome button{
    font-size: 1.5rem;
    height: 55px;
  }
  .container-card {
    width: 15%;
    height: 150px;
  }
}
@media (min-width: 1020px) {
  .screen-one img {
    width: 550px;
  }
  .welcome h1 {
    font-size: 4rem;
  }
  .welcome p{
    font-size: 2rem;
  }
  .welcome button{
    font-size: 2rem;
    height: 60px;
    width: 160px;
  }
  .container-card {
    width: 180px;
    height: 190px;
  }
}