@font-face {
  font-family: Open Sans;

  src: local('Open Sans'), local('OpenSans'),
  url('/fonts/OpenSans-Regular.woff2') format('woff2'),
  url('/fonts/OpenSans-Regular.woff') format('woff'),
  url('/fonts/OpenSans-Regular.ttf') format('truetype');

  font-weight: 400;
  font-style: normal;
}

* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	padding-bottom: 10px;
}

input {
	-webkit-appearance: none;
	-webkit-border-radius:0px;
	-moz-appearance: none;
	appearance: none;
	border-radius: 0;
}

body {
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-weight: 400;
	font-style: normal;
	color: #FFFFFF;
	line-height: 1.6em;
	background-color: #181818;
	font-size: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
}

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

a:hover{
	color: #AAAAAA;
}

ul {
	list-style: none;
}

h1, h2, h4{
	line-height: 1.2;
	margin: 10px 0;
}

p {
	margin: 10px 0;
}

img {
	width: 100%;
}

header {
	width: 100%;
}

.navbar {
	background-color: #212121;
}

.navbar .flex {
	justify-content: flex-start;
	flex-direction: row;
}

#logo a:hover {
	color: #FFFFFF;
}

.main small {
	line-height: 0em;
}

.main .flex {
	padding: 0 80px;
}

main {
	min-height: 100vh;
}

#app-name h1 {
	margin-bottom: 0px;
}

#app-name h4 {
	margin-top: 5px;
	color: #AAAAAA;
}

#form {
	background-color: #212121;
	border: 0.5px solid #3D3D3D;
	border-radius: 5px;
	width: 100%;
}

#form-inner {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 10px;
	margin: 5px;
}

#location-fields {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 100%;
}

.locations, .start-location {
	border: none;
	display: flex;
	justify-content: space-evenly;
	gap: 10px;
	flex-direction: column;
}

#start-location {
	width: 100%;
}

input[type="text" i] {
    padding: 2px 5px
}

.tb {
	background-color: #3D3D3D;
	color: #FFFFFF;
	border: none;
	border-radius: 4px;
	display: inline-block;
	font-size: 16px;
}

.tb:focus{
	border: none;
	overflow: auto;
	outline: none;
}

::placeholder {
	color: #AAAAAA;
}

.db {
	display: flex;
	justify-content: flex-start;
	gap: 20px;
}

.db .dropbox{
	background-color: #3D3D3D;
	color: #FFFFFF;
	border: none;
	border-radius: 4px;
	display: inline-block;
	font-size: 16px;
}

.db .dropbox:hover {
	cursor:pointer;
	transition: 0s;
}

.button {
	background-color: #3D3D3D;
	border: none;
	text-align: center;
	text-decoration: none;
	color: #FFFFFF;
	display: inline-block;
	font-size: 16px;
	border-radius: 4px;
	padding: 5px;
	cursor:pointer;
	width: fit-content;
}

.button:active{
	cursor: pointer;
	background-color: #AAAAAA;
}

.error-message {
	color:#DC143C;
	font-size: 14px;
}

#results {
    background-color: #212121;
    border: 0.5px solid #3D3D3D;
    width: 560px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 5px;
}

#results-list {
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
	margin: 5px;
}

#results-list p {
	margin: 0;
}

.container {
	width: 45%;
	min-width: 768px;
	max-width: 850px;
	margin: 0 auto;
	overflow: auto;
	padding: 0 20px;
}

.flex {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	height: 100%;
}

.error-main .flex {
	justify-content: center;
	align-items: center;
	text-align: center;
}

.footer {
	display: flex;
	bottom: 0;
	width: 100%;
	height: 60px;
	text-align: center;
	justify-content:center;
   	align-items:center;
   	background-color: #181818;
}

/* Tablets and under */
@media only screen and (max-width: 768px) {
	#form {
		min-width: 100%;
	}
	
	.flex {
		width: 80%;
	}
	
	.main .flex {
		padding: 0 20px;
	}
	
	.container {
		width: 90%;
		min-width: 480px;
		padding: 0 10px;
	}
	
	.locations, .start-location {
    	flex-direction: column;
    	gap: 8px;
	}
	
	.db {
		flex-direction: column;
		gap: 0;
	}
	
	#results {
		min-width: 100%;
		width: auto;
	}
}

/* Mobile */
@media only screen and (max-width: 500px) {
	.flex {
		width: 95%;
	}

	.main .flex {
		padding: 0 20px;
	}
	
	.container {
		width: 95%;
		min-width: 320px;
		padding: 0 10px;
	}
}




