
body {
	font-size: large;
	font-family: Helvetica, sans-serif;
}

div.jumbo {
	text-align: center;
	margin: 20px;
}
div.jumbo img {
	width: 160px
}
div.jumbo h1 {
	margin-top: 10px;
}

section.courses {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

div.course {
	margin: 1vw;
	padding: 1vw 1vw;
	border-radius: 5px;
	width: 250px;
}

div.course div.info {
	background-color: whitesmoke;
	padding: 1vw;
}

div.course p.name {
	margin: 10px 0;
}
div.course p.score {
	font-size: 1.8em;
	text-align: center;
	float: left;
	margin: 1vw 0;
}
div.course p.grade {
	text-align: center;
	float: right;
	font-size: 1.8em;
	margin: 1vw 0;
	line-height: 1em;
}

div.course p.na {
	font-size: 1.8em;
	margin: 0;
	padding: 0;
}

@media(max-width: 800px) {

}

div.course progress[value]  {
	border: 1px solid black;
	border-radius: 2px;

	background-color: whitesmoke;

	width: 100%;
	height: 20px;
}
div.course progress[value]::-webkit-progress-bar {
    background-color: transparent;
}
div.course progress[value]::-webkit-progress-value {
    background-color: grey;

    border-radius: 2px;
}
div.course progress.A::-webkit-progress-value {background-color: limegreen;}
div.course progress.B::-webkit-progress-value {background-color: yellowgreen;}
div.course progress.C::-webkit-progress-value {background-color: yellow;}
div.course progress.D::-webkit-progress-value {background-color: orange;}
div.course progress.F::-webkit-progress-value {background-color: red;}

div.course button.details {
	display: block;
	outline: none;
	border: none;
	width: 60px;
	background-color: white;
	margin-top: 10px;
}
div.course button.details:hover {
	background-color: lightgrey;
}
div.course button.details:active {
	background-color: grey;
}


.modal {
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	background-color: #f3f3f6;
}
.modal .content {
	overflow: auto;
	height: 500px;
	max-height: 80vh;
	width: inherit;
	background-color: white;
}
.modal-close {
	background-color: transparent;
	font-size: 1em;
	line-height: 0;
	text-align: right;
	height: 20px;
	width: 100%;
	border: none;
	padding: 0 5px;
	outline: none;
	border-bottom: 1px solid #e5e5ea;
}
.modal-close:hover {
	background-color: #fcecec;
}
.modal-close:active {
	background-color: #ffe1e1;
}



footer {
	text-align: center;
	margin-top: 200px;
	font-size: .7em;
}








#login {
	padding: 20px;
	text-align: center;
}
#login input {
	margin: 20px 10px;
	font-family: Helvetica, sans-serif;
}
#login input[type="submit"] {
	font-size: .8em;
	border: 1px solid lightgrey;
	padding: 2px 20px;
	border-radius: 10px;
	outline: none;
}
#login input[type="submit"]:active {
	background-color: lightgrey;
}


p.message {
	font-size: .8em;
	color: red;
	margin: 0;
}


/* ---- additions for the static demo (not in the original) ---- */

[hidden] {
	display: none !important;
}

p.demo-note {
	font-size: .7em;
	color: grey;
	text-align: center;
	margin: 0 auto;
	padding: 0 20px;
}
section.courses p.demo-note {
	width: 100%;
}

#login p.demo-note {
	margin-top: -10px;
}

footer p.back a {
	color: inherit;
}

/* the original showed the school's own grade table inside the modal; the demo draws a plain one */
.modal .content table {
	border-collapse: collapse;
	width: 100%;
	font-size: .8em;
}
.modal .content th,
.modal .content td {
	text-align: left;
	padding: 4px 8px;
	border-bottom: 1px solid #e5e5ea;
}
.modal .content .num {
	text-align: right;
	white-space: nowrap;
}
.modal .content .pending {
	color: grey;
}
.modal .content h4 {
	margin: 10px 8px 4px;
}
