body {font-family: Arial, Helvetica, sans-serif;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 75%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  padding: 2px 16px;
  flex: 1;
  overflow: auto;
}

.modal-header {
  
  padding: 15px 16px;
  background-color: #5cb85c;
  color: white;
}

.grid-container {
  border-color: #000;
  margin-top: 10px;
  display: grid;
  /* 4 Spalten mit dem gewünschten Verhältnis 
  der Breite anlegen */
  grid-template-columns: 1fr 3fr 8fr 3fr;
  /* Damit es übersichtliche wird, einen kleinen
  Zwischenraum zwischen den Zellen erzeugen */
  gap: 1em;
  row-gap: 10vh;
}
/* .grid-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
} */

.grid-container>div:nth-of-type(4n + 1){
  font-weight: bold;
  color:blue;
}
.grid-container>div:nth-of-type(4n + 2){
  font-weight: bold;
  text-align: left;
}

.grid-container>div:nth-of-type(4n + 3){
  text-align: left;
}

.grid-container>div:nth-of-type(4n + 4){
  text-align: right;
  margin-right: 8px;
  color:darkorange
}

/* Bei schmalem Browserfenster auf einspaltige 
Anordnung umschalten */
@media (max-width: 800px) {
  .grid-container {
      grid-template-columns: 1fr;

  }
  .grid-container>div:nth-of-type(4n + 1){
    font-weight: bold;
    text-align: center;
    color:blue;
  }
  .grid-container>div:nth-of-type(4n + 2){
    font-weight: bold;
    text-align: center;
  }
  
  .grid-container>div:nth-of-type(4n + 3){
    text-align: center;
  }
  
  .grid-container>div:nth-of-type(4n + 4){
    text-align: center;
    color:darkorange
  }

  
}


.modal-footer {
  padding: 15px 16px;
  background-color: #5cb85c;
  color: white;
}