/* main.css */

/* These are the colors and fonts used throughout the webpage.
 * I've listed them here so that a user may easily
 * do a search-and-replace for these to change the site theme.
 *   'Roboto',sans-serif; Font for the title text
 *   'Roboto-Slab',serif; Font for the body text 
 *   #fafafa; Background color of the site
 *   #505050; Foreground (text) color of the site
 *   #52739e; Navy, "Template" in the logo, current page in navigation, special titles in the Program
 *   #b2132e; Reddish, "Conference" in the logo, hover color for links
 *   #813c54; Heading color, titles in the Program
 *   #b8860b; Dark Goldenrod, color for links
 */

@import url('https://fonts.googleapis.com/css?family=Roboto%7CRoboto+Slab');

* {
    border: 0;
    font: inherit;
    font-size: 1em;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

body {
    background-color: #fafafa;
    background-size: cover;
    background-attachment: fixed;
    color: #505050;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.5em;
    margin: 60px auto;
    width: 1000px;
}

a {
    color: #b8860b;
    text-decoration: none;
}

a.current {
    color: #52739e;
}

a.current:hover {
    color: #e82945;
}

a:hover {
    color: #b2132e;
}

a:active {
    color: #e82945;
}

h1,
h2,
h3,
h4 {
    clear: left;
    color: #813c54;
    margin: 1.5em 0em 1em 0em;
    font-family: 'Roboto Slab', serif;
    text-shadow: 1px 1px 2px #d0d0d0;
}

h4.subtitle {
    color: #52739e;
    height: 32px;
    font-family: 'Roboto Slab', serif;
    text-shadow: 1px 1px 2px #d0d0d0;
}

h1 {
    font-size: 2.67em;
}

h2 {
    font-size: 2.00em;
}

h3 {
    font-size: 1.67em;
}

h4 {
    font-size: 1.33em;
}

p {
    list-style: none;
    margin: 24px auto 24px auto;
    padding: 0px;
    width: 900px;
    text-align: left;
}

li a,
p a {
    text-decoration: underline;
    text-decoration-color: #b8860b;
}

/* ul{list-style:none; margin:24px auto 24px auto; padding:0px; width:800px; text-align:left;}
ul li{list-style:none; margin:0px auto 0px auto; padding:0px; text-align:left;}
 */
ul {

    margin: 0px 0px 10px 80px;
    padding: 0px;
    width: 800px;
    text-align: left;
}

ol {

    margin: 0px 0px 10px 40px;
    padding: 0px;
    text-align: left;
}

ul li {

    margin: 0px auto 0px auto;
    padding: 0px;
    text-align: left;
}

i,
em {
    font-style: italic;
}

b,
strong {
    font-weight: bold;
}

sup {
    vertical-align: super;
    font-size: 0.8em;
    line-height: 0;
}

sub {
    vertical-align: sub;
    font-size: 0.8em;
    line-height: 0;
}

table {
    width: 1000px;
    margin: 12px auto 24px auto;
    float: center;
    /* UNCOMMENT THIS FOR DEBUGGING THE ALIGNMENT */
    /*border: 1px solid black;*/
}

th,
td {
    text-align: left;
    /* UNCOMMENT THIS FOR DEBUGGING THE ALIGNMENT */
    /*border: 1px solid black;*/
}

/* tr{
    padding-bottom: 1.6em;
} */

/* Website Banner */
.banner {
    position: relative;
    font-family: 'Roboto Slab', serif;
}

.banner img {
    width: -webkit-fill-available;
}

.top-left {
    font-size: 5.33em;
    color: #505050;
    background: #fafafa;
    text-align: center;
    width: 1000px;
    height: 108px;
    position: absolute;
    padding: 22px 0 0 0;
    top: 0px;
    line-height: 1.2em;
}

.bottom-right {
    font-size: 2.33em;
    color: #fafafa;
    line-height: 1.5em;
    width: auto;
    height: 100px;
    padding: 0px 27px 73px 0px;
    text-align: right;
    position: absolute;
    bottom: 0px;
    right: 0px;
    text-shadow: 0px 0px 6px #000000;
}

/* Conference Title Logo */
.title1 {
    color: #b2132e;
    text-shadow: 1px 1px 3px #c0c0c0;
}

.title2 {
    color: #52739e;
    text-shadow: 1px 1px 3px #c0c0c0;
}

.year {
    color: #505050;
    font-size: 0.67em;
    font-weight: lighter;
}

.conf-name {
    color: #b2132e;
}

/* Navigation Links (Home, Registration, etc) */
table.navigation {
    width: 800px;
}

td.navigation {
    font-size: 1.67em;
    white-space: nowrap;
    width: 20%;
    text-align: center;
    vertical-align: middle;
    padding: 0px 0px 0px 0px;
}

/* Sponsor Images */
table.sponsors {
    width: 800px;
}

td.sponsor {
    white-space: nowrap;
    width: 33%;
    text-align: center;
    vertical-align: middle;
    padding: 0px 0px 0.8em 0px;
}

td.sponsor img {
    width: 200px
}

/* The Table on the Program Page */
td.room {
    padding: 4px 12px 4px 4px;
    width: 90%;
    vertical-align: bottom;
    font-size: 1.67em;
    color: #52739e;
    height: 32px;
}

td.date {
    white-space: nowrap;
    width: 130px;
    text-align: right;
    vertical-align: top;
    padding: 4px 16px 0px 0px;
}

td.title {
    padding: 4px 12px 4px 4px;
    width: 90%;
    vertical-align: top;
    font-size: 1.5em;
    color: #813c54;
    height: 32px;
    font-family: 'Roboto Slab', serif;
    text-shadow: 1px 1px 2px #d0d0d0;
}

td.title-special {
    padding: 4px 12px 4px 4px;
    width: 90%;
    vertical-align: top;
    font-size: 1.67em;
    color: #52739e;
    height: 32px;
    font-family: 'Roboto Slab', serif;
    text-shadow: 1px 1px 2px #d0d0d0;
}

td.speaker {
    padding: 4px 12px 4px 4px;
    font-style: italic;
    font-size: 1em;
    max-height: 999999px
}

td.abstract {
    padding: 4px 12px 12px 4px;
    font-size: 1em;
    max-height: 999999px
}

td.review {
    padding: 4px 12px 12px 4px;
    font-size: 1em;
    max-height: 999999px
}

span.review-title {
    color: #52739e;
    font-weight: 600;
    font-style: italic;
}

td.abstract img {
    display: flex;
    margin: 4px auto 8px auto
}

table.plenary {
    padding-top: 8px;
    background: #ffffff;
}

/* Registration and Directions iframes and Images */
iframe.registration {
    display: block;
    margin: 1em auto 2em auto;
    width: 700px;
    height: 1400px;
    border: none;
}

iframe.directions {
    display: block;
    margin: 1em auto 2em auto;
    width: 800px;
    height: 400px;
    border: none;
}

img.center {
    display: block;
    width: 67%;
    margin: 1em auto 2em auto;
}

/* Flyer Images */
table.flyers {
    width: 800px;
}

td.flyer {
    white-space: nowrap;
    width: 50%;
    text-align: center;
    vertical-align: middle;
    padding: 0px 0px 0px 0px;
}

/* td.sponsor img{width: 100%} */

footer {
    font-size: 0.875em;
    margin-top: 12em;
    text-align: center;
}

/* My hacky way of making the site mobile-friendly */
@media only screen and (max-width: 1100px) {
    h2 {
        font-size: 3.00em;
    }

    p {
        font-size: 1.5em;
        line-height: 1.5em;
    }

    th,
    td,
    tr {
        font-size: 1.5em;
        line-height: 1.5em;
    }

    td.date {
        font-size: 1em;
        padding-top: 0.5em;
    }

    td.navigation {
        font-size: 1.5em;
        padding: 0px 20px 0px 20px;
    }

    table.footer {
        font-size: 0.33em;
    }
}

.cover {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.cover img {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.button {
    z-index: 2;
    background-color: transparent;
    position: absolute;
    border: 2px solid white;
    /* border: none; */
    /* color: white; */
    padding: 30px;
    /* text-align: center; */
    text-decoration: none;
    display: inline-block;
    font-size: 32px;
    margin: 2px 2px;
    border-radius: 10%;
    left: 40vw;
    top: 74vh;
    color: white;
    cursor: pointer;
}

#no-cover {
    display: none;
}

.reality {
    cursor: pointer;
}

.reality:hover {
    /* border: steelblue 1px solid; */
    text-decoration: underline;
}

/* 弹窗背景 */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 90%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

/* 图片 */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#i2 {
    /*定义按钮大小位置*/
    width: 100px;
    height: 50px;
    position: absolute;
    /*绝对定位*/
    top: 50%;
    right: 0px;
    margin-top: -25px;
    font-size: 40px;
    /*字体大小,采用<>俩符号*/
    display: none;
}

#i1 {
    /*定义按钮大小位置*/
    width: 100px;
    height: 50px;
    position: absolute;
    /*绝对定位*/
    top: 50%;
    left: 0px;
    margin-top: -25px;
    font-size: 40px;
    display: none;
}

/* 文本内容 */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* 添加动画 */
.modal-content,
#caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* 关闭按钮 */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 小屏幕中图片宽度为 100% */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}