body {
  background-color: rgb(219 198 139 / 67%);
}
body.dark {
  background-image: linear-gradient(to right, #799186, #57585d, #5d4157);
}
body.light {
  background-image: linear-gradient(to right, #efc883, #a96f9b, #4351a7);
}
body.premium {
  background-image: linear-gradient(to right, #ef8c7f, #eb9689, #a3385c);
}

.grid {
  width: 300px;
  height: 300px;
  border: solid 4px rgba(203, 7, 7, 0.678);
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.grid div {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: solid 1px rgba(177, 5, 5, 0.685);
}

/* add icons to invaders & shooter */
.invader {
  background-color: rgb(219, 42, 228);
  border-radius: 10px;
}

.shooter {
  background-color: rgb(60, 27, 192);
}

.laser {
  background-color: rgb(195, 32, 32);
}

.boom {
  background-color: rgb(223, 173, 22);
}

h2 {
  font-weight: bold;
  color: hotpink;
  font-size: 1.7rem;
  text-decoration-thickness: 2px;
  font-family: "BBH Sans Bartle", sans-serif;
  text-shadow: 5px 5px 0 #ff005e, 10px 10px 0 #00d4ff;
  animation: main-title 2s infinite;
}

@keyframes main-title {
  0%,
  100% {
    text-shadow: 5px 5px 0 #ff005e, 10px 10px 0 #00d4ff;
  }
  50% {
    text-shadow: -5px -5px 0 #00d4ff, -10px -10px 0 #ff005e;
  }
}

h3 {
  font-family: "BBH Sans Bartle", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #e872dd78;
  font-size: 1em;
}

h4 {
  color: #e872dd78;
  line-height: inherit;
  text-align: center;
}

.main-title {
  text-align: center;
  background-color: #0a0a08d5;
  padding-bottom: 50px;
  padding-top: 50px;
}

.results {
  font-family: "Share Tech", sans-serif;
  font-weight: bold;
  padding-bottom: 20px;
}

.grid-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap-reverse;
  margin-bottom: 15px;
}

.score-title,
.results {
  text-align: center;
  color: #ff005e;
  font-family: "Share Tech", sans-serif;
  margin: 5px;
  font-size: medium;
}

.dark-mode {
  color: rgb(152, 119, 141);
  font-family: "Share Tech", sans-serif;
  font-size: 0.75em;
  font-weight: bold;
}

.mode-select {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  z-index: 3;
}

.mode-select label {
  width: 100%;
  font-size: 1.5em;
  margin-top: 0.75em;
}

.mode-select select {
  width: 180px;
  height: 50px;
  font-family: "Share Tech", sans-serif;
  font-size: 1.125em;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.75em;
  padding: 10px 48px 9px 25px;
  border-radius: 5px;
  border: 1px solid black;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url("http://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/16x16/br_down.png")
    white no-repeat calc(100% - 20px);
}

.restart-button {
  background: #923f5e;
  color: white;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  padding: 0.6rem 1rem;
  font-family: "Share Tech", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.restart-button:hover {
  background: #e67aa1;
}

.restart-button:active {
  transform: scale(0.95);
}

.game-instructions {
  list-style: none;
  color: white;
  font-family: "Share Tech", sans-serif;
  font-size: 1.75rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.game-instructions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border: 2px solid #ffffff33;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.game-instructions .icon {
  margin-right: 10px;
}

.game-instructions .key {
  background: black;
  color: #00ffcc;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #00ffcc;
  font-size: 1.2rem;
  box-shadow: 0 0 6px #00ffcc;
}

footer {
  background-color: #0a0a08d5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .content-wrapper {
  width: 100%;
  margin: 25px 0;
}

footer .social-icons {
  gap: 10px;
  align-items: center;
  padding: 25px;
  justify-content: center;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}

footer .social-icons a {
  background-color: #fcf4eaa3;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .social-icons p {
  background-color: #d62d95f2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact {
  color: #c9718ecc;
  font-family: "BBH Sans Bartle", sans-serif;
  font-size: 1.3rem;
  font-style: normal;
  font-weight: 400;
}

footer .games-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer .game-card {
  background: #1a1c4a;
  border-radius: 8px;
  width: 100px;
  text-align: center;
  transition: transform 0.2s ease;
}

footer .game-card img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  border-radius: 6px;
}

footer .game-card p {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #ffffff;
}

footer .game-card:hover {
  transform: translateY(-4px);
}

footer p {
  margin: 0;
}

footer .copyright {
  text-align: center;
}

address {
  font-size: 10px;
  text-align: center;
}

.copyright {
  font-family: "Share Tech", sans-serif;
  color: #c9718ecc;
  margin-bottom: 10px;
}

.fa-instagram {
  color: black;
}

.fa-twitter:before {
  color: black;
}

.fa-facebook-f:before {
  color: black;
}

/* TABLET MEDIA QUERY  */
@media screen and (min-width: 768px) {
  .grid {
    width: 600px;
    height: 600px;
  }

  .grid div {
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border: solid 1px rgb(177 5 5 / 83%);
  }

  h2 {
    font-size: 4rem;
  }

  h4 {
    font-size: 1.5em;
    color: #a96f9b;
  }

  .main-title {
    background-color: #0a0a08d5;
    margin: 2px;
  }

  .grid-wrapper {
    padding-bottom: 120px;
  }

  .results {
    font-size: 4rem;
    font-style: normal;
    font-weight: bolder;
  }

  .contact {
    color: #c9718ecc;
    font-family: "BBH Sans Bartle", sans-serif;
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 400;
  }

  footer .games-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin: 10px;
    align-items: normal;
  }

  footer .game-card {
    background: #1a1c4a;
    border-radius: 8px;
    width: 120px;
    text-align: center;
    transition: transform 0.2s ease;
  }

  footer .game-card img {
    height: 75%;
  }

  footer .game-card p {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #ffffff;
  }

  footer .game-card:hover {
    transform: translateY(-4px);
  }

  footer .social-icons {
    grid-auto-flow: column;
    padding-top: 5%;
  }

  address {
    font-size: 0.78em;
  }

  .score-title {
    font-size: 2.1em;
  }
}

/* DESKTOP MEDIA QUERY  */
@media only screen and (min-width: 1200px) {
  h2 {
    font-size: 3.75rem;
  }

  h4 {
    font-size: 1.5em;
    color: #a96f9b;
    margin: 35px;
  }

  footer .content-wrapper {
    height: 360px;
  }

  footer .game-card img {
    height: 70%;
  }

  footer .social-icons {
    gap: 15px;
    padding: 25px;
  }
}
