/* Generic styles */
* {
    margin: 0rem;
    font-family: Arial, Verdana, Tahoma;
    font-size: 13px;
}

html {
    scroll-behavior: smooth;
}

/* default is mobile */
body {
    display: grid;
    grid-template-rows: repeat(5, auto);
    grid-template-columns: 1fr;
    grid-template-areas: 
        "head"
        "nav"
        "content"
        "leftfoot"
        "rightfoot";
    background-color: white;
}

header {
    grid-area: head;
    display: inline;
    border-bottom: 1px solid black;
    text-align: center;
    background-color: #F90F0E;
}

header > h1 {
    font-size: 2.5em;
}

nav {
    grid-area: nav;
    border-bottom: 1px solid black;
    background-color: #F90F0E;
}

.navmenu {
    display: block;
    margin: auto;
}

.navmenu a {
    float: left;
    padding: .5em;
    color: white;
    line-height: 1;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    line-height: 1;
    font-size: 1em;  
    font-weight: bold;
    border: none;
    outline: none;
    color: white;
    padding: .5em .5em;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

nav a:hover, .dropdown:hover .dropbtn:hover {
    color: black;
    background-color: #F90F0E;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #d0d0d0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
    grid-area: content;
}

main > img {
    float: right;
    margin: 2em 1em 0em 0em;
    max-width: 100px;
}

main > article > img {
    float: right;
    margin: 1em 1em 0em 0.5em;
    max-width: 200px;
    border-radius: .6em;
}

main a {
    color: #F90F0E;
}

h2 {
    margin: 1rem;
    font-size: 1.5em;
}

h3 {
    margin: 1rem;
    font-size: 1.25em;
}

h4 {
    margin: 1rem;
    font-size: 1.1em;
    text-decoration: underline;
}

p {
    line-height: 1.5em;
    margin: 1em 1em 0em 1em;
}

.headlines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1em;
    padding: 1em;
}

.headlines > article {
    border: 1px solid black;
    border-radius: .6rem;
}

.headlines > article > h2 {
    background-color: black;
    color: white;
    opacity: 75%;
    border-radius: .5rem .5rem 0rem 0rem;
    margin: 0rem;
    padding: .5rem;
}

.headlines > article > p {
    margin: .5rem .5rem 0rem .5rem;
}

.headlines > article > a::last-child {
    vertical-align: bottom;
}

.headlines > article > .buttonlink {
    margin: .5rem;
}

.buttonlink {
    background-color: #F90F0E;
    text-decoration: none;
    color: white;
    border-radius: .25rem;
    text-align: center;
    display: inline-block;
    margin: 1rem;
    padding: .5rem;
}

.buttonlink:hover {
    color: black;
    opacity: 60%;
}

.list {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    grid-gap: 1em;
    padding: 1em;
}

.list > .year {
    border: 1px solid black;
    border-radius: .6rem;
    align-self: start;
    background-color: rgba(0,0,0,0.2);
}

.list > .year > h2 {
    background-color: black;
    color: white;
    opacity: 75%;
    border: 1px solid black;
    border-radius: .5rem .5rem 0rem 0rem;
    margin: 0rem;
    padding: .5rem;
    text-align: center;
}

.year {
    display: grid;
    grid-template-rows: repeat(1fr);
    grid-gap: 1em;
    align-content: start;
}

.event {
    border: 1px solid #F90F0E;
    border-radius: .6rem;
    margin: 0em 1em;
    background-color: white;
}

.event:last-child, .persons:last-child, .grant:last-child {
    margin-bottom: 1em;
}

.event > h3, .person > h3, .grant > h3 {
    background-color: #F90F0E;
    color: black;
    opacity: 80%;
    border: 1px solid #F90F0E;
    border-radius: .5rem .5rem 0rem 0rem;
    margin: 0rem;
    padding: .5rem;
}

.event > p > img, .grant > p > img {
    margin: 0 0 1em 1em;
    float: right;
    border-radius: .6em;
}

.event > img {
    display: block;
    margin: 1em auto;
    width: 90%;
}

.grant {
    border: 1px solid #F90F0E;
    border-radius: .6rem;
    margin: 0em 1em;
    background-color: white;
}

.grant > p {
    margin: 0.5em;
}

.persons {
    display: grid;
    grid-template-columns: repeat(auto-fit, 200px);
    grid-gap: 1em;
    justify-content: space-evenly;
}

.person {
    border: 1px solid #F90F0E;
    border-radius: .6rem;
    background-color: white;
    text-align: center;

}

.person > img {
    margin: 1em;
    border-radius: 6rem;
}

.person > p {
    margin: 0em 0em 1em 0em;
}

.warning {
    background-color: #FF7F7F;
    margin: 1em 1em 0em 0.5em;
    padding: 0.3em;
    border-radius: .6em;
}

form {
    margin: 1em;
    line-height: 2em;
}

footer {
    color: white;
    background-color: black;
    font-size: 1em;
    border-top: 1px solid #F90F0E;
}

.leftfooter {
    grid-area: leftfoot;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    text-align: right;
    border-top: 1px solid #F90F0E;
    margin-top: 1em;
}

.rightfooter {
    grid-area: rightfoot;
    text-align: center;
    text-decoration: none;
    line-height: 1.5rem;
    font-size: .9em;
    padding: 1em;
    margin-top: 0em;
}

.rightfooter img {
    margin: .5em;
}

.pastevents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    text-align: center;
}

.imggridlarge {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1em;
    justify-items: space-between;
}

.imggrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 1em;
    justify-items: space-between;
}

.imgtitle {
    text-align: center;
}

.caption {
    font-size: .75em;
    font-weight: normal;
    color: black;
    text-align: center;
}

.caption a {
    font-size: 1em;
    font-weight: normal;
    color: #F90F0E;
}

.caption img {
    border-radius: .6em;
}

.imgcenter{
    margin-left: auto;
    margin-right: auto;
}

.contact {
    font-weight: bold;
    text-align: center;
}

/* tablet */
@media only screen and (min-width: 768px) {
    body {
        display: grid;
        grid-template-rows: 125px 1fr 125px;
        grid-template-columns: 50% 50%;
        grid-template-areas: 
            "head nav"
            "content content"
            "leftfoot rightfoot";
    }

    header {
        grid-area: head;
        display: grid;
        grid-template-columns: 100px repeat(auto-fit, minmax(240px, 1fr));
        align-items: center;
    }

    header > h1 {
        font-size: 2.5em;
        text-align: left;
    }

    nav {
        grid-area: nav;
        display: inline;
        text-align: left;
        vertical-align: center;
    }

    .navmenu a {
        line-height: 1.25;
        font-size: 1.25em;
        font-weight: bold;
        text-decoration: none;
    }

    .dropdown .dropbtn {
        line-height: 1.25;
        font-size: 1.25em;  
    }

    main > img {
        margin: 1em 1em 0em 0em;
    }

    .leftfooter {
        grid-area: leftfoot;
        display: grid;
        grid-template-columns: auto auto;
        justify-content: start;
        text-align: left;
        margin-top: 1em;
    }

    .rightfooter {
        grid-area: rightfoot;
        text-align: right;
        text-decoration: none;
        line-height: 1rem;
        font-size: .9em;
        padding: 1em;
        margin-top: 1em;
    }

}

@media only screen and (min-width: 1200px) {
    body {
        display: grid;
        grid-template-rows: 125px 1fr 125px;
        grid-template-columns: 1fr 600px 600px 1fr;
        grid-template-areas: 
            ". head nav ."
            ". content content ."
            ". leftfoot rightfoot .";
    }
}

