/* BASIC RESET */
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
body,
html,
p,
blockquote,
fieldset,
input {
  margin: 0;
  padding: 0;
}

/* HTML ELEMENTS */
body {
  overflow: hidden;
  background-color: #000;
  color: #fff;
}

/* PICTURES */
#pictureSlider {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -999;
}

#pictureSlider div {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: -999;
}

/* NAVIGATION BOX */
#navigationBoxes {
  float: left;
}
a {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  border-bottom: 1px dotted transparent;
}
a:hover {
  opacity: 1;
  border-bottom: 1px dotted;
}
.navbox {
  width: 450px;
  max-height: 40%;
  overflow: auto;
  position: relative;
  left: 0px;
  opacity: 0.9;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2;
}
/* 108px so the next row is half-visible */
.numberButtonList {
  overflow: auto;
  max-height: 108px;
}
.navbox ul {
  list-style-type: none;
  display: block;
  margin: 0px;
  right: 10px;
  top: 10px;
  text-align: left;
}
.navbox ul li {
  display: inline-block;
  list-style-type: none;
}
.numberButton {
  float: left;

  min-width: 15px;
  margin-left: 5px;
  text-decoration: none;
  color: #eee;

  font:
    bold 12px Helvetica,
    Arial,
    Sans-serif;
  text-align: center;
  line-height: 18px;
  padding: 3px 5px;
}
.over18 {
  color: #f99;
}
.galleryCount {
  color: rgb(158, 217, 8);
}
.navbox ul li a {
  cursor: pointer;
}
#navboxAboutCreator {
  display: inline-block;
  min-width: 18px;
  text-align: center;
}
.numberButtonList ul li a:hover {
  background: #888;
  border: 0;
}
.numberButtonList ul li a.active {
  color: #00aaaa;
  -moz-box-shadow: 2px 2px 3px #eee;
  box-shadow: 2px 2px 3px #eee;
  /* For IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#EEEEEE')";
  /* For IE 5.5 - 7 */
  filter: progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#EEEEEE');
}

#controlsDiv {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
}
#titleDiv {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.navbox h2 {
  padding: 10px 20px 10px 10px;
  font:
    bold 20px Helvetica,
    Arial,
    Sans-serif;
}
.navbox h3 {
  padding: 0px 20px 10px 10px;
  font:
    bold 12px Helvetica,
    Arial,
    Sans-serif;
}
.navbox p {
  padding: 20px 20px 20px 20px;
  font-family:
    "Segoe UI", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue",
    Arial, Tahoma, Verdana, sans-serif;
  font-size: 13px;
  color: #111;
}
.navbox p.bottom {
  position: absolute;
  bottom: 5px;
  right: 5px;
}

.nbmenu {
  margin: 0 0 0 5px;
  width: 100%;
  font-family:
    "Segoe UI", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue",
    Arial, Tahoma, Verdana, sans-serif;
  font-size: 14px;
}

.nbmenu li {
  text-align: left;
  padding: 6px;
  max-width: 300px;
  overflow: hidden;
}

#navboxContents {
  padding: 10px 25px 10px 0;
  margin: 0;
}

label.checkbox {
  font-weight: bold;
}

.cam {
  background-image: url("../images/bg_cam_txt.png");
}
.key {
  background-image: url("../images/bg_key_txt.png");
}
.flowers {
  background-image: url("../images/bg_flowers_txt.png");
}

.collapser {
  border: solid 1px #555;
  font-size: 20px;
  color: #bbb;
  padding: 0 10px;
  float: right;
  cursor: hand;
  cursor: pointer;
}
.checkbox {
  cursor: hand;
  cursor: pointer;
}

.prevArrow {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 0;
  height: 0;

  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-right: 50px solid white;
  z-index: 2;
  opacity: 0.8;

  cursor: hand;
  cursor: pointer;
}

.nextArrow {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 0;
  height: 0;

  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 50px solid white;
  z-index: 2;
  opacity: 0.8;
  cursor: hand;
  cursor: pointer;
}

#fullScreenButton {
  width: 20px;
  padding-left: 10px;
  cursor: pointer;
}

#playButton {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.page-404 p {
  line-height: 2em;
}

#toast-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  padding: 10px 30px 10px 14px;
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  max-width: 320px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.toast-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
}

.toast:hover .toast-close {
  opacity: 1;
}

.toast.toast-info {
  background: #2a6496;
}
.toast.toast-warning {
  background: #8a5f00;
}
.toast.toast-error {
  background: #a02020;
}

.toast-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.toast.fade-out {
  opacity: 0;
}

.toast a {
  border-bottom: 1px dotted;
}

.toast a:hover {
  border-bottom: 1px solid;
}

.alternatives p {
  /* make a bit of space under each paragrah */
  margin-bottom: 1em;
}

.alternatives ul {
  margin-bottom: 1em;
}

.rip-link {
  background-color: rgba(250, 250, 250, 0.1);
  color: rgb(170, 170, 170);
  border-radius: 10px 10px 0 0;
  padding: 4px;
}

/* The listing was served from the bucket archive, not live reddit. */
.rip-link.from-archive {
  border: 1px solid #acacac;
}

/* A lasting empty state, independent of slideshow animations and toasts. */
#emptySlideshow[hidden] {
  display: none;
}

#emptySlideshow {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  pointer-events: none;
  overflow: auto;
  padding: 24px;
  text-align: center;
  color: #aaa;
  font:
    16px/1.5 Arial,
    sans-serif;
}

.memorial {
  margin: auto;
  max-width: 100%;
}

.tombstone {
  box-sizing: border-box;
  width: 190px;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 52px 16px 32px;
  border: 1px solid #555;
  border-bottom: 3px solid #555;
  border-radius: 95px 95px 2px 2px;
  background: #141414;
}

.tombstone h1 {
  margin-bottom: 8px;
  color: #ccc;
  font:
    normal 24px/1.3 Georgia,
    serif;
}

.tombstone p {
  font-size: 14px;
}

.memorial-message {
  margin-bottom: 8px;
}

.memorial-link {
  display: inline-block;
  pointer-events: auto;
  padding: 12px 0;
  color: #ccc;
  font-weight: normal;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.memorial-link:focus {
  outline: 2px solid #ccc;
  outline-offset: 4px;
}

/* MUTED-VIDEO PILL */
#soundPill {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: 1px solid #777;
  border-radius: 18px;
  padding: 8px 16px;
  font:
    bold 13px Helvetica,
    Arial,
    Sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

/* COMMENTS SIDEBAR */
#commentsToggle {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #777;
  color: #fff;
  font-size: 20px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
}

#commentsToggle:hover {
  opacity: 1;
}

#commentsPanel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.88);
  border-left: 1px solid #444;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

#commentsPanel[hidden] {
  display: none;
}

#commentsHead {
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid #444;
  display: flex;
  align-items: center;
}

#commentsMeta {
  flex: 1;
  font:
    bold 13px Helvetica,
    Arial,
    Sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#commentsClose {
  flex: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: #eee;
  font-size: 22px;
  cursor: pointer;
}

#commentsBody {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 16px;
}

.comment-row {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.comment-row.reply {
  padding-left: 34px;
  color: #ddd;
}

.comment-head {
  font-size: 11px;
  color: #9ab;
  margin-bottom: 3px;
}

.comment-score {
  color: #ff9a3c;
}

.comment-text {
  font-size: 13px;
  line-height: 1.45;
  word-wrap: break-word;
  /* Clamp long comments in the compact rows; full text stays on reddit. */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comment-empty {
  color: #999;
  font-size: 13px;
}

.comment-more {
  padding: 12px 14px;
  font-size: 12px;
  color: #9ab;
}

.comment-more a {
  border-bottom: 1px dotted;
}

@media (max-width: 700px) {
  #commentsPanel {
    width: 100%;
  }
  /* Keep the floating toggle clear of the slide arrows and page bottom. */
  #commentsToggle {
    right: 12px;
    bottom: 12px;
  }
}
