/* Place your CSS styles in this file */

@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;
    margin: 0.5em;
    border: none;
    cursor: pointer;
    position: absolute;
    width: 18vh;
    height: 18vh;
}

img {
    width: 98%;
    height: auto;
}

.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: 3.5vh;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        padding: 0.1em;
        margin: 1em;
        border: 2px solid blue;
        cursor: pointer;
        position: absolute;
        width: 18vh;
        height: 18vh;
    }
    .abc-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 'navi gameField' 'gameText gameField' 'start gameField';
    }
    .abc-grid>.navi {
        grid-area: navi;
        height: 10vw;
        margin: 0.5em;
        /* 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 / 2;
        max-height: 65%;

        display: flex;
        align-items: center;
        justify-content: space-between;
        container-type: inline-size; /* Aktiviert Container Queries */
    }
    .navi_block {
        font-family: "Source Sans Pro", sans-serif;
        font-weight: bold;
        color: grey;
        background-color: white;
        height: 100%;
        width: 16%;        
        cursor: pointer;
    }

    .container {
        container-type: inline-size; /* Aktiviert Container Queries */
    }

     /* Container Queries → Schriftgröße passt sich der Container-Breite an */
    @container (min-width: 50px) {
        .navi_block {
            font-size: 0.7rem;
            /* color: red; */
        }
    }

    @container (min-width: 200px) {
    .navi_block {
        font-size: 1rem;
        /* color: blue */
        }
    }

    @container (min-width: 400px) {
        .navi_block {
            font-size: 1.5rem;
             /* color: green; */
        }
    }

    @container (min-width: 600px) {
        .navi_block {
            font-size: 2rem;            
        }
    }

    @container (min-width: 800px) {
        .navi_block {
            font-size: 3.5rem;            
        }
    }

    input[type="radio"] {
        transform: scale(0.8); /* Basis */
        width: 0.8em;
        height: 0.8em;
        vertical-align: middle;
        margin-right: 0.4em;
    }

    .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;
        border: black 0.2vw solid;
        margin: 1em;
    }
    .starter {
        width: 13vw;
        height: 13vw;
        border-radius: 50%;
        background-color: lightgreen;
        color: black;
        font-size: 0.7em;
        /* font-size: calc(7px + 0.8vw); */
        /* position: absolute;  */
        cursor: pointer;
        left: -30%;
        top: -20%;
        position: relative;
    }
       
    .tls, .rerunButton {
        background-color: white;
        color: black;
        font-size: 3.5em;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        border: 1px solid blue;
        cursor: pointer;
        position: absolute;
        width: 18%;
        height: 18%;
    }
}

@media (orientation: portrait) {
    #anleitung {
        font-size: 1.5vh;
    }
    .abc-grid {
        margin: 2.7vh;
        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-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: 5 / 2;
        max-height: 6vh;

        display: flex;
        align-items: center;
        justify-content: space-between;
        container-type: inline-size; /* Aktiviert Container Queries */
    }
    .navi_block {
        font-family: "Source Sans Pro", sans-serif;
        font-weight: bold;
        color: grey;
        background-color: white;
        height: 100%;
        width: 16%;        
        cursor: pointer;
    }

    .container {
        container-type: inline-size; /* Aktiviert Container Queries */
    }
     /* Container Queries → Schriftgröße passt sich der Container-Breite an */
    @container (min-width: 200px) {
        .navi_block {
            font-size: 0.4rem;
        }
    }

    @container (min-width: 400px) {
        .navi_block {
            font-size: 0.8rem;
        }
    }

    @container (min-width: 600px) {
        .navi_block {
            font-size: 1.2rem;
        }
    }

    @container (min-width: 800px) {
        .navi_block {
            font-size: 3.5rem;
        }
    }

    input[type="radio"] {
        transform: scale(1); /* Basis */
        width: 0.8em;
        height: 0.8em;
        vertical-align: middle;
        margin-right: 0.4em;
    }
    .abc-grid>.gameText {
        grid-area: gameText;
        height: 10vh;
        font-size: 1.7em;
        margin-top: 3vh;;
        width: 100%
    }
    .abc-grid>.gameField {
        grid-area: gameField;
        background: lightblue;
        width: 90vw;
        height: 90vw;
        position: relative;
        margin-bottom: 1vh;
        margin-left: 1vw;
    }

    .tls, .rerunButton {       
        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%;
    }

    .starter {
        width: 13vh;
        height: 13vh;
        border-radius: 50%;
        background-color: lightgreen;
        color: black;
        font-size: 2.3vw;
        /* font-size: calc(8px + 1vw); */
        cursor: pointer;
        left: 45%;
    }
    @media only screen 
    and (max-device-width: 430px) 
    and (min-device-width: 320px) 
    and (orientation: portrait) {
        .starter {
        font-size: 3.5vw;
        }
    }


}