
html{
    font-size: 18px;
    font-family: monospace;

}

h2{
    color: darkgreen;
    width: 500px;
    text-align: center;

}

#mark{
    border: 2px solid darkblue;
    width: 500px;
    text-align: center;
    margin: auto;

    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    align-items:flex-end;
   
}

#neuStart{
    display:block;
    border: 2px solid black;
    width: 300px;
    text-align: center;
    margin: auto;
    margin-top: 1em;

    background: darkgray;
    color: darkred;

    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
   
}

#board{
    font-size: 0.80em;
    font-style: normal;
    font-weight: normal;
    line-height: 0.9em;
    
    height: 500px;
    width: 500px;
    margin: auto;
    
    display: grid;
    grid-template-columns: repeat(var(--boardSize), 1fr);
    align-items: center;

}

.tile{
    display: flex;

    justify-content: center;
    align-items: center;

    background-color: lightgrey;

    border: 1px solid black;
    aspect-ratio: 1;
    margin: 0;
}

.tile.hidden{
    background-color: darkgray;
    font-size: 0;

}

.tile.marked::before{
   content: '🏁';
   display: inline-block;
   font-size: 15px;

}

.tile[data-content="0"]{
    color: lightgray;
}

.tile[data-content="1"]{
    color: blue;
}

.tile[data-content="2"]{
    color: green;
}

.tile[data-content="3"]{
    color: red;
}

.tile[data-content="4"]{
    color: limegreen;
}

.tile[data-content="5"]{
    color: rgb(99, 205, 50);
}

.tile[data-content="6"]{
    color: rgb(173, 22, 22);
}

.tile[data-content="7"]{
    color: rgb(100, 29, 29);
}

.tile[data-content="8"]{
    color: black;
}

.tile[data-content="M"]{
    color: brown;
    font-weight: bold;
    
}


#gameOver, #winner {
    font-size: 65px;

    position: absolute;
    top:30%;
    left: calc(50% - 255px);

    border-style: outset;
    border: 5px solid darkblue;
    width: 500px;
    text-align: center;
    margin: auto;

    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    align-items:flex-end;
    display: none;
}

#gameOver {
    color: red;
    background-color: black;

    animation: blink-animation 1s steps(5, start) infinite;
        -webkit-animation: blink-animation 1s steps(5, start) infinite;
}
@keyframes blink-animation {
    to {
      visibility: hidden;
    }
}
@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

#winner {
    color: rgb(255, 0, 255);
    background-color: green;

    animation: blink-animation 1s steps(5, start) infinite;
        -webkit-animation: blink-animation 1s steps(5, start) infinite;
}
@keyframes blink-animation {
    to {
      visibility: hidden;
    }
}
@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

#gameOver.visible, 
#winner.visible {
    display: inline;
}

#parameter {
    
    width: 400px;
    text-align: center;
    margin: auto;

    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    align-items:flex-end;
   
}

#groesse {
    border: 2px solid darkblue;
    margin-block-start: 0em;
    margin-block-end: 0em;

}

#paraRand {
    margin-block-start: 1em;
    margin-block-end: 0em;
    
}