* {
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url("../img/bg-1280x800.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: 75%;
  color: white;
  min-width: 320px;
  min-height: max(50vw, 475px);
  display: grid;
  grid-template-rows: max(35px, 5%) auto max(40px, 5%);
  grid-gap: max(40px, 5%);
}

.hidden {
  display: none
}

.font-dynamic {
  font-size: max(min(calc(0.7rem + 1.25vw), calc(0.7rem + 1.25vh)), 1rem);
}

.fancy-box {
  background-color: rgba(62, 194, 238, .2);
  border: 2px solid rgba(192, 192, 192, .2);
  --fancy-border-width: 2px;
  border-radius: 25px;
  backdrop-filter: blur(5px);
}

.navigator {
  width: 100%;
  height: 100%;
  padding: 3px;
  margin: 2px 4px 2px 4px;
  display: grid;
  grid-template-columns: 15% auto 15%;
  place-items: center;
}

.sky-gametime-text {
  text-align: center;
  font-size: 1.2em;
  padding: 2px 0 2px 0;
}

@media screen and (max-width: 800px) {
  #sky-gametime-prefix {
    display: none;
  }

  .fancy-box {
    border: 1px solid rgba(192, 192, 192, .2);
    border-radius: 15px;
  }
}

@media screen and (min-width: 800px) {
  .font-dynamic {
    font-size: max(min(calc(0.5rem + 1.25vw), calc(0.5rem + 1.25vh)), 1rem);
  }
}

@media screen and (min-width: 1200px) {
  .font-dynamic {
    font-size: max(min(calc(0.5rem + 1vw), calc(0.5rem + 1vh)), 1rem);
  }
}

.shard-container {
  width: 100%;
  height: 100%;
  margin: 0;
}

.shard-slide {
  margin: 0;
  padding: 0;
}

.shard-tag {
  margin: 0;
  padding: 0;
  color: white;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 30% auto 40%;
}

.shard-tag-empty {
  display: flex;
  justify-content: space-around;
  flex-direction: column;
}

.shard-location {
  margin: auto 0 auto 0;
  position: relative;
}

.shard-location-prefix {
  display: inline-block;
  text-align: center;
  font-size: 1.2em;
  width: 100%;
  margin: 0;
}

.shard-location-alias {
  display: inline-block;
  text-align: center;
  font-size: 0.65em;
  width: 100%;
  margin: 0;
  height: 0;
  overflow: visible;
}

.shard-location-disp {
  display: inline-block;
  text-align: center;
  font-size: 2em;
  width: 100%;
  margin: 8px 0 0 0;
  font-weight: bold;
}

.shard-gain {
  display: inline-block;
  text-align: center;
  width: 100%;
  margin: 0;
  font-size: 0.8em;
}

.shard-split {
  display: inline-block;
  width: 100%;
  border-width: 0 0 1px 0;
  border-color: rgba(192, 192, 192, .5);
  border-style: solid;
}

.shard-timeline {
  display: inline-block;
  text-align: center;
}

.shard-time-disp {
  display: inline-block;
  margin: 0;
  overflow-x: visible;
  width: 500px;
}

.shard-timeline-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  place-items: center;
}

.shard-timeline-line {
  display: inline-block;
  width: min(90%, 100% - 60px);
  height: 2px;
  margin: 10px 0;
  background-color: rgba(192, 192, 192, .5);
  overflow: visible;
  position: relative;
}

.shard-timeline-cursor {
  box-sizing: content-box;
  border-style: solid;
  border-width: 10px 6px;
  border-color: rgba(255, 255, 255, 0.75) rgba(0, 0, 0, 0);
  padding: 0;
  margin: 0;
  width: 0;
  height: 2px;
  position: absolute;
  top: -10px;
  z-index: 999
}

.shard-timeline-segment {
  background-color: red;
  height: 100%;
  position: absolute;
}

.shard-timeline-text-up {
  font-size: 1em;
  overflow: visible;
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
}

.shard-timeline-text-down {
  font-size: 1em;
  overflow: visible;
  position: absolute;
  transform: translate(-50%, 10px);
}

.shard-timeline-mark-up {
  box-sizing: content-box;
  border-style: solid;
  border-width: 4px;
  border-color: #f00 rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
  padding: 0;
  margin: 0;
  width: 0;
  height: 2px;
  position: absolute;
  top: -8px;
}

.shard-timeline-mark-down {
  box-sizing: content-box;
  border-style: solid;
  border-width: 4px;
  border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #f00 rgba(0, 0, 0, 0);
  padding: 0;
  margin: 0;
  width: 0;
  height: 2px;
  position: absolute;
  top: 0px;
}

.shard-countdown {
  width: 100%;
  height: 100%;
  text-align: center;
  margin: 0;
}

.shard-countdown-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.shard-countdown-prefix {
  margin: 0;
  font-size: 0.8em;
}

.shard-countdown-disp {
  margin: 0;
  font-size: 2.5em;
  font-family: monospace;
}

.shard-countdown-text {
  margin: 0;
  font-size: 0.8em;
}

.footer {
  text-align: center;
  display: inline-block;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background-color: rgba(95, 120, 128, .2);
  border-width: 2px 0 0 0;
  border-color: rgba(192, 192, 192, .2);
  border-style: solid;
  padding: 8px;
}

#sky-gametime-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  flex-direction: row;
  cursor: pointer;
}

#sky-gametime-disp-short {
  display: none;
}

#sky-gametime-disp {
  display: inline-block;
}

#goto {
  position: fixed;
  right: 8%;
  bottom: 15%;
  border-radius: 25px;
  border: 0px solid rgba(0, 0, 0, 0);
  box-shadow: 1px 1px 4px rgba(21, 181, 234, .2);
  z-index: 999;
  transition: opacity 0.2s ease-out;
}

#goto:hover #goto-bg {
  fill: rgba(62, 194, 238, .3)
}

#goto:active {
  transform: translate(1px, 1px);
}

@media screen and (max-width: 600px) {
  #sky-gametime-disp-short {
    display: inline-block;
  }

  #sky-gametime-disp {
    display: none;
  }
}