/* Custom CSS */

@media (prefers-color-scheme: dark) {
  /* Styles for dark mode */
  body {
    background-color: #fff;
    color: #A8A8A8;
  }

  /* Override styles that may cause issues in dark mode */
  .card-body {
    background-color: #fff;
    color: #000;
  }

  .dark table>tbody>tr:nth-of-type(odd)>td {
    background-color: #676767;
    color: #fff;
  }
	
	.dark table>tbody>tr:nth-of-type(even)>td {
    background-color: #fff;
    color: #676767;
  }
	
	.dark .page-footer {
		background-color: #676767;
	}

	.dark .fa-li {
		color: #676767;
	}

	.dark h5.card-title {
		color: #000;
	}
	
	/* Table background, text color, etc. */
	.table-awards {
    background-color: #a8a8a8;
    color: #dbd7d2;
  }

  .table-awards td, .table-awards th {
    border-color: #dee2e6;
  }
	
	.table-awards tr:nth-child(even) [class^="category-"] {
		background-color: #a0a0a0 !important;
		color: #fff !important;
	}

	.table-awards tr:nth-child(odd) [class^="category-"] {
		background-color: #868686 !important;
		color: #fff !important;
	}
}

/* Scroll Top */
.scroll-top li a {
	display: none; /* hide button by default */
  position: fixed;
  bottom: 0px;
	width: 70px;
  right: 5%;
  z-index: 99;
  font-size: 1.4rem;
	text-align: center;
  border: none;
  outline: none;
  background-color: #555;
  cursor: pointer;
  padding: 15px;
}

.scroll-top i {
	color: white;
	font-weight: bold;
}

.scroll-top li a:hover {
	background: #aa1523;
}

.scroll-top a:link, .scroll-top a:visited {
	background: #be1e2d;
}

.section-heading h1{
	font-weight: 700;
}

.hero-title {
	font-weight: 900;
}

.mainline {
	font-family: Raleway, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1.6rem;
	margin-top: 30px;
}

.subline {
	font-family: Handlee, Helvetica, sans-serif;
	font-weight: 500;
	font-size: 1.375rem;
	line-height: 1.3rem;
	margin-top: 30px;
}

@media(max-width:767.98px){
	#profile {
		text-align: center;
		padding: 10px 10px 60px 10px;
	}
}

table.importantdate {
	font-size: 0.98rem;
	line-height: 1.25rem;
}

table.importantdate tr:nth-child(even) {
	background-color: #f2f2f2;
}

table.importantdate ul {
	list-style-type: lower-roman;
	padding-left: 1rem;
}

@media(max-width:1159.98px) {
	table.importantdate ul {
		margin: 0 1rem;
		padding-left: 0.2rem;
	}
}

table.importantdate td:first-child {
	width: 12rem;
	text-align: right;
}

table.importantdate tr:first-child td {
  border-top: none;
}

@media(max-width:580.98px) {
	table.importantdate td:first-child {
		width: 10rem;
	}
}

.page-footer {
	background-color: #f0eeed;
}

.card-header {
	background-color: #c6c6c6;
	color: #fff;
	display: flex;
  align-items: center;
}

.card-group {
  display: flex;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  margin: 15px;
  display: flex;
  flex-direction: column;
}

dl {
  border: 1px solid #ccc;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 20px;
}

dt {
  background-color: #f2f2f2;
  color: #333;
  font-weight: bold;
  padding: 10px 15px;
}

dd {
  padding: 2px 15px;
	line-height: 1.2rem;
}

.extended {
	text-decoration: line-through;
	color:#9f9f9f;
}

.highlight {
	font-weight: bold;
}

.highlight-udl {
	text-decoration: underline;
	font-weight: bold;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.padded {
	margin: 1.75em 0 !important;
}

.padded-mid {
	margin: 0.5em !important;
}

pre {
	font-size: 0.85rem;
	color: #dc143c;
	display: block;
	background-color: #fff;
	opacity: 1.0;
	filter: alpha(opacity=100);
	-moz-opacity: 1.0;
	-khtml-opacity: 1.0;
	line-height: 1.45em;
	white-space: pre-wrap;
	white-space: -moz-pre-wrap;
	white-space: -pre-wrap;
	white-space: -o-pre-wrap /* Opera 7 */;
}

span > pre {
	font-size: 0.7rem;
	color: #dc143c;
	white-space: pre-wrap;
	white-space: -moz-pre-wrap;
	white-space: -pre-wrap;
	white-space: -o-pre-wrap /* Opera 7 */;
	margin-bottom: -25px;
	top: -20px;
}

.submit-text {
  display: inline-block;
}

.text-disabled {
  pointer-events: none;
  text-decoration: none;
	color: #c0c0c0;
	position: relative;
}

.text-disabled a {
	color: inherit;
}

.text-underline {
	text-decoration: underline;
	/*text-decoration-skip-ink: none;*/
}

.image-container {
  float: left;
  margin-right: 10px;
}

.newitem {
  width: 60px;
}

.submit-text {
  display: inline;
}

.url {
  word-break: break-all;
  display: inline;
}

@media (min-width: 459px) {
  .url {
    display: block;
    margin-left: 70px;
  }

  .url a {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

img.downloadPDF {
	width: 36px; 
	margin-left: 10px;
	display: inline;
	border-radius: 5px;
}

a {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.btn-group {
	width: 100%;
}

.btn-group .btn {
	background-color: #f1f1f1;
	color: #666;
	border: 1px solid #ccc;
	border-bottom: none;
}

.btn-group .btn:first-child {
  border-bottom-left-radius: 0;
}
.btn-group .btn:last-child {
  border-bottom-right-radius: 0;
}

.btn-group .btn:focus {
	outline: none !important;
	box-shadow: none !important;
}

.btn-group .btn.active {
	background-color: #007bff;
	color: #fff;
	font-weight: bold;
}

#content-area {
  border: 1px solid #ccc;
  padding: 15px;
	border-radius: 0 0 8px 8px;
}

.content-pane {
  display: none;
}

/* Initialize counter */
.list-group-numbered {
  counter-reset: list-counter;
}

/* Increment counter for each list-group-item */
.list-group-numbered > .list-group-item:before {
  content: counter(list-counter) ". ";
  counter-increment: list-counter;
  padding-right: 0.5em;
}

/* Exclude header items from counter */
.list-group-numbered > .list-group-item.header:before {
  content: "";
  counter-increment: none;
}

.list-group-item {
	line-height: 1.25;
}

.list-group-item.header {
  font-size: 1em;
	font-weight: bold;
}

.list-group-item span.authorName {
  font-weight: bold;
  font-size: 0.9em;
	color: #666;
	margin-top: 12px;
	margin-bottom: 5px;
	display: inline-block;
}

.list-group-item .title {
  font-style: italic;
	font-size: 0.9em;
}

.list-group-item .venue {
  font-size: 0.8em;
	color: #4b0082;
}

.alert {
	font-size: 0.8em;
}

/* Table shared styling for all categories */
.table-awards [class^="category-"] {
  text-align: center;
  vertical-align: middle;
	font-weight: bold;
}

/* Table unique background colors */
.table-awards .category-re  { background-color: #fde49b; }
.table-awards .category-ar  { background-color: #b5e3e8; }
.table-awards .category-geo { background-color: #8ed7dd; }
.table-awards .category-la  { background-color: #ffe1cc; }
.table-awards .category-qs  { background-color: #fea767; }
.table-awards .category-urp { background-color: #d1f1da; }

/* Table adding border to last row, not including the first column */
.table-awards tbody tr:last-child td:not([rowspan]) {
  border-bottom: 1px solid #dee2e6;
}

/* Table ensure author names break and wrap to the next line */
.table-awards td:nth-child(2) {
  word-break: break-word;
  overflow-wrap: break-word;
}
	
@media (max-width: 991.98px) {
  .table-awards td:nth-child(2) {
    min-width: 80px;  /* Adjust for smaller screens */
  }
}

@media (min-width: 991.98px) {
  .table-awards td:nth-child(2) {
    min-width: auto;  /* Adjust for larger screens */
  }
}

#proceedings div p a span {
	font-weight: bold;
	font-size: 0.9em;
	margin: 0 10px;
}