* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*
 * -- BASE STYLES --
 * Most of these are inherited from Base, but I want to change a few.
 */
html {
    height: 100%;
}

body {
    line-height: 1.7em;
    color: #434343;
    height: 100%;
    overflow-y: scroll;
}

h1,
h2,
h3,
h4,
h5,
h6,
label {
    color: #131313;
}

.pure-img-responsive {
    max-width: 100%;
    height: auto;
}

/*
 * -- LAYOUT STYLES --
 * These are some useful classes which I will need
 */
.l-box {
    padding: 1em;
}

.l-box-lrg {
    padding: 2em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.is-center {
    text-align: center;
}



/*
 * -- PURE FORM STYLES --
 * Style the form inputs and labels
 */
.pure-form label {
    margin: 1em 0 0;
    font-weight: bold;
    font-size: 100%;
}

.pure-form input[type] {
    border: 2px solid #ddd;
    box-shadow: none;
    font-size: 100%;
    width: 100%;
    margin-bottom: 1em;
}

/*
 * -- PURE BUTTON STYLES --
 * I want my pure-button elements to look a little different
 */
.pure-button {
    background-color: #1f8dd6;
    color: white;
    padding: 0.5em 2em;
    border-radius: 5px;
}

a.pure-button-primary {
    background: white;
    color: #1f8dd6;
    border-radius: 5px;
    font-size: 120%;
}


/*
 * -- MENU STYLES --
 * I want to customize how my .pure-menu looks at the top of the page
 */

.home-menu {
    padding: 0.5em;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.10);
    background: #26578a;
}

.pure-menu.pure-menu-fixed {
    /* Fixed menus normally have a border at the bottom. */
    border-bottom: none;
    /* I need a higher z-index here because of the scroll-over effect. */
    z-index: 4;
}

.home-menu .pure-menu-heading {
    color: white;
    font-weight: 600;
    font-size: 120%;
}

.home-menu .pure-menu-selected a {
    color: white;
}

.home-menu a {
    color: white;
}

.home-menu li a:hover,
.home-menu li a:focus {
    background: none;
    border: none;
    color: #6FBEF3;
}


/*
 * -- SPLASH STYLES --
 * This is the blue top section that appears on the page.
 */

.splash-container {
    background: #1f8dd6;
    z-index: 1;
    overflow: hidden;
    /* The following styles are required for the "scroll-over" effect */
    width: 100%;
    top: 0;
    left: 0;
    position: fixed !important;
}

.splash {
    /* absolute center .splash within .splash-container */
    width: 80%;
    margin: auto;
    position: absolute;
    top: 0px;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    text-transform: uppercase;
}

/* This is the main heading that appears on the blue section */
.splash-head {
    font-size: 20px;
    font-weight: bold;
    color: white;
    border: 3px solid white;
    padding: 1em 1.6em;
    font-weight: 100;
    border-radius: 5px;
    line-height: 1em;
}

/* This is the subheading that appears on the blue section */
.splash-subhead {
    color: white;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/*
 * -- CONTENT STYLES --
 * This represents the content area (everything below the blue section)
 */
.content-wrapper {
    /* These styles are required for the "scroll-over" effect */
    position: absolute;
    top: 87%;
    width: 100%;
    min-height: 12%;
    z-index: 2;
    background: white;

}

/* We want to give the content area some more padding */
.content {
    padding: 1em 1em 3em;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 120px;
}

/* This is the class used for the main content headers (<h2>) */
.content-head {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 2em 0 1em;
}

/* This is a modifier class used when the content-head is inside a ribbon */
.content-head-ribbon {
    color: white;
}

/* This is the class used for the content sub-headers (<h3>) */
.content-subhead {
    color: #1f8dd6;
}

.content-subhead i {
    margin-right: 7px;
}

/* This is the class used for the dark-background areas. */
.ribbon {
    background: #2d3e50;
    color: #aaa;
}

/* This is the class used for the footer */
.footer {
    background: #111;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/*
 * -- TABLET (AND UP) MEDIA QUERIES --
 * On tablets and other medium-sized devices, we want to customize some
 * of the mobile styles.
 */
@media (min-width: 48em) {

    /* We increase the body font size */
    body {
        font-size: 16px;
    }

    /* We can align the menu header to the left, but float the
    menu items to the right. */
    .home-menu {
        text-align: left;
    }

    .home-menu ul {
        float: right;
    }

    /* We increase the height of the splash-container */
    /*    .splash-container {
        height: 500px;
    }*/

    /* We decrease the width of the .splash, since we have more width
    to work with */
    .splash {
        width: 50%;
        height: 50%;
    }

    .splash-head {
        font-size: 250%;
    }


    /* We remove the border-separator assigned to .l-box-lrg */
    .l-box-lrg {
        border: none;
    }

}

/*
 * -- DESKTOP (AND UP) MEDIA QUERIES --
 * On desktops and other large devices, we want to over-ride some
 * of the mobile and tablet styles.
 */
@media (min-width: 78em) {

    /* We increase the header font size even more */
    .splash-head {
        font-size: 300%;
    }

    #stats-relays-inner {
        margin-right: 40px;
    }

    #stats-builders-inner {
        margin-left: 40px;
    }
}

.stats-table {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pure-table thead {
    background: #2a629d;
    color: white;
}

.pure-table-striped tr:nth-child(2n-1) td {
    background: #30d2f80d !important;
}


.pure-table tr:hover td {
    background: #129fea1f !important;
}

.pure-table tr.active td {
    background: #c3e3fe !important;
}

h1 {
    font-size: 3em;
    margin: 1em 0;
    line-height: 1.5em;
}

/*
 * Tooltips, using popper.js
 * https: //popper.js.org/docs/v2/tutorial/
 */
.tooltip {
    background: #333;
    color: white;
    /* font-weight: bold; */
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    display: none;
}

.tooltip[data-show] {
    display: block;
}

.arrow,
.arrow::before {
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
}

.arrow {
    visibility: hidden;
}

.arrow::before {
    visibility: visible;
    content: '';
    transform: rotate(45deg);
}

.tooltip[data-popper-placement^='top']>.arrow {
    bottom: -4px;
}

.tooltip[data-popper-placement^='bottom']>.arrow {
    top: -4px;
}

.tooltip[data-popper-placement^='left']>.arrow {
    right: -4px;
}

.tooltip[data-popper-placement^='right']>.arrow {
    left: -4px;
}

/* Tooltip for builder aliases */
.tooltip-icon {
    padding-left: 4px;
}

.tooltip.builder-aliases {
    padding: 10px;
}

.tooltip.builder-aliases ul {
    margin: 0;
    padding-left: 20px;
}

/* copy builders to clipboard */
#header-top-builders,
#header-top-relays {
    text-align: center;
    position: relative;
}

#copy-relays-to-clipboard,
#copy-builders-to-clipboard {
    position: absolute;
    right: 0;
}

#header-top-builders:hover #copy-builders-to-clipboard {
    display: block;
}

#copy-builders-to-clipboard {
    display: none;
}

#copy-builders-to-clipboard a {
    color: #131313;
}

#header-top-relays:hover #copy-relays-to-clipboard {
    display: block;
}

#copy-relays-to-clipboard {
    display: none;
}

#copy-relays-to-clipboard a {
    color: #131313;
}

/* view picker */
#view-type {
    color: #6d6d6d;
}

#view-type a {
    color: #6d6d6d;
    text-decoration: none;
}

#view-type .active {
    font-weight: bold;
    color: #131313;
}

/* stats time picker */
#stats-time {
    color: #6d6d6d;
}

#stats-time a {
    color: #6d6d6d;
    text-decoration: none;
}

#stats-time .active {
    font-weight: bold;
    color: #131313;
}

/* content: profitability */
#content-profitability table {
    /* table-layout: fixed; */
    width: 100%;
}

#content-profitability table th {
    vertical-align: top;
}

#content-profitability table td.td-num-blocks,
#content-profitability table td.td-num-blocks-profit,
#content-profitability table td.td-num-blocks-subs {
    width: 11%;
}

.sortable th {
    cursor: pointer;
}

.sortable th.no-sort {
    pointer-events: none;
}

.sortable th::after,
.sortable th::before {
    transition: color 0.1s ease-in-out;
    color: transparent;
}

.sortable th::after {
    margin-left: 8px;
    content: "▸";
}

.sortable th:hover::after {
    color: inherit;
}

.sortable th.dir-d::after {
    color: inherit;
    content: "▾";
}

.sortable th.dir-u::after {
    color: inherit;
    content: "▴";
}

.sortable th.indicator-left::after {
    content: "";
}

.sortable th.indicator-left::before {
    margin-left: 5px;
    margin-right: 3px;
    content: "▸";
}

.sortable th.indicator-left:hover::before {
    color: inherit;
}

.sortable th.indicator-left.dir-d::before {
    color: inherit;
    content: "▾";
}

.sortable th.indicator-left.dir-u::before {
    color: inherit;
    content: "▴";
}

.td-builder-num-blocks,
.td-builder-percent {
    text-align: right;
}

.td-builder-extradata {
    width: 99%;
}

.tr-builder-parent {
    cursor: pointer;
}

.tr-builder-child {
    background-color: rgb(249 249 249);
}

.tr-builder-child td {
    padding-left: 30px;
}

.td-builder-extradata-child {
    margin-left: 5px;
}

.td-builder-percent {
    min-width: 106px;
}

td.td-relay-name {
    word-break: break-word;
}

/* helpers to copy to clipboard */
.copy-table-to-clipboard {
    text-align: center;
    padding: 20px;
    visibility: hidden;
}

#stats-relays:hover .copy-table-to-clipboard,
#stats-builders:hover .copy-table-to-clipboard,
#content-profitability:hover .copy-table-to-clipboard {
    visibility: visible;
}

.copy-table-to-clipboard a {
    text-decoration: none;
    color: #999;
}

.copy-table-to-clipboard a:hover {
    color: #131313;
}

#stats-relays-inner {
    width: 100%;
}

#stats-builders-inner {
    width: 100%;
}

#tbody-relays a {
    text-decoration: none;
    color: #434343;
}

.daily-stats .header a {
    color: #2a629d;
    text-decoration: none;
}

.daily-stats .header a:hover {
    border-bottom: 1px dotted blue;
}