html,
body {
  color: #3b4146;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  margin: 0;
  text-align: center;
}

footer {
  background-color: #f2f2f2;
  padding: 44px;
}

h1 {
  font-family: 'Nothing You Could Do', cursive;
  font-size: 34px;
  font-weight: normal;
  margin: 20px 0 24px 0;
  padding: 0;
}

h2 {
  font-family: 'Nothing You Could Do', cursive;
  font-size: 34px;
  margin: 20px;
}

#memory-game {
  background-color: #f2f2f2;
  margin: 20px 0 0 0;
  padding: 10px;
}

#cast {
  padding: 20px;
}

#cast img {
  width: 100%;
}

#score-panel ul {
  padding: 0;
}

#score-panel li {
  background-color: #d0d0d0;
  border-radius: 4px;
  box-shadow: 0 0 14px #d0d0d0;
  display: inline-block;
  font-weight: 500;
  list-style: none;
  margin: 7px 5px;
  padding: 14px 18px;
  width: 104px;
}

#score-panel #restart  {
  background-color: #4b9f58;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

#score-panel #restart:hover {
    background-color: #38b54c;
    box-shadow: 4px 4px 14px #c2c2c2;
}

#congrats-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

#modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 360px;
    max-width: 80%;
}

#modal-content .score {
  color: #f6bb39;
  font-size: 20px;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding: 8px;
  max-width: 700px;
}

.container__cast {
  display: flex;
  flex-wrap: wrap;
}

.card {
  border-radius: 10px;
  box-shadow: 0 0 14px 0 #787878;
  display: inline-flex;
  height: 138px;
  margin: 8px;
  padding: 0;
  vertical-align: middle;
  width: 138px;
}

.card img {
  margin: auto;
  width: 100%;
}

.cardback {
  background-color: #576165;
  background-image: url("../img/cars-logo.png");
  background-size: 90px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.cardback img {
  display: none;
}

.cardfront {
  background-color: #fff;
}

.match {
  background-image: url("../img/checkmark.png");
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: top right;
}

.character-card {
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 0 0 22px #e8e8e8;
  margin: 16px;
  padding: 12px;
}

.box {
  border: 1px solid #a2a2a2;
  width: 23%;
  display: inline-block;
  margin: 10px;
}

.trophy {
  color: #f6bb39;
  margin-top: 20px;
}

.button {
  background-color: #4b9f58;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
  box-shadow: 0 0 14px #d0d0d0;
  display: inline-block;
  font-weight: 500;
  padding: 14px 24px;
  margin: 20px 14px 14px 14px;
}

.button:hover {
  background-color: #38b54c;
  box-shadow: 4px 4px 14px #c2c2c2;
}

@media screen and (max-width: 499px){

  .character-area {
    width: 100%;
  }

}

@media screen and (min-width: 500px) {

  .character-area {
    width: 50%;
  }

}

@media screen and (min-width: 800px) {

  .character-area {
    width: 33.33333%;
  }

}

@media screen and (min-width: 1088px) {

  #cast {
    margin-left: auto;
    margin-right: auto;
    width: 1072px;
  }

}
