body {
    margin: 0;
    padding: 0;
    background-color: white;
    display: grid;
    grid-template-columns: 15% 15% 10px auto 15%;
    grid-template-rows: 0 auto 30px auto 10px 100px;
    grid-template-areas:
            '.  .       .       .       .   '
            '   header  header  header  header  header '
            '.  .       .       .       .   '
            '.  section section section .   '
            '.  .       .       .       .   '
            '.  footer  footer  footer  .   ';
    font-family: "Roboto", sans-serif;
    font-weight: normal;
    font-size: 80%;
}

    h1, h2, h3, h4 {
        padding: 0;
        margin: 0;
    }
    
    h2 {
    	margin-top: 0.7em;
    }

.compete-please {
	padding: 0 1em;
    margin-top: 2em;
}

.compete-please strong {
    color: #ff75ba;
}

header {
    grid-area: header;
    padding: 10px 15%;
    position: relative;
    background: rgb(2,0,36);
}

    header h1, header h1 a {
        display: block;
        padding: 0;
        margin: 0;
        font-weight: 600;
        text-decoration: none;
        color: white;
    }

    header p {
        display: block;
        padding: 0;
        margin: 0;
        color: lightgrey;
    }

    #logout-form button {
        border-color: red;
    }

    #header-right-flex button {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 3px 8px;
        margin: 0 10px;
    }

    #header-right-flex a {
        text-decoration: none;
    }

    #header-message {
        background-color: orange;
        width: 100vw;
        text-align: center;
        position: fixed;
        top: 0;
        z-index: 100;
    }

    #header-right-flex {
        display: flex;
        right: 15%;
        top: 0;
        height: 100%;
        position: absolute;
        align-items: center;
        justify-content: flex-end;
    }

    #cookbook-link {
        border: 3px solid palegreen;
    }

section {
    grid-area: section;
}

    #login-section {
        position: absolute;
        width: 100vw;
        height: 100vh;
    }

    section h1 {
        color: #f44708;
        text-align: left;
    }

    section h2 {
        color: #00a6fb;
        font-size: 1.2em;
    }

    section h3 {
        color: #688e26;
        border-bottom-style: dashed;
    }

    section h4 {
        color: #faa613;
    }

    section p, section li {
        font-weight: normal;
        font-size: 0.9em;
        font-family: "Roboto", sans-serif;
        text-align: justify;
        line-height: 1.8em;
    }

    section ul {
        padding-left: 20px;
    }

    section b {
        font-weight: bold;
    }

    section strong {
        color: #f44708;
    }
    
    #test-protocol-wrapper{
        margin: 5px;
    	/*border: 1px solid rgba(0,0,255,0.1);*/
    	width: calc(100% - 10px);
    	display: flex;
    	flex-direction: column;
    }

    #test-protocol-wrapper .testResult{
    	width: calc(100% - 20px);
    	margin: 5px;
    	padding: 5px;
    }
    
    .correctTestResult {
    	background-color: palegreen;
    }
    
    .errorTestResult {
    	background-color: orange;
    }
    
    .testcase-in-expected-message {
    	color: rgb(128, 128, 128);
    	font-style: italic;
    }
    
    .warning-message {
    	background-color: #ffe7b3;
    	width: calc(100% - 20px);
    	padding: 5px;
    	margin: 5px;
    }

aside {
    grid-area: aside;
}

    aside h1 {
        color: #f44708;
    }

    aside .current {
        color: red;
        text-decoration-color: red;
    }

footer {
    grid-area: footer;
    display: flex;
    align-items: center;
}

    footer p {
        display: block;
        margin: 0 auto;
        color: white;
    }

table {
	border-collapse: collapse;
	width: auto;
}

table, th, td {
	border-bottom: 1px solid;
	text-align: center;
}

th, td {
    padding: 5px 20px;
}

table .assignment-name {
	text-align: left;
}

/*@media (prefers-color-scheme: dark) {
    body {
        background-color: black;
    }

    section {
        color: white;
    }
}*/

#login-form-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login-form {
    z-index: 1;
    text-align: center;
    display: block;
    padding: 20px;
    background-color: white;
    box-shadow: 3px 3px 30px black;
    max-width: 200px;
}

    #login-form h1 {
        text-align: center;
    }

    #login-form fieldset {
        border: none;
    }

    #login-form input {
        text-align: left;
        border: none;
        height: 30px;
        width: 100%;
        padding: 3px 10px;
        margin-top: 20px;
    }

    #login-form input[type=text], #login-form input[type=password] {
        border-bottom: 2px solid gray;
        width: calc(100% - 20px);
    }

    #login-form input[type=submit] {
        background-color: lightgrey;
        width: auto;
    }

    #easter-egg-wall {
        position: absolute;
        height: 100vh;
        width: 100vw;
        z-index: 0;
        background: rgb(2,0,36);
        background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,37,121,1) 82%, rgba(9,91,121,1) 100%); 
    }

.clearfix {
    clear: both;
}

.overdue {
    color: red;
}

.ok {
    color: green;
}

.overdueRow {
    background-color: lightgrey;
}

.todoRow {
    background-color: #e7ff96;
}

.doneRow {
    background-color: palegreen;
}

.archived {
    background-color: #e6e6e6;
}

.agreement {
    background-color: #96c5ff;
}

.agreement-text {
    color: #96c5ff;
    border-color: black;
    font-weight: bold;
}

.legend-wrapper {
    position: relative;
}

.legend {
    width: auto;
    padding: 10px;
    float: left;
}

.legend p {
    padding: 0 10px;
    margin: 3px 5px;
}

@media only screen and (max-width: 1000px) {
    body {
        grid-template-columns: 10px 15% 10px auto 10px;
    }

    header {
        padding: 10px 3%;
    }

    #header-right-flex {
        right: 3%;
    }
}

.loadOption {
    color: firebrick;
    text-decoration: underline;
    cursor: pointer;
}



/* This is copied from https://www.w3schools.com/css/css_tooltip.asp :) */

/* Tooltip container */
.tooltip {
  position: relative;
}

/* Tooltip text */
.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
 
  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltip-text {
  visibility: visible;
}

.task-instructions {
    background-color: rgba(0,0,255,0.1);
    margin: 5px;
    padding: 1px 10px;    
}

.task-instructions strong {
	color: red;
}


/* UPLOAD FORM */

#tryUploadForm {
    background-color: rgba(0,0,255,0.1);
    margin: 5px;
    padding: 10px; 
}

.formPart:first-of-type {
    margin-bottom: 10px;
}

.testPagePart {
    margin: 5px;
}

.CodeMirror {
    border: 1px solid rgba(0,0,255,0.1);
}

.comment-content-wrapper {
    margin: 5px;
}
