html  {
  overflow: hidden;
  overscroll-behavior: none;
}

h1,h2,h3,h4{
  text-align:center;
}

#wrapper {
  background-color: #332640;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  margin: 12px;
  outline: 12px solid var(--background-color);
  overflow: hidden;
}

#about {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-sizing: border-box;
  left: 20dvw;
  max-height: 70dvh;
  overflow-y: scroll;
  padding: var(--window-margin) var(--window-padding) var(--window-padding) var(--window-padding);
  position: absolute;
  top: 15dvh;
  transition: transform 0.8s;
  transform: translate(-80dvw, 0px);
  width: 60dvw;
}

#about p {
  font-size: 14px;
  line-height: 1.5;
}

#about h1, #about h2 {
  margin: 16px;
}

#about.open {
  transform: translate(0px, 0px);
}

#about-lever {
  position: absolute;
  transition: transform 0.8s;
  transform: translate(-17px, 17dvh) rotate(-90deg);
  z-index: 1;
}

#about-lever.open {
  transform: translate(-70dvw, -100%) rotate(-0deg);
  margin-left: var(--window-margin);
}

#universes {
  transition: transform var(--standard-animation-time);
  position: absolute;
  display: grid;
  grid-template: "list map" 1fr / 120px 1fr;
  height: 78dvh;
  width: 80dvw;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0px 0px 14px 0px var(--background-color);
  top: 11dvh;
  left: 10dvw;
  overflow: hidden;
  transform: translate(120%, 0px);
}

#universes.open {
    transform: translate(0%, 0px);
}

#universe-lever {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: var(--window-margin);
  position: absolute;
  right: 0px;
  top: calc(1.5 * var(--nav-allowance));
  transition: transform 0.8s;
  transform: translate(28px, 0px) rotate(90deg);
}

#universe-lever.open {
  transform: translate(-74dvw, -108%) rotate(0deg);
  z-index: 1;
}

#universe-lever .button-wrapper {
  text-align: center;
  transition: width 0.8s;
  width: 100%
}

#universe-list {
  background-color: var(--background-color);
  border-right: 1px solid var(--border-color);
  box-shadow: 11px 1px 20px 0px var(--background-color);
  box-sizing: border-box;
  flex-direction: column;
  grid-area: list;
  gap: var(--window-margin);
  overflow-y: scroll;
  padding: var(--window-margin);
  transition: max-height var(--standard-animation-time);
  width: 100%;
  z-index: 20;
}

#universe-list .pty-button {
  width: 100%;
}

#universe-list .button-wrapper {
  border: none;
  width: 100%;
}

.map-wrapper {
    background-color: var(--background-color);
    cursor: grab;
    display: none;
    grid-template: "main" 1fr / 1fr;
    grid-area: map;
    align-self: center;
    justify-self: center;
    width: 100%;
    /* height: 84dvh; */
    border: 1px solid var(--border-color);
    overflow: hidden;
    border-radius: var(--border-radius);
    z-index: 3;
}

.map {
  cursor: grab;
  display: grid;
  grid-template: "main" 1fr / 1fr;
  width: fit-content;
}

.map-wrapper.open {
  display: grid;
}

.map object {
  height: 100%;
  width: auto;
  pointer-events: none;
}

.map.dragging {
  cursor: grabbing;
}

.pin {
  background: none;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  grid-area: main;
  height: 30px;
  padding: 0px;
  position: absolute;
  width: 30px;
  z-index: 2;
}

.pin .button-wrapper {
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0px 0px 20px 0px var(--border-color);
  border: 5px solid var(--background-color);
  height: 25px;
  padding: 0px;
  width: 25px;
  overflow: hidden;
}

.pin .button-wrapper:hover {
  border-radius: 50%;
  box-shadow: 0px 0px 20px 0px var(--color-pink);
  height: 25px;
  padding: 0px;
  width: 25px;
  overflow: hidden;
}

.pin .tooltip {
  background-color: var(--background-color);
  border: 0.5px solid var(--background-color-inverse);
  box-shadow: 0px 0px 14px 3px var(--background-color);
}

.pin .tooltip p {
  color: var(--text-color);
}

.pin .button-wrapper:first-child {
  height: 100%;
  width: 100%;
  border: 6px solid var(--color-black);
  background: var(--color-hot-pink);
}

.story-showcase-wrapper {
    align-self: center;
    justify-self: center;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    display: none;
    grid-gap: var(--window-padding);
    grid-area: map;
    grid-template:
        "heading stories" auto
        "description stories" 1fr / 1fr 3fr;
    height: -webkit-fill-available;
    padding: var(--window-padding);
    margin: var(--window-margin);
    position: fixed;
    /* height: 100%; */
    /* overflow-y: scroll; */
    text-align: right;
    /* top: 17dvh; */
    transition: width 0.5s, left 0.5s;
    z-index: 10;
}

.story-showcase-wrapper.open {
  display: grid;
  animation: fadeIn var(--standard-animation-time) ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.story-showcase-wrapper.empty {
  grid-template:
    "heading" auto
    "description" 1fr / 1fr;
  text-align: center;
}

.story-showcase-wrapper .heading {
  grid-area: heading;
  margin: 0px;
  text-align: right;
}


.story-showcase-wrapper.empty .heading {
  text-align: center;
}

.story-showcase-wrapper .description {
  grid-area: description;
  overflow: scroll;
}

.story-showcase-wrapper .story-showcase {
  border-left: 1px solid var(--border-color);
  grid-area: stories;
  padding: 0px var(--window-margin);
}


.story-showcase-wrapper.empty .story-showcase {
  display: none;
}

.story-showcase::before {
  content: "stories that happened here";
  display: block;
  font-family: var(--font-family-base);
  font-size: 12px;
  font-weight: lighter;
  margin-bottom: var(--window-margin);
  text-align: left;
  width: 100%;
}

.story-showcase a {
  background-color: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  height: auto;
  overflow: hidden;
}

.story-showcase a:hover {
  background-color: var(--background-color-inverse);
  border: 1px solid var(--border-color);
}

.story-showcase img {
  height: 100%;
  width: 100%;
}

#portal_body {
  box-sizing: border-box;
  display: grid;
  flex-direction: column;
  grid-area: main;
  grid-gap: var(--window-margin);
  grid-template: "map" 1fr / 1fr;
  padding: var(--window-padding);
}

.bg_over{
  justify-content:space-between;
}

.bg_filter_1,.bg_filter_2{
  z-index:1000;
  height:100%;
  width:20%;
}

.bg_filter_1{
  background: linear-gradient(90deg, rgba(255,255,255,1) 84%, rgba(255,255,255,0) 100%);
}

.bg_filter_2{
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 16%);
}

.l_gallery:hover{
  opacity:1;
}

.cent {
  margin-right:auto;
  margin-left:auto;
  text-align: center;
}

.tr_data_country{
  font-size: 15px;
  margin:0px;
}

.tr_data h1{
  margin:0px 5px;
  font-size:24px;
}

.take_me button{
  width:50%;
  background:transparent;
  padding:10px 20px;
  border-radius: var(--border-radius);
  border:2px solid var(--border-color);
  outline:none;
}

.take_me button span{
  padding-right:2px;
}

.take_me button:hover{
  background: var(--background-color-inverse);
  border:2px solid var(--border-color);
  color: var(--text-color-inverse);
  font-weight:bold;
}

.play_but{
  margin-left:auto;
}

.play_but button:hover, .tr_data:hover {
  cursor: pointer;
}

.tr_intro {
  display:flex;
  flex-wrap:wrap;
  border-radius: var(--border-radius);
  grid-area:1/4/4/6;
  width:auto;
  padding:18px;
  height:auto;
  overflow: hidden;
  justify-content:space-around;
}

.tr_data {
  border-radius: var(--border-radius);
  background: var(--background-color);
  border:2px solid var(--border-color);
  justify-content: space-between;
  height:88%;
  width:69%;
  padding:10px;
  overflow-y:hidden;
}

.tr_data:hover {
  border: 2px solid var(--border-color);
}

.tr_data_grain {
  width:60%;
  margin-right:4px;
  margin-left:10px;
  overflow-y:scroll;
  justify-content: space-around;
}

.container{
  border-radius: var(--border-radius);
  padding: 15px;
  width:80%;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  justify-content: center;

}

#collection_gallery{
  flex-wrap:wrap;
  width:90%;
}

.collections{
  width:50%;
  align-self:center;
  justify-content:space-around;
}


.collections .container{
  width: fit-content
}


.text_align{
  width:100%;
  height:40px;
  align-items:center;
  border-bottom: 1px solid var(--border-color);
  text-align:center;
  justify-content:space-around;
}

.img_background {
  border-radius:6px;
  height:160px;
  width:108px;
  padding:5px;
  z-index:1;
  background:transparent;
  border-color: transparent;
}

.on_top {
  padding:10px;
  display:grid;
  align-content:center;
  align-items:center;
}



.on_top span, .on_top img{
  margin-right:auto;
  margin-left:auto;
  grid-column:1;
  grid-row:1;
}

.on_top:hover {
  filter:brightness(95%);
}

.collections img {
  align-self:center;
  border-radius:6px;
  height: 144px;
  width: 192px;
  transition: width .4s, height .4s, transform .4s;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#w_map{
  bottom: 0;
  display: grid;
  grid-template: "main" 1fr / 1fr;
  height:100%;
  left: 0;
  right: 0;
  top: 0;
  width:100%;
}


#map_cover {
  width:100%;
  height:inherit;
  grid-area:main;
  opacity:0;
}

#world {
  grid-area: main;
  width: 70dvw;
}

#portal {
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
}

#c_prof {
  position:absolute;
  padding: 10px;
  max-height: 60dvh;
  max-width: 50dvw;
  z-index: 10000;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  flex-direction:column;
  background-color: var(--background-color);
  display:none;
  overflow-y:scroll;
  animation-name: reveal;
  animation-duration:.3s;
  animation-fill-mode:forwards;
  animation-play-state:paused;
}

#c_tt{
  min-height:70px;
  text-align:center;
  align-items:center;
}

#c_tt .return > * {
pointer-events: none;
}

#c_tt .return{
  cursor: pointer;
  padding:0px 30px;
  height:27px;
  width:27px;
}

#c_tt .return button {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
}

#c_tt .return:hover button{
  background: var(--background-color-inverse);
}


#c_tt .return:hover object{
  filter: invert();
}

#c_tt .tt_box{
  margin-right:auto;
  margin-left:auto;
}


.h_gal {
  align-content: flex-start;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: var(--window-margin);
  overflow-x: scroll;
}

.h_gal .selectin {
  display: flex;
  flex: 0;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--window-margin);
  width: 128px;
}


.h_gal .selectin:hover{
  filter:brightness(92%);
}

.h_gal .selectin:hover small{
  color: var(--text-color);
}

.selectin small{
  color: var(--border-color);
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 2px;
  text-align: center;
  width: inherit;
}

.c_r{
  height:30px;
  width:100%;
  border-bottom:1px solid var(--border-color);
}

.tt_box{
  margin-left:20px;
  font-size:20px;
}

.return{
  display:grid;
}

.return{
  display:grid;
}

.c_r button, .c_r object{
  grid-row:1;
  grid-column:1;
  opacity:1;
}

  
@keyframes reveal {
  0% {
    opacity:0;
    height:0%;
    width:0%;
    margin-right: 0%;
    transform: translate(0, 0);
  }
  100% {
    opacity:1;
    top:50%;
    left:50%;
    height:100%;
    width:100%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
  }
}
#portal_body{
  overflow-x:hidden;
}

  @media screen and (max-width: 900px) {


    .text_align{
      max-height:fit-content;
    }
    .text_align h3{
      font-size:18px;
    }
    .img_background{
      height:144px;
      width:87px;
      margin:0px;
      margin-top:10px;
      margin-left:auto;
      margin-right:auto;
    }
    .bg_over{
      display:none;
    }
    .tr_intro{
      height:170px;
      max-height:170px;
    }
    .tr_data{
      width:300px;
      height:fit-content;
      max-height:160px;
    }
    #da_collections{
      display:flex;
      flex-direction:column;
      width:100%;
      padding:0px;
      margin-left:0px;
      margin-right:0px;
      align-items:center;
    }
    .collections{
      width:100%;
    }

    .container{
      width:90%;
      max-width:inherit;
      margin-bottom:10px;
      border:none;
    }

  }
  @media screen and (max-width:600px){
    #universes {
      grid-template:
        "list" 54px
        "map" 1fr / 1fr;
    }
    #universe-list {
      border-left: none;
      border-bottom: 1px solid var(--border-color);
    }
    .story-showcase-wrapper.open { 
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      overflow: scroll;
    }
    .story-showcase-wrapper {
      text-align: center;
    }
    .story-showcase-wrapper .heading {
      text-align: center;
    }
    .story-showcase::before {
      text-align: center;
    }
    .story-showcase-wrapper .story-showcase {
      border-left: none;
      justify-content: center;
      padding: 0px;
    }
    .tr_intro{
      height:260px;
      max-height:260px;
    }
    .tr_data_grain{
      display:none;
    }
    .tr_data{
      margin-top:10px;
    }
    .play_but{
      margin-left:auto;
      margin-right:auto;
    }
    .tr_data{
      max-height:fit-content;
    }
  }