* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: whitesmoke;
}

article {
  max-width: 900px;
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  background: rgba(245, 240, 240, 0.92);
  border-radius: 7px;
  border: 2px solid #000;
}

.erklaerung p {
  margin: 0;
  line-height: 1.4;
}

h3 {
  text-align: center;
  margin-top: 0;
}

main {
  max-width: 900px;
  margin: 1rem auto 4rem auto;
  padding: 1rem;
  background: #1891B4;
  border: 2px solid #000;
  position: relative;
}

#messageArea {
  text-align: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

table {
  border-spacing: 0;
  margin: 0 auto;
}

td {
  width: 3rem;
  height: 3rem;
  border: 2px solid #fff;
}

.buchstaben,
.zahlen {
  color: #fff;
  border: 0;
  font-size: 1.2rem;
  text-align: center;
  padding: 0;
}

#zahlen {
  border: 0;
}

/* Treffer / Fehlschuss */

.hit {
  background: url("schiff.jpg") no-repeat center center;
  background-size: 100% 100%;
}

.hit1 {
  background: url("schiff1.jpg") no-repeat center center;
  background-size: 100% 100%;
}

.hit2 {
  background: url("schiff2.jpg") no-repeat center center;
  background-size: 100% 100%;
}

.hit3 {
  background: url("schiff3.jpg") no-repeat center center;
  background-size: 100% 100%;
}

.miss {
  background: url("daneben.jpg") no-repeat center center;
  background-size: cover;
}

/* Audio und Button */

audio, #newGame {
  display: block;
  margin: 1rem auto 0 auto;
  width: 60%;
  max-width: 320px;
  border: 2px solid #000;
  border-radius: 25px;
}

#newGame {
  cursor: pointer;
  z-index: 10;
}

/* SweetAlert Styling */

.swal-modal {
  border: 5px solid green;
  border-radius: 33px;
}

.swal-text {
  font-weight: bold;
  color: green;
  font-size: 1.2rem;
}

.swal-button {
  background-color: green;
  border: 3px solid #000;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
}

.swal-button--cancel {
  background-color: grey;
}

/* Responsive: kleine Bildschirme */

@media screen and (max-width: 768px) {

  article,
  main {
    margin: 0.5rem;
    border-width: 1px;
    padding: 0.75rem;
  }

  td {
    width: 2.4rem;
    height: 2.4rem;
  }

  .buchstaben,
  .zahlen {
    font-size: 1rem;
  }

  #messageArea {
    font-size: 1.1rem;
  }

  audio {
    width: 90%;
  }

  #newGame {
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* sehr kleine Geräte */

@media screen and (max-width: 480px) {

  td {
    width: 2rem;
    height: 2rem;
  }

  .buchstaben,
  .zahlen {
    font-size: 0.9rem;
  }

  h3 {
    font-size: 1.1rem;
  }
}
