body {
  background-color: #2B7A0B;
  text-align: center;
  margin: 0;
}

/* Text styling */
h1 {
  background-color: #876445;
  padding: 25px;
  width: auto;
  margin-top: 0;
  margin-bottom: 0px;
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 3.5rem;
  font-weight: 100;
  text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.45);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
}

h3 {
  top: 0;
  align-self: center;
  display: inline;
  font-family: 'Fredoka One', cursive;
  font-weight: 100;
  color: white;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25);
}

#score-display-frame {
  align-content: center;
  padding-top: 10px;
  height: 30px;
  top: 0;
  margin-top: 0;
  margin-bottom: 10px;
  box-shadow: 4px 4px 10px rgba(250, 250, 250, 0.3), inset 0px 4px 4px rgba(0, 0, 0, 0.25);
}
#score-display {
  align-self: center;
  top: 0;
  position: relative;
  left: 20px;
}

#number-of-attempts {
  left: 40%;
  padding: 10px;
  width: 20px;
}

#best-score {
  padding: 10px;
}

/* Overlay and Game Start Button */
.overlay {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; 
  background-color: rgba(0,0,0,0.3);
  z-index: 1;
  cursor: pointer;
}

/* Cards field and cards Display */
#game div {
  border: None;
  width: 136px;
  height: 204px;
  margin: 10px;
  display: inline-block;
  border-radius: 10%;
  transition: transform 0.6s;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
}
 /* Start Game button */
#start-game {
  position: relative;
  align-self: center;
  top: 45%;
  width: 300px;
  height: 80px;
  background-color: #EAE509;
  border: none;
  border-radius: 10px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);

  color: #2B7A0B;
  font-size: 1.5rem;
  font-family: 'Fredoka One', cursive;
}

#start-game:hover {
  background-color: #2B7A0B;
  color: #EAE509;
}
#start-game:active {
  filter: blur(8px);

}

/* card disply area */
#game {
  width: auto;
}

/* Face up cards animation and blocking clicking events */
.face-up {
  transition: transform 0.6s;
  transform: rotate(180deg) scaleY(1.1);
}

/* user feedback */
#user-feedback-frame {
  position: fixed;
  display: block;
  align-content: center;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}
#nice-work {
  visibility: hidden;
  color: #2B7A0B;
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-weight: 100;
  
  background-color: #EAE509;
  border-radius: 10px;
  width: 200px;
  height: 50px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
}

#try-again {
  visibility: hidden;
  position: relative;
  color: white;
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-weight: 100;
  
  background-color: #D61C4E;
  border-radius: 10px;
  width: 200px;
  height: 50px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.user-feedback-text {
  padding-top: 10px;
  padding-bottom: 10px;
}

#congratulations {
  visibility: hidden;
  color: #2B7A0B;
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-weight: 100;
  position: relative;
  align-self: center;
  top: 30%;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  
  background-color: #EAE509;
  border-radius: 10px;
  width: 300px;
  height: 50px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Responsive website text management */
@media screen and (min-width: 320px) {
    h3 {
    font-size: 4vw;
    width: auto; 
  } 
    #user-feedback-frame {
      left: 15%;
      top: 25%;
    }

}

@media screen and (min-width: 601px) {
    h3 {
      font-size: 1.3rem;
    }
    #user-feedback-frame {
      left: 45%;
      top: 35%;
    }

}




