:root {
    font: 16px Arial, sans-serif;
}
body {
    margin: 0;
    background: white;
}

/*--- General / Utility ---*/

.text-justify {
    text-align: justify;
}
.text-center {
    text-align: center;
}
.pre-line {
    white-space: pre-line;
}

.hidden {
    display: none !important;
    animation-play-state: paused;
}

i.fas {
    margin: 0 0.5em;
    font-size: 0.5em;
    vertical-align: middle;
}

a, a:visited {
    color: #25a;
    text-decoration: underline #fa6;
}
a:hover {
    color: #f61;
}

.important-header {
    padding: 0.5em;
    background: #fda;
    font-size: 1.2em;
    margin: 0;
}
.important-block {
    background: #fa6;
}
.flex-row {
	display: flex;
	flex-direction: row;
	margin: 0.5em 0;
}
.flex-grow > * {
	flex: 1 1 0px;
	width: 0px;
	margin: 0 0.5em;
}
.flex-grow img {
    width: 100%;
}
.flex-center {
	justify-content: center;
	align-items: center;
}
ul {
    margin: 0;
    padding: 0.5em 0 0.5em 2em;
}

/*----*/

.page-grid {
    min-height: 100vh;
    display: -ms-grid;
    display: grid;
    grid-template-areas:
        "header header"
        "nav content"
        "footer footer";
    -ms-grid-columns: min-content 1fr;
    -ms-grid-rows: min-content 1fr min-content;
    grid-template-rows: min-content 1fr;
    grid-template-columns: min-content 1fr;
}
header {
    -ms-grid-column: 1;
    -ms-grid-row: 1;
    -ms-grid-column-span: 2;
    grid-area: header;
    display: flex;
    flex-direction: column;
}
.header-text {
    padding: 0.5em;
    margin: 0 auto;
    color: #222;
    display: -ms-grid;
    display: grid;
    grid-template-areas:
        "logo name name"
        "logo short date";
    -ms-grid-columns: 3;
    -ms-grid-rows: 2;
    align-self: center;
}

.conference-logo {
    /*background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9) 40%, white 80%);*/
    height: 6rem;
    align-self: center;
    display: block;
    grid-area: logo;
    margin-right: 1em;
    -ms-grid-column: 1;
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
}
.conference-name {
    font-size: 2.5rem;
    padding-bottom: 0.1em;
    border-bottom: 0.12em solid #fa6;
    margin-bottom: 0.15em;
    grid-area: name;
    -ms-grid-column: 2;
    -ms-grid-row: 1;
    -ms-grid-column-span: 2;
}
.conference-short {
    font-size: 1.5rem;
    text-align: left;
    grid-area: short;
    -ms-grid-column: 2;
    -ms-grid-row: 2;
}
.conference-date {
    font-size: 1.5rem;
    text-align: right;
    grid-area: date;
    -ms-grid-column: 3;
    -ms-grid-row: 2;
}


.photo-reel {
    height: 200px;
    background: url("img/FBS_2020_Header.jpg") repeat-x left center;
    background-size: auto 100%;
    animation: header-translate 64s infinite linear;
    display: flex;
    justify-content: flex-end;
}
@keyframes header-translate {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1600px;
    }
}

/*---Main container---*/
nav {
    font-size: 1.5em;
    grid-area: nav;
    -ms-grid-column: 1;
    -ms-grid-row: 2;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
nav > ul {
    display: flex;
    flex-direction: column;
}
nav a, nav a:visited {
    cursor: pointer;
    display: block;
    padding: 0.5em 1em;
    text-decoration: none;
    background: #fff;
    color: #222;
    text-align: center;
    white-space: pre;
}
nav li:hover > a {
    background: #c7dce3;
    color: #222;
    text-decoration: underline #e94;
}
nav .dropdown {
    position: relative;
}
nav .dropdown > ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0%;
    border: 1px solid #aaa;
    border-width: 0 1px;
    box-shadow: 5px 4px 4px rgba(0, 0, 0, 0.5);
}
nav .dropdown:hover > ul {
    display: block;
}
nav a.important-link {
    background: #fda;
    text-decoration: underline #6a6;
}
nav a.navlink-active {
    text-decoration: underline #6af;
}

/*----*/

.view-container {
    font-size: 1.2rem;
    padding: 1em 7em 1em 1.5em;
    background: #fafafa;
    grid-area: content;
    -ms-grid-column: 2;
    -ms-grid-row: 2;
}
.section-header {
    font-size: 2rem;
    margin: 0 0 0.5em 1em;
    text-decoration: underline #fa6;
}

footer {
    -ms-grid-column: 1;
    -ms-grid-row: 3;
    -ms-grid-column-span: 2;
    grid-area: footer;
    border-top: 1px solid #aaa;
    padding: 0.5em;
    font-size: 1.2rem;
    text-align: center;
    text-decoration: underline #fa6;
}

/*----*/

.viewport-scale {
    width: 100%;
    height: calc(100vh - 2.4rem);
}

/*--- Image Gallery ---*/
.gallery-thumbs {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
	align-items: center;
}
.gallery-thumbs img {
    max-width: 200px;
    margin: 0.5em 1em;
    display: block;
    cursor: pointer;
}
.gallery-lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
}
.gallery-lightbox .centered-container {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 3.5rem;
}
.gallery-lightbox .centered-container > * {
    display: block;
}
.gallery-lightbox #current_image {
    max-width: 100%;
    max-height: 100%;
    min-width: 100px;
    min-height: 100px;
    flex: 0 1 auto;
    object-fit: scale-down;
}
.gallery-lightbox button {
    height: 100%;
    background: none;
    border: none;
    color: #eee;
    font-size: 2.5rem;
    cursor: pointer;
}
.gallery-lightbox button:focus {
    outline: none;
}
.gallery-lightbox button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #8af;
}
.gallery-lightbox #close {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    padding: 0.2em 0.3em;
}

.gallery-lightbox.loading #current_image {
    opacity: 0.5;
}
.gallery-lightbox.loading .loader {
    display: block;
    animation-play-state: running;
}
.gallery-lightbox .loader {
    animation: anim-loader 2s infinite linear;
    display: none;
    animation-play-state: paused;
    position: absolute;
    font-size: 4rem;
    color: #eee;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 49.5% 50%;
    -ms-transform-origin: 50% 44.9%;
}
@keyframes anim-loader {
    0% {
        transform: translate(-50%, -50%) rotateZ(0turn);
    }
    100% {
        transform: translate(-50%, -50%) rotateZ(1turn);
    }
}

/*--- Media Queries ---*/

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

}
@media only screen and (max-width: 1000px) {
    .header-text {
        grid-template-areas:
            "logo name"
            "short short"
            "date date";
    }
    .header-text .conference-logo {
        height: 9rem;
    }
    .header-text .conference-name {
        border: none;
        padding-bottom: 0;
    }
    .header-text .conference-short {
        padding: 0.2em 0;
        border-top: 0.2em solid #fa6;
        border-bottom: 0.1em solid #888;
        margin-bottom: 0.2em;
    }
    .header-text .conference-date {
        text-align: left;
    }
    .view-container {
        padding: 1em;
    }
}

@media only screen and (max-width: 600px) {
    :root {
        font-size: 12px;
    }
    .page-grid {
        grid-template-areas:
            "header"
            "nav"
            "content";
        grid-template-columns: 1fr;
        grid-template-rows: min-content min-content 1fr;
    }
    nav .dropdown > ul {
        top: 100%;
        left: 0%;
        z-index: 1;
    }

}