/* 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: #ffffff;
    background-size: cover;
    background-attachment: fixed;
    color: #505050;
    text-align:left;
    font-family:'DejaVu Sans',sans-serif;
    font-weight:600;
    font-size:1em;
    line-height:1.5em;
    margin: 20px auto;
    width: min(1000px, 92%);
}

a{color: rgba(0,0,128,1); text-decoration:none;}
a.current{color: rgba(0,0,128,1);}
a.current:hover{color: #e82945;}
a:hover{color: #b2132e;}
a:active{color: #e82945;}
h1,h2,h3,h4,h5{
    clear:left;
    color: rgba(0,0,128,1);
    margin:1.5em 0em 1em 0em;
    font-family:'DejaVu Sans',sans-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;}
h5{font-size:1.33em;}
p{
    list-style:none;
    margin:24px auto;
    padding:0;
    width:100%;
    text-align:left;
}

ul{
    list-style:none;
    margin:24px auto;
    padding:0;
    width:100%;
    text-align:left;
}
li a, p a {text-decoration:underline; text-decoration-color:#b8860b;}
ul li{list-style:none; margin:0px auto 0px auto; padding:0px; text-align:left;list-style-type: circle;}
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;*/
}

/* Website Banner */
.banner {
    position: relative;
    font-family:'DejaVu Sans',sans-serif;
    font-weight:700;
    font-stretch:semi-condensed;
}
.top-left {font-size:7em; color: #505050; text-align: left; width: 1000px; height: 67px; position: absolute; padding: 36px 0 0 0; top: 0px;}
.bottom-right {font-size:2.33em; color: #fafafa; line-height: 1.5em; width: auto; height: 100px; padding: 0px 27px 27px 0px; text-align: left; position: absolute; bottom: 0px; left: 0px; text-shadow: 2px 2px 6px #000000;}

/* Conference Title Logo */
.title1{color: rgba(0,0,128,1); text-shadow: 5px 5px 3px #c0c0c0;} 
.title2{color: rgba(0,0,128,1); text-shadow: 1px 1px 3px #c0c0c0;}
.year{color: rgba(0,0,128,1); font-weight: lighter;}

/* Navigation Links (Home, Registration, etc) */
table.navigation{width:100%;}
td.navigation{
    font-size:1.2em;
    text-align:center;
    vertical-align:middle;
    background-color: transparent;
    padding: 2px;
}

td.navigation a.current{
    display:block;
    background-color: rgba(0,0,128,0.15);
    color: rgba(0,0,128,1);
    font-weight: bold;
}

td.navigation a{
    display: block;
    padding: 8px 10px;
}

td.navigation a.current{
    background-color: rgba(0,0,128,0.35);
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

td.navigation a:hover{
    background-color: rgba(0,0,128,0.22);
}

/* Sponsor Images */
table.sponsors{
    width:100%;
}
td.sponsor{white-space:nowrap; width:33%; text-align:center; vertical-align:middle; padding:0px 0px 0px 0px;}
td.sponsor img{width: 100%}

/* 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',sans-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',sans-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.abstract img{display: block; 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:100%;
    max-width:700px;
    height:1400px;
    border:none;
}
iframe.directions{
    display:block;
    margin:1em auto 2em auto;
    width:100%;
    max-width:800px;
    height:400px;
    border:none;
}
img.center{display:block; width:67%; margin:1em auto 2em auto;}

/* Flyer Images */
table.flyers{
    width:100%;
}
td.flyer{white-space:nowrap; width:50%; text-align:center; vertical-align:middle; padding:0px 0px 0px 0px;}
td.sponsor img{width: 100%}

/* Committee stuff*/
.column {
  float: left;
  width: 18%;
  margin-bottom: 16px;
  padding: 0px 10px;	/*space between boxes*/
}
.card{
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius:6px;
    overflow:hidden;
}

.container {
  padding: 0 5px;
}

.container::after, .row::after {
  content: "";
  clear: both;
  display: table;
}

.title {
  color: grey;
}

.crop{
    display:block;
    width:100%;
    height:260px;
    object-fit:contain;
    object-position:center center;
    background-color:#ffffff;
}

.sidebar {
height: 100%;
width: 150px;
position: absolute;
left: 0;
top: 0;
padding-top: 40px;
background-color: #D4D4D4;
}

.sidebar div {
padding: 8px;
font-size: 24px;
display: block;
}


.center {
  text-align:center;
}


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

img{
    max-width:100%;
    height:auto;
}

img.center{
    display:block;
    width:min(67%, 100%);
    margin:1em auto 2em auto;
}

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

    body{
        width: 94%;
        margin: 12px auto;
        font-size: 0.98em;
    }

    .top-left{
        position: static;
        width: 100%;
        height: auto;
        padding: 0;
        font-size: 3em;
        text-align: center;
    }

    .bottom-right{
        position: static;
        width: 100%;
        height: auto;
        padding: 0 0 12px 0;
        font-size: 1.2em;
        text-align: center;
        color: #505050;
        text-shadow: none;
    }

    table.navigation,
    table.navigation tr,
    table.navigation td{
        display: block;
        width: 100%;
    }

    td.navigation{
        padding: 4px 0;
    }

    td.navigation a{
        display: block;
        padding: 10px 12px;
    }

    .column{
        width: 100%;
        padding: 0;
        margin-bottom: 16px;
    }

    .card{
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .crop{
        display:block;
        width:auto;
        max-width:100%;
        height:auto;
        max-height:320px;
        margin-left:auto;
        margin-right:auto;
        object-fit:unset;
        background-color:#ffffff;
    }

    .coming-soon-box{
        width: 100%;
        padding: 24px;
        box-sizing: border-box;
    }

    h1{font-size:2em;}
    h2{font-size:1.6em;}
    h3{font-size:1.3em;}
}

/* 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;}
}
*/
