body {
    text-align: center;
    font-family: Arial;
    padding: 0;
    margin: 0;
}

.content-container {
    width: 96%;
    max-width: 660px;
    margin: auto;
}

a, a:visited, .clickable {
    text-decoration: none;
    color: #b00;
    cursor: pointer;
}

a:hover, a:active, .clickable:hover, .clickable:active {
    text-decoration: underline;
    color: #b00;
}

a.subtle-link {
    color: inherit;
    text-decoration: none;
}

a.subtle-link:hover, a.subtle-link:active {
    color: #b00;
}

input {
    accent-color: #b00;
}

.logo-title {
    font-size: 26px;
    user-select: none;
    font-weight: 100;
    font-family: sans-serif;
    margin: 16px;
}

.logo-title__chemical {
    color: #555;
}

.logo-title__elements {
    color: #b00;
}

.logo-title a {
    padding: 0 4px;
}

.logo-title a:hover, .logo-title a:active {
    background: rgba(0,0,0,0.03);
    border-bottom: 1px solid black;
    text-decoration: none;
}

.logo-title__info {
    font-size: 68%;
    color: #000;
}

h1, h2 {
    font-weight: 100;
    font-family: sans-serif;
}

.periodic-table {
    font-size: 16px;
}

.periodic-table-cell {
    position: relative;
    display: inline-block;
    width: 5.3vw;
    max-width: 40px;
    height: 40px;
    line-height: 40px;
    margin: -1px 0 0 -1px;
    vertical-align: middle;
    box-sizing: border-box;
}

.periodic-table-cell__number {
    position: absolute;
    left: 1px;
    top: 1px;
    font-size: 10px;
    color: black;
    line-height: 1em;
}

.zoom-button {
    display: none;
    margin: 4px;
    padding: 4px;
    border: 1px solid rgba(0,0,0,0.4);
    border-radius: 9px;
    background-color: #fffaf6;
}

@media screen and (max-width: 700px) {
    .periodic-table {
        font-size: 14px;
    }
}

@media screen and (max-width: 560px) {
    .zoom-in .periodic-table {
        width: 720px;
        font-size: 16px;
        padding: 14px 10px;
    }
    .zoom-in .periodic-table-cell {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    .zoom-in .periodic-table-cell__number {
        display: none;
    }
    .zoom-in .periodic-table__wrapper {
        overflow-x: scroll;
    }
    /* .periodic-table__wrapper:after {
        content: "";
        position: absolute;
        top: 0;
        height: 100px;
        width: 10px;
        right: 0;
        background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%);
    } */
    .zoom-button {
        display: inline-block;
        cursor: pointer;
    }
    .zoom-in .zoom-in-button {
        pointer-events: none;
        opacity: 0.25;
    }
    .zoom-out .zoom-out-button {
        pointer-events: none;
        opacity: 0.25;
    }
}

@media screen and (max-width: 460px) {
    .zoom-out .periodic-table {
        font-size: 12px;
    }
    .zoom-out .periodic-table-cell__number {
        display: none;
    }
    .zoom-out .periodic-table-cell {
        height: 30px;
        line-height: 30px;
    }
}

@media screen and (max-width: 400px) {
    .zoom-out .periodic-table {
        font-size: 11px;
    }
    h1 {
        font-size: 160%;
    }
}

.periodic-table-cell--with-content {
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.2);
}

.periodic-table-cell--with-content:hover {
    border-color: rgba(0,0,0,0.8);
    background: #ddd;
    z-index: 1;
}

.periodic-table-cell--range {
    border: 1px solid rgba(0,0,0,0.7);
    opacity: 0.3;
}

#footer .separator {
    width: 70%;
    max-width: 500px;
    background-color: #eee;
    height: 1px;
    margin: 10px auto;
}

#footer {
    margin: 32px auto 12px;
    font-size: 70%;
    color: #bbb;
}

.top-table-cell {
    display: table-cell;
    vertical-align: middle;
    padding: 0 5px;
}

.top-table-cell--left {
    text-align: left;
    width: 50px;
}

.top-table-cell--right {
    text-align: right;
    width: 50px;
}

.top-input-range {
    width: 80%;
    max-width: 400px;
}

.element-page-section {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 20px;
}

.element-page-section h3 {
    font-family: sans-serif;
    font-size: 138%;
    font-weight: 100;
    margin: 6px auto;
}

.element-page-description {
    margin: auto;
    width: 88%;
    max-width: 500px;
    text-align: left;
}

.element-page-description p {
    line-height: 1.33em;
}

.element-page-description sub, .element-page-description sup {
    line-height: 0;
}

.prop-table {
    width: 94%;
    margin: 12px auto;
}

.prop-table td {
    padding: 4px 3px;
    text-align: left;
}

.prop-table .prop-title {
    width: 60%;
    text-align: right;
}

.pd-box__z-label {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 18px;
}

.pd-box__symbol-label {
    position: absolute;
    line-height: 136px;
    font-size: 60px;
    font-weight: bold;
    width: 100%;
    height: 100%;
}

.pd-box__name-label {
    position: absolute;
    bottom: 22px;
    font-size: 14px;
    width: 100%;
}

.pd-box__weight-label {
    position: absolute;
    bottom: 5px;
    font-size: 14px;
    width: 100%;
}

.button-link {
    display: inline-block;
    background: hsl(0, 75%, 45%);
    box-shadow: 0 0 8px 0 rgba(0,0,0,0.05);
    padding: 8px 16px;
    color: white !important;
    text-decoration: none !important;
    font-family: sans-serif;
    font-weight: 100;
}
.button-link:hover {
    background: hsl(0, 77%, 48%);
}
