h1 {
	font-weight: normal;
}


body {
	margin: 0;
	background-color: rgba(2, 2, 2, 1);
	font-family: sans-serif;
	color: white;
}

* {
        box-sizing: border-box;
	border-collapse: collapse;
}

#content {
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow-x: hidden;
}

#input, #error, #loading {
	display: flex;
	justify-content: center;
	align-items: center;
}

#error, #loading {
	flex-direction: column;
}
#error>* {
	margin: .3em;
}

#input {
	width: 100%;
	background: #222;
}
#input input#input-field {
	flex-grow: 1;
	width: 0; /* wtf? */
}

#input>* {
	margin: 1em 0;
	padding: 7px;
	background-color: #444;
	border: 1px solid #666;
	border-left: none;
	outline: none;
	font-family: sans-serif;
	color: white;
}

#input input[type="submit"] {
	cursor: pointer;
}
#input>*:first-child {
	padding-left: 1em;
	border-left: 1px solid #666;
	border-radius: 2em 0 0 2em;
}
#input>*:last-child {
	border-radius: 0 2em 2em 0;
}

#loading {
	margin: 15px 0;
}
.spinner {
	border-radius: 100%;
	border: 0.5vmin solid white;
	border-top: 0.5vmin solid transparent;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(90deg); }
	to { transform: rotate(450deg); }
}
.hidden {
	display: none !important;
}

.results {
	max-width: 100vw;
	overflow-x: auto;
}

.results table {
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
        max-width: 100vw;
	overflow-x: scroll;
        background-color: #fff;
	color: black;
}

.results tbody tr {
        border-top: 1px solid #ccc;
}

.results td, th {
        text-align: center;
        overflow: hidden;
}

.results th {
        padding: 5px 3px;
}

.results thead th {
        background-color: #eee;
}

.results table span {
	white-space: nowrap;
        padding: 5px 3px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-decoration: none;
        color: black;
	flex-wrap: wrap;
}
.results thead>tr {
        border-bottom: 2px solid #ccc;
}

.results tbody:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, .2);
}

.results tr {
        background-color: #fff;
}
.results tbody tr:hover {
        background-color: #ddd;
}
.results tbody tr.Selected {
	background-color: #ddffaa;
}
.results tbody tr.Selected:hover {
        background-color: #ccddaa;
}

.results tbody tr:hover td {
        background-color: transparent;
}

.tag {
	background-color: #444;
	color: white;
	margin: .1em .15em;
	padding: .1em .5em;
	border-radius: .6em;
}
.tag.named {
	background-color: #25c;
}

@media (min-width: 1000px) {
        .results td p {
                display: inline;
                margin-right: 5px;
        }

        .results th {
                padding: 10px 5px;
        }

        .results table a {
                padding: 10px 5px;
        }

	#input input#input-field {
		max-width: 500px;
	}
	.spinner {
		width: 10vmin;
		height: 10vmin;
	}

}

@media (max-width: 999px) {
	#input {
		padding: 0 2.5vw;
		flex-wrap: wrap;
	}
	#input>* {
		font-size: 3vmin;
	}
	.spinner {
		width: 20vmin;
		height: 20vmin;
	}
}

