/* STYLESHEET 2  */

body {
    background-color: seashell;
    font-family: Georgia, serif;
}

a:not(.cardLink) {
    font-weight: bold;
}

section.noJS {
    display: none;
}

a.backLink {
    text-decoration: none;
    color: blue;
}

a.backLink:visited {
    color: blue;
}

main {
    width: 100%;
}

/* 

THIS WILL MAKE THE UPCOMING EVENTS SHOW UP WITH CLOSER ONES 
APPEARING FIRST, WHILE PAST EVENTS WILL SHOW UP WITH MOST-RECENT ONES FIRST

*/

div#upcomingEventsContainer {
    display: flex;
    flex-direction: column-reverse;
}

header,
section#patrons, p.introduction, p#placeholder {
    text-align: center;
}

section#patrsons ul {
    width: 100%;
}

section#patrons li {
    list-style-type: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* section#tableofcontents li {
    margin-top: 2.5%;
    margin-bottom: 2.5%;
} */

header div.linkContainer a:visited {
    color: blue;
}

section h1:first-of-type {
    text-align: center;
}

div.figureRow {
    display: flex;
    flex-wrap: wrap;
}

div.linkContainer {
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

div.linkContainer a {
    margin-left: 2.5%;
    margin-right: 2.5%;
    margin-top: 1%;
    margin-bottom: 1%;
}

p, h1, h2, h3 {
    margin-left: auto;
    margin-right: auto;
}

section#aboutMe p {
    text-align: justify;
}

figure {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

figure img {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

footer div.linkContainer {
    margin-top: 1%;
    margin-bottom: 1%;
}

footer div.linkContainer span {
    margin-bottom: 2%;
}

/* CARDS  */

div.card {
    border: outset;
    border-radius: 15px;
    margin: 2.5%;
}

div.card:hover {
    border: inset;
}

a.noDecoLink {
    color: black;
    text-decoration: none;
}

a.noDecoLink hr {
    border: 1px solid lightgray;
}

li.noDecoLI {
    list-style-type: none;
}

p.heading:first-of-type {
    font-size: 110%;
}

div.card img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5%;
    margin-bottom: 2.5%;
    width: 66%;
}

div.card p.heading {
    font-weight: bolder;
    text-align: center;
}

div.card p:not(.heading) {
    text-align: justify;
}

div.starDiv {
    text-align: right;
}

a.cardLink {
    text-decoration: none;
    color: black;
}

a.cardLink:visited {
    color: black;
}

div.card li {
    margin-left: 7.5%;
    margin-bottom: 2.5%;
}

div.starDiv {
    width: 25%;
    line-height: 60px;
    font-size: 300%;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 15px;
    margin-left: 70%;
    margin-right: 5%;
}

div.starDivStandby {
    background-color: gold;
    color: black;
    transition: background-color 1s, color 1s, transform 2s;
}

div.starDivActive {
    background-color: rgba(0, 0, 0, 0);
    color: gold;
    transform: scale(2);
    transition: background-color 1s, color 1s, transform 2s;
}

/* NOSCRIPT */

div.noscriptContent {
    border: 1px solid black;
    border-radius: 10px;
}

h1.noscriptHeader {
    text-align: center;
    font-style: italic;
}

/* BLOG POSTS */

div.authorDateLocationContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* EVENTS */

div.event {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5%;
    border-bottom: 1px solid gray;
}

div.infoDiv,
div.contactDiv {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-weight: bold;
    margin-bottom: 2.5%;
}

@media screen and (orientation: landscape) {
    p, h2, h3 {
        width: 80%;
    }

    figure {
        width: 33%;
    }

    li {
        margin-left: 10%;
    }

    /* EVENTS */
    div.event {
        width: 80%;
    }

    div.infoDiv,
    div.contactDiv {
        flex-direction: row;
        justify-content: space-evenly;
    }
}

@media screen and (orientation: portrait) {
    span.divider {
        display: none;
    }

    p, h2, h3 {
        width: 90%;
    }

    /* EVENTS */
    div.event {
        width: 90%;
    }
}

@media screen and (max-width: 767px) and (orientation: portrait) {
    div.figureRow {
        flex-direction: column;
    }

    div.infoDiv,
    div.contactDiv {
        flex-direction: column;
    }

    /* EVENTS */

    div.event time,
    div.event span,
    div.event a {
        margin-bottom: 2.5%;
        text-align: center;
    }

    figure {
        width: 98%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 767px) and (orientation: landscape) {
    div.figureRow {
        flex-direction: column;
    }

    div.figureColumns {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    div.card {
        width: 48%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    figure {
        width: 50%;
    }

    /* EVENTS */
    div.event {
        width: 80%;
    }

    div.infoDiv,
    div.contactDiv {
        flex-direction: row;
        justify-content: space-evenly;
    }

    div.event time,
    div.event span,
    div.event a {
        margin-bottom: 2.5%;
    }
}

@media screen and (min-width: 1201px) and (orientation: landscape) {

    header,
    footer,
    div.updateContainer,
    div.noscriptContent {
        width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 768px) and (orientation: landscape) {
    div.figureColumns {
        width: 33%;
    }
}