/* Styles for individual event history pages */

:root {
    --black: #272727;
    --dark: #825635;
    --light: #CA9451;
    --white: #faf9f0;
    --gray: gray;
    --silver: silver;
    --lh1: 1.4;
    /* main line height */
    --sm: 0.9rem /* smaller text */
}

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

.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);
}

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

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

.event-history .column:has(> .embed:only-child) { /* no border when there's only a youtube embed */
  border: none;
}

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

.event-history .block img{
  padding: 5px;
  max-width: 98%;
}

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

.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: 3px;
  margin-bottom: 5px;
  color: var(--white);
}

.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;
}

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

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

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

.event-history .column .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(--light);
}

.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;
}

/* Years & Titles */
.eh-year a, .eh-title a{
  background: var(--light);
  margin-left: 0;
  color: var(--white);
  font-weight: bold;
  border: 0;
  padding: 5px;
  display: block;
  text-align: center;
}

/* Year dividers */
li.eh-year{
   list-style: none;
}

li.eh-year a{
  background: var(--dark);
}

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

li.eh-year a:hover, .eh-title a:hover{
 text-decoration: underline;
}


/* 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{
  background: var(--black);
  text-align: center;
  color: silver;
  font-size: small;
  padding-top: 5px;
}

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

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


/* Details (also in individual event pages) */
.event-history .block details summary{
  text-align: center;
  background: var(--black);
  padding: 5px 5px 5px 5px;
  color: var(--silver);
  font-weight: bold;
  font-size: 0.98rem;
}

.event-history .block details[open]{
  border: 0;
}

/* 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);
}

#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; }
  }
}