html, body{ 
    margin: 0;
    height: 100%;
 }

body{
    display:flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Roboto,sans-serif;
}

#header{
    flex: 0 1 auto;

    display: flex;
    justify-content: space-between;
    background-color: #3E5A44 ;
}

#header h1, #icons{
    margin: 0;
    padding: 1em .5em;
    color: white;
}

#icons{
    display: flex;
}

.icon{
    padding: .5em 1em;
}

#learning-environment{
    flex: 1 1 auto;
    
    display: flex;
    background: #e9e9e9;
}

#game, #graph{
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: white;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#game{
    flex-shrink: 1;
    flex-basis: 700px;

    justify-content: space-evenly;
    text-align: center;
}

#graph{
    flex-grow: 1;
    flex-basis: 700px;
}

#game-instruction, #game-state, #graph-instruction, #graph-state{
    flex: 1;
    text-align: center;
    align-content: center;
}

#game-visualization{
    flex: 1 0 10px;
}

#graph-visualization{
    flex: 5;
}

.transparent{
    opacity: 0.5;
}

.hidden{
    visibility: hidden;
}

#popup-bg{
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0,0.4);
}

#popup {
    position: absolute;    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    border-radius: 10px;
    background: white;
    text-align: center;

    padding:20px;
}

.popup h2{
    margin: 0;
    /* padding: 1em .5em; */
}
/* .popup h2{
    margin: 0;
    padding: 1em .5em;
} */

/* ########## Debug ##########*/

.gameTable{
    border-collapse: collapse;
}
.gameTable td{
    border-width: 3px;
    border-style: solid;
    border-color: black;

    width: 30px;
    height: 30px;

    text-align: center;
}

.graphNode{
    flex: auto;
    text-align: center;
    border: 1px solid black;
}

.graphChildNodes{
    display: flex;
}