/**
 * CSIS UN Resolutions
 * http://chinapower.csis.org/
 *
 * Copyright 2019 Seven Mile Media | All Rights Reserved
 * http://sevenmilemedia.com/
 * Created for and Licensed to Center for Strategic and International Studies
 * https://www.csis.org/
 */

/* ================================================== */
/* Main styles
/* ================================================== */

html, body {
    height: 100%;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    color: #333;
    background-color: #fff;
    font-family: "Hind", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.01em;
    color: #263D45;
}

p {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

@media screen and (min-width: 480px) {
    p {
        font-size: 16px;
    }
}

ul {
    padding: 0;
    margin: 0;
}

a {
    color: #EA3B33;
    font-style: none;
}

a:hover {
    color: #EA3B33;
    font-style: underline;
}

.int-interactive {
    padding: 20px 10px;
    padding-top: 50px;
}

@media screen and (min-width: 480px) {
    .int-interactive {
        max-width: 1200px;
        margin: 0 auto;

        padding: 40px 20px;
        padding-top: 50px;
    }
}

.int-content {
    margin: 0 auto;
    margin-top: -350px;
}


/* ================================================== */
/* Header
/* ================================================== */

.int-header {
    max-width: 100%;
}

@media screen and (min-width: 768px) {
    .int-header {
        max-width: 55%;
    }
}

@media screen and (min-width: 1024px) {
    .int-header {
        max-width: 53%;
    }
}

.int-title {
    margin-bottom: 25px;
}

.int-title h1 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: bold;
}

@media screen and (min-width: 768px) {
    .int-title h1 {
        font-size: 28px;
    }
}

.int-title p {
    margin: 0;
}


/* ================================================== */
/* Dropdown menus
/* ================================================== */

.int-chart-input {
    margin-bottom: 25px;
}

@media screen and (min-width: 768px) {
    .int-chart-input {
        max-width: 500px;
    }
}

.int-chart-input h3 {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: normal;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 7px;
    color: #455a64;
}

.int-input-col {
    margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
    .int-input-row {
        margin: 0 -10px;
        display: flex;
    }
}

@media screen and (min-width: 768px) {
    .int-input-col {
        margin: 0 10px;
        flex: 1;
    }
}

.selectric-disabled {
    pointer-events: none;
}

.selectric {
    border-color: #465A63;
    border-width: 2px;
    background: #fff;
}

.selectric-items {
    border-color: #465A63;
    background: #fff;
}

.selectric .label,
.selectric-items ul,
.selectric-items li {
    font-size: 14px;
    color: #465A63;
}

.selectric-items li:hover {
    background: #465A63;
    color: #fff;
}

.selectric-items li.selected {
    background: #273D44;
    color: #fff;
}

.selectric .label {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    padding: 10px;
    letter-spacing: 0.02em;
}

.selectric-items li {
    position: relative;
    padding-left: 10px;
}

.selectric-hover .selectric {
    border-color: #273D44;
}

.selectric-open .selectric {
    background: #fff;
}

/* Dropdown caret */
.selectric .button {
    color: #455a64;
    padding: 23px;
}
.selectric .button:after {
    border: 8px solid transparent;
    border-top-color: #455a64;
}
#int-metric-dropdown .selectric .button {
    padding: 31px;
}


/* ================================================== */
/* Legend
/* ================================================== */

.int-legend {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
}

.int-legend-item {
    margin: 10px;
    display: flex;
}

.int-legend-marker {
    margin-right: 5px;
    height: 15px;
    width: 15px;
    background-color: #ccc;
    border-radius: 50%;
}

.int-legend-label {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    line-height: 1;
    margin: 1px 0 0;
    color: #455a64;
}


/* ================================================== */
/* Chart
/* ================================================== */

@media screen and (max-width: 768px) {
    .int-content circle {
        pointer-events: none;
    }
}

.int-disabled {
    pointer-events: none;
}


/* ================================================== */
/* X Axis
/* ================================================== */

.int-axis-x line {
    stroke: #eee;
}

.int-axis-x path {
    stroke: #eee;
}

.int-axis-x text {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    fill: #728c99;
    font-size: 12px;
}


/* ================================================== */
/* Tooltip
/* ================================================== */

.int-tooltip {
    display: none;
    position: absolute;
    top: 500px;
    left: 200px;
    width: 340px;
    padding: 20px;
    border: 2px solid #1E3B47;
    background-color: #fff;
    pointer-events: none;
    /* Tooltip drop shadow */
    box-shadow: 0 2px 7px 1px rgba(0,0,0,0.2);
}

.int-tooltip-header {
    margin-bottom: 10px;
}

.int-tooltip-header h1 {
    font-size: 18px;
    margin: 0 0 5px;
}

.int-tooltip-header h2 {
    font-size: 12px;
    font-weight: normal;
    margin: 0;
    color: #728c99;
}

.int-tooltip-description {
    margin: 0;
    font-size: 14px;
}


/* ================================================== */
/* Votes bar chart
/* ================================================== */

.int-bar-chart {
    margin-top: 10px;
    margin-bottom: 10px;
}

.int-bar-container {
    display: flex;
    margin: 0 -2px;
}

.int-bar {
    height: 25px;
    margin: 0 2px;
    display: flex;
    align-items: center;
}

.int-bar:nth-of-type(2) {
    justify-content: flex-end;
}

.int-bar p {
    font-size: 14px;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin: 0;
    margin: 0 6px;
}

.int-bar-labels {
    display: flex;
    justify-content: space-between;
}

.int-bar-labels p {
    font-size: 12px;
    color: #728c99;
    line-height: 1;
    margin: 0;
    margin-top: 5px;
}


/* ================================================== */
/* Country lists
/* ================================================== */

.int-country-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7px;
    width: 300px;
}

.int-tooltip-content h3 {
    font-size: 14px;
    margin-bottom: 7px;
}

.int-list-container {
    margin: 0 7px;
}

.int-list {
    display: flex;
    flex-wrap: wrap;
    width: 300px;
}

.int-list-label {
    padding: 5px 10px;
    border: 2px solid #2A3C44;
    margin-bottom: 5px;
    margin-right: 5px;
}

.int-list-label p {
    margin: 0;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.3;
    padding-top: 2px;
    color: #455a64;
}


/* ================================================== */
/* Source footer
/* ================================================== */

.int-source {
    text-align: right;
}

.int-source img {
    max-width: 180px;
    height: auto;
    margin-bottom: 5px;
}

@media screen and (min-width: 768px) {
    .int-source img {
        max-width: 220px;
    }
}

.int-source p {
    font-size: 12px;
    line-height: 1.1;
    margin: 0;
    text-align: right;
    color: #728c99;
}

.int-source a {
    color: #ed392a;
    text-decoration: none;
}

.int-source a:hover {
    text-decoration: underline;
}











