/* * {
  border: 1px dotted red;
  margin: -1px;
} */

/* GENERAL STUFF */

body {
    font-family: "IBM Plex Sans", sans-serif;
    line-height: 1.7;
    hyphens: auto;
    color: #c4c4c4;
}

#main-container {
    padding-top: 320px;
}

img {
    width: 100%;
}

canvas {
    vertical-align: top;
}

iframe {
    margin: 0;
    padding: 0;
    border: none;
}

.open-new {
    position: relative;
    height: 220px;
    background: #e0e0e0;
}

.open-new:after {
    content: "Open Sketch";
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.caption {
    fill: #c4c4c4;
}

/* NAVIGATION */

header {
    /* background-color: #f9f9fb; */
    margin-bottom: 5rem;
    position: relative;
}

/* header */

.header {
    /* background-color: #fff; */
    /* box-shadow: 0px 0px 5px 5px rgba(51, 51, 51, 0.1); */
    position: fixed;
    width: 100%;
    z-index: 3;
}

header hr {
    margin-top: 1rem;
}

.header #title,
.header #subtitle {
    transition: all 0.2s ease-in-out;
}

.header.scroll #title,
.header.scroll #subtitle {
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.header.scroll #title {
    font-size: 1.8rem;
    max-width: 50%;
    margin-bottom: 0;
}

.header.scroll #subtitle {
    font-size: 1.2rem;
    float: right;
    margin-top: 0.6rem;
    max-width: 50%;
}

.header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    /* background-color: #fff; */
}

.header li {
    font-size: 1.3rem;
    transition: all 0.2s ease-in-out;
}

.header li a {
    text-decoration: none;
    display: block;
    color: #777;
    text-align: center;
    padding: 7px 14px 7px 0px;
    text-decoration: none;
}

.header.scroll li {
    font-size: 1.2rem;
}
.header.scroll li a {
    padding: 5px 10px 5px 0px;
}

#nav-container {
    height: 100%;
    padding-top: 1em;
}
.header.scroll #nav-container {
    padding-top: 0.4em;
}

#nav-container ul {
    list-style-type: none;
    padding: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    color: #777;
}

#nav-container ul li {
    /* float: left; */
    display: inline-block;
    margin: 0;
    color: #777;
}

#nav-container ul li a:hover {
    display: block;
    color: #d22;
    text-align: center;
    text-decoration: none;
}

.header .menu {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    clear: both;
    max-height: 0;
    transition: max-height 0.2s ease-out;
}

a.anchor {
    display: block;
    position: relative;
    top: -95px;
    visibility: hidden;
}

/* menu icon */

.header .menu-icon {
    cursor: pointer;
    display: inline-block;
    float: left;
    padding: 28px 20px;
    position: relative;
    user-select: none;
}

.header hr {
    margin-bottom: 0;
}

.header .menu-icon .navicon {
    background: #777;
    display: block;
    height: 2px;
    position: relative;
    transition: background 0.2s ease-out;
    width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
    background: #777;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease-out;
    width: 100%;
}

.header .menu-icon .navicon:before {
    top: 5px;
}

.header .menu-icon .navicon:after {
    top: -5px;
}

/* menu btn */

.header .menu-btn {
    display: none;
}

.header .menu-btn:checked ~ .menu {
    max-height: 240px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    top: 0;
}

footer {
    font-size: 1.1rem;
    margin-bottom: 3em !important;
}

@media (min-width: 550px) {
    .header .menu {
        clear: none;
        float: right;
        max-height: none;
    }
    .header .menu-icon {
        display: none;
    }
}

@media (max-width: 550px) {
    .header #title {
        font-size: 1.8rem;
    }
    .header #subtitle {
        font-size: 1.2rem;
    }
    .header .menu li {
        float: none !important;
    }
    .header .menu li a {
        text-align: unset !important;
        padding-left: 20px !important;
    }
    .header #title.scroll,
    .header #subtitle.scroll {
        display: block;
        float: unset;
        margin-top: inherit;
    }
    #nav-container ul {
        display: inline-block;
        width: unset;
    }
    #nav-container ul li {
        display: unset;
    }
    #nav-container ul li a {
        padding: 5px;
    }
}
/* CONTENT */

.row.no-margin {
    margin-bottom: 0;
}
/* Customize the label (the container) */

.label-container {
    font-weight: 400;
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.label-container.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #eee;
    border: 1px solid #333;
    border-radius: 2px;
}

/* On mouse-over, add a grey background color */
.label-container.checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.label-container.checkbox input:checked ~ .checkmark {
    background-color: #333;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.label-container.checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.label-container.checkbox .checkmark:after {
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Hide the browser's default radio button */
.label-container.radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* On mouse-over, add a grey background color */
.label-container.radio:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.label-container.radio input:checked ~ .checkmark {
    background-color: #333;
}

/* Show the indicator (dot/circle) when checked */
.label-container.radio input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.label-container.radio .checkmark:after {
    top: 4px;
    left: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: white;
}

.legend {
    padding: 5px;
    font: 10px sans-serif;
    background: yellow;
    box-shadow: 2px 2px 1px #888;
}

.tooltip {
    background: #e4e4e4;
    box-shadow: 0 0 5px #999999;
    color: #333;
    font-size: 12px;
    left: 130px;
    padding: 20px;
    position: absolute;
    text-align: center;
    top: 95px;
    z-index: 10;
    display: block;
    opacity: 0;
}

.x.axis path {
    display: none;
}

.aster-score {
    line-height: 1;
    font-weight: bold;
    font-size: 500%;
}

.d3-tip {
    line-height: 1;
    font-weight: bold;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 2px;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
    box-sizing: border-box;
    display: inline;
    font-size: 10px;
    width: 100%;
    line-height: 1;
    color: rgba(0, 0, 0, 0.8);
    content: "\25BC";
    position: absolute;
    text-align: center;
}

/* Style northward tooltips differently */
.d3-tip.n:after {
    margin: -1px 0 0 0;
    top: 100%;
    left: 0;
}

#nav-container input[type="text"] {
    float: right;
    padding: 6px;
    border: none;
    margin-top: 8px;
    margin-right: 16px;
    font-size: 17px;
    background: transparent;
    color: #cecece;
}

#chart {
    background-color: #333333;
    position: fixed;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
}

button:hover,
button:focus {
    color: #c1c1c1;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    color: initial;
    border-color: initial;
}
.text-button {
    border: none;
}
.modal button,
.modal button:hover,
.modal button:focus {
    color: initial;
    border-color: initial;
}

/* Modal Content/Box */
.modal-content {
    background-color: #e6e6e6;
    margin: 10% auto; /* 15% from the top and centered */
    padding: 40px;
    border: 1px solid #888;
    width: 70%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #000;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.inline-radio {
    display: inline-block;
}
