/* Place your CSS styles in this file */

html {
  touch-action: manipulation; /* Prevents double-tap zoom on mobile devices */
}

@media (orientation: landscape) {
  html * {
    font-size: 3.6vh;  
    font-family: "Source Sans Pro", sans-serif;
  }
}

@media (orientation: portrait) {
  html * {
    font-size: 3.6vw;  
    font-family: "Source Sans Pro", sans-serif;
  }
}

body {
  background-color: lightblue;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  padding-top: 60px; 
}
.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;  
}

.modal-content p {
  font-size: 12px; /* Schriftgröße für Absätze */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


  #anleitung {
      background-color: white;
      color: gray;      
      font-weight: bold;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      padding: 0.1em;
      border: none;
      cursor: pointer;
      position: absolute;
      width: 18%;  
      height: 18%;      
  }
  
  img {
  width: 98%;
  height: auto;
  }
        
  .container_navigation {
    background-color: white;
    color: black;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: 0.5vw solid blue;    
    cursor: pointer;     
    width:100%;    
    position: relative;    
    box-sizing: border-box;
    aspect-ratio: 8 / 1;
  }
  
  .navi_block {
    font-family: "Source Sans Pro", sans-serif; 
    font-weight: bold;
    color: grey;  
    background-color: white;
    border: none;
    height: 100%;
    width: 16%;
    position: absolute; 
    cursor: pointer;   
  }
  
  .navi_block:hover {
    background-color: lightgreen;
    color: black;
  }
  
  .starter{
    width: 13vh; 
    height: 13vh; 
    border-radius: 50%;    
    background-color: lightgreen; 
    color: black; 
    font-size: calc(8px + 1vw);
    cursor: pointer;
    left: 45%; 
  }
  

/* grid container */
.abc-grid {
  display: grid;
  grid-template-areas:
      'navi'
      'gameText'
      'gameField'        
      'start';
}

/* general column padding */
.abc-grid > * {
  padding: 1rem;
}

/* assign columns to grid areas */
.abc-grid > .navi {
  grid-area: navi;
  height: 10vh;
  /* background: #f97171;  */
}
.abc-grid > .gameField {
  grid-area: gameField;
  background: lightblue;
  padding: 1rem;
  width: 90vw;
  height: 90vw;
  position: relative;
}
.abc-grid > .gameText {
  grid-area: gameText;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 2em;
  width: 90%;
  /* background: #f5d55f;  */
}
.abc-grid > .start {
  grid-area: start;
  /* background: #c5ed77; */
  display: grid;
  justify-content: center;
  align-content: center;
}

@media (orientation: landscape) {
  #anleitung {
    font-size: 1.3vw;
  }
  .abc-grid {
      grid-template-columns: 1fr 1fr;
      grid-template-areas:
          'navi gameField'
          'gameText gameField'
          'start gameField';          
  }
  .abc-grid > .navi {
    grid-area: navi;
    height: 10vw;
    /* background: #f97171;  */
  }
  .container_navigation {  
    background-color: white;
    color: black;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: 0.5vw solid blue;    
    cursor: pointer;     
    width:90%;    
    position: relative;    
    box-sizing: border-box;
    aspect-ratio: 5 / 1;
    max-height: 45%;
  }
  .navi_block {
    font-family: "Source Sans Pro", sans-serif;
    /* font-size: 0.5rem; */
    font-size:calc(4px + 0.5vw);
    font-weight: bold;
    color: grey;  
    background-color: white;
    border: none;
    height: 100%;
    width: 16%;
    position: absolute; 
    cursor: pointer;   
  }
  .abc-grid > .gameText {
    grid-area: gameText;
    height: 10vw;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size:1.7em;
    width: 80%;
    /* background: #eef10c;  */
  }
  .abc-grid > .gameField {
  grid-area: gameField;
  background: lightblue;
  width: 93vh;
  max-width: 66vw;
  height: 93vh;
  max-height: 66vw;
  position: relative;
  }
  .starter{   
    width: 13vw; 
    height: 13vw; 
    border-radius: 50%;    
    background-color: lightgreen; 
    color: black; 
    font-size: calc(7px + 0.8vw);
    /* position: absolute;  */
    cursor: pointer;
    left: 45%; 
  }

  .tls {
    background-color: white;
    color: black;
    font-size: 3.5vh;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    padding: 0.1em;
    border: none;
    cursor: pointer;
    position: absolute;
    width: 18%;  
    height: 18%;  
    }
}

@media (orientation: portrait) {
  #anleitung {
    font-size: 1.5vh;
  }
  .abc-grid {
      grid-template-columns: 1fr;
      grid-template-areas:
          'navi'
          'gameText'
          'gameField'
          'start';          
  }
  .abc-grid > .navi {
    grid-area: navi;
    height: 5vh;
    /* background: #f97171;  */
  }
  .container_navigation {  
    background-color: white;
    color: black;
    font-size:2em;    
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: 0.7vw solid blue;    
    cursor: pointer; 
    height:auto;
    width:100%;
    
    position: relative;
    box-sizing: border-box;
    aspect-ratio: 9 / 1;
  }
  .navi_block {
    font-family: "Source Sans Pro", sans-serif;
    font-size:calc(4px + 0.9vh); 
    /* font-size:0.85em;  */
    font-weight: bold;
    color: grey;  
    background-color: white;
    border: none;
    height: 100%;
    width: 16%;
    position: absolute; 
    cursor: pointer;   
  }
  .abc-grid > .gameText {
    grid-area: gameText;
    height: 10vh;  
    font-size:1.7em; 
    /* background: #eef10c;  */
  }
  .abc-grid > .gameField {
  grid-area: gameField;
  background: lightblue;
  width: 90vw;
  height: 90vw;
  position: relative;
  }
  .starter{
    width: 13vh; 
    height: 13vh; 
    border-radius: 50%;    
    background-color: lightgreen; 
    color: black; 
    font-size: calc(8px + 1vw);    
    cursor: pointer;
    left: 45%; 
  }

  .tls {
  background-color: white;
  color: black;
  font-size: 3.5em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 0.1em;
  border: none;
  cursor: pointer;
  position: absolute;
  width: 18%;  
  height: 18%;  
  }
}

