:root {
	--mpOrange: #e57c00;
	--mpBlue: #003c71;
	--mpBlueDarker: #002342;
}

* {
	box-sizing: border-box;
	font-family: sans-serif;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	display: flex;
	padding: 10px;
	background: url(bg.png) no-repeat;
	background-position: center;
	background-color: #555;
	background-size: auto 100%;
}

@media only screen  and (orientation: portrait) {
	body {
		background-size: 150% auto;
	}
}

.main-container{
	flex-grow: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	margin: 15px;
	padding: 15px;
	background-color: rgba(200, 200, 200, 0.5);
	border: 2px solid #444;
	overflow: hidden;
}

.meter {
	flex-grow: 1;
	height: 0%;
	width: 3cm;
	background: var(--mpOrange);
	border-radius: 15px 15px 0px 0px;
	margin-top: 5px;
	color: white;
	box-shadow: inset -1px -1px 8px 2px var(--mpOrange), 0 0 8px 6px  var(--mpBlueDarker);
	position: relative;
	overflow: hidden;
	text-align: center;
}

.filler {
	background-color: white;
	width: 100%;
	height: 100%;
	border-radius: 15px 15px 0px 0px;
	transition: height 100ms;
}

.meter-shadow {
	position: absolute;
	height: calc(100% + 2px);
	width: 100%;
	top: -1px;
	left: 0;
	box-shadow: inset 0px 2px 20px 3px #002342;
	border-radius: 15px 15px 0px 0px;
}

.filler-specular {
    width: 90%;
    display: inline-block;
    box-shadow: 0px 0px 11px 4px #ffffff91;
    background: #ffffff91;
    position: relative;
    top: -14px;
}

.bulb {
    width: 3cm;
    height: 3cm;
    flex-shrink: 0;
    border: 1px solid black;
    border-radius: 50%;
    background-color: white;
    box-shadow: #000 inset 1px 1px 30px -3px, #444 inset 3px 1px 42px 7px, #ddd inset 8px 11px 15px 28px, 0 0 8px 6px var(--mpBlueDarker);
}

.blink {
	animation: 0.1s blinkAnim 30 alternate;
}

@keyframes blinkAnim {
	to {
		background: yellow;
		box-shadow: 0px 0px 8px 4px yellow;
	}
}

.outer-container {
	display: flex;
	flex-grow: 1;
	align-items: stretch;
	justify-content: center;
}

.spacer {
	order: 3;
	flex-grow: 1;
}

.inner-container {
    padding-top: 20px;
    height: 100%;
    max-height: 30cm;

    box-shadow: 0 0 10px 9px;
    padding: 5px 15px;
    padding-top: 20px;
    background: var(--mpBlue);
    border-radius: 10px;
    color: white;

    display: flex;
    flex-direction: column;
}

.rank-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 200px;
}

.rank {
	font-size: 20px;
	font-weight: bold;
	opacity: 1;
	text-align: center;
	color: var(--mpBlue);
}

.rank:last-of-type {
	font-size: 30px;
	color: var(--mpBlue);
}

.rank.popIn {
	animation: rankPopIn 0.5s;
	position: absolute;
	bottom: 0px;
	z-index: 2;
}

@media only screen and (orientation: landscape) {
	.rank-container {
		margin-left: 50px;
	}
}

@media only screen and (orientation: portrait) and (min-height: 31cm) {
	.main-container {
		flex-direction: column;
	}

	.rank-container {
		height: 250px;
		width: auto;
		justify-content: flex-end;
	}
}

@keyframes rankPopIn {
	0% {
		font-size: 800px;
		color: var(--mpOrange);
		opacity: 0;
	}

	50% {
		opacity: 1;
	}
	
	100% {
		font-size: 20px;
		color: var(--mpBlue);
	}
}

.display {
    text-align: center;
    font-size: 30px;
    margin-top: 15px;
}