html {
	border: none;
	border-radius: 10px;
	width: auto;
}

body {
	/* margin-left: 10%; */
	color: black;
	background-color: white;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji',
		'Segoe UI Symbol', sans-serif;
	font-size: small;
	/* width: 500px; */
	height: auto;
	padding: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.backbutton {
	display: flex;
	align-self: start;
	margin-bottom: 10px;
}

.reddit-logo {
	margin: 10px 0 20px 0;
}

div#version-div {
	font-size: x-small;
}

.instructions {
	color: #ff4500;
	font-weight: bold;
	text-decoration: underline;
	cursor: pointer;
	margin-bottom: 10px;
}

.instructions:hover {
	color: #ff6933;
}

.instructions-container {
	background-color: #ffece6;
	color: black;
	padding: 5px;
	margin-bottom: 10px;
	text-align: left;
}

.auth-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.choice-container {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 5px;
}

.auth-container {
	display: flex;
	flex-direction: column;
}

.user-auth-container {
	display: none;
}

div#title-search {
	margin-top: 1em;
	font-weight: bold;
}

button.reddit-scraper,
select.reddit-scraper {
	color: #ff4500;
	border: solid 1px #ff4500;
	background-color: white;
	height: 32px;
	width: 100px;
	border-radius: 4px;
	cursor: pointer;
	margin: 5px;
	text-align: center;
}

button.paste-btn {
	width: auto;
}

button.reddit-scraper:disabled,
select.reddit-scraper:disabled,
input.reddit-scraper:disabled {
	color: lightgray;
	border-color: lightgray;
	background-color: rgb(242, 242, 242, 0.5);
	cursor: auto;
}

select#time-range,
select#sort-by,
select#type {
	width: 120px;
}

select#search-mode {
	width: auto;
}

div#expert-instructions {
	width: 300px !important;
	display: inline-block;
	margin-top: 5px;
	color: #ff4500;
	font-size: small;
	width: 95%;
}

select#output-format {
	width: 107px;
}

label.reddit-scraper {
	width: 72px;
	text-align: right;
	display: inline-block;
}

button#abort-btn {
	color: #e60000;
	border-color: #e60000;
	display: none;
}

button#abort-btn:hover {
	border-color: #ff8080;
	background-color: #ffe6e6;
}

button#reset-auth {
	width: auto;
	color: #e60000;
	border-color: #e60000;
	margin: 5px;
}

button#reset-auth:hover {
	border-color: #ff8080;
	background-color: #ffe6e6;
}

button#extract-btn,
button#abort-btn,
button#dl-btn,
button#reset-btn,
button#get-code-btn,
button#auth-btn {
	margin: 5px auto;
}

button#dl-btn {
	width: auto;
}

button.reddit-scraper:hover,
select.reddit-scraper:hover {
	background-color: #ffece6;
}

button.reddit-scraper:disabled:hover,
select.reddit-scraper:disabled:hover {
	background-color: rgb(242, 242, 242, 0.5);
}

.reddit-spinner {
	border: 2px solid #ffece6;
	border-left: 2px solid #ff4500;
	border-radius: 50%;
	width: 12px;
	height: 12px;
	animation: spin 1s linear infinite;
	display: inline-block;
	vertical-align: middle;
	margin: 5px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

div.fold {
	width: 500px;
	text-align: left;
	padding-top: 5px;
	padding-left: 1em;
	padding-right: 1em;
	height: 2em;
	background-color: #ffece6;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	margin: auto;
}

div.fold {
	margin-bottom: 1em;
}

div#auth-fold::after,
div#search-fold::after {
	content: '—';
	float: right;
}

div#auth-unfold::after,
div#search-unfold::after {
	content: '+';
	float: right;
}

div#auth-wrapper {
	border: 1px solid #ff4500;
	border-radius: 4px;
	margin: 1em auto 1em;
	padding: 1em;
	width: 500px;
}

div#all-done {
	color: #006600;
	font-weight: bold;
	margin: 5px;
}

button#reset-auth {
	margin-top: 10px;
}

label {
	display: inline-block;
}

input.reddit-scraper {
	height: 32px;
	width: 300px;
	padding-left: 5px;
	border-radius: 4px;
	margin: 5px;
	border: solid 1px #ff4500;
	display: inline-block;
}

input.reddit-scraper:focus-visible {
	outline: solid 2px #ff4500;
}

div#queryurl {
	padding-left: 2.5%;
	width: 95%;
	overflow-wrap: break-word;
}

input#token-input {
	display: inline-block;
}

input#max-results {
	width: 98px;
}

.extract-options {
	width: 140px !important;
}

div#notice {
	width: 512px;
	color: #e66300;
	border: 2px solid #e66300;
	border-radius: 4px;
	background-color: #fff099;
	padding: 5px;
	display: block;
	position: absolute;
	bottom: 5%;
}

a {
	color: black;
	font-weight: bold;
}

a:hover {
	color: gray;
}

a.notice {
	color: inherit;
	font-weight: bold;
}

p#dismiss {
	font-weight: bold;
	text-decoration: underline;
	cursor: pointer;
}

div#expert-search {
	border-radius: 4px;
	background-color: rgba(255, 236, 230, 0.5);
	width: 329px;
	margin-left: 85.5px;
	margin-top: 5px;
}

dialog {
	width: 50%;
	height: 80vh;
	border: none;
	border-radius: 5px;
	box-shadow: 0 0 10px 0 #aaa;
}

dialog div.close-btn {
	position: absolute;
	top: 5px;
	right: 10px;
	cursor: pointer;
}

dialog div#dl-container {
	height: 90%;
}

dialog div#keys-container {
	height: 90%;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: #eee;
	margin: 10px 0;
	overflow-y: scroll;
	text-align: left;
}

dialog label {
	display: inline-block;
}

dialog span.arrow {
	cursor: pointer;
	margin-left: 0.5rem;
	font-size: x-small;
	color: #ff4500;
}

dialog div.nested-container {
	overflow: hidden;
	transition: height 0.3s ease;
}

.dl-ui {
	width: auto;
	height: 30px;
	padding: 5px;
	border: solid 1px #ff4500;
	background-color: white;
	border-radius: 5px;
	font-size: medium;
	font-weight: normal;
	color: #ff4500;
	display: inline-block;
	vertical-align: middle;
}

button.dl-ui {
	width: 85px;
	text-align: center;
	cursor: pointer;
}

.dl-ui:hover {
	background-color: rgba(255, 69, 0, 0.1);
}

.citation {
	font-size: small;
	text-align: left;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji',
		'Segoe UI Symbol', sans-serif;
}

.bibtex-dl {
	text-decoration: underline;
	cursor: pointer;
}

.footer {
	position: fixed;
	bottom: 5px;
	right: 20px;
	display: flex;
	flex-direction: column;
	text-align: left;
	font-size: x-small;
	color: #67757e;
	width: fit-content;
}

.sign {
	margin: 0px;
}

div.footer div a img {
	width: 95px;
}
