.is--hidden {
  display: none !important;
}

.nospace {
  margin: 0;
}

.spacing--big {
  margin: 32px 0;
}

.spacing--large {
  margin: 64px 0;
}

.headline,
.subline {
  font-family: 'Lora';
  font-weight: bold;
  font-size: 76px;
  text-transform: uppercase;
  background-image: linear-gradient(#fff 0%, #fff8ee 10%, #F3D9BD 80%);
  filter: drop-shadow(0 2px 4px rgb(0, 0, 0));
  background-size: 100%;
  -webkit-text-fill-color: transparent; 
  -moz-text-fill-color: transparent;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  margin: 0;
}

p.hint {
  font-family: Handlee;
  font-size: 16px;
  color: #a57554;
  opacity: 0.6;
}

.headline .headline--smaller {
  font-size: 60px;
}

#timeline {
  font-size: 30px;
  display: inline-block;
  margin: 58px 0 0 0;
  transition: transform 0.3s ease-out;
}

#timeline span {
  transition: all 0.3s ease-out;
}

#tooltip {
  color: #F3D9BD;
  opacity: 0.7;
  font-family: 'Lora';
  font-size: 19px;
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}
#tooltip::first-letter {
  text-transform: uppercase;
}

#tooltip .cursed {
  font-weight: bold;
  text-shadow: 0 0 5px #f00, 0 0 2px #f00;
}

.all-caps {
  text-transform: capitalize;
}

.subline .highlight {
  transform: scale(1.5);
  display: inline-block;
  margin: 0 35px;
  -webkit-text-fill-color: transparent; 
  -moz-text-fill-color: transparent;
  -webkit-background-clip: text;
  -moz-background-clip: text;
}

.subline .highlight.morning {
  background-image: linear-gradient(#f1f4ff 0%, #bbe1ff 10%, #9bd4ff 80%); 
}
.subline .highlight.midday {
  background-image: linear-gradient(#fffff3 0%, #fffeb3 10%, #ffed59 80%); 
}
.subline .highlight.evening {
  background-image: linear-gradient(#fee 0%, #ffd6ee 10%, #ffb2e1 80%); 
}
.subline .highlight.night {
  background-image: linear-gradient(#adecff 0%, #23677b 15%, #070c2c 80%);
  filter: drop-shadow(0 3px 8px rgba(255, 255, 255, 0.85));
  font-weight: 700;
  transform: scale(1.6);
}

.has--tooltip:before {
  content: attr(data-tooltip-text); /* here's the magic */
  position: absolute;
  pointer-events: none;
  /* vertically center */
  left: 50%;
  transform: translateX(-50%);
  /* move to right */
  bottom: 100%;
  margin-bottom: 15px; /* and add a small left margin */
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
  /* basic styles */
  width: 200px;
  padding: 10px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: normal;
  opacity: 0;
  transition: .3s opacity;
}

.has--tooltip:after {
  content: "";
  position: absolute;
  pointer-events: none;
  /* position tooltip correctly */
  bottom: 100%;
  margin-bottom: -4px;
  /* vertically center */
  left: 50%;
  transform: translateX(-50%);
  /* the arrow */
  border: 10px solid #000;
  border-color: black transparent transparent transparent;
  opacity: 0;
  transition: .3s;
}
.has--tooltip:hover:before, .has--tooltip:hover:after {
  opacity: 1;
}
.button--smallest.has--tooltip::before {
  font-size: 16px;
}

*[data-help]::before {
  content: attr(data-help);
  box-sizing: border-box;
  filter: none;
  position: absolute;
  pointer-events: none;
  background-image: url(../img/ui/help-small-right.png);
  background-repeat: no-repeat;
  left: 100%;
  /* move to right */
  top: 50%;
  margin-left: 10px; /* and add a small left margin */
  margin-top: -53px;
  width: 303px;
  height: 105px;
  padding: 15px 20px 15px 40px;
  color: #a57554;
  font-size: 16px;
  -webkit-text-fill-color: initial;
  text-transform: initial;
  font-family: Lora;
  text-align: center;
  font-weight: normal;
  display: flex;
  align-items: center;
  animation: back-forth 0.5s infinite alternate ease-in-out;
}

.help--left::before {
  background-image: url(../img/ui/help-small-left.png);
  padding: 15px 44px 15px 20px;
  left: initial;
  right: 100%;
  width: 233px;
  margin-right: 10px;
}

@keyframes back-forth {
  0% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(5px);
  }
}

#story-canvas {
  width: 597px;
  height: 750px;
  position: absolute;
  left: 50%;
  top: 18%;
  background-image: url(../img/ui/story-paper.png);
  transform: translateX(-50%);
  transition: transform 0.2s ease-out;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
}
#story-canvas::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url(../img/ui/story-paper-cover.png);
}
#story-canvas-back {
  position: absolute;
  width: 597px;
  height: 750px;
  left: 50%;
  top: 20%;
  pointer-events: none;
  background-image: url(../img/ui/story-paper.png);
  transform: translateX(-50%) rotate(4deg);
  transition: transform 0.2s ease-out;
  border-radius: 20px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 1);
  filter: brightness(0.9);
}

#story-canvas .inner-canvas {
  top: 35px;
  bottom: 35px;
  left: 25px;
  right: 30px;
  padding: 0 20px;
  position: absolute;
  overflow-y: scroll;
  scrollbar-color: rgba(165, 117, 84, 0.2) rgba(165, 117, 84, 0.2);
  scrollbar-width: thin;
  transition: scroll-top 0.5s ease-out;
}

#daytime-activities {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#daytime-activities p {
  margin: 46px 0;
}
#daytime-activities .button {
  min-width: 460px;
}
p {
  color: #a57554;
  font-family: Lora;
  font-weight: 400;
  font-size: 20px;
}
small {
  color: #a57554;
  font-family: Lora;
  font-size: 16px;
}
h3 {
  color: #896146;
  font-family: Lora;
  font-weight: 500;
  font-size: 26px;
}
p.border {
  line-height: 0;
}
.cite {
  background-color: rgba(165, 117, 84, 0.2);
  padding: 15px 20px;
  border-radius: 15px;
}

.gold {
  display: inline-block;
  width: 21px;
  height: 25px;
  background-image: url(../img/ui/coin.png);
  background-repeat: no-repeat;
  background-position: center 2px;
  background-size: contain;
  vertical-align: top;
}

.button .gold {
  width: 28px;
  height: 32px;
  background-position-y: 4px;
}

.button.button--smallest .gold {
  width: 15px;
  height: 20px;
}

#affection,
#reputation {
  position: absolute;
  z-index: 101;
  left: 70px;
  width: 180px;
  pointer-events: none;
  transition: transform 0.3s ease-out;
}
#affection img.cover,
#reputation img.cover {
  width: auto;
  height: auto;
  position: relative;
  z-index: 4;
  top: 0;
  left: 0;
}
#affection img.meter-back,
#reputation img.meter-back {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 168px;
  width: 185px;
  height: auto;
}

#affection {
  left: 320px;
}
#affection img.cover {
  
}

#affection .meter,
#reputation .meter {
  position: absolute;
  z-index: 2;
  left: 13px;
  top: 77px;
  width: 185px;
  height: 185px;
  border-radius: 50%;
}
#reputation .meter {
  background: conic-gradient(from 90deg, rgba(41, 27, 39, 0.8) 0% 50%, transparent 50% 100%); /* alles durch 2 */
}
#affection .meter {
  background: conic-gradient(from 90deg, rgba(41, 27, 39, 0.8) 0% 50%, transparent 50% 100%); /* alles durch 2 */
}
