* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-wrap: break-word;
}
/* ermöglicht glatte animierte Übergang zwischen Elementen innerhalb des Bildlauffelds*/
html {
  scroll-behavior: smooth;
}
.navbar {
  display: flex;
  justify-content: center; /* Packe Flexelemente um die Mitte */
  align-items: center; /* Elemente um die Kreuzungsachse zentrieren */
  background-color: rgba(128, 128, 128, 0.9);
  position: sticky;
  top: 0;
}
.navbar ul {
  display: flex;
  list-style: none;
  margin: 20px 0px;
}
.navbar ul li {
  font-family: century;
  font-size: 1.1rem;
  font-weight: bold;
}
.navbar ul li a {
  text-decoration: none;
  color: #f5f5f5;
  padding: 8px 25px;
  transition: all 0.5s ease; /*transition ermöglicht die Werte über eine bestimmte Dauer reibungslos zu ändern*/
}
.navbar ul li a:hover {
  /* :hover verändert den Style, wenn man mit der Maus drüber fährt */
  background-color: #f5f5f5;
  color: black;
  /*Macht den Schatten um den Knopf */
  box-shadow: 0 0 10px #f5f5f5;
}
.headings {
  font-family: century;
  font-size: 3rem;
  text-align: center;
  padding-top: 50px;
}
img {
  width: 200px;
  height: 130px;
  margin: 20px;
  padding: auto;
  border-radius: 20px;
}
#game {
  background-color: rgb(220, 220, 220);
  height: 1100px;
}
#game p {
  font-size: 2.5rem;
  font-family: century;
  text-align: center;
}
#gamefield div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
  margin: 5% 10% 0 10%;
}
dialog:not([open]) {
  display: none;
}
img:hover {
  box-shadow: 0 0 20px #e68890;
}
.footer {
  background-color: rgba(128, 128, 128, 0.9);
}
.btn {
  padding: 10px 35px;
  background-color: transparent;
  border: 1px solid #f5f5f5;
  color: #f5f5f5;
  outline: none;
  transition: 0.6s ease-out;
}
.btn a {
  color: #f5f5f5;
  font-size: 1.2rem;
}

.btn:hover {
  cursor: pointer;
  background-color: rgba(128, 128, 128, 0.9);
  color: black;
  /*Macht den Schatten um den Knopf */
  box-shadow: 0 0 5px #f5f5f5, 0 0 10px #e68890, 0 0 15px #e68890;
  font-weight: bold;
}
/*=======Modal========*/
.modal {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  width: 80%;
  height: 60%;
  background-color: rgba(128, 128, 128, 0.9);
  border-radius: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}
.modalContent {
  display: flex;
  position: fixed;
  top: 130px;
  left: 40%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 1rem 1.5rem;

  border-radius: 0.8rem;
  align-items: center;
  border-style: solid;
  border-width: 6px 6px;
  border-color: #e68890;
}
.modalText {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.3rem;
  align-items: center;
}
.closeX {
  float: right;
  width: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: rgb(220, 220, 220);
  margin-top: 1.3rem;
}
.closeX:hover {
  background-color: rgba(128, 128, 128, 0.9);
  box-shadow: 0 0 5px #f5f5f5, 0 0 10px #e68890, 0 0 15px #e68890;
}
.showModal {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

#impressum {
  flex-direction: column;
  display: flex;
  font-size: 1.5rem;
  font-family: century;
  align-content: center;
  align-items: center;
  bottom: 10px;
}
#impressum a {
  text-decoration: none;
  color: #3d2323;
  position: sticky;
}
/*=====Für Tablet=========*/
@media only screen and (max-width: 768px) {
  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  #game p {
    font-size: 1.5rem;
  }
  .headings {
    font-size: 2rem;
  }
  #game {
    height: 1400px;
  }
  .modal {
    height: 500px;
  }
  .modalContent {
    top: 40%;
  }
}
/*=====Für Smartphone=========*/
@media only screen and (max-width: 576px) {
  #game {
    height: 2500px;
  }

  .headings {
    font-size: 1.7rem;
  }
  .modalContent {
    top: 50% !important;
  }
  .modal {
    height: 500px;
  }
}
