html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  /* background: linear-gradient(160deg, #02ccba 0%, #aa7ecd 100%); */
  /* background-image: url(../bg.jpeg); */
  /* background-size: cover; */
  font-family: "Montserrat", sans-serif;
  height: 100vh;
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Component {
  width: 100%;
  height: 100%;

  background-image: url(../bkg.jpg);
  background-size: cover;
  background-position: center right;

  /* background-color:#ff99df;
    background-image:
    radial-gradient(at 80% 9%, hsla(127,71%,78%,1) 0px, transparent 50%),
    radial-gradient(at 94% 41%, hsla(151,83%,62%,1) 0px, transparent 50%),
    radial-gradient(at 94% 10%, hsla(185,84%,72%,1) 0px, transparent 50%),
    radial-gradient(at 33% 10%, hsla(102,93%,75%,1) 0px, transparent 50%),
    radial-gradient(at 57% 41%, hsla(110,64%,67%,1) 0px, transparent 50%),
    radial-gradient(at 17% 34%, hsla(78,71%,69%,1) 0px, transparent 50%),
    radial-gradient(at 76% 66%, hsla(228,88%,64%,1) 0px, transparent 50%); */
}

.gameContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 4.5rem;
}

/*
 * Styles for the deck of cards
 */

.deck {
  width: 1000px;
  min-height: 1000px;
  background-color: #fff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 3rem;
}

.deck .card {
  height: 200px;
  width: 200px;
  background: #56a7d2;
  font-size: 0;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
}

.card img {
  display: none;
}

.card.show img {
  display: block;
}

.card.match img {
  display: block;
}

.deck .card.open {
  transform: rotateY(180);
  background: #fff;
  cursor: default;
}

.deck .card.show {
  font-size: 33px;
  background: #2770af;
}

.deck .card.match {
  cursor: default;
  background: #eeae26;
  /*background-color: #1abc9c;*/
  font-size: 33px;
}

.deck .card.unmatch {
  cursor: default;
  /* ok color */
  background: #eeae26;
  font-size: 33px;
}

.card img {
  width: 180px;
}

/*
 * Styles for the Score Panel
 */

.score-panel {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.score-panel .stars {
  margin: 0;
  padding: 0;
  display: inline-block;
  margin: 0 5px 0 0;
}

.score-panel .stars li {
  list-style: none;
  display: inline-block;
}

.switch-msg {
  color: white;
  font-weight: 900;
}

.dwith {
  font-size: 100px;
  color: white;
}

/*
====================
  Congrats Pop-ups
====================
*/

.overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: white;
  background-color: rgba(230, 230, 230, 0.95);
  overflow-x: hidden;
  transition: 0.5s;
  display: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #62b6e4;
}

.overlay-content button {
  background: #ffc008;
  border-radius: 8px;
  border: 0;
  padding: 30px 70px;
  color: white;
  cursor: pointer;
  font-size: 40px;
  font-weight: 700;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.overlay-content button:hover {
  background: #e4ad08;
  /*font-size:1em;*/
}

.overlay-content .stars {
  margin: 0;
  padding: 0;
  display: inline-block;
  margin: 0 5px 0 0;
  font-size: 30px;
  color: #ffa502;
}

.overlay-content .stars li {
  list-style: none;
  display: inline-block;
  margin: 0 10px;
}

footer {
  color: white;
  text-align: center;
  font-weight: normal;
  font-size: 14px;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/*
====================
  Media Queries
====================
*/

@media screen and (min-width: 500px) and (max-width: 750px) {
  .title {
    font-size: 2.2rem;
  }

  .deck {
    width: 400px;
    min-height: 420px;
    background-color: #ccc;
    padding: 20px;
  }

  .deck .card {
    height: 75px;
    width: 75px;
  }

  .card img {
    width: 60px;
  }

  .overlay-content {
    top: 10%;
  }
}

@media screen and (max-width: 500px) {
  .title {
    font-size: 1.6rem;
  }

  .title img {
    width: 35px;
  }

  .deck {
    width: 280px;
    min-height: 300px;
    background-color: #ccc;
    padding: 15px;
  }

  .deck .card {
    height: 55px;
    width: 55px;
  }

  .card img {
    width: 40px;
  }

  .overlay-content img {
    width: 200px;
  }

  .overlay-content {
    top: 5%;
  }
}
