/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html {
    height: 100%;
}

body {
    font: 16px/26px 'Poppins', Helvetica, Helvetica Neue, Arial;

    background-image: url(/images/molecules-back-2400.jpg);
    background-size: auto;
    background-repeat: repeat-x;
    background-position: center top;
    background-attachment: fixed;

    height: 100%;
}

.wrapper {
    width: 1000px;
    margin: 0 auto;
}

h1,h2,h3,h4,h5,h6 {
    line-height: 1.1;
}

a,
a:active,
a:visited,
a:hover {
    color: #0073AC;
    text-decoration: none;
}
a:active {
    text-decoration: underline;
}

#container {
   min-height:100%;
   position:relative;
}

.header-container {
}

.navigation-container {
    background: #000000;
    background-image: url(/images/navback.jpg);
    color: #ffffff;

    min-height: 46px;
}
.navigation-decoration {
    height: 40px;
    background-color: #000000;
    background-image: url(/images/colorband-1800-40.jpg);
    background-size: cover;
}
.mobile-nav-container {
    margin-bottom: 25px;
}

.main-container {
    padding-bottom: 50px;
}

.main aside {
}

.footer-container {
    margin-top: 50px;
    /*position: absolute;*/
    bottom: 0;
    width: 100%;
    height: 50px;   /* Height of the footer */
    background: #000000;
    color: #ffffff;
}



h1.title {
    background-image: url(/images/logo-428-93.png);

    width: 428px;
    height: 93px;
    overflow: hidden;
}
h1.title a {
    display: block;
    width: 428px;
    height: 93px;
}
h1.title span {
    position: absolute;
    left: -9999px;
}

.search {
    float: right;
    margin-top: -50px;
}

.search-trigger {
    background: transparent;
    border: 0;
}

.search a, 
.search button, 
.search form {
    display: inline-block;
}

.search input[type=text]:focus {
    outline: none;
}

nav ul {
    background: transparent;
    color: #ffffff;
    float: left;
    -webkit-transition: .5s;
    transition: .5s;
    padding: 0;
    margin: 0;
}

nav > ul {
    width: 100%;
}

nav li {
    float: left;
    position: relative;
    list-style: none;
    -webkit-transition: .5s;
    transition: .5s;

    display: inline;
}

nav > ul > li > a, h1 {
    text-transform: capitalize;
}

nav a {
    color: #ffffff;
    /*font-size: 0.9em;*/

    display: block;
    text-decoration: none;
    padding: 10px 20px;

    white-space: nowrap;
}
nav a:active,
nav a:visited,
nav a:hover {
    color: #ffffff;
}
nav a:hover {
    text-decoration: underline;
}

nav ul ul {
    position: absolute;
    left: 0;
    top: 100%;
    visibility: hidden;
    opacity: 0;
    z-index: 99;
}
nav ul li:last-child ul {
    left: -80px;
}

nav > ul > li > ul > li {
    width: 100%;
}

nav li:hover, nav li:hover li {
    background: rgba(0,0,0,0.8);
}

nav li li:hover, nav li li:hover li {
    background: rgba(0,0,0,0.8);
}

nav li li li:hover {
    background: rgba(0,0,0,0.8);
}

nav li:hover > ul {
    visibility: visible;
    opacity: 1;
}


h2 {
    font-size: 2em;
    font-weight: normal;
    margin-top: 0.5em;
}


footer > div {
    display: inline;
    font-size: 0.9em;

    margin-top: 2px;
}
.footer-links {
    float: left;
}
.footer-links > span {
    display: inline-block;
    margin-right: 20px;
}
.colophon {
    float: right;
    text-align: right;
}
.colophon > span {
    display: inline-block;
    margin-left: 20px;

    font-size: 0.8em;
}
.colophon a {
    text-transform: lowercase;
}


footer a,
footer a:visited,
footer a:hover {
    color: #ffffff;

    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 0;

    white-space: nowrap;
}

footer a:hover {
    text-decoration: underline;
}
footer .colophon a:hover {
    text-transform: none;
}


/* home */
.hero {
    background-color: #f2f2f2;
    padding: 20px 40px;
}
.hero h2 {
    font-size: 2em;
    font-weight: normal;
    margin-top: 0.5em;
}

h3.emphasized-title {
    border-bottom: 2px solid #0073AC;
    font-size: 2em;
    font-weight: 300;
    line-height: 1.1;
    padding-bottom: 10px;
}
h3.deemphasized-title {
    border-bottom: 1px solid #0073AC;
    font-size: 1.7em;
    font-weight: 300;
    line-height: 1.1;
    padding-bottom: 10px;
}

.journals {
}

.journals .journal {
    background-color: #f2f2f2;
    border: 1px solid #e7e7e7;
    font-size: 0.9em;
    padding: 20px;
    margin-bottom: 20px;
    width: 490px;

    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;

    overflow: auto;
}
.journals .journal.left {
}
.journals .journal.right {
    margin-left: 15px;
}
.journals .journal img.journal-cover {
    float: left;
    margin-right: 20px;
}
.journals .journal h4 {
    margin-top: 0;
    margin-bottom: 0.5em;
}
.journals .journal p {
    margin-top: 0;
    margin-bottom: 0;
}
.journals .journal a {
    text-decoration: none;
}
.readmore {
    margin-left: 5px;
    vertical-align: baseline;
}

/* Journals */
.journal {

}
.journal aside {
    float: right;
    margin-left: 25px;
    margin-bottom: 20px;
}
.journal aside .seemore {
    background-color: #f2f2f2;
    padding: 20px;
    padding-bottom: 30px;
    margin-top: 20px;
    text-align: center;
}
.journal .journal-cover-link {
    margin-top: 20px;
}

/* Editors */

.editors {
}

.editors .card {
    border: 1px solid #e7e7e7;
    width: 300px;
    margin-bottom: 25px;

    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    text-align: left;
    margin: 0 23px 25px;
    min-height: 450px;

    font-size: 0.9em;
    line-height: 1.2;
    text-align: center;
}
.editors .card.left {
    margin-left: 0;
}
.editors .card.right {
    margin-right: 0;
}
.editors .card h4 {
    margin-bottom: 0;
}
.editors .card p {
    margin-top: 0.2em;
    margin-bottom: 0;
}
.editors .card-top {
    background-color: #f2f2f2;
    padding-top: 25px;
    padding-bottom: 25px;
}
.editors .card-bottom {
    text-align: left;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
    padding-right: 25px;
}

/* Board of Directors */

.board {
}

.board .card {
    border: 1px solid #e7e7e7;
    width: 280px;
    margin-bottom: 25px;

    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    text-align: left;
    margin: 0 23px 25px;
    min-height: 450px;

    font-size: 0.9em;
    line-height: 1.2;
    text-align: center;
}
.board .card.left {
    margin-left: 0;
}
.board .card.right {
    margin-right: 0;
}
.board .card h4 {
    margin-bottom: 0;
}
.board .card p {
    margin-top: 0.2em;
    margin-bottom: 0;
}
.board .card-top {
    background-color: #f2f2f2;
    padding-top: 25px;
    padding-bottom: 25px;
}
.board .card-bottom {
    text-align: left;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
    padding-right: 25px;
}

/* Profiles */

.profile {
    font-size: 0.9em;
    line-height: 1.6;
    overflow: auto;
}
.profile img {
    float: left;
    margin-right: 25px;
    margin-bottom: 25px;
    width: 200px;
}
.profile h2 {
    font-size: 1.7em;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0;
}
.profile h3 {
    font-size: 1.2em;
    font-weight: normal;
    margin-top: 0.4em;
    margin-bottom: 0;
}
.profile p {
    margin-top: 0.2em;
    margin-bottom: 0;
}

.profile-link {
    vertical-align: middle;
}

/* Awards */
.award {

}
.award aside {
    float: right;
    margin-left: 25px;
    margin-bottom: 20px;

    text-align: center;
}
.award aside img {
    display: block;
}
.award aside a {
    display: block;
    margin-top: 20px;
}

.award-recipients {
    width: 100%;
}
.award-recipient-information {
    margin: 10px;
}
.award-recipient-information span {
    padding:0 5px;
}
.award-recipient-information .student.seemore {
    float:right;
}

.recipients {
    text-align: center;

    width: 100%;
}

.recipients .card {
    background-color: #f2f2f2;
    border: 1px solid #F6C705;
    width: 225px;

    box-sizing: border-box;
    display: inline-block;
    min-height: 200px;
    vertical-align: top;
    text-align: left;
    margin: 0 16px 25px;

    font-size: 1em;
    line-height: 1.5;
}
.recipients .card {
    float: left;
}
.recipients .card.left {
    margin-left: 0;
}
.recipients .card.right {
    margin-right: 0;
}

.recipients .card h4, 
.recipients .card h5 {
    margin-top: 0;
    margin-bottom: 0;
}
.recipients .card h5 {
    font-weight: 300;
    font-size: 1.1em;
}
.recipients .card h4 {
}
.recipients .card p {
    font-size: 0.9em;

    margin-top: 0.2em;
    margin-bottom: 0;
}
.recipients .card-body {
    padding: 20px;
}
.recipients .card p.country {
    text-transform: uppercase;
}

.profile-small {
    max-width: 800px;

    font-size: 0.9em;
}
.profile-small img {
    float: right;
    margin-left: 25px;
    margin-bottom: 25px;
}
.profile-small h4 {
    margin-top: 0;
}


.lightbox {
    display: none;
}


/* Societies */

.societies {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    margin-top: 25px;
}

.societies .society {
    background-color: #f2f2f2;
    border: 1px solid #e7e7e7;
    padding: 20px 20px 0 20px;
    margin-bottom: 20px;
    width: 450px;

    /* safari noflex fix */
    flex-basis: auto;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;

    overflow: auto;
    text-align: center;
}
.societies .society img {
    max-height: 100px;
}

/* Organization */

.organization {
    padding-bottom: 50px;
}

.organization-aside {
    float: right;
    margin-top: 0.5em;
    margin-left: 25px;
    margin-bottom: 20px;
    padding-top: 20px;
}

.organization-aside strong {
    font-size: 1.2em;
}

.organization-aside ul {
    list-style-type: none;
    padding-left: 0;
}

.organization .document-link {
    padding: 10px 10px 0;
}

.organization .document-attachment {
    padding: 5px 10px 0 30px;
}

.organization h4 {
    margin-bottom: 0.5em;
}

.organization h5 {
    font-size: 0.95em;
    margin-bottom: 0.4em;
    margin-top: 0.1em;
}

.page-controls > strong,
.page-controls > a {
    margin-right: 10px;
}
.page-controls > a:first-of-type {
    margin-left: 10px;
}

/* Members */

.submit {
    border: 1px solid #999999;
    border-radius: 5px;

    background-color: #000000;
    color: #ffffff;

    padding: 8px 15px;

    margin-top: 0.5em;
}

#member_login_form label, 
#member_login_form input {
    display:block;
}

/* search results */
.search-item {
    padding: 10px;
    margin-top: 25px;
}

.search-item.odd-row {
    background-color: #f0f0f0;
}

.search-excerpt {
    overflow-wrap: break-word;
}

/* system messages */
#system-message {
    border: 2px solid #000000;
    margin: 100px auto 0;
    padding: 20px;
    width: 80%;
}
.system-message footer {
    text-align: center;
}
.system-message .colophon {
    float: none;
    margin: 0 auto;
    padding-top: 10px;
    text-align: center;
}
.system-message .colophon > span {
    margin-left: 0;
    margin-top: 10px;
}

/* mobile nav */
.slicknav_menu {
    display:none;
}

@media screen and (max-width: 999px) {
    
    .navigation-container {
        display:none;
    }

    .slicknav_menu {
        display:block;
    }

}

/* mobile layout */

@media screen and (max-width: 999px) {
    
    .wrapper {
        width: initial;
        margin-left: 10px;
        margin-right: 10px;
    }

    .hero {
        padding: 5px 15px;
    }

    .journals .journal {
        max-width: initial;
        width: 100%;
        margin: 0 auto 25px;
    }
    .journals .journal.left,
    .journals .journal.right {
        float: none;
    }

    .editors .card {
        max-width: initial;
        width: 100%;
        margin: 0 auto 25px;
    }
    .editors .card.left,
    .editors .card.right {
        float: none;
        margin-left: 0;
        margin-right: 0;
    }

    .board .card {
        max-width: initial;
        width: 100%;
        margin: 0 auto 25px;
    }
    .board .card.left,
    .board .card.right {
        float: none;
        margin-left: 0;
        margin-right: 0;
    }

    .profile {
        margin-top: 25px;
    }

    .societies {
        text-align: center;
    }
    .society {
        margin-left: auto;
        margin-right: auto;
    }

    .recipients .card {
        max-width: 225px;
        width: 100%;
        margin: 0 auto 25px;
    }
    .recipients .card {
        float: none;
    }

}

@media screen and (max-width: 768px) {

    .header-container {
        text-align: center;
        max-width: 100%;
    }

    h1.title {
        background-repeat: no-repeat;
        background-position-x: center;
        background-size: contain;
        width: 100%;
        margin: 10px auto 0;
    }

    .search {
        float: none;
        margin: 0 auto 10px;
    }

    .main-container {
        padding-bottom: 220px;
    }

    .journals .journal.right {
        margin-left: 0;
    }

    .journals .journal img.journal-cover {
        float: none;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 25px;
    }

    .journal aside {
        float: none;
        margin-left: 0;
        text-align: center;
    }
    .journal aside .seemore {
        display: none;
    }

    .page-content figure.rte-img-chosen {
        float: none !important;
        text-align: center !important;
        margin: 0 auto 25px;
        width: 90%;
        height: 100%;
    }

    .award aside {
        float: none;
        margin-left: 0;
        text-align: center;
    }
    .award aside img {
        margin: 0 auto;
    }

    .organization-aside {
        display: none;
    }

    .featherlight .featherlight-close-icon {
        background: rgba(255,255,255,1) !important;
    }

    .footer-container {
        margin-top: 100px;
        text-align: center;

        position: absolute;
        bottom: 0;
        width: 100%;
        height: 220px;   /* Height of the footer */
        background: #000000;
        color: #ffffff;
    }

    .footer-links, 
    .colophon {
        float: none;
        margin: 0 auto;
    }

    .footer-links > span,
    .colophon > span {
        display: block;
        margin: 0 auto;
        text-align: center;
    }

}

@media screen and (max-width: 479px) {
    
    body {
        background-image: url(/images/molecules-back-mobile.jpg);
        background-size: auto;
        background-repeat: no-repeat;
    }

    .search {
        float: none;
        margin: -20px auto 10px;
    }

    .navigation-decoration {
        height: 3px;
        background-image: url(/images/3px-colorband.jpg);
    }

    .profile img {
        float: none;
    }

}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
