html, body, #wholescreen {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
}

#wholescreen {
}

/*=========================================================
                    Headers
=========================================================*/


h1, h2, .subtitle {
    text-align: center;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.subtitle {
    margin-bottom: 1em;
}

h3 {
    margin-bottom: 0.5em;
}

a {
    color: #55caff;
}

.headerWrapper {
    white-space: nowrap;
    overflow: auto;
}

.headerWithMenuButton {
    display:grid;
    grid-template-columns: 1fr auto;
}


/*=========================================================
                    Text related
=========================================================*/

p {
    margin-left: 0.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.outlined {
    outline: 1px solid lightgray;
}

.textIcon{
    font-size: 2em;
    vertical-align: middle;
}

.centerText {
    text-align: center;
}

.menuBlocks{
    display: grid;
    grid-auto-rows: repeat(auto);
}

.menuBlocks > * {
    margin: 1em auto;
    display: block;
}




/*=========================================================
                    Pages of Information
=========================================================*/

.pageSection {
    overflow: auto;
    max-width: 50em;
    /* max-height: 100%; */
    height: calc(100% - 2px);
    background: #f5f5ff;
    border: solid 1px lightgray;
    margin: 0 auto;
    /* padding: 0 1em; */
    font-family: sans-serif;
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(128,2,2,1) 100%);
}

.textbox {
    /* background: #F8FCFF; */
    padding: 2px;
    display: inline-flex;
    font-family: fantasy;
    /* outline: 1px solid lightgray; */
    text-transform: capitalize;
    /* font-variant: petite-caps; */
}

.winningBackground {
    background: linear-gradient(0deg, rgba(0,0,0,1), rgba(128,2,2,1) 25% , rgba(15, 65, 203, 0.7) 100%);
}

.LotsOfText {
    max-width: 30em;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.2;
    padding: 1em;
}
.LotsOfText > p {
    padding-bottom: 1em;
}

#HowToPlayTable {
    margin: 1em auto;
}

#HowToPlayTable > tbody > tr > td:first-child  {
    width: 4.22em;
    height: 3em;
    border: 1px solid white;
}

#HowToPlayTable > tbody > tr > td:nth-child(2) {
    /* border: 1px solid white; */
}


/*=========================================================
                    Graphs
=========================================================*/

.wrapGraph {
    overflow: hidden;
    padding: 1em;
}

#wrap-default-graph {
    display: flex;
    align-self: stretch;
    overflow: hidden;
    padding: 1em;
}

#myExploredNetwork {
}

#mynetwork, #myExploredNetwork {
    border: 1px solid lightgray;
    width: 100%;
    height: 100%;
}



/*=========================================================
                    Overlays
=========================================================*/

.hidden {
    z-index: -100;
}

#blank-overlay-background {
    z-index: -2;
    background: black;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.fullOverlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    /* background: white; */
    background: radial-gradient(circle, rgba(131,15,15,1) 0%, rgba(116,13,14,1) 20%, rgba(63,24,26,1) 74%, rgba(2,11,22,1) 98%);
    max-width: 50em;
    margin: 0 auto;
}

#overlay-default {
    z-index: -2;
    display: grid;
    grid-template-rows: 8em 1fr 6em;
}

#overlay-FullMap {
    display: grid;
    grid-template-rows: 8em 1fr;
}


/*=========================================================
                    Menu
=========================================================*/

.menuButtonWrapper {
    padding: 0.5em;
}


/*=========================================================
                    Buttons  - Rectangles
=========================================================*/


.wrapControls {
    user-select: none;
    padding: 0.5em;
    /* background: white; */
}

.rectangleButton {
    user-select: none;
    text-align: center;
    font-family: fantasy;
    font-variant: petite-caps;
    cursor: pointer;
    display: inline-block;
    color: white;
    background: radial-gradient(black, darkred);
    border: 0.2em solid;
    box-shadow: 1px 2px 2px 0px rgba(0, 0, 0, 0.7);
    padding: 1em;
    border-image: repeating-linear-gradient(45deg, #000, #990101 , #ffc800, #ff0000, #000 25%) 1;
    outline: none;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
}

.rectangleButton:focus, .rectangleButton:selected {
    border: 0.2em solid rgb(67, 17, 76);
    outline: 1px solid rgb(67, 17, 76);
}

.rectangleButton:active {
    border-style: inset;
    background: #89f2ff;
    color: black;
    box-shadow: inset 1px 2px 2px 0px rgba(0, 0, 0, 0.7);
}


/*=========================================================
                    Buttons  - Squares
=========================================================*/

.controlButton {
    user-select: none;
    text-align: center;
    font-family: fantasy;
    font-variant: petite-caps;
    cursor: pointer;
    display: inline-block;
    width: 4em;
    height: 4em;
    background: #ecf;
    border-radius: 30%;
    padding: 0.5em;
    overflow: hidden;
    color: white;
    background: radial-gradient(black 30%, darkred);
    border: 1px solid rgb(255, 255, 255);
    box-shadow: 1px 2px 2px 0px rgba(0, 0, 0, 0.7);
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    outline: none;
    /*-webkit-transition-duration: 0.5s;*/
    /*transition-duration: 0.5s;*/
}

.controlButton:focus, .controlButton:selected {
    border: 1px solid rgb(67, 17, 76);
    outline: 1px solid rgb(67, 17, 76);
}

.controlButton:active {
    border-style: inset;
    background: #89f2ff;
    color: black;
    box-shadow: inset 1px 2px 2px 0px rgba(0, 0, 0, 0.7);
}

/*=========================================================
                    Buttons  - Special Ones
=========================================================*/

#button-playGame {
    margin: auto;
    text-align: center;
    font-size: 120%;
}



/*=========================================================
                    Portrait Mode
=========================================================*/
@media (orientation: portrait) {

}

/*=========================================================
                    Landscape Mode
=========================================================*/
@media (orientation: landscape) {
}


/*=========================================================
        TODO: split cases into portrait/landscape
=========================================================*/
#actionButtonContainer {
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
}
#actionButtonContainer > .rectangleButton {
    margin: 0 0.5em;
}
