/* Intended organization: least to most specific, top to bottom, and left to right. Then alphabetical. */
/* Media queries at the bottom. One linebreak between rules, two between sections. */
/* Prefer classes to id's and hyphens to underscores. */
/* But the important thing is that it works. */

* {
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
}

html, body, #root {
    height: 100%;
}

body {
    overflow: hidden;
}

h2 {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2em;
    text-overflow: ellipsis;
}

a {
    color: #6fa9b8;
    text-decoration: none;
}

ul {
    margin-bottom: 0;
}

a:hover,
a:active,
a:visited,
a:focus,
a {
    color: #89C3D2;
    text-decoration: none;
}

button {
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
}

ol li {
    background-color: inherit;
}

#root {
    background-color: black;
}

.no-webgl {
    margin-top: 10%;
}

.no-webgl img, .no-webgl p {
    display: block;
    font-family: "Open Sans Semibold", sans-serif;
    font-size: 24px;
    line-height: 1.45;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    max-width: 1050px;
    text-align: center;
}

.skunk {
    color: #E99B9B;
}
.berry {
    color: #D6C4E6;
}
.landrace {
    color: #BBD7C6;
}
.cbd {
    color: #99C9D8;
}
.hemp {
    color: #E3D6B9;
}
.kush {
    color: #6fa9b8;
}

/* Loader */
.loader-wrapper {
    color: white;
    font-size: 20px;
    margin: 0 auto;
    max-width: 30em;
    text-align: center;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-gif {
    width: 35px;
    top: 45%;
    position: absolute;
}


/* Logo */
.pb-constellation-logo {
    position: fixed;
    z-index: 1;
    bottom: 10px;
    left: 15px;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Sidebar */
.sidebar {
    height: auto;
    max-height: 80%;
    position: absolute;
    top: 20px;
    width: 325px;
}

.control-dark {
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    background-color: #34373f;
    box-shadow: 0 2px 4px rgba(1,1,1,0.2), 0 -1px 0 rgba(1,1,1,0.02);
    border-radius: 2px 2px 0 0;
    color: white;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.95;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    bottom: 20px;
    right: 0;
    top: 0;
    z-index: 4;
}

.sidebar h3 {
    margin-left: 32px;
    margin-top: 27px;
}

.sidebar h4 {
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 5px;
    margin-top: 15px;
}

::-webkit-scrollbar {
    width: 8px;
    -webkit-border-radius: 100px;
}

::-webkit-scrollbar-track {
    background: rgba(52,55,63, 0.9);
}

::-webkit-scrollbar-thumb {
    background: rgba(100,100,100,0.8);
    background: #4c4e54;
    height: 50px;
    -webkit-border-radius: 100px;
}
::-webkit-scrollbar-thumb:window-inactive {
    display: none;
}

/* Left Sidebar */
.left-sidebar {
    left: 20px;
    margin: 0;
    position: absolute;
    top: 20px;
    width: 325px;
    z-index: 1;
}

.left-sidebar h4 {
    margin-top: 30px;
}


/* Tutorial */
.left-sidebar .control-content {
    height: 100%;
    padding-top: 20px;
    margin-left: 20px;
    padding-right: 5px;
}

.control-content div {
    height: 100%;
}

#info-text {
    max-height: 85%;
    overflow-x: hidden;
    overflow-y: scroll;
    padding-bottom: 15px;
    padding-right: 15px;
    text-align: justify;
}

#info-text ul {
    margin-bottom: 10px;
}

#info-text .details-results-link a {
    width: 98%;
    font-size: 12px;
    font-weight: 500;
}

.control-content div.float-wrapper {
    height: fit-content;
    width: 100%;
}

.tutorial-image {
    float: left;
    margin-right: 10px;
    width: 20px;
}

.tutorial-node-image {
    margin-left: 5px;
    margin-right: 15px;
}

.tutorial-super-node-image {
    width: 30px;
}

.population-plot {
    width: 100%;
}

#stop-tour {
    height: 65px;
}

.tour-button {
    font-size: 18px;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    width: 90%;
}


/* Right Sidebar */
.sidebar.right-sidebar {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    right: 20px;
    top: 20px;
}

.control-dark .collapse-link {
    float: right;
    font-size: 135%;
}

.control-dark .collapse-link a {
    color: white
}

.collapse-link:hover {
    color: #ddd;
}

.control-dark .collapse-link-details {
    position: absolute;
    right: 50px;
    top: 26px;
    z-index: 10;
}

.right-sidebar .pb-constellation-details-panel.empty {
    height: 78px;
}


/* Search */
div.search-pane {
    flex: 0 1 81px;
}

.strain-search-container {
    z-index: 10;
    margin-top: 0;
    width: 300px;
    padding-bottom: 18px;
}

.search-wrapper, .url-copier input {
    background-color: #4c4e54;
    border-radius: 4px;
    color: #ffffff;
    display: inline-block;
    left: 10px;
    letter-spacing: 1px;
    position: relative;
    width: 100%;
    border: none;
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 1);
    box-shadow: 0 0 1px rgba(0, 0, 0, 1);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    padding: 5px;
}

.strain-search-input {
    -webkit-appearance: textfield;
    background-color: transparent;
    border: none;
    height: 28px;
    letter-spacing: 1px;
    outline: 0;
    padding-left: 15px;
    box-shadow: none;
    width: 100%;
}

::-webkit-input-placeholder {
    color: white;
    font-size: 13px;
}

:-moz-placeholder { /* Firefox 18- */
    color: white;
    font-size: 13px;
}

::-moz-placeholder {  /* Firefox 19+ */
    color: white;
    font-size: 13px;
}

:-ms-input-placeholder {
    color: white;
    font-size: 12px;
}

.search-controls-wrapper button {
    background-color: transparent;
    border: none;
}

.constellation-action.glyphicon-search {
    font-size: 100%;
    position: absolute;
    right: 31px;
    top: 30px;
}

#constellation-control-search-button {
    display: inline-block;
}


/* Header */
.primary-header {
    background-color: #191d25;
    flex: 0 0 auto;
    padding-left: 15px;
    padding-top: 10px;
    height: fit-content;
}

.primary-header > div {
    display: inline-block;
}

.primary-header div {
    width: 100%;
}

.primary-header > :last-child {
    padding-bottom: 15px;
}

.grower-pane header .grower-name {
    font-size: 18px;
}

.grower-pane .strain-detail .grower-name {
    font-weight: 400;
}

.cluster-row {
    color: #ffffff;
    font-size: 13px;
}

.cluster-name {
    color: #6fa9b8;
    cursor: pointer;
}

header .source-location-row:before {
    font-family: "Glyphicons Halflings";
    content: "\e062";
    margin-right: 8px;
    font-size: 14px;
}

.source-email-row:before {
    font-family: "Glyphicons Halflings";
    content: "\2709";
    font-size: 14px;
    margin-right: 8px;
}

.source-youtube-row:before {
    font-size: 14px;
    margin-right: 8px;
}

.source-youtube-row {
    margin-top: 8px;
}

.source-url-row:before {
    font-family: "Glyphicons Halflings";
    content: "\e135";
    margin-right: 8px;
    font-size: 14px;
}

.source-phone-row:before {
    font-family: "Glyphicons Halflings";
    content: "\e182";
    margin-right: 8px;
    font-size: 14px;
}

.avatar {
    position: absolute;
    top: 225px;
    left: 230px;
}

.primary-header .url-copier {
    position: fixed;
    width: 90%;
}


/* Grower Header */
.grower-logo, .primary-header > img {
    border-radius: 30px;
    position: absolute;
    right: 25px;
}

.grower-details-row a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

#details_grower {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Details */
.strain-details-list {
    display: flex;
    flex: 1 auto;
    flex-direction: column;
    list-style-type: none;
    overflow-y: auto;
    padding: 0;
}

.strain-details {
    border-bottom: 1px solid #000000;
    display: block;
    padding-left: 15px;
    width: 100%;
}

.strain-details div {
    max-width: 300px;
    width: fit-content;
}

.strain-details > :last-child {
    padding-bottom: 15px;
}

.strain-details:hover, .node-view li {
    background-color: #3a3d43;
    text-decoration: none;
}

.node-view .super-node li, .node-view .search-active li {
    background-color: transparent;
}

.strain-details:hover, .node-view .super-node li:hover, .node-view .search-active li:hover {
    background-color: #191d25;
}

.node-view .strain-details:hover, .node-view li {
    background-color: #3a3d43;
}

.strain-details :hover,
.strain-details :active,
.strain-details :visited,
.strain-details :focus,
.strain-details-list a {
    text-decoration: none;
}

.detail-section {
    height: fit-content;
    margin-top: 5px;
    padding-bottom: 25px;
    border-bottom: 1px solid #34373f;
}

.detail-section .row {
  width: 100%;
}

.strain-detail, .detail-text {
    height: fit-content;
}

.strain-detail-title {
    color: #ffffff;
    font-size: 16px;
    margin: 0;
    text-decoration: none;
}

.strain-detail-title:hover, .strain-detail-title:visited, .strain-detail-title:active {
    text-decoration: none;
}

.strain-detail-results a {
    color: #6fa9b8;
    font-size: 11px;
    font-weight: 500;
}

.details-results-link a, .search-results a, .url-copier button {
    color: white;
    background-color: #3a3d43;
    height: 37px;
    margin-top: 15px;
    display: block;
    width: 172px;
    text-align: center;
    border-radius: 1px;
    font-size: 16px;
    line-height: 35px;
}

.strain-detail-results a:active,
.strain-detail-results a:focus,
.strain-detail-results a:hover,
.strain-details-list a:hover,
#details_grower:hover,
a.tour-button:hover {
    color: #89C3D2;
    text-decoration: none;
}

.strain-detail-results a:visited {
    text-decoration: none;
}

.fa {
    font-size: 17px;
    margin-right: 7px;
}
.fa-share-alt {
    display: inline-block;
    margin-top: 20px;
}
.url-copier {
    display: inline-block;
}
.url-copier input {
    margin-right: 5px;
    position: relative;
    left: 0;
    width: 215px;
}
.url-copier button {
    display: inline-block;
    line-height: 24px;
    width: 50px;
    height: 25px;
    font-size: 14px;
}

/* Double-Column */
.row {
    display: inline-block;
    width: 100%;
    margin-left: 0;
}

.column {
    text-transform: capitalize;
    display: inline-block;
    width: 60%;
}

.column:first-child {
    width: 38%;
}


/* Flavor Profile */
.flavor-profile-detail {
    padding-top: 15px;
}


/* Control Buttons */
.const_trans_side_panel {
    bottom: 20px;
    margin: 0 auto;
    position: absolute;
    right: 20px;
    text-align: center;
    width: 325px;
}

.buttons .constellation_control_button {
    display: inline-block;
    margin-right: 20px;
    margin-top: 20px
}

.connection-button {
    background-image: url('/galaxy/images/connection.svg');
    background-repeat: no-repeat;
    height: 27px;
    width: 27px;
}

.constellation_control_cannatype_button {
    margin-right: 0;
}

.genotype-button {
    background-image: url('/galaxy/images/genotyping-gold.svg');
    background-repeat: no-repeat;
    height: 28px;
    width: 28px;
}

.constellation-action {
    color: white;
    z-index: 5;
    font-size: 180%;
}

.constellation-action:hover {
    color: #ddd;
}


/* Omni Mode */
.version-dropdown {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: fixed;
    right: 40px;
    bottom: 100px;
    z-index: 2;
    width: 400px;
    background-color: #4c4e54;
    color: #fff;
    border: none;
    opacity: 0.95;
}

/* Media Queries */
/* Widest to narrowest and tallest to shortest */
@media screen and (max-width: 670px) {
    .left-sidebar {
        height: calc(94%);
        top: 3%;
        width: 94%;
        left: 3%;
        opacity: 1;
        z-index: 10;
    }
}

@media screen and (max-width: 640px) {
    .sidebar.right-sidebar {
        right: 0;
        top: 0;
        width: 100%;
    }
    .pb-constellation-logo {
        display: none;
    }
    .strain-search-container {
        margin-left: 20px;
        margin-right: 20px;
        width: auto;
    }
    .constellation-action.glyphicon-search {
        right: 24px;
    }
    .control-dark .collapse-link-details {
        right: 48px;
    }
    .buttons {
        bottom: 20px;
        position: absolute;
        margin: 0 auto;
        right: 0px;
        text-align: center;
        width: 100%;
    }
}

@media screen and (max-height: 640px) and (max-width: 760px) {
    .grower-view .strain-details-list {
        height: 120px;
    }
}


@media screen and (max-height: 575px) {
    .source-location-row {
        margin-top: 15px;
    }
}

@media screen and (max-height: 470px) {
    .pb-constellation-logo {
        display: none;
    }
    #info-text {
        max-height: 75%;
        overflow-x: hidden;
        overflow-y: scroll;
    }
    .sidebar {
        max-height: 75%;
    }
}

@media screen and (max-height: 430px) {
    .sidebar {
        max-height: 70%;
    }
}

@media screen and (max-height: 265px) {
    .sidebar {
        max-height: 60%;
    }
}
