/* Styles for individual event history pages */

/* undo some main site styles */
.event-history h3 a, a.eh-title{
    text-decoration: none;
}

.event-history .eh-year a{
    color: var(--light);
}

.event-history .eh-year{
    margin-bottom: 10px;
}

.event-history ul{
    list-style: none;
}

.event-history details[open]{
    background: none;
}

.event-history li p{
display: block;
}
.event-history strong{
    color: var(--light);
}

.event-history .custom_awards .header, .event-history .perm_awards .header, .column > .header{
  border-radius: 7px 7px 0 0;
}

.event-history .participants .table table th, .event-history .participants .table table thead, .event-history .participants .table table{
  border: 0;
}

/* done undoing main styles */

/* page title */
.event-history > h1:first-of-type{
  background: var(--dark);
  padding: 10px;
  padding-bottom: 15px;
  margin-bottom: 50px;
  color: var(--ivory);
  text-align: center;
}

/* "#" markdown in a block */
.event-history .block h1{
  font-size: 1rem;
  margin: 0;
  background: var(--dark);
  color: var(--white);
  padding: 2px;
}
.event-history h1 .anchor {
  display: none;
}

/* Start columns */
.event-history .columns{
  display: flex;
  width: 98%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: flex-start;
  column-gap:5%;
  color: var(--silver);
  flex-wrap: wrap;
  row-gap: 1rem;
}

.event-history .column{
  max-width: 49%;
  text-align: center;
  border: 1px solid var(--dark);
  height: auto;
}

.event-history .column:has(.embed){ /* so youtube doesn't look awful on mobile */
  min-width: 520px;
}

.event-history .column:not(:has(*)){ /* empty column */
  display: none;
}

.event-history .column:last-of-type{
  align-self: baseline;
}

.event-history .ytdesc{ /* youtube description */
  contain: inline-size;
  text-align: left;
}
.event-history .ytdesc details{
  padding: 0;
}

.event-history .block{
  padding: 10px;
}

.event-history .block img{
  padding: 5px;
  max-width: 98%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.event-history .column .block strong{ /* bold inside markdown */
  color: inherit;
}

/* dates when additional dates are given */
/* header */
.event-history .column .block.dates > .header:has(+ span + span){
  border-radius: 7px 7px 0 0;
}
/* first span (always present) */
.event-history .column .block.dates > .header + span:has(+ span) {
  border-radius: 0 0 7px 7px;
}
/* additional dates */
.event-history .column .block.dates > span:first-of-type:has(+ span) {
  background: var(--black);
  display: block;
  margin-bottom: 5px;
  margin-top: -5px;
  padding: 5px;
}

/* the additional dates (only when there's more than one line) */
.event-history .column .block.dates span:last-child:has(br){
  text-align: left;
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.block p + a.download { /* download link */
  margin-top: -12px;
  display: block;
}

.event-history .block.event_notes, .block.participants { 
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
}

.event-history .block.participants .table .dataTables_wrapper{
  border: 0;
  margin-top: 0;
  padding-top: 20px;
}

.event-history .column .block .table{
  border: 0;
}


.event-history .header{
  background: var(--dark);
  font-weight: bold;
  text-align: center;
  padding: 5px 10px 5px 10px;
  margin-bottom: 5px;
  color: var(--ivory);
}

.event-history .embed{
  width: 500px;
  margin-right: auto;
  margin-left: auto;
}


/* RICE umami */
.event-history .umami{
  font-weight: bold;
  margin-bottom: -10px;
  color: var(--silver);
  font-size: 1.3rem;
}
/* event stats totals */
.event-history .block dl{
  margin: 0;
  padding: 0;
}

.event-history .block dl div{
  display: inline-block;
  margin-left: 10px;
  margin-right: 10px;
}

.event-history .block dt{
  font-size: 1rem; 
}

.event-history .block dd{
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0;
  line-height: 1.1;
}

/* Lists */
.event-history .block li{
  list-style: inside;
  padding: 5px;
}

.event-history .block ul li{
   list-style-type: disc;
}

.event-history .block ol li{
   list-style-type: unset;
}

.event-history .block li::marker{
  color: var(--light);
  font-weight: bold;
}

.event-history .column .block li:nth-child(even){
  background: var(--black);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* RICE award columns */
.event-history .column .column {
  border: 0;
}

.event-history .column .column .block table{
  border: 1px solid var(--dark);
  margin-top: -5px;
}


/* Sticky table headers */
.event-history .dataTables_wrapper table.dataTable thead{
    position: sticky;
    top: 0;
    z-index: 2;
    background: black;
    box-shadow: inset 0 -1px 0 var(--dark);
}

.event-history .dataTables_wrapper table.dataTable thead th{
  padding: 5px;
}

/* sticky theme headers (Shabu, Iron Remix) */
.event-history .block.participants .header:has(+ details) {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 30px;
}

/* have table header stick under theme header */
.event-history .block.participants details .participants .table .dataTables_wrapper table.dataTable thead{
  top: 30px;
}

/* keep table headers sticky when using shortcode */
.content:has(.dataTables_wrapper) {
  overflow: visible;
  display: flow-root;
}

/* Overall Event History Page */

#eh-list{
  width: 100%;
  margin: 0;
  padding: 0;
}



/* title headers on list */
.eh-title{
  background: var(--dark);
  margin-left: 0;
  color: var(--white);
  font-weight: bold;
  border: 0;
  padding: 2px;
  text-align: center;
}

/* Year dividers */
li.eh-year{
   list-style: none;
   border-bottom: 1px solid var(--light);
  text-align: center;
}

li.eh-year a{
border-bottom: 0;
}
li.eh-year a:hover{
  color: var(--light);
}

li.eh-year a.anchor{ /* the anchor link symbol */
display: none;
}

li.eh-year a:hover, .eh-title a:hover{
 text-decoration: underline;
  border-bottom: 0;
  color: unset;
}


/* only for years on embedded pages (when using shortcode) */
a.eh-year-link-off {
  pointer-events: none;
  cursor: default;
}

a.eh-year-link-off:hover {
  pointer-events: none;
  cursor: default;
  background: unset;
}

/* subtitles */
.event-history .subtitle{
  text-align: center;
  font-size: small;
  padding-top: 5px;
  margin-bottom: -10px;
}

/* Search filters */
.eh-filters {
  color: black;
  padding: 20px 10px;
  text-align: center; 
}

.eh-filters input, .eh-filters select{
  border: 0;
  padding: 5px;
  margin: 5px;
}

/* event history page title */
h1#event-history{
  margin-bottom: 0;
}


/* event history page items */
.event-history .block details summary{
  text-align: center;
  padding: 5px 5px 5px 5px;
  color: var(--silver);
  font-weight: bold;
  font-size: 0.98rem;
  margin: 0;
}

.event-history .eh-item details{
  padding: 0;
  margin: 0;
  margin-top: 10px;
}
.event-history .eh-item{
  background: var(--black);
  margin-bottom: 20px;
  width: 98%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.event-history .eh-item .eh-title{
  margin-top: 0;
  width: 100%;
  display: block;
  color: var(--ivory);
  border-radius: 7px 7px 0 0;
}

.event-history .eh-item details[open]{
  background: black;
  margin-left: auto;
  margin-right: auto;
}

.event-history .eh-item:has(.participants){
  padding-bottom: 30px;
}

.event-history .eh-item details[open] summary{
  background: var(--black);
  border-radius: 0;
  margin-bottom: 15px;
}

/* back to top button */
#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  border-radius: 7px;
  color: var(--gray);
  font-size: 2rem;
  font-weight: bold;
  padding-top: 5px;
  border: 0;
  z-index: 1000;
  border: 2px solid var(--black);
  text-decoration: none;
}

#back-to-top:hover{
  background: var(--black);
  color: var(--white);
}

/* Optional: fade in after scrolling, in browsers that support scroll-driven animations. */
@supports (animation-timeline: scroll()) {
  #back-to-top {
    opacity: 0;
    pointer-events: none;
    animation: btt-show linear forwards;
    animation-timeline: scroll(root);
    animation-range: 300px 400px;
  }
  @keyframes btt-show {
    to { opacity: .85; pointer-events: auto; }
  }
}
