/* 
 * CSS for the Santalo Summer School 2018 website
 * Jose Canizo, 2018.
 * ---------------------------------------------------------------------
 */

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

body {
    font-family: Verdana, Arial, sans-serif;
    color: rgb(80, 70, 70);
}

a:link {
  color: blue;
  text-decoration: none;

  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  transition: all 200ms ease-in 0ms;
}

a:visited {
  color: #008;
}

a:link:hover, a:visited:hover {
  color: rgb(100,130,255);
  text-decoration: underline;
}

h2 {
    border-bottom: 1px solid grey;
}

.small {
    font-size: 80%;
}

/* 
 * Page layout
 * ---------------------------------------------------------------------
 */


body {
    margin: 0;
    padding: 0;

    min-width: 60em;
    /* 'body' controls minimum width, but has no maximum width so that it
       always fills the viewport. */

    /* background: #b8af98; */
    background: white;
}

div#all {
    margin: auto;
    padding: 0 3% 20px 3%;         /* Top Right Bottom Left */
    padding: 0;
    /* border: 1px solid blue; */
    position: relative;
}


h1 {
    margin-top: 40px;
    padding: 0;
}


div#header {
    padding: 0 5% 20px 5%;         /* Top Right Bottom Left */
    margin: 0;
    /* border-bottom: 1px solid grey; */
    border-top: 1px solid grey;

    /* background-color:rgba(25,55,45,0.5); */

    background: url("img/tree-small.jpg");
    background-size: 110%;
    background-position: 0 0;
    background-repeat: no-repeat;

    color: rgb(40,40,70);
    letter-spacing: 0.01em;
    text-align: center;
}

div#header h1 {
    font-weight: normal;
    font-size: 250%;
    text-shadow: 2px 2px #afb1e4;
    background-color: white;
    background-color: rgba(240, 240, 255, 0.7);
}

div#header span#title-spring {
    display: block;
    font-size: 150%;
    color: rgb(40,40,70);
}

div#header span#title-spring {
    display: block;
    font-size: 130%;
}

div#header span#title-micro {
    display: block;
    font-size: 100%;
    font-style: italic;
}

div#header span#title-on {
      display: none;
}

div#header h2 {
    margin: 0 0 .3em 0;
    font-size: 300%;
    font-family: Georgia, Times, Serif;
    text-shadow: 0px 0px 5px white;
    background-color: white;
    background-color: rgba(240, 240, 255, 0.7);
    color: rgb(80,80,120);
    border: none;
}


div#main {
    padding: 2% 4%;
    /* margin-left = width of side
                   + separation between columns
                   + padding-left of side
                   + padding-right of side. */
    margin-left: 30%;
    margin-top: 0;
    /* border-left: 1px solid #000000; */
    
    /* background-color:rgba(255,255,255,0.8); */
    /* background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%, rgba(255,255,255, 0.8) 10px); */
    background: #eaf0ff;
}

div#main p, div#main ul, div#main ol {
    padding-left: 4em;
    font-size: 120%;
}

div#main code {
    display:block;
    margin-left: 2em;
}

div#side {
    float: left;
    width: 25%;
    margin-bottom: 20px;
    padding: 2% 2.5% 0 2.5%;

    /* font-size: 90%; */
    /* border: 1px solid red; */
    /* background-color: white; */
    /* background-color:rgba(255,255,255,0.7); */

    background: white;
    /* background: linear-gradient(to bottom, rgba(185, 195, 239, 0.5), rgba(255,255,255,0)); */ /* W3C */
    /* background: #bdaf98; */
    
    text-align: center;
}

div#side img {
    display: block;
    margin: 0 auto;
    /* height: 2.5em; */
    /* max-width: 90%; */
    width: 50%;
    padding: 5px;
    vertical-align: middle;
    transition: all 0.25s ease-out;
}

div#side img#bham, div#side img#marie-curie{
    width: 60%;
}


div#side img:hover {
    background: white;
    box-shadow: 2px 2px 5px black;
}

div#side ul {
    font-size:150%;
}

div#side ul a {
    display: block;
    padding: .5em .5em;
    margin: 0 auto;
    width: 90%;

    text-align: center;
    border: 1px solid grey;
    background: #eaf0fe;
}

div#side ul a:hover {
    text-decoration: none;
    background: white;
    box-shadow: 2px 2px 5px black;
}

div#side li {
    margin: .5em 0;
    display: block;
    list-style-type: none;
    
    font-size: 100%;
    
    color: red;
}

div#side ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

div#footer {
    clear: both;
    padding: 2em 2em;
    margin: 0;

    text-align: center;
    background: #353521;
    background: url("img/tree-small.jpg");
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;

    color: rgb(40,40,70);

    /* box-shadow: 0 1em .5em .1em rgba(53,53,33,1); */
}

div#footer span {
    padding: 1em;
    background-color: white;
    background-color: rgba(240, 240, 255, 0.85);
}

div#footer a:link {
    color: rgb(40,40,70);
}

div#footer a:visited {
    color: black;
}

div#footer a:link:hover, div#footer a:visited:hover {
  color: rgb(100,0,0);
}


/* 
 * Page layout on narrow screens
 * ---------------------------------------------------------------------
 */


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

    h1{ color: red;}

    body {
        min-width: unset;
        width: 100%;
    }
    
    div#all {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    div#header{
        width: 90%;
    }
    
    div#main p, div#main ul, div#main ol {
        padding-left: 1em;
    }

    div#side {
      width: 90%;
      float: none;
      margin: auto;
      order: 1;
    }
    div#side ul {
      font-size: 3.5em;
    }

    div#main {
      order: 0;
      margin-left: 0;
    }

    p.columns {
        -moz-column-width: 16em;
        -moz-column-gap: 1em;
        -webkit-column-width: 16em;
        -webkit-column-gap: 1em;
        column-width: 16em;
        column-gap: 1em;
    }

    div#footer {
        display: block;
        width: 90%;
        margin: 0;
        font-size: 1.5em;
        order: 3;
    }
    
}

/* 
 * Figures
 * ---------------------------------------------------------------------
 */

figure {
    width: 40%;
    float: right;
    background: #FFF0EA;
    padding: 30px 30px 30px 40px;
    margin: 0;
    clear: right;
}

figcaption {
    font-size: 70%;
    text-align: right;
}

figure img {
    width: 100%;
}

figure img, figure object {
    background-color: white;
    padding: 5px;
    border: 1px solid rgb(200,200,200);
    /* box-shadow: 2px 2px 2px rgb(100,100,100); */
}

figure.poster {
    width: 30%;
    padding-top: 0;
    margin-top: 0;
}

figure.poster img:hover {
    background: white;
    box-shadow: 2px 2px 5px black;
}

figure.poster figcaption {
    text-align: center;
}

/* 
 * Columns
 * ---------------------------------------------------------------------
 */

p.columns {
    -moz-column-width: 13em;
    -moz-column-gap: 1em;
    -webkit-column-width: 13em;
    -webkit-column-gap: 1em;
    column-width: 13em;
    column-gap: 1em;
}

p.columns span {
    display: block;
}

p.columns br {
    display: none;
}

/* p.columns a { */
/*     display: block; */
/* } */


/* 
 * Speaker list
 * ---------------------------------------------------------------------
 */

span.affiliation {
    display: block;
    margin-bottom: .5em;
    padding: 0;
    font-size: 80%;
    font-weight: bold;
    color: rgb(130,130,130);
}

p.speakerlist br { display: none;}

p.speakerlist .speaker {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

span.speaker {
    font-size: 120%;
}

/* 
 * Speaker list
 * ---------------------------------------------------------------------
 */

p.framed {
    border: 1px solid black;
    background-color: white;
}

/* 
 * Index within a page
 * ---------------------------------------------------------------------
 */

p.pageindex {
    -moz-column-width: 13em;
    -moz-column-gap: 1em;
    -webkit-column-width: 13em;
    -webkit-column-gap: 1em;
    column-width: 13em;
    column-gap: 1em;
}

p.pageindex span {
    display:block;
    border-bottom: 1px solid grey;
}

p.pageindex a {
    display:block;
}

p.pageindex br { display: none;}

/* 
 * Mapa
 * ---------------------------------------------------------------------
 */


p#map {
  float: right;
  text-align: center;
}

p#map iframe {
  padding: 5px;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 2px 2px 2px 0px #aaaacc;
}

/* 
 * Registration info
 * ---------------------------------------------------------------------
 */

p.regform {
    background: white;
    padding: 1em;
    margin-left: 4em;
    border: 1px solid rgb(200,200,200);
    /* box-shadow: 2px 2px 2px rgb(100,100,100); */
}

/* 
 * Schedule
 * ---------------------------------------------------------------------
 */

table#schedule {
    /* border: 1px solid grey; */
    display: inline-block;
    vertical-align: top;
    margin: 0 1em 0 1em;
}


table#schedule td {
  width: 9em;
  margin: 0px;
  padding: 7px;
  border-bottom: 1px solid grey;  
}

table#schedule td.time {
  font-weight: bold;
  background-color: #800;
  color: white;
}

table#schedule td.day {
  font-weight: bold;
  background-color: #800;
  color: white;
}

table#schedule td.C1 {
  background-color: #fcc;
}

table#schedule td.C2 {
  background-color: #cfc;
}

table#schedule td.C3 {
  background-color: #ccf;
}

table#schedule td.C4 {
  background-color: #acc;
}

table#schedule td.C5 {
  background-color: #cac;
}

table#schedule td.seminar {
  background-color: #EFF5B1;
}

/* 
 * Program
 * ---------------------------------------------------------------------
 */

div#main p.author {
  margin-top: -.7em;
  padding-left: 0;
  font-style: italic;
}

p.abstract {
    font-size: 80%;
    /* border: 2px solid red; */
}

/* 
 * Photo page
 * ---------------------------------------------------------------------
 */

div#photos-page {
  text-align: center;
}

div#photos-page p {
  padding-left: 0;
}

div#photos-page figure {
    display: inline-block;
    float: none;
    padding: 1%;
}

/* div#photos-page figure img { */
/*   width: auto; */
/* } */


/* 
 * For printing
 * ---------------------------------------------------------------------
 */


@media print {

    div#side, p.pageindex, h2.index { display: none; }
    div#main {
        margin: 0;
        background: white;
    }

    
    table#schedule td.time {
        background-color: white;
        color: black;
    }
    
    table#schedule td.day {
        background-color: white;
        color: black;
    }

}
