body {
    background-color: #f6f6f6;
    /*background: linear-gradient(180deg, #c5e5f0, #F6F6F6 );*/
    color: #2A2A28;
    font-family: Helvetica, sans-serif;
}

header {
    background-color: #3e3838;
}

main > div,
main > section,
header .wrap,
footer {
    padding: 1rem;
}

h1, h2, h3 {
    color: #6a0d1a;
    text-align: center;
}

h1, h2 {
    font-family: 'Fjalla One', sans-serif;
    margin-top: 2rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.4em;
    color: #FEFEFE;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

img {
    max-width: 100%;
}

a:link,
a:visited {
    text-decoration: none;
    color: #b56c00;
}

a:hover {
    color: #9a1b2d;
}
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
}

footer a {
    font-weight: bold;
}

footer p {
    margin-bottom: .5rem;
}

footer div {
    flex-basis: 100%;
    padding: 10px 0;;
}

.about p {
    max-width: 700px;
}

.details {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0 0.5rem 0;
}

.details span {
    font-size: 2rem;
    border-right: 1px solid #847979;
    flex-grow: 1;
    text-align: center;
    color: #EEE;
    padding: 0 1.5rem;
    font-weight: 100;
}

.details span:last-child {
    border-right: none;
}

.speakers ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    column-gap: 2rem;
    row-gap: 3rem;
    justify-items: center;
    padding: 0;
}

.speakers li {
    text-align: center;
}

.speakers p {
    text-align: center;
    margin: 0;
    color: #3e3838;
}

.speakers .name {
    margin-top: 5px;
}

.speakers p.name {
    font-weight: bold;
    font-size: 1.1rem;
}


.speakers img {
    border: 4px solid #dfd8ce;
    border-radius: 2px;
}

@media screen and ( max-width: 1000px ) {
        .details span {
            font-size: 1.7rem;
        }
}

@media screen and ( max-width: 900px ) {
    .details {
        flex-wrap: wrap;
        border-top: 1px solid #847979;
        padding-top: 10px;
        margin-top: 2rem
    }

    .details span {
        flex-basis: 100%;
        border: none;
    }
}


@media screen and ( min-width: 600px ) {
    .mobile-only {
        display: none;
    }

}

@media screen and ( min-width: 800px ) {
    body {
        background-color: #f6f6f6;
        background-image: url(background2.jpg);
        background-size: 100%;
        background-attachment: fixed;
        background-repeat: no-repeat;
    }

    main,
    footer {
        max-width: 1200px;
        margin: auto;
    }

    footer {
        margin-top: 5rem;
    }

    h2, h3, h4 {
        text-align: left;
    }

    h1 {
        font-size: 3.6rem;
    }

    h2 {
        font-size: 2.4rem;
        margin-top: 1rem;
    }

    footer {
        flex-wrap: nowrap;
    }
}


.program > div  {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto;
    grid-template-areas:
    "header header"
    "photo content";
    gap: 1rem 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #dfd8ce;
}

.program > div:first-of-type {
    padding-top: 0;
}

.program > div:last-child {
    border-bottom: none;
}

.program h3 {
    grid-area: header;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
   /* font-weight: bold;
    color: #3e3838; */
}

.program img {
     grid-area: photo
}

.program img {
    border-radius: 2px;
}

.program > div > div {
    grid-area: content;
}

.program .name {
    font-weight: bold;
    font-size: 1.2rem;
}

p, li {
    max-width: 700px;
}

@media screen and (max-width: 700px) {
    .program > div {
        grid-template-columns: 150px 1fr;
    }
}

@media screen and (max-width: 500px)  {
    .program > div {
        grid-template-areas:
        "header header"
        "photo photo"
        "content content";
    }

    .program img {
        width: 200px;
        margin: auto;
    }

    .program h3 {
        font-size: 1.4rem;
    }
}


.schedule {
    list-style: none;
}

.schedule > li {
    display: flex;
    padding: 0;
    max-width: 930px;
}

.schedule .click-open {
    color: #b56c01;
    cursor: pointer;
    margin-bottom: .5rem;
    font-weight: bold;
}

.click-open:after {
    content: '►';
    margin-left: 5px;
}
.click-open.open:after {
    content: '▼';
}

.schedule .click-open:hover {
    color: #6a0d1a;
}

.abstract {
    max-height: 0;
    grid-area: abstract;
    transition: all .5s;
    overflow: hidden;
}

.abstract.open {
    max-height: 800px;
}



.mobile-only {
    display: none;
}

.talk-details img {
    width: 160px;
    height:auto;
    padding: 1px;
    border: 1px solid #CCC;
}

.talk-details h4 {
    margin-top: -7px;
    margin-bottom: 1rem;
    line-height: 1.6em;
    grid-area: title;
}

.talk-details .name {
    grid-area: name;
}


@media screen and (min-width: 500px) {

    .schedule .time {
        display: block;
        font-size: 1.2rem;
        position: relative;
        flex-basis: 160px;
        min-width: 160px;
        width: 160px;
        letter-spacing: 1px;
    }

    .schedule .time:before {
        content: "";
        right: -3px;
        top: 0;
        position: absolute;
        background-color: #fff;
        height: 28px;
        width: 3px;
        z-index: 10;
    }
    
    .schedule .time:after {
        content: "";
        left: 100%;
        top: 8px;
        margin-left: -4px;
        position: absolute;
        height: 10px;
        width: 10px;
        display: inline-block;
        border-radius: 50%;
        z-index: 12;
        background-color: #6a0d1a;
    }

    .schedule .talk-details {
        flex-grow: 1;
        padding: 0 2rem 4rem 2rem;
        border-left: 3px solid #e0e0e0;
        display: grid;
        grid-template-areas:
            "title title"
            "photo name"
            "photo click-open"
            "photo abstract";
        grid-template-rows: auto auto 1fr;
        grid-template-columns: 160px 1fr;
    }

    .schedule .photo {
        margin-right: 1rem;
        grid-area: photo;
    }

    .abstract ul {
        margin-bottom: 1rem;
        padding-left: 2rem;
    }
    
}

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

    .schedule {
        padding-left: 0;
    }

    .schedule > li {
        display: block;
        border-bottom: 3px solid #e0e0e0;
        padding: 1rem 0;
    }

    .mobile-only {
        display: inline;
    }

    .schedule img {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .time {
        text-align: center;
        font-size: 1.1rem;
        font-weight: bold;
        color: #6a0d1a;
    }


}

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

    .schedule .talk-details {
        grid-template-areas:
        "title title"
        "photo photo"
        "name name"
        "click-open click-open"
        "abstract abstract";
        grid-template-rows: auto auto 1fr;
        grid-template-columns: 160px 1fr;
    }
    
    
}