:root {
    --primary: #ddd;
    --dark: #222;
    --light: #fff;
    --shadow: 0 1px 5px rgba(104, 104, 104, 0.8);
}

html {
    height: 100%;
    /*width:100%;*/
    /*font-family: monospace;*/
    font-family: Arial, Helvetica, sans-serif;
    /*font-size: 16px;*/
    background-color: var(--primary);
    /* background-image: url('../img/mainbg09.jpg'); */
    background-size: cover;
}

body {
    min-height: 97%;
    display: grid;
    grid-template-rows: auto auto auto auto;
    font-size: 0.8rem;
    line-height: 1.6em;
    margin: 10px;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: red;
}

.grid-container {
    display: grid;
    grid-template-areas: 'menu header' 'menu main' 'menu footer';
}

.grid-container > div {
    text-align: center;
}

.item1 {grid-area: header;}
.item2 {grid-area: menu;}
.item3 {grid-area: main;}
.item4 {grid-area: footer;}

.item1 {
    margin-left:0px;
}

.item2 {
    margin-top:50px;
    height:100%;width:0px;position:fixed!important;
    font-size: 1.2rem;
}

.item3 {
    margin-top:25px;
    margin-left:30px;
    margin-right:30px;
}

.item4 {
    margin-left:0px;
}

#main-footer {
	grid-row-start: 10;
	grid-row-end: span 1;
	text-align: center;
	height: 50px;
}

#about {
    font-size: 1.2rem;
    line-height:2.0rem;
    text-align: left;
}

#main-area {
    margin-top:25px;
    margin-left:30px;
    margin-right:30px;
}

#outputEuler {
	float: left;
	line-height: 1.0em;
}

/* Format the LaTeX symbol correctly (a higher up, e lower) */
.latex span:nth-child(1) {
  text-transform: uppercase;
  font-size: 0.75em;
  vertical-align: 0.28em;
  margin-left: -0.48em;
  margin-right: -0.15em;
  line-height: 1ex;
}

.latex span:nth-child(2) {
  text-transform: uppercase;
  vertical-align: -0.5ex;
  margin-left: -0.1667em;
  margin-right: -0.125em;
  line-height: 1ex;
}


/* Dark mode */
@media (prefers-color-scheme: dark) {

    html {
        background-color: #222;
        color: white;
    }

    a {
        color: white;
    }

    p a {
        color: white;
    }

    .div_pages a {
        color: white;
    }

    #home-btn {
        color: white;
    }

    #acct-outline {
        filter:invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
    }

}
