:root {
  --bkg: #fffacd;
  --highlight: #fbeba0;
  --dark: #978644;
}

.ui-hidden {
  display: none;
}

.note-container {
  position: fixed;
  inset: 0;
  /*font-family: sans-serif;*/
  pointer-events: none;
  cursor: default;
}

.note-layer {
  position: absolute;
  inset: 0;
  margin: 0 auto;
}

.note-area {
  position: relative;
  top: 0;
  padding: 5px;
  background-color: var(--bkg);
  margin: 5px;
  border-radius: 20px;
  transition: top 0.25s;
  pointer-events: auto;
  overflow: hidden;
}

.note-area.shrink {
  width: fit-content;
  max-width: 100vw;
  transition: max-width 0.4s, opacity 0.2s linear 0.2s;
}

.note-area.shrink.animate {
  width: auto;
  max-width: 0;
  opacity: 0;
}

.note-area.shrink .note {
  transition: max-width 0.5s, opacity 0.5s, margin-left 0.5s;
  max-width: 100vw;
  opacity: 1;
}

.note-area.shrink .ui-hide {
  max-width: 0;
  opacity: 0;
  margin-left: -20px;
}

#ui-notes-long > .note-body {
  transition: max-height 0.25s;
}

#ui-notes {
  pointer-events: auto;
  overflow: visible;
}
#note-preview {
  margin-top: 0px;
}

.note-inline {
  display: inline-flex;
}

.note-inline > .note {
  flex: 0 1 auto;
}

.note-body {
  margin-right: 10px;
}

.note-body.long {
  max-height: 40vh;
  overflow-y: scroll;
  display: flex;
  flex-direction: column-reverse;
}

.note-body > div {
  flex: 0 0 auto;
}
.note-group {
  position: relative;
}

.note-time {
}

.note-day {
  position: sticky;
  top: 0;
  color: var(--dark);
}

.note-day-container {
  position: absolute;
  height: 100%;
  right: 10px;
  top: 2px;
}

.note-rule {
  height: 4px;
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 3px 10px 5px 10px;
}
.note {
  padding: 0 10px 0 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ui-clock {
  font-weight: 550;
}

.note > button {
  border: none;
  margin: 0;
  padding: 0;
  color: var(--dark);
}

.note-summary {
  text-align: center;
  padding: 10px 20px;
  color: var(--dark);
}

.notes-badge {
  position: absolute;
  top: -5px;
  right: -10px;
}

.notes-badge > span {
  font-size: 15px;
  padding: 5px 7px 2px 9px;
  background-color: var(--highlight);
  border-radius: 10px;
}

.note:first-child:not(.ui-clock) {
  margin-right: 4.5em;
}

.cowboy-window {
  position: absolute;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-height: 100%;
  height: 0;
  max-width: 500px;
  margin-bottom: 330px;
  z-index: 2;
}

#cowboy-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  background-color: white;
  padding: 0.5em;
  border-radius: 1.5em;
  align-items: center;
  z-index: 2;
  max-height: auto;
}

.cowboy-panel {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  /* border-top: 1px black solid; */
  transition: max-height 0.5s ease-out;
}

.cowboy-panel.flex {
  flex-direction: column;
}

.cowboy-panel.active {
  max-height: 500px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  transition: max-height 0.5s ease-in;
}



.cowboy-panel button, #cowboy-button-panel button, #event-button-panel button,
.rest-button {
  margin: 5px;
  height: 3em;
  flex-grow:1;
  border-radius: 1em;
}

#cowboy-button-panel, #event-button-panel {
  width: 100%;
  display: flex;
  flex-direction: row;
}



.area-hide {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  transition: opacity 0.25s;
}

.area-hide.ui-hide {
  opacity: 0;
  pointer-events: none;
}

.pump-it {
  transform: scale(1);
  animation: pump 0.2s;
}

@keyframes pump {
  0% {
    transform: translateX(0);
  }

  10% {
    transform: translateX(10px);
  }

  100% {
    transform: translateX(0);
  }
}

.ui-float {
  color:white;
  position: absolute;
  transition: opacity 2.5s linear, transform 2.5s linear;
  text-align: center;
  background-color: grey;
  border-radius: 10px;
}

.ui-float.energy {
  background-color: var(--energy-color);
}

.ui-float.health {
  background-color: var(--health-color);
}

.ui-float.water {
  background-color: var(--water-color);
}

.ui-float.food {
  background-color: var(--food-color);
}

.ui-float.float-fade {
  animation: float-fade-anim 1s ease-out;
}

@keyframes float-fade-anim {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}
