/* taken from the original page at bfdi.tv/5b */
* {
	font-family: Helvetica, Arial, sans-serif;
	text-align: center;
	color:#666;
	margin:0;
	padding:0;
}
a{
	color: black;
	-webkit-transition: 0.5s ease;  
	-moz-transition: 0.5s ease;  
	-o-transition: 0.5s ease;  
	transition: 0.5s ease;
}
a:hover{
	color: #666;
	-webkit-transition: 0.2s ease;  
	-moz-transition: 0.2s ease;  
	-o-transition: 0.2s ease;  
	transition: 0.2s ease;
}
html{
	background-color:white;
	height:100%;
}
body{
	height:100%;
	width:960px;
	margin:0 auto 0 auto;
	min-height:600px;
	position:relative;
}
p{
	margin:0 0 0.7em;
}
#center{
	position:absolute;
	top:47%;
	margin-top:-255px;
}
/* https://stackoverflow.com/questions/2310734/how-to-make-html-text-unselectable */
.unselectable {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#hide-contenteditable {
	width: 960px;
	height: 540px;
	overflow: hidden;
	margin-bottom: 10px;
}

.crisp-edges {
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	-ms-interpolation-mode: nearest-neighbor;
}
/* usdifod */
/* Livesplit stuff: */
#livesplit-container {
	position: fixed;
	bottom: 0;
	left: 50%;
	/* top: 50px; */
	top: 0px;
	transform: translateX(-50%);
	height: 40px; /* reduced height */
	width: 960px;
	/* width: 100%; */
	background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
	border-bottom: 3px solid #c92b20;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 6px 12px; /* reduced padding */
	box-sizing: border-box;
	font-family: 'Courier New', monospace;
	color: #fff;
	z-index: 1000;
}
#livesplit-entries, .livesplit-entries {
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	height: 37px;
	display: flex;
	gap: 5px; /* smaller gap */
	padding-right: 12px;
}

/* Hide scrollbars while keeping horizontal scrolling functional */
#livesplit-entries::-webkit-scrollbar,
.livesplit-entries::-webkit-scrollbar {
    display: none;
}
#livesplit-entries,
.livesplit-entries {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.livesplit-entry {
	flex-shrink: 0;
	min-width: 140px; /* smaller entry width */
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid #555;
	border-radius: 3px;
	padding: 6px; /* reduced padding */
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.entry-name {
	font-size: 10px; /* scaled down */
	font-weight: bold;
	color: #aaa;
	margin-bottom: 2px;
}
.entry-times-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}
.entry-time {
	font-size: 12px; /* scaled down */
	font-weight: bold;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.entry-cumul-time {
	font-size: 9px; /* scaled down */
	color: #999;
	font-variant-numeric: tabular-nums;
	text-align: right;
}
.entry-delta {
	font-size: 10px;
	font-weight: bold;
	color: #999;
	font-variant-numeric: tabular-nums;
	text-align: center;
	min-width: 70px;
}
#livesplit-timer {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	min-width: 100px; /* reduced */
	padding-left: 10px;
	border-left: 1px solid #555;
}
#timer-label {
	font-size: 10px;
	color: #aaa;
	margin-bottom: 2px;
}
#timer-display {
	font-size: 18px; /* scaled down */
	font-weight: bold;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
#splitCategorySelect {
	vertical-align: bottom;
	align-self: center;
	font-size: 10px;
	color: #666;
	font-weight: bold;
}

/* broken for some reason */
.speedrun-btn {
	height: 40px;
	width: 90px;
	font-weight: bold;
	font-size: 14px;
	border-width: 2px;
	margin-right: 5px;
	border-radius: 5px;
}

.tick-label {
	width: 12px;
	font-size: 12px;
	font-weight: bold;

}
#reload-text {
	font-size: 30px;
	font-weight: bold;
	color: #888888;
	display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    height: 75vh;           /* Sets the container height to the full viewport height */
    width: 100%;
}

/* History module overlay */
#history-module-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}
#history-module-overlay.open {
	display: flex;
}
#history-module-popup {
	background: #eaeaea;
	padding: 10px 12px 12px;
	width: 750px;
	max-width: 96vw;
	height: 540px;
	max-height: 96vh;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}
#history-module-title {
	font-size: 20px;
	font-weight: bold;
	color: #000;
	text-align: left;
	margin-bottom: 8px;
}
#history-module-textarea {
	flex: 1;
	resize: none;
	font-family: monospace;
	font-size: 12px;
	color: #000;
	background: #fff;
	border: 1px solid #a0a0a0;
	padding: 5px;
	text-align: left;
	box-sizing: border-box;
}
#history-module-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}
#history-module-close {
	font-size: 15px;
	font-weight: bold;
	padding: 5px 18px;
	cursor: pointer;
	background: #fff;
	border: 1.5px solid #a0a0a0;
	color: #333;
	border-radius: 3px;
}
#history-module-close:hover {
	background: #e0e0e0;
}
#history-module-convert {
	font-size: 15px;
	font-weight: bold;
	padding: 5px 18px;
	cursor: pointer;
	background: #fff;
	border: 1.5px solid #a0a0a0;
	color: #333;
	border-radius: 3px;
}
#history-module-convert:hover {
	background: #e0e0e0;
}