/* #00a9e0 */ /* Amprion Offshore cyan */
/* #026487 */ /* Amprion Offshore dark-cyan */
/* #9e007e */ /* Amprion Offshore purple */
/* #480A3D */ /* Amprion Offshore dark-purple */
/* #323d48 */ /* Amprion Offshore font-color */
/* #526475 */ /* Amprion stroke color */

html { 
  /* make sure we use up the whole viewport */
  width: 100vw;
  min-height: 100vh;
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background-color: #fff;
}

body {
  /* make sure we use the full width but allow for more height */
  width: 100vw;
  /* min-height: 100vh; /
  /* min-height: calc(100vh - 100px - 44px); */ /* this helps with the sticky footer */
  
  /* https://stackoverflow.com/questions/39392423/calculating-width-of-scrollbar-and-using-result-in-calc-css */
  --scrollbar-width: calc(100vw - 100%); /* get the scrollbar width */
  
  /* font-family: Arial, "Helvetica Neue", sans-serif !important; */
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  text-align: left;
  background-color: #f2f2f2;
  color: #323d48;  /* Amprion Offshore font-color */
  overflow-x: hidden;
}

/* ===== Links ===== */
a,
a:link {
  color: #9e007e;
  text-decoration: underline;
}

a:active {
  color: #9e007e;
}

a:visited {
  color: #9e007e;
}

a:hover {
  color: #9e007e;
  text-decoration: underline;
}

h2 {
  font-weight:500 !important;
  color: #00a9e0;
}



.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: block;
  width: 100%;
  height: 100px;
  min-height: 100px;
  margin: 0;
  background-color: #fff;
  box-shadow: 0px 2px 8px 0px #7f7f7f;
}

.header-inner {
  margin: 0 10px;
}

.fixed-footer {
  position: realtive;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 44px;
  min-height: 44px;
  text-align: center;
  background-color: #ddd;
}

.fixed-footer-inner {

}



/* ===== Content ===== */
/* ----- mobile ----- */
.content {
  max-width: 576px;
  margin: 0 auto;
  margin-top: 100px;
  background: #fff;
}
.content-inner {
  margin: 0 10px;
}
.footer {
  display: block;
  max-width: 576px;
  margin: 0 auto;
  min-height: 44px;
  padding-bottom: 40px;
  background: #fff;
}
.footer-inner {
  margin: 0 10px;
  padding: 20px 0;
  text-align: left;
  white-space: nowrap;
  border-top: 2px solid #526475; /* Amprion stroke color */
}
.footer-inner div,
.footer-inner a {
  display: inline-block;
}
.spacer-footer-links {
  display: inline-block;
  height: 12px;
  width: 5vw;
  max-width: 40px;
  /* background: #fda; */
}

.main-inner {
  display: block;
}
.item-16to9 {
  position: relative;
  width: 100%;
  height: calc( (100vw - 20px + 2px) * 0.5625);     /* 100vw minus 2x 10px margin von .content-inner */
  max-height: calc( (576px - 20px + 2px) * 0.5625); /* max-width 576px minus 2x 10px margin von .content-inner */
  border: 1px solid #ddd;
  /* background: #999; */
}
.item-chat {
  margin-top: 20px;
  height: 400px;
  background: #fafafa;
  border: 1px solid #ddd;
}


/* ----- tablet ----- */
@media screen and (min-width: 576px) and (max-width: 1024px) {
  .header-inner {
    margin: 0 45px;
  }
  .content {
    max-width: 1024px;
    margin: 0 auto;
    margin-top: 100px;
    /* background: #ddf; */
  }
  .content-inner {
    margin: 0 45px;
  }
  
  .main-inner {

  }
  .item-16to9 {
    position: relative;
    width: 100%;
    height: calc( (100vw - 90px + 2px) * 0.5625);     /* 100vw minus 2x 45px margin */
    max-height: calc( (1024px - 90px + 2px) * 0.5625); /* max-width 576px minus 2x 45px margin */
    /* background: #666; */
  }
  .item-chat {
    
  }
  
  .footer {
    display: block;
    max-width: 1024px;
    margin: 0 auto;
    /* background: #ffd; */
  }
  .footer-inner {
    margin: 0 45px;
  }
}




/* ----- desktop ----- */
/* @media screen and (min-width: 1025px) and (max-width: 1800px) { */
@media screen and (min-width: 1025px) {
  .header-inner {
    max-width: 1610px;
    margin: 0 45px;
    /* background: #aaf; */
  }
  .content {
    max-width: 1700px;
    margin: 0 auto;
    margin-top: 100px;
    /* background: #dfd; */
  }
  .content-inner {
    margin: 0 45px;
  }
  
  .main-inner {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin: 0 auto;
    height: calc( (100vw - 500px + 2px) * 0.5625);
    max-height: calc( (1700px - 500px + 2px) * 0.5625);
    /* background-color: rgba(0,255,255,0.5); */
    overflow: hidden;
  }
  .item-16to9 {
    /* position: relative; */
    flex-grow: 0;
    margin: 0;
    padding: 0;
    width: calc(100vw - 500px);
    max-width: calc(1700px - 500px);
    height: calc( (100vw - 500px + 2px) * 0.5625);
    max-height: calc( (1700px - 500px + 2px) * 0.5625);
    
    /* width: calc(100vw - 500px); */ /* minus 2x margin 45px = 90; minus 380px for chat; minus 30px space between player & chat */
    /* max-width: calc(1800px - 500px);
    height: calc( (100vw - 500px) * 0.5625); */
    /* height: calc( (100vw - var(--scrollbar-width) - 500px) * 0.5625); */ /* 100vw - var(--scrollbar-width) - 500px */
    /* max-height: calc( (1800px - 500px) * 0.5625); */
    /* max-height: calc( (1800px - var(--scrollbar-width) - 500px) * 0.5625); */ /* 100vw - var(--scrollbar-width) - 500px */
    /* background: #333; */
  }
  .item-chat {
    margin-top: 0;
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    min-height: 150px;
    height: calc( (100vw - 500px) * 0.5625);
    max-height: calc( (1700px - 500px) * 0.5625);
    /* background: #f6a; */
  }
  
  .footer {
    display: block;
    max-width: 1700px;
    margin: 0 auto;
    /* background: #fdf; */
  }
  .footer-inner {
    margin: 0 45px;
  }
  .fixed-footer {
    position: fixed;
  }
}



/* ----- large-desktop ----- */
@media screen and (min-width: 1701px) {
.header-inner {
    max-width: 1610px;
    margin: 0 auto;
    /* background: #aaf; */
  }
}



/* ----- Fullscreen ----- */
#player-wrapper.fullscreen {
  display: flex;
  flex-wrap: nowrap; /* default */
  justify-content: space-between;
  align-items: center;
  
  width: 100%;
  /*
  height: 56.25vw;
  max-height: 56.25vw;
  */
  
  /* overflow: hidden; */
  background: transparent;
  background: #fff;
}

#player-wrapper.fullscreen .item-16to9 {
  display: flex;
  justify-content: center;
  align-items: center;
  
  position: relative;
  flex-grow: 2;
  background: transparent;
  
  width: calc(100vw - 500px);
  max-width: initial;
  min-width: initial;
  height: 100vh;
  height: calc( (100vw - 500px + 2px) * 0.5625 );
  min-height: initial;
  max-height: 100vh;

  /* background: #080; */
}

#player-wrapper.fullscreen .item-chat {
  width: 0px;
  min-width: 0px;
  max-width: 0px;
  transition: 0.5s;
  padding-left: 0px;
  /* background: #005E3F; */
  
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  margin-left: 30px;
  
  height: 100vh;
  height: calc( (100vw - 410px) * 0.5625 );
  min-height: initial;
  max-height: 100vh;
  
  /* background: #00f; */
}
