* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

body {
  background: url("../assets/background.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/*
 *
 * Scoring
 *
 */

.header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 400px;
  height: auto;
  margin: 2rem 0;
  animation: logo 2s infinite;
}

.scoring {
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
  height: 60px;
}

.scoring_info {
  line-height: 60px;
}

.scoring_info_txt {
  display: inline-block;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0;
}

/*
 *
 * Cards
 *
 */

.cards {
  height: 500px;
  width: 700px;
  margin: 0 auto;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.card_pos {
  cursor: pointer;
  display: inline-block;
}

.card_pos > img {
  width: 100px;
  margin: 0.25rem;
}

/*
 *
 * Modals
 *
 */
.game_modal {
  position: fixed;
  padding-top: 15rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

#start_game_modal {
  display: block;
}

#end_game_modal {
  display: none;
}

.modal_content {
  text-align: center;
  background-image: url(../assets/bg-screen.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1rem;
  margin: auto;
  padding: 2rem;
  width: 40%;
  height: 15rem;
}

.lettering {
  font-size: 20px;
  margin-top: 20px;
}

.lettering_txt,
.scoring_content_txt {
  margin: 0px;
  color: white;
}

.scoring_modal {
  margin-top: 10px;
}

.scoring_content {
  display: inline-block;
  font-size: 20px;
  font-weight: 100;
  padding-left: 10px;
  padding-right: 10px;
  color: white;
}

.start_opt,
.end_opt {
  display: inline-block;
  padding-left: 10px;
  padding-right: 10px;
  color: white;
}

.end_options {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.end-btn {
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background-image: url("../assets/btn.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 2rem 2rem;
  margin: 1rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.or_txt {
  font-size: 20px;
}

.button {
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: transparent;
  border-radius: 1rem;
  margin-top: 1rem;
  cursor: pointer;
  text-decoration: none;
}

#play_again,
#back_home {
  padding-top: 10px;
  margin: 10px;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.btn {
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  transform: translateY(5px);
}

.btn-end {
  padding: 1rem 2rem;
  margin-top: 1rem;
  cursor: pointer;
}
.btn-end img {
  width: 100px;
  height: auto;
}
.btn-footer1,
.btn-footer2 {
  display: none;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .cards {
    height: 650px;
    width: 350px;
    background-color: rgba(255, 255, 255, 0.801);
  }
  .scoring {
    margin-bottom: 0;
  }
  .scoring_info_txt {
    padding-left: 10px;
    padding-right: 10px;
  }
  .card_pos > img {
    width: 75px;
    margin: 0.25rem;
  }
  .footer {
    display: none;
  }
  .btn-footer1 {
    display: block;
    position: absolute;
    width: 60px;
    height: 50px;
    top: 5px;
    left: 5px;
  }
  .btn-footer2 {
    display: block;
    position: absolute;
    width: 60px;
    height: 50px;
    top: 5px;
    right: 5px;
  }
  .logo {
    display: none;
  }
  .modal_content {
    margin: auto;
    padding: 2rem;
    width: 75%;
    height: 15rem;
  }
}

@media (min-width: 870px) {
  .modal_content {
    margin: auto;
    padding: 2rem;
    width: 65%;
    height: 15rem;
  }
}
@media (max-height: 800px) {
  .logo {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 870px) {
  .modal_content {
    margin: auto;
    padding: 2rem;
    width: 75%;
    height: 15rem;
  }
}

@media (max-width: 480px) {
  .lettering_txt {
    font-size: 1.5rem;
  }
  .or_txt {
    font-size: 1rem;
  }
  .modal_content {
    margin: auto;
    padding: 2rem;
    width: 95%;
    height: 15rem;
  }
  .start_opt {
    padding: 0;
    margin-top: 1rem;
  }
  .start_opt button img {
    width: 75px;
    height: auto;
  }
  .btn-end {
    padding: 0;
  }
  .btn-end img {
    display: flex;
    flex-direction: row;
    width: 85px;
    height: auto;
  }
}
