
html {
    font-family: 'Roboto', sans-serif;
    background: #001c43;
    box-sizing: border-box;
}
*,
*::before,
*::after {
    box-sizing: inherit;
}

/******************************************************
Layout
******************************************************/
:root {
    --sidebar-size: 10rem;
    --mobile-break: 900px;
    --c-gt-navy: #003057;
    --c-gt-gold: #B3A369;
}

body {
    margin: 0 auto;
    background: #003057;
    max-width: 1600px;
    min-height: 100vh;
    position: relative;
    box-shadow: -15px 0px 20px 0px black, 15px 0px 20px 0px black;
    display: flex;
    flex-direction: column;
}

#page {
    min-height: 10vh;
}


header {
    font-family: "Roboto Slab", serif;
    min-height: 5rem;
    color: white;
    background-color: var(--c-gt-navy);
    position: relative;
    z-index: 1;
}

#headerdiv {
    font-weight: 700;
}

#titlediv {
    display: grid;
    grid-template-columns: minmax(100px, 0.1fr) 0.9fr;
}

#gtlogo {
    background-image: url('../images/GTVertical_TechGoldandWhite.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
}

#ecelogo {
    padding: 1rem 1vw 1rem 2vw;
    font-size: min(max(3vw, 1rem), 2rem);
}

nav {
    display: none; /* overwritten to block on larger displays */
    position: absolute;
    left: 0;
    width: var(--sidebar-size);
    z-index: 1;
    animation:animateleft 0.2s}@keyframes animateleft{from{left:-250px;opacity:0} to{left:0;opacity:1}
}

#navexpand {
	padding: 0.6rem 2rem;
	margin: 0;
	background-color: #013c6c;
    color: white;
	display: inline-block;
    border-radius: 1rem 1rem 0 0;
    border-left: 2px solid white;
    border-right: 2px solid white;
}

nav ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

nav li {
    display: block;
    text-decoration: none;
    padding: 0;
    background-color: #013c6c;
    margin: 0;
}

nav li > a {
    color: inherit;
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

main {
    margin: 0;
    padding: 1rem;
    border: 0.4rem solid var(--c-gt-gold);
}

.readability {
    margin: -1rem -1rem 2rem -1rem;
    padding: 1rem 1rem 3rem 1rem;
}

@media only screen and (min-width: 900px) {

    /* --mobile-break for desktop*/
    main {
        margin-left: var(--sidebar-size);
        margin-right: 2rem;
        margin-bottom: 2rem;
        min-height: 70vh;
    }

    header {
        padding-bottom: 1rem;
    }

    #titlediv {
        grid-template-columns: minmax(150px, 0.15fr) 0.85fr;
    }

    #gtlogo {
        background-image: url('../images/GeorgiaTech_TechGoldandWhite.svg');
    }

    nav {
        display: block !important;
        animation: none;
    }

    #navexpand {
        display: none !important;
    }

    #haze {
        display: none !important;
    }

    .readability {
        max-width: 90ch;
        margin: -1rem auto 2rem auto;
        padding: 1rem 1.4rem 3rem 1.4rem;
        border-left: 1px solid black;
        border-right: 1px solid black;
        box-shadow: 0 0 1rem -0.4rem black;
    }

}


footer {
    min-height: 50px;
    padding: 0.8rem;
    width: 100%;
    margin-top: auto;
}

#haze {
    display: none;
    position: fixed;
    background-color: #00000040;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.centered {
    text-align: center;
}

.boxlinkholder {
	display: flex;
	flex-flow: wrap;
	gap: 1rem;
	justify-content: center;
}

.boxlink {
    display: block;
    width: 220px;
    height: 220px;
    text-align: center;
    position: relative;
}

.boxlink p {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 3;
    font-size: 1.6rem;
    margin: 0;
    padding: 0.6rem;
    font-weight: 600;
}

.boxlink img {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
}

.examtable {
    display: grid;
    grid-template-columns: repeat(2, 1fr) repeat(2, 1.2fr) repeat(2, 1fr);
    gap: 0;
    padding: 2px;
    margin-bottom: 3px;
}
.examtable > * {
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}
.examinfo {
    grid-column: span 2;
}
.examraw, .examsoln {
    grid-column: span 3;
}
@media only screen and (min-width: 900px) {
    .examtable {
        grid-template-columns: repeat(5, 1fr);
    }

.examinfo {
        grid-column: span 1;
    }
    .examraw, .examsoln {
        grid-column: span 1;
    }
}    

.problemtable {
    display: grid;
	grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0;
    padding: 1rem;
    margin-bottom: 3px;
}
.probleminfo {
    grid-column: 1 / -1;
	padding-bottom: 0.5rem;
}
.problemtable a {
	text-align: center;
	padding: 1rem 0;
}

@media only screen and (min-width: 900px) {
    .problemtable {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
	.probleminfo {
        grid-column: 1 / -1;
    }
    .problemtable a {
        text-align: center;
    }
}    

.readability img {
    max-width: 100%;
    max-height: 60ch;
    display: block;
    margin: 0.6rem auto;
    padding: 1rem;
}

h1 {
    margin-top: 2rem;
}

/******************************************************
 Styling
******************************************************/

p {
    line-height: 1.4rem;
}

a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

nav li {
    position: relative;
    z-index: 1;
  }
  
  nav li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--c-gt-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 100ms;
    z-index: -1;
    box-shadow: -1rem 0 0.5rem 0 black
  }
  
  nav li:hover::after {
            transform: scaleX(1);
  }


.readability a {
    text-decoration: revert;
    color: revert;
}

nav {
    background-color: #003057;
    color: white;
    font-size: 1.3rem;
}

li {
    margin: 0 0 0.5rem 0;
}

main {
    background-color: rgb(255, 249, 238);
    background-image: linear-gradient(#FFFFFF30 2px, transparent 2px),
        linear-gradient(90deg, #FFFFFF30 2px, transparent 2px),
        linear-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .3) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

main > img {
    margin: 2rem;
    box-shadow: 0rem 0rem 1rem -0.1rem black;
}

.boxlink {
    box-shadow: 0rem 0rem 0rem 2px black;
    background-color: #FFFFFF66;
}

.boxlink:hover {
    box-shadow: 0rem 0rem 0.2rem 2px black;
    background-color: #FFFFFF99;
    transform: scale(1.01);
    transition: transform 100ms, box-shadow 100ms;
}

footer {
    font-size: 0.8rem;
    background: black;
    color: white;
}

footer a {
    text-decoration: 1px solid white underline;
}

.examtable {
    background-color: var(--c-gt-navy);
}
.examtable a, .examtable a:visited {
	color: blue;
}
.examinfo {
    background-color: white;
}
.examraw, .examsoln {
	background-color: #f6f9fe;
	text-decoration: underline;
	font-weight: 400;
	outline: 1px solid black;
}

.problemtable {
	outline: 1px solid black;
}
.probleminfo {
	font-weight: 500;
}
.problemraw {
	background-color: #6dff5b20;
}
.problemsoln {
	background-color: #ff905b20;
}
.problemtips {
	background-color: #fcff5b20;
}


blockquote {
	border-left: 3px solid black;
	padding: 0 1rem;
}

.readability {
    background-color: #FFFFFF66;
    font-size: 1rem;
}

.readability h1 {
    font-size: 1.5rem;
}

.readability h2 {
    font-size: 1.3rem;
}

.readability table {
    background-color: #FFFFFF66;
    box-shadow: 0.1rem 0.1rem 0.3rem 0.0rem #001c43;
    margin: 0 auto;
    border: 1px solid black;
    border-collapse: collapse;
}

.readability td, .readability th {
    border: 1px solid black;
    padding: 0.6rem;
}

.readability td {
    text-align: center;
}

.readability img {
    box-shadow: 0.1rem 0.1rem 0.3rem 0.0rem #001c43;
    background-color: #FFFFFF66;
}

.exprwrapper {
    line-height: 1em;
    border-radius: 0.3em;
    padding: 0.2em 0.2em 0.1em 0.2em;
    display: inline-block;
    background: rgb(233, 233, 233);
}

.overline_0 {
    margin: 0.2em 0 0 0;
    padding: 0.0em 0.0em;
    display: inline-block;
    text-decoration: 0.1em overline;
}

.overline_1 {
    border-top: 0.11em solid black;
    display: inline-block;
    padding: 0.2em 0.1em 0 0.1em;
    margin: 0;
}

pre {
    overflow-x:scroll;
    margin: 0 0 0 1rem;
}

def {
    text-decoration: 1px dotted black underline;
}

/******************************************************
 Features
******************************************************/

.top {
    text-decoration: none;
    padding: 10px;
    font-family: sans-serif;
    color: var(--c-gt-navy) !important;
    background: var(--c-gt-gold);
    border-radius: 100px;
    position: sticky;
    bottom: 20px;
    left: 10px;
    width: 40px;
    font-size: 2rem;
    margin-top: calc(100vh + 100px)
}