
:root {
  --blue: #04aee7;
  --white: #d5d5d5;
  --off-white: #acb6bf;
  --light-grey: #777777;
  --main-container-bg: #151b22;
  /* --image-container-bg: #0d1118; */
  --image-container-bg: #010409;
  --link-color:  #00b7ff;
  --border-grey: #353948;
  --border: 1px solid #353948;
  }

  /* @font-face {
  font-family:'junctionregular';
  src:url("https://raw.githubusercontent.com/theleagueof/junction/master/_webfonts/junction-webfont.eot");
  src:url("https://raw.githubusercontent.com/theleagueof/junction/master/_webfonts/junction-webfont.eot?#iefix") format("embedded-opentype"),
      url("https://raw.githubusercontent.com/theleagueof/junction/master/_webfonts/junction-webfont.woff") format("woff"),
      url("https://raw.githubusercontent.com/theleagueof/junction/master/_webfonts/junction-webfont.ttf") format("truetype"),
      url("https://raw.githubusercontent.com/theleagueof/junction/master/_webfonts/junction-webfont.svg#junctionregular") format("svg");
  } */

  body {
    max-height: 100vh;
    color: var(--white);
    font: normal 300 1rem "Lucida Grande", Helvetica, Arial, sans-serif;
  }

  h1,h2,h3,h4,h5,h6 {
    font-family: "junctionregular", "lucida grande", "lucida sans console", sans-serif;
  }

  p {
    font-size: .875rem;
  }

  a {
    color: var(--link);
    text-decoration: none;
  }

  i {
    font-weight: 100;
  }
  .row>* {
    padding-right: 0;
    padding-left: 0;
  }

  .btn {
    color: var(--off-white);
    background-color: transparent;
    border: none;
  }

  .btn:hover {
    color: var(--blue);
    background-color: var(--image-container-bg);
    border: var(--border);
    transform: scale(1.1);
    transition: all 0.4s;
  }

  .btn-group label {
    font-size: .625rem;
  }

  .dropdown-menu {
    background-color: var(--main-container-bg);
    color: var(--off-white);
  }

  .dropdown-item {
    color: var(--off-white);
  }

  .form-control {
    background-color: var(--image-container-bg);
    color: var(--off-white);
    border: var(--border);
  }

  .labeled {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .main-container {
    height: 100vh;
    border: var(--border);
    border-bottom: none;
    background-color: var(--main-container-bg);
  }

  .steps {
    height: 3rem;
    width: 3rem;
    font-size: .75rem;
    display:flex;
    justify-content:center;
    align-items:center;
    background-color: transparent;
    border: var(--border);
    border-radius: 50%;
    position: absolute;
  }

  .steps:hover {
    color: var(--blue);
    border: 1px solid var(--blue);
  }

  .step1 {
    top:.3rem;
    left:34rem;
  }

  .step2 {
    top:7rem;
    left:9rem;
  }

  .step3 {
    top:25rem;
    left:9rem;
  }

  .header {
    height:11vh;
    padding: 0 2rem;
    display:flex;
    justify-content: space-between;
    align-items:center;
  }
  .header-title {
    display:flex;
    justify-content:center;
  }

  .logo {
    display:block;
    height:2.75rem;
    width:auto;
    padding-right:.5rem;
    padding-top:.5rem;
  }

  /*Video and Resolution controls*/
#custom-seekbar {
  cursor: pointer;
  height: 10px;
  /* margin-bottom: 10px; */
  margin-right: 1rem;
  outline: thin solid orange;
  overflow: hidden;
  /* position: relative; */
  width: 5rem;
}

#custom-seekbar span {
  display: inline-block;
  background-color: orange;
  /* position: absolute; */
  /* top: 0; */
  /* left: 0; */
  height: 10px;
  width: 0px;
}

/* #file-sel {
  position:absolute;
  left:0;
  width:55px;
  height:44px;
  opacity:0;
} */

  /* ---------------------------------------------   image container ----------------------- */
  .image-container {
    height: 78vh;
    background-color:var(--image-container-bg);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #fullscreen{
    opacity:0.5;
    position:absolute;
    right:2vw;
    top:12vh;
    z-index:3;
  }

  .welcome-msg {
    width: clamp(20vw, 50vw, 83.33vw);
    height: 78vh;
    max-height: 78vh;
    color: var(--off-white);
    position: absolute;
    z-index: 3;
  }

  .welcome-msg-text {
    width: clamp(20vw, 50vw, 80vw);
    margin: 0 auto;
  }

  .welcome-msg-text h2 {
    line-height: 1.875rem;
    margin-top: 2rem;
    text-align: center;
  }

  .welcome-msg-text h2::after {
    background-color: var(--blue);
    content: " ";
    display: block;
    height: 2px;
    margin: 1rem auto;
    width: 2.5rem;
  }

  .welcome-msg-text p {
    text-align:left;
    /* margin-bottom:3rem; */
  }

  .sample-images {
    margin: 0 auto;
    background-color:var(--main-container-bg);
    min-width:15rem;
  }

  #overlay-container {
    position:absolute;
    display: inline-block;
    overflow:hidden;
    width:800px;
    max-width:83.3333vw;
    height:600px;
    max-height: 78vh;
  }

  #overlay-save-btn {
    margin-top:2px;
  }

  #overlay-img {
    opacity:0.5;
  }

  div#colorbar-container {
    display: inline-block;
    width: 70%;
    position:absolute;
    bottom:11vh;
    left:16.66vw;
    width:83.33vw;
    /* height:100%; */
    border:1px solid green;
  }

  div#colorbar-container canvas#colorbar {
    width: 80%;
    height: 2em;
    vertical-align: middle;
  }

  #image {
    /* background-color: #ddd; */
    width:800px;
    max-width:83.3333vw;
    height:600px;
    max-height: 78vh;
  }

    /* ---------------------------------------------   side-bar  --------------------------- */
  .sidebar {
    height: 89vh;
    padding: 0 .875rem;
    border-right: var(--border);
  }

  .info-icon {
    font-size: .875rem;
  }

  .analysis-tools .btn {
    font-size:.75rem;
    margin-bottom: .3rem;
    border: 1px solid var(--blue);
  }

  .analysis-tools p {
    font-size:.625rem;
    padding-left:.75rem;
  }

  #preset-modal {
    width: 15rem;
    background-color: var(--main-container-bg);
  }

  .tool-divider::before {
    background-color: #353948;
    content: " ";
    display: block;
    height: 1px;
    margin-bottom: 1rem;
    width: 4rem;
  }

  .tool-panel {
    height: 11vh;
    margin-top:-11vh;
  }
  #preset-modalMobile {
    background-color: var(--main-container-bg);
    height: 20vh;
  }

    /* --------------------------------------------------   @media --------------------------- */
  /* ---------------------------------------------------   500px --------------------------- */
   /* total height:
  header: 15vh
  image-container: 60vh
  mobile-analysis-tools: 10vh
  tool-panel: 15vh */
  @media only screen and (max-width: 550px) {
    .header {
      height: 15vh;
      flex-wrap: wrap;
      padding:0;
    }
    .header-title {
      width: 100vh;
      display:flex;
      justify-content:center;
    }
    .header h1 {
      display:inline-block;
    }
    .header .media-tools {
      margin-left: 0;
    }
    .image-container {
      height: 60vh;
    }
    #fullscreen{
      top:17vh;
    }
    .welcome-msg {
      width: clamp(20vw, 80vw, 100vw);
      height: 60vh;
      max-height:60vh;
      display:flex;
      flex-direction:column;
      justify-content: space-around;
      align-items: center;
    }
    .welcome-msg-text {
      width:80%;
    }
    .welcome-msg-text p{
      display:none;
    }
    .mobile-analysis-tools {
      height:10vh;
      align-items: start;
    }
    #image{
      width:100vw;
      height:auto;
    }
    div#colorbar-container {
      bottom:25vh;
      left:0;
      width:100vh;
    }

    .analyze-info{
      padding-top:2rem;
    }
    #preset-modalMobile {
      height: 40vh;
    }

    .tool-panel {
      height: 15vh;
      margin-top: 0;
      flex-wrap: wrap;
    }

    .zoom{
      max-width: 8rem;
    }
    #analyze-dropdown {
      margin-left: 2rem;
    }
    }


  /* --------------------------------------------------   @media --------------------------- */
  /* ---------------------------------------------------   768px (for canvas integrity) --------------------------- */
  /* total height:
  header: 15vh
  image-container: 65vh
  mobile-analysis-tools: 10vh
  tool-panel: 10vh */

  @media only screen and (min-width: 551px) and (max-width: 768px){
  /* body {
    overflow-x: hidden !important;
  } */

  p {
    font-size: .625rem;
    margin-bottom: 0;
  }

  .btn-sm {
    font-size: .625rem;
  }

  .header {
    height: 15vh;
    flex-wrap: wrap;
    justify-content:space-around;
  }

  .logo {
    padding-top: 0.5rem;
    height:2.5rem;
  }

  .header-title {
    width: 100%;
    display:flex;
    justify-content:center;
  }

  .mediaSelect {
    margin-left: 0;
    margin-right: auto;
  }

  #image-container {
    height: 65vh;
  }
  #fullscreen{
    top:17vh;
  }
  .welcome-msg {
    width: clamp(20vw, 80vw, 100vw);
    height: 65vh;
    max-height:65vh;
    display:flex;
    flex-direction:column;
    justify-content: space-around;
    align-items: center;
  }
  .welcome-msg-text {
    width:80%;
  }
  #overlay-container {
    max-width: 100vw;
    max-height: 73vh;
  }

  #image {
    max-width: 100vw;
    height: 65vh;
    max-height: 65vh;
    margin-right:0 !important;
  }

  div#colorbar-container {
    bottom:20vh;
    left:0;
    width:100vh;
  }

  div#colorbar-container canvas#colorbar {
    width: 80%;
    height: 2em;
    vertical-align: middle;
  }

  #preset-modalMobile {
    height: 30vh;
  }

  .mobile-analysis-tools {
    height:10vh;
    padding: 0 1rem;
  }

  .tool-panel {
    height: 10vh;
    margin-top: 0;
  }


  }

  /* --------------------------------------------------   @media --------------------------- */
  /* --------------------------------------------------   1100px --------------------------- */
  @media only screen and (min-width: 769px) and (min-width: 1100px){
    .analysis-tools .btn{
      font-size: .625rem;
    }

    .analysis-tools p {
      padding-left: 0;
    }
    .welcome-msg-text {
    max-width:80%;
    }

    .welcome-msg-text p {
      margin-bottom: 1.5rem;
    }
  }

*.fa-circle {color: red}
