/* cheek color: e0525d */

::selection {
  background: #ffd2d6;
  /* background: #e4f2ff; */
}
::-moz-selection {
  background: #e0525d;
  /* background: #e4f2ff; */
}
@media (max-width: 768px) {
  .row {
    flex-direction: column !important;
  }
  #waves {
    display: none !important;
  }
  header {
    display: none;
  }
  .col,
  [class^="col-"] {
    border: none !important;
  }
  /* Center contents of left column on small screens */
  #left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@font-face {
    font-family: 'Songti';
    src: url("../fonts/SourceHanSerifSC-Light.otf") format("opentype");
    font-weight: normal; 
    font-style: normal;  
  font-display: swap;
}

@font-face {
    font-family: 'Songti';
    src: url("../fonts/SourceHanSerifSC-Bold.otf") format("opentype");
    font-weight: bold; 
    font-style: normal;  
  font-display: swap;
}

@font-face {
    font-family: 'Helvetica';
  src: url("../fonts/Helvetica.ttf") format("truetype");
    font-weight: normal; 
    font-style: normal;  
  font-display: swap;
}

@font-face {
    font-family: 'Helvetica';
  src: url("../fonts/Helvetica-Oblique.ttf") format("truetype");
    font-weight: normal; 
    font-style: italic;  
  font-display: swap;
}


@font-face {
    font-family: 'Helvetica';
  src: url("../fonts/Helvetica-BoldOblique.ttf") format("truetype");
    font-weight: bold; 
    font-style: italic;  
  font-display: swap;
}

.circle {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem auto;
  perspective: 800px;
}
.circle img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.25s ease-in-out;
  opacity: 1;
}
.circle .front,
.circle .back {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.circle .front { z-index: 2; }
.circle .back  { z-index: 1; opacity: 0; }
/* Make profile images circular */
html, body {
  overflow-x: hidden;
}
body {
    background-color: rgb(252, 252, 252);
    font-size: 14px;
    position: relative;
}

a {
  color:#b02a35;
  /* color: #af3157 */
}
a:hover {
  font-style: normal;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1.2px;
  text-decoration-color: currentColor;
}

.highlighted {
    background: #ffd2d6;
}
.songti {
    font-family: 'Songti', serif;
}

.helvetica {
    font-family: 'Helvetica', 'Courier New', Courier, monospace;
}

.single-line {
    white-space: nowrap;    
    overflow: hidden;        
    text-overflow: hidden; 
}

.grey {
    color: grey;
}

.selected {
    pointer-events: none;
    text-decoration: none !important;
    cursor: default;
}

.btn-conf-filter  {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0rem 0.5rem;
  margin: 0.15rem 0.15rem 0.15rem 0;
  min-height: 1.3rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(0,0,0,0.12);
  background-color: #ffffff;
  color: #222222;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.08s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  cursor: pointer;
  width: auto; /* fit content */
  max-width: none;
  align-self: flex-start; /* avoid stretching in flex containers */
}
.btn-conf-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
.btn-conf-filter:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.btn-conf  {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0rem 0.45rem;
  min-height: 1.3rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px solid rgba(0,0,0,0.08);
  background-color: #ffffff;
  color: #222222;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
  width: auto; /* fit content */
  max-width: none;
  align-self: flex-start; /* avoid stretching in flex containers */
  transition: transform 0.08s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
#filter-all{
  border-radius: 1em;
  padding-left: 0.6em;
  padding-right: 0.6em;
}

.btn-conf-filter.selected {
  border: 1px solid rgba(0,0,0,0.08);
  background-color: #f1f5f9;
  color: #000000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) inset;
}


/* .btn-conf.cc {
  border: 1.5px solid #8a3b5a;
  background-color: #f9dee8;
  color: #6b1537;
  
} */

.btn-conf.hci {
  border: 1px solid rgba(147,130,0,0.12);
  background-color: #fff9e6;
  color: #7a6610;
}
.btn-conf-filter.hci {
  border: 1px solid rgba(147,130,0,0.12);
  background-color: #fff9e6;
  color: #7a6610;
}
.btn-conf.vis {
  border: 1px solid #b1c9e9;
  background-color: #e8eff7;
  color: #567eaf;
}
.btn-conf-filter.vis {
  border: 1px solid #b1c9e9;
  background-color: #e8eff7;
  color: #567eaf;
}
#filter-hci{
  border-radius: 1em;
  padding-left: 0.6em;
  padding-right: 0.6em;
}
.btn-conf-filter.hci.selected {
  background-color: #e2c000;
  color: #ffffff;
  border-color: rgba(0,0,0,0.06);
}


#filter-vis{
  border-radius: 1em;
  padding-left: 0.6em;
  padding-right: 0.6em;
}
.btn-conf-filter.vis.selected {
  background-color: #729aca;
  color: #ffffff;
}

.btn-conf-filter.nlp {
  border: 1px solid rgba(12,75,36,0.12);
  background-color: #f1fbf6;
  color: #0b5130;
}
.btn-conf.nlp {
  border: 1px solid rgba(12,75,36,0.12);
  background-color: #f1fbf6;
  color: #0b5130;
}
#filter-nlp{
  border-radius: 1em;
  padding-left: 0.6em;
  padding-right: 0.6em;
}
.btn-conf-filter.nlp.selected {
  background-color: #227e42;
  color: #ffffff;
}
.retro-btn {
  font-family: 'Songti', Courier, monospace;
  border: 2px solid #4d4d4d;
  background: #ffffff;
  color: #4d4d4d;
  box-shadow: 2px 2px 0 #888, 4px 4px 0 #bbb;
  border-radius: 0;
  padding: 4px 18px;
  text-shadow: 1px 1px 0 #fff;
  transition: box-shadow 0.1s, background 0.1s;
}
.retro-btn:active {
  background: #c0c0c0;
  box-shadow: 1px 1px 0 #888;
  font-style: italic;
}

.icon-img {
  height: 200px;
  max-width: 100%;
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
}

img:hover {
  cursor:pointer;
}

.apercu {
  font-family: 'Apercu Mono Pro', sans-serif;

}

/* Bibtex modal styles */
#bib-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
#bib-modal .bib-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
#bib-modal .bib-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; max-width: 90%; width: 720px; padding: 1rem; border-radius: 3px; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
#bib-modal .bib-close { position: absolute; right: 8px; top: 8px; background: transparent; border: none; font-size: 1.8rem; cursor: pointer; }
#bib-modal .bib-content { white-space: pre-wrap; max-height: 60vh; overflow: auto; font-family: monospace; font-size: 0.8rem; margin-top: 1.8rem; }

@media (max-width: 480px) {
  #bib-modal .bib-box { width: 94%; padding: 0.6rem; }
  #bib-modal .bib-close { font-size: 1.2rem; }
}

/* Ensure filter group doesn't force buttons to full width */
.mb-3 { display: flex; flex-wrap: wrap; align-items: center; }
.mb-3 .btn-conf { margin-right: 0.5rem; }

/* Sketchy circle hover: add class `circle-me` to any element */
.circle-me { position: relative; display: inline-block; }
.circle-overlay { position: absolute; pointer-events: none; z-index: 9999; }