body {
	margin: 0;
	background-color: #000;
	color: #fff;
	font-family: Arial;
	font-size: clamp(14px, 15px, 16px);
	aa-line-height: 4px;
	overscroll-behavior: none;
}

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

a:hover {
	text-decoration: underline;
}

button {
	cursor: pointer;
	text-transform: uppercase;
}

#aaainfo {
	position: absolute;
	top: 0px;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	z-index: 1; /* TODO Solve this in HTML */
}

a, button, input, select {
	pointer-events: auto;
}

.lil-gui {
	z-index: 2 !important; /* TODO Solve this in HTML */
}

@media all and ( max-width: 640px ) {
	.lil-gui.root { 
		right: auto;
		top: auto;
		max-height: 50%;
		max-width: 80%;
		bottom: 0;
		left: 0;
	}
}

#overlay {
	position: absolute;
	font-size: 16px;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(0,0,0,0.7);
}

#overlay button {
    background: transparent;
    border: 0;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 4px;
    color: #ffffff;
    padding: 12px 18px;
    text-transform: uppercase;
    cursor: pointer;
}

#notSupported {
	width: 50%;
	margin: auto;
	background-color: #f00;
	margin-top: 20px;
	padding: 10px;
}


/*
 * menu stuff:
 *
 * https://www.w3schools.com/css/tryit.asp?filename=trycss_dropdown_button
 */

.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 2px;
  aa-font-size: 14px;
  font-size: clamp(1rem, 1rem, 0.5rem);
  border: none;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 60px;
  box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  font-size: clamp(1rem, 1rem, 0.5rem);
  aa-line-height: clamp(1.3rem, 1.3rem, 0.9rem);
  width: 90px;
  border: thin solid lightgrey;
  aa-background-color: #d9d9d9;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover { background-color: #e1e1e1; }

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #2e7e31;
}

/*
 * msg box:
 */

#ooomsgdiv {
    width: clamp(300px, 500px, 96vw);
}

#msg {
    font-family: Monospace;
    width: clamp(300px, 500px, 96vw);
    height:96px;
    overflow:auto;
    background:rgba(255,255,255, 0.85);
    line-height:0.95;
    scroll-snap-stop: always;
    transition: all 0.4s;
}

#msg:aaahover {
  height: 200px;
}

#msgbutton {
    font-size: 10px;
    position: fixed;
    right: 8px;
}

.msg_href {
  color: blue;
  font-weight: bold;
}

/*
 * top info box:
 */

#checkin {
  padding: 6px;
  background:rgba(255,255,255, 0.85);
}

#topinfo {
  padding: 4px;
  background:rgba(255,255,255, 0.85);
}

/*
 * trainlist div:
 */

#trainlist {
  padding: 4px;
  background:rgba(255,255,255, 0.82);
}

#townlist {
  padding: 4px;
  background:rgba(255,255,255, 0.82);
}

#townxtra {
  padding: 20px;
  background:rgba(255,255,255, 0.9);
  style='border: 2;
}

#ccdiv {
  background-color: #fff;
  color: #000;
  font-weight: bold;
  font-size: clamp(13px, 14px, 15px);
}
