body {
  /* overflow: hidden; */
  font-family: "Questrial", sans-serif;
  text-shadow: 1px 1px 1px black;
  /*color: #ddd;*/
  color: white;
}

.scroller::-webkit-scrollbar {
  width: 5px;
  height: 15px;
}

.scroller::-webkit-scrollbar-track-piece {
  background-color: rgba(1, 1, 1, 0);
}

.scroller::-webkit-scrollbar-thumb:vertical {
  /* height: 30px; */
  background-color: rgba(233, 233, 5, 0.8);
}

.scroller {
  overflow-y: scroll;
  scrollbar-color: rgba(233, 233, 5, 0.8) rgba(1, 1, 1, 0);
}

a:link {
  color: #e9e905;
}

/* visited link */
a:visited {
  color: #e9e905;
}

/* mouse over link */
a:hover {
  color: #baba02;
}

/* selected link */
a:active {
  color: #e9e905;
}

table {
  width: 100%;
}
tbody {
  width: 100%;
}
td img {
  width: 100%;
}

#right-container-inner ol {
  padding: 16px;
}

#initial-hide {
  display: none;
}

#loading-blocker {
  z-index: 8;
  position: fixed;
  left: 0;
  width: 100%;
  height: 100%;
  top: 0;
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/loadingscreen.jpg");
  background-size: cover;
  background-position: right;
}

#loading-prompt {
  width: 70%;
  max-height: 80px;
  max-width: 960px;
  left: 0;
  right: 0;
  margin: auto;
  position: absolute;
  bottom: 150px;
}

@-webkit-keyframes fading-image {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@-moz-keyframes fading-image {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@-ms-keyframes fading-image {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fading-image {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fading-image {
  -webkit-animation: fading-image 1s alternate infinite;
  -moz-animation: fading-image 1s alternate infinite;
  -ms-animation: fading-image 1s alternate infinite;
  animation: fading-image 1s alternate infinite;
}

#image-enlarger {
  z-index: 10;
  /* opacity: .9; */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: black; */
}
#enlarged-meme {
  height: 100%;
  width: 100%;
  left: 0;
  right: 0;
  margin: auto;
  display: block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#background-enlarge {
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.7;
  top: 0;
  position: absolute;
  z-index: -9;
}

#new-server-img {
  position: fixed;
  bottom: -35px;
  left: 48px;
  right: 0;
  margin: auto;
  z-index: 0;
  height: 780px;
  max-height: 85%;
}

#new-server-img-catalog {
  position: fixed;
  bottom: -35px;
  right: 10%;
  z-index: 0;
  height: 780px;
  max-height: 85%;
}

#new-server-img-about {
  position: fixed;
  bottom: -35px;
  right: 10%;
  z-index: 0;
  height: 780px;
  max-height: 85%;
}

#new-server-img-overboard {
  position: fixed;
  bottom: -35px;
  right: 19%;
  z-index: 0;
  height: 780px;
  max-height: 85%;
}

#video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 3;
}
#video-container > video {
  display: block;
  position: absolute;
  left: 50%;
  /* top: 50%;
  transform: translate(-50%, -50%); */
  top: 0;
  transform: translate(-50%, 0);
  z-index: 1;
}
@media screen and (max-aspect-ratio: 1920/1080) {
  #video-container > video {
    height: 100%;
  }
}
@media screen and (min-aspect-ratio: 1920/1080) {
  #video-container > video {
    width: 100%;
  }
}

#top-text-video {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  z-index: 2;
  left: 0;
  right: 0;
  top: 100px;
  text-align: center;
}

#bottom-text-video {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 100px;
  text-align: center;
}

#menu-container {
  left: 0;
  right: 0;
  margin: auto;
  height: 250px;
}
#up-arrow {
  width: 100%;
  height: 20%;
  cursor: pointer;
}
#up-arrow img {
  height: 100%;
}
#down-arrow {
  width: 100%;
  height: 20%;
  cursor: pointer;
}
#down-arrow img {
  height: 100%;
  transform: rotate(180deg);
}
#main-menu-outer {
  height: 60%;
  overflow-y: hidden;
}
#main-menu-inner {
  height: 100%;
  position: relative;
}
.menu-item {
  height: 33.3%;
  opacity: 0.3;
}
.menu-active {
  opacity: 1;
  cursor: pointer;
}
.menu-item img {
  height: 100%;
  left: 0;
  right: 0;
  margin: auto;
}

#flag-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
  display: none;
}

#flag-container > video {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
@media screen and (max-aspect-ratio: 1920/1080) {
  #flag-container > video {
    height: 100%;
  }
  #flag_gif {
    height: 100%;
  }
}
@media screen and (min-aspect-ratio: 1920/1080) {
  #flag-container > video {
    width: 100%;
  }
  #flag_gif {
    width: 100%;
  }
}

.page-container {
  display: none;
}

#gallery-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

#gallery-video-container > video {
  display: block;
  position: absolute;
  left: 50%;
  /* top: 50%; */
  top: 0;
  transform: translate(-50%, 0);
  /* z-index: 1; */
}
@media screen and (max-aspect-ratio: 1920/1080) {
  #gallery-video-container > video {
    height: 100%;
  }
}
@media screen and (min-aspect-ratio: 1920/1080) {
  #gallery-video-container > video {
    width: 100%;
  }
}

#main-content {
  z-index: 2;
}

#main-content-mobile {
  max-height: 100%;
  overflow-y: scroll;
}

#back-button {
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
}
#back-button-img {
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 880px) {
  body {
    overflow: auto;
  }
  #main-content-mobile {
    display: block;
  }
  #main-content-desktop {
    display: none;
  }
  #logo-video {
    z-index: 2 !important;
    position: fixed !important;
    width: 100% !important;
    max-width: 475px !important;
    height: auto !important;
    left: 0;
    right: 0;
    margin: auto;
    max-height: 60%;
  }
  #logo-gif {
    position: fixed;
    max-width: 475px;
    width: 100%;
    height: auto;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 2;
  }
  #gallery-video-container > video {
    height: 100% !important;
  }
}

@media only screen and (min-width: 881px) {
  body {
    overflow: hidden;
  }
  #main-content-mobile {
    display: none;
  }
  #main-content-desktop {
    display: block;
  }
  #logo-video {
    z-index: 2 !important;
    position: fixed !important;
    width: 475px !important;
    height: auto !important;
    left: 265 !important;
    max-height: 60%;
  }
  #logo-gif {
    position: fixed;
    width: 475px;
    height: auto;
    left: 20px;
    z-index: 2;
  }
}

#meme-title {
  margin-top: 60px;
  margin-bottom: 100px;
  align: center;
}

#flash-blocker {
  width: 100%;
  height: 100%;
  position: absolute;
  /* display: none; */
  left: 0;
  top: 0;
  background-color: #ddd;
  z-index: 0;
}

/* get the pixel value by multiplayinig max-width and percent */
#meme-container {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleframe.png");
  width: 100%;
  max-width: 450px;
  background-size: 100% 100%;
  /* padding: 15.6% 10% 31.1% 13.1%; */
  padding-top: min(21.56%, 97px);
  padding-left: min(13.1%, 58px);
  padding-right: min(12.22%, 55px);
  padding-bottom: min(28.89%, 130px);
  float: right;
  position: relative;
  z-index: 1;
}
#meme-container-mobile {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/mobileframe.png");
  width: 100%;
  max-width: 450px;
  background-size: 100% 100%;
  padding-top: min(16%, 72px);
  padding-left: min(16%, 72px);
  padding-right: min(16%, 72px);
  padding-bottom: min(25%, 115px);
  position: relative;
  left: 0;
  right: 0;
  top: -35px;
  margin: auto;
  z-index: 1;
  margin-top: 35px;
}
#mobile-dismiss-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
#mobile-dismiss-button img {
  width: 100%;
}
#title-container-new {
  position: absolute;
  bottom: -11px;
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleborder.png");
  background-size: 100% 100%;
  max-width: 319px;
  width: 80%;
  max-height: 138px;
  height: 30%;
  left: 25px;
}
#catalog-panel {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleframe.png");
  width: 100%;
  max-width: 800px;
  background-size: 100% 100%;
  padding-top: min(21.56%, 97px);
  padding-left: min(13.1%, 58px);
  padding-right: min(12.22%, 55px);
  padding-bottom: min(28.89%, 130px);
  position: relative;
  z-index: 1;
  height: 80vh;
}
#catalog-inner {
  height: 100%;
  overflow-y: scroll;
}
#catalog-panel-mobile {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleframe.png");
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 26%;
  padding-bottom: 10%;
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}
#catalog-inner-mobile {
  max-height: 90%;
  overflow-y: scroll;
}
#origin-panel {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleframe.png");
  width: 100%;
  max-width: 800px;
  background-size: 100% 100%;
  padding-top: min(21.56%, 97px);
  padding-left: min(13.1%, 58px);
  padding-right: min(12.22%, 55px);
  padding-bottom: min(28.89%, 130px);
  position: relative;
  z-index: 1;
  height: 80vh;
}
#origin-inner {
  height: 100%;
  overflow-y: scroll;
}
#origin-panel-mobile {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleframe.png");
  width: 100%;
  /* max-width: 800px; */
  height: 100%;
  background-size: 100% 100%;
  /* padding-top: min(21.56%, 97px);
  padding-left: min(13.1%, 58px);
  padding-right: min(12.22%, 55px);
  padding-bottom: min(28.89%, 130px); */
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 26%;
  padding-bottom: 10%;
  position: relative;
  z-index: 1;
}
#origin-inner-mobile {
  max-height: 90%;
  overflow-y: scroll;
  overflow-x: hidden;
}
#about-panel {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleframe.png");
  width: 100%;
  max-width: 800px;
  background-size: 100% 100%;
  padding-top: min(21.56%, 97px);
  padding-left: min(13.1%, 58px);
  padding-right: min(12.22%, 55px);
  padding-bottom: min(28.89%, 130px);
  position: relative;
  z-index: 1;
  height: 80vh;
}
#about-inner {
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}
#about-panel-mobile {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleframe.png");
  width: 100%;
  height: 100%;
  font-size: 1.05rem;
  background-size: 100% 100%;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 26%;
  padding-bottom: 10%;
  position: relative;
  z-index: 1;
}
#about-inner-mobile {
  max-height: 90%;
  overflow-y: scroll;
  overflow-x: hidden;
}
#image-container {
  padding-right: 100px;
  padding-top: 30px;
}

#left-panel-img {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
  right: 80px;
  max-width: 500px;
}

#right-panel {
  padding-left: 120px;
  padding-top: 30px;
}

#annotation-container {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/bigannotationframe.png");
  width: 100%;
  max-width: 450px;
  background-size: 100% 100%;
  /* padding-top: min(15.6%, 70px);
  padding-left: min(13.1%, 58px);
  padding-right: min(10%, 45px);
  padding-bottom: min(15.55%, 70px); */
  padding-top: min(21.55%, 97px);
  padding-left: min(13.33%, 60px);
  padding-right: min(8.88%, 40px);
  padding-bottom: min(20%, 90px);
  /* padding-top: 97px;
  padding-left: 60px;
  padding-right: 40px;
  padding-bottom: 90px; */
  float: left;
  position: relative;
  z-index: 1;
  min-height: 450px;
  max-height: 80vh;
}
#annotation-title {
  position: absolute;
  top: 16px;
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/annotationlittleframe.png");
  background-size: 100% 100%;
  max-width: 227px;
  width: 72%;
  max-height: 104px;
  height: 30%;
  right: 37px;
}
#annotation-title p {
  position: relative;
  padding-left: min(90%, 50px);
  padding-top: min(90%, 35px);
}

#right-container-info {
  padding: 20px;
}
#right-container-inner {
  max-height: 450px;
  height: 50%;
  overflow-y: auto;
}

/* #preview-meme{
  position: absolute;
  left: 30%;
  top: 24%;
  width: 50%;
  z-index: 1;
} */

#preview-meme {
  width: 100%;
  margin: auto;
  left: 0;
  right: 0;
  display: flex;
  cursor: pointer;
}

#preview-meme-mobile {
  width: 100%;
  margin: auto;
  left: 0;
  right: 0;
  display: flex;
  cursor: pointer;
}

#mobile-annotation-container {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/mobileframe.png");
  width: 100%;
  max-width: 450px;
  background-size: 100% 100%;
  padding-top: min(16%, 72px);
  padding-left: min(16%, 72px);
  padding-right: min(16%, 72px);
  padding-bottom: min(25%, 115px);
  position: relative;
  left: 0;
  right: 0;
  top: -60px;
  margin: auto;
  z-index: 1;
}

#title-container-new-mobile {
  position: absolute;
  bottom: -11px;
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleborder.png");
  background-size: 100% 100%;
  max-width: 319px;
  width: 80%;
  max-height: 138px;
  height: 30%;
  left: 0;
  right: 0;
  margin: auto;
}

#right-container-inner-mobile {
  max-height: 500px;
  height: 60%;
  overflow-y: scroll;
  overflow-x: hidden;
}

.title {
  position: relative;
  padding-left: min(15%, 50px);
  padding-top: min(50px, 15%);
}

#title-container {
  position: absolute;
  top: 90%;
  left: 30%;
  z-index: 5;
}
#title-container p {
  margin: 0;
  padding: 0;
}

.row {
  margin: 0 !important;
}

#right-panel-img {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
  left: 80px;
  max-width: 450px;
}

#server-container {
  position: fixed;
  width: 100%;
  bottom: 0;
}

#server-img {
  position: relative;
  left: -4%;
  width: 130%;
  top: 38px;
}

/* --------- DOCK STYLING -------- */
#dock-blocker {
  position: fixed;
  bottom: 0px;
  height: 100px;
  width: 100%;
  /* background-color: red; */
  opacity: 0;
  z-index: 3;
  /* pointer-events: none; */
}

#dock {
  position: fixed;
  /* height: 100px; */
  width: 100%;
  bottom: -300px;
  z-index: 2;
  /* background-color: yellow; */
}
.dock-thumb {
  width: 10%;
  /* padding: 10px 10px 0 10px; */
  cursor: pointer;
  display: inline-flex;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;

  /* margin: 0 -1.6px; */
}
.dock-thumb img {
  width: 70%;
  left: 15%;
  position: relative;
  cursor: pointer;
}

#dock-col {
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  font-size: 0;
}

#left-dock-arrow {
  cursor: pointer;
  position: relative;
}
#right-dock-arrow {
  cursor: pointer;
  position: relative;
}

#right-arrow-dock {
  width: 30%;
  bottom: 15px;
  position: absolute;
  margin: auto;
  left: 0;
  right: 35px;
  transform: rotate(180deg);
}

#left-arrow-dock {
  width: 30%;
  bottom: 15px;
  position: absolute;
  margin: auto;
  left: 35px;
  right: 0;
}

ol li {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
ol li:first-child {
  margin-top: 0;
}
ol li:last-child {
  margin-bottom: 0;
}

/* -------------------------- MOBILE STYLING -------------------------- */
.dock-thumb-mobile {
  width: 24%;
  display: inline-block;
}

.dock-thumb-mobile img {
  padding: 15%;
  width: 100%;
}

#annotation-container-mobile {
  display: none;
  overflow-y: scroll;
}

#mobile-focus-image {
  width: 100%;
  padding: 5%;
}
#mobile-annotation-p {
  padding: 10px;
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/annotationframe.png");
}

/* NEW SHIT */

#overboard-image-container {
  padding-right: 100px;
  padding-top: 30px;
}

#overboard-meme-container {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleframe.png");
  width: 100%;
  max-width: 525px;
  background-size: 100% 100%;
  /* padding: 15.6% 10% 31.1% 13.1%; */
  padding-top: min(21.56%, 97px);
  padding-left: min(13.1%, 58px);
  padding-right: min(12.22%, 55px);
  padding-bottom: min(28.89%, 130px);
  float: right;
  position: relative;
  z-index: 1;
}

#overboard-preview-meme {
  width: 100%;
  margin: auto;
  left: 0;
  right: 0;
  display: flex;
  cursor: pointer;
}

#overboard-title-container-new {
  position: absolute;
  bottom: -11px;
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleborder.png");
  background-size: 100% 100%;
  max-width: 319px;
  width: 80%;
  max-height: 138px;
  height: 30%;
  left: 25px;
}

#overboard-dock {
  max-width: 535px;
  padding-right: min(28.03%, 150px);
  float: right;
}

.overboard-dock-thumb {
  width: 24%;
  /* padding: 10px 10px 0 10px; */
  cursor: pointer;
  display: inline-flex;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;

  /* margin: 0 -1.6px; */
}
.overboard-dock-thumb img {
  width: 70%;
  left: 15%;
  position: relative;
  cursor: pointer;
}
#overflow-container-mobile {
  display: none;
  overflow-y: scroll;
}

.dock-thumb-mobile-overflow {
  width: 24%;
  display: inline-block;
}

.dock-thumb-mobile-overflow img {
  padding: 15%;
  width: 100%;
}

#meme-container-mobile-overflow {
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/mobileframe.png");
  width: 100%;
  max-width: 450px;
  background-size: 100% 100%;
  padding-top: min(16%, 72px);
  padding-left: min(16%, 72px);
  padding-right: min(16%, 72px);
  padding-bottom: min(25%, 115px);
  position: relative;
  left: 0;
  right: 0;
  top: -35px;
  margin: auto;
  z-index: 1;
  margin-top: 35px;
}
#preview-meme-mobile-overflow {
  width: 100%;
  margin: auto;
  left: 0;
  right: 0;
  display: flex;
  cursor: pointer;
}
#title-container-new-mobile-overflow {
  position: absolute;
  bottom: -11px;
  background-image: url("https://external-pages.s3.amazonaws.com/yacht-metaphor/assets/titleborder.png");
  background-size: 100% 100%;
  max-width: 319px;
  width: 80%;
  max-height: 138px;
  height: 30%;
  left: 0;
  right: 0;
  margin: auto;
}
#mobile-dismiss-button-overflow {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
#mobile-dismiss-button-overflow img {
  width: 100%;
}
