html {
	height: 100%;	
}

body {
	font-size: 20px;
	background-color: black; 
	font-family: Roboto;
	
	background-size: cover;
	background-color: black; 
	background-repeat: no-repeat;
	background-position: center center;
}

#panel {
	position: absolute; 
	top: 40px; 
	left: 0; 
	width: 100%; 
	text-align: center; 
	font-size: 80px; 
	color: #EAEAEA;	
}

#headline {
	font-size: 30px;
}

#teslalogger {
	font-size: 30px;
}

#display_name {
	display: block;
	font-size: 60px;
}

#rangeline {
	margin-top: 50px; 
	vertical-align: middle; 
	color: #D1D1D1;
	font-size: 80x;
}

#range {
	margin-left:10px;
}

#km {
	font-size: 32px;
}

#percent {
	font-size: 32px;
}

#car_statusLabel {
	margin-top: 50px;
	font-size: 60px; 
	color:#EAEAEA; 
	text-shadow: 4px 4px 4px #555;
}
#car_status {
	margin-top: 10px;
	font-size: 48px; 
	color:#EAEAEA;
}

#error {
	color:red;
	font-size: 30px;
}

#calendar {
	text-align: center;
	position: absolute;
	left: 20px;
	bottom: 20px;
	color: #EAEAEA; 
}

.dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #EAEAEA;
	background-color: #000000dd;
    padding: 30px;
	border-radius: 15px;
	border: 2px solid #444;
	z-index: 1000;
	min-width: 300px;
	text-align: center;
}

.dialog form {
	margin-top: 20px;
}

.dialog input[type="file"] {
	background-color: #333;
	color: #EAEAEA;
	border: 1px solid #555;
	border-radius: 5px;
	padding: 10px;
	margin: 10px 0;
	width: 100%;
}

.dialog input[type="text"] {
	background-color: #333;
	color: #EAEAEA;
	border: 1px solid #555;
	border-radius: 5px;
	padding: 10px;
	margin: 5px 0 15px 0;
	width: 100%;
	box-sizing: border-box;
}

.dialog input[type="text"]:focus {
	border-color: #007ACC;
	outline: none;
}

.dialog label {
	display: block;
	text-align: left;
	color: #EAEAEA;
	font-weight: bold;
	margin-bottom: 5px;
}

.dialog button {
	background-color: #007ACC;
	color: white;
	border: none;
	border-radius: 5px;
	padding: 10px 20px;
	margin: 10px 5px;
	cursor: pointer;
	font-size: 16px;
}

.dialog button:hover {
	background-color: #005A9E;
}

.dialog button[type="button"] {
	background-color: #666;
}

.dialog button[type="button"]:hover {
	background-color: #555;
}

#settings {
	position: absolute;
	right: 20px;
	top: 20px;
	color: #EAEAEA;
	background-color: #00000030;
    padding: 20px;
	border-radius: 15px;
}

a {
	color: #EAEAEA;
	text-decoration: none;
}

#weekday, #date {
	font-size: 30px; 
}

#clock {
	font-size: 60px; 
}

#batdiv {
    position: relative;
}

#batimg {
	top: 0px;
}

#batimg_m {
	position: absolute;
}

#batimg_end {
	position: absolute;
}

#weather {
	position: absolute;
	right: 20px;
	bottom: 20px;
	font-size: 40px; 
	text-align: center;
	color: #EAEAEA; 
}

#weather_icon {
	width: 180px;
}

@media all and (max-width: 1000px) {
	#panel { font-size: 60px; }

	#headline { font-size: 25px; }
	
	#teslalogger { font-size: 25px; }

	#display_name { 	font-size: 50px; }
	
	#rangeline { margin-top: 25px; font-size: 60px;	}

	#km { font-size: 24px; }
	#percent {font-size: 32px; }
	
	#car_statusLabel { margin-top: 25px; font-size: 30px; 	}
	
	#car_status { font-size: 36px; } 

	#batimg	{ height: 50px; }

	#clock { font-size: 50px; }

	#weekday, #date { font-size: 20px; }
	
	#weather { font-size: 30px; }
	
	#weather_icon {	width: 100px; }
}

@media all and (max-width: 700px) {
	#panel { font-size: 40px; }

	#headline { font-size: 20px; }
		
	#teslalogger { font-size: 20px; }

	#display_name { 	font-size: 40px; }

	#rangeline { margin-top: 25px; font-size: 40px;	}

	#km { font-size: 16px; }
	#percent {font-size: 16px; }
	
	#car_statusLabel { margin-top: 25px; font-size: 30px; 	}
	
	#car_status { font-size: 24px; } 

	#batimg	{ height: 30px; }
	
	#clock { font-size: 40px; }

	#weekday, #date { font-size: 15px; }
	
	#weather { font-size: 20px; }
		
	#weather_icon {	width: 80px; }
}
