body {
    margin: 20px;
    background-color: white;
}

#karte {
    table-layout: fixed;
    box-sizing: border-box;
    border: 2px solid white;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
}

#karte th,
#karte td {
    /*overflow: hidden;*/
}

.cell {
    width: 20px;
    height: 20px;
    border: 1px solid #2a47aa;
}

#karte .cell.markWand {
    background-color: #114f77;
    transition: background-color 300ms linear;
}

.cell:hover,
.visited:hover,
.pfad:hover {
    background-color: cadetblue;
}

.grid-map {
    box-sizing: border-box;
    position: relative;
    top: 20px;
}

.start {
    background-image: url(../img/start4.png);
    background-position: center;
    background-size: 34px;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    display: block;
}

.ende {
    background-image: url(../img/ende.png);
    background-position: center;
    background-size: 25px;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    display: block;
}

#menue {
    width: 100%;
    height: 50px;
    /*border: 1px solid black;
    background-color: #dd3366;*/
    border-radius: 0.25rem;
    text-align: center;
}

#menue-auswahl {
    width: 100%;
    /*border: 1px solid black;
    background-color: #119f11;*/
    border-radius: 0.25rem;
}

#menue-beschreibung {
    /*border: 1px solid black;
    background-color: lightcyan;*/
    border-radius: 0.25rem;
    padding-bottom: 10px;
    margin: auto;
    width: 100%;
    text-align: center;
}

#menue-button {
    width: 100%;
    /*border: 1px solid black;
    background-color: lightyellow;*/
    border-radius: 0.25rem;
}

.head {
    background-color: #114f77;
    border: 0px;
}

.wall {
    background-color: #114f77;
    height: 15px;
    width: 15px;
}

.pfad {
    /*background-color: #711717;
    transition: background-color 800ms linear;*/

    animation-name: pfadAnimation;
    animation-duration: 500ms;
    animation-timing-function: ease-out;
    animation-direction: alternate;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-play-state: running;
}

.unvisited {
    border: 1px solid #2a47aa;
    background-color: #f9f7ff;
    transition: background-color 500ms ease-out;
}

.visited {
    /*background-color: rgba(0, 190, 218, 0.75);
    transition: background-color 500ms ease-in-out;*/

    will-change: background-color;
    animation-name: visitedAnimation;
    animation-duration: 500ms;
    animation-timing-function: ease-out;
    animation-direction: alternate;
    animation-iteration-count: 1;
    animation-delay: 0ms;
    animation-fill-mode: forwards;
    animation-play-state: running;
}

.marked {
    will-change: background-color;
    background-color: rgba(0, 189, 218, 0.281);
    transition: background-color 500ms ease-in-out;
}

@keyframes visitedAnimation {
    0% {
        transform: scale(.1);
        background-color: rgba(0, 0, 66, 0.75);
        border-radius: 100%;
    }

    33% {
        background-color: rgba(0, 62, 66, 0.938);
    }

    66% {
        transform: scale(.66);
        background-color: rgba(17, 104, 217, 0.75);
    }

    100% {
        transform: scale(1.0);
        background-color: rgba(0, 190, 218, 0.75);
    }
}

@keyframes pfadAnimation {
    0% {
        transform: scale(.1);
        background-color: #801fffda;
        border-radius: 100%;
    }

    33% {
        background-color: #ff1fceda;
    }

    66% {
        transform: scale(.66);
        background-color: #ff1f32da;
    }

    100% {
        transform: scale(1.0);
        background-color: #711717;
    }
}

@keyframes wandCellAnimation {


    33% {
        background-color: #449ebada;
    }

    66% {
        transform: scale(.66);
        background-color: #a6aacbda;
    }

    100% {
        transform: scale(1.0);
        background-color: #f9f7ff;
    }
}