﻿table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}

th {
    font-weight: bold;
    margin: 0;
}

    th:hover {
        cursor: pointer;
    }

td, th {
    padding: 0.5em;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.series-table td:nth-of-type(1) {
    width: 18%;
}

.series-table td:nth-of-type(2) {
    width: 20%;
}

.author-table td:nth-of-type(2) {
    width: 20%;
}

.author-table td:nth-of-type(1) {
    width: 18%;
}

.author-table td:nth-of-type(2) {
    width: 30%;
}

.series-table td:nth-of-type(2) {
    width: 20%;
}

thead tr {
    border: none;
    margin-bottom: 0.5em;
}

@media screen and (max-width: 690px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        display: none;
    }

    tbody {
        clear: both;
    }

    td {
        position: relative;
        padding-left: 22%;
    }

        td:before {
            position: absolute;
            top: 0.5em;
            left: 0.5em;
            width: 75%;
            padding-right: 0.5em;
            white-space: nowrap;
            font-weight: bold;
            color: #585858;
        }

    .series-table td:nth-of-type(n),
    .author-table td:nth-of-type(n) {
        width: 100%;
    }

    .series-table td:nth-of-type(1):before {
        content: "Series";
    }

    .series-table td:nth-of-type(2):before {
        content: "Series editor";
    }

    .series-table td:nth-of-type(3):before {
        content: "Email address";
    }

    .author-table td:nth-of-type(1):before {
        content: "Author";
    }

    .author-table td:nth-of-type(2):before {
        content: "Affiliation";
    }

    .author-table td:nth-of-type(3):before {
        content: "Email address";
    }

    tr {
        border: 1px solid #cce6c2;
        margin-bottom: 0.8em;
    }

    .section-heading {
        margin-bottom: 0.5em;
    }
}

@media screen and (max-width: 600px) {
    td {
        padding-left: 30%;
    }

        td:before {
            width: 65%;
            height: 100%;
        }
}

@media screen and (max-width: 450px) {
    td {
        padding-left: 35%;
    }

        td:before {
            width: 65%;
            height: 100%;
        }
}

.main-content {
    display: flex;
    flex-direction: column;
}

    .main-content h1 {
        order: 1;
    }

.social-media {
    order: 3;
    /*float: right;
    margin-top: -2.75em;*/
    margin: 1em 0;
}

.content {
    order: 2;
}

.social-media a{
    color: #585858;
}

.social-media figure figcaption {
    width: 150%;
    text-align: center;
    margin-left: -40%;
}

@media screen and (min-width: 850px) {
    .main-content {
        display: block;
    }

    .social-media {
        float: right;
        margin-top: -3.25em;
    }
}
