/******************************************
/* CSS
/*******************************************/

/* Box Model Hack */
* {
  box-sizing: border-box;
}

/******************************************
/* LAYOUT
/*******************************************/

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
  color: white;
  background:
    linear-gradient(rgba(12, 35, 64, 0.6), rgba(12, 35, 64, 0.6)),
    url("../img/fenway-park.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 2rem;
}

header {
  margin-bottom: 2rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
}

.container {
  display: grid;
  grid-template-columns: repeat(5, 110px);
  gap: 1rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.card {
  width: 110px;
  height: 140px;
  background: #005a3c;
  border: 4px solid white;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: #00704a;
}

.card.matched {
  background: #bd3039;
  cursor: default;
}

button {
  background: #bd3039;
  color: white;
  border: 3px solid white;
  border-radius: 0;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #9e2630;
}

.congrats {
  font-size: 1.5rem;
  font-weight: bold;
  background: #bd3039;
  width: fit-content;
  margin: 0 auto 1.5rem;
  padding: 1rem 2rem;
  border: 3px solid white;
}

.hidden {
  display: none;
}

/* MOBILE */

@media (max-width: 650px) {
  .container {
    grid-template-columns: repeat(2, 110px);
  }

  h1 {
    font-size: 2.2rem;
  }
}

/******************************************
/* ADDITIONAL STYLES
/*******************************************/