@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Ephesis&family=Lato&display=swap');

/* body */
body {
    background-color: black;
    background-image: url(../images/background.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: "Lato";
    margin: 0px;
}

h1 {
    font-family: "Ephesis";
    color: rgb(143, 162, 169);
    padding-top: 1rem;
    text-shadow: 2px 2px 0px rgba(100, 100, 100, 0.5);
}

h2, h3 {
    font-family: "DM Serif Display";
    font-size: larger;
    color: rgb(143, 162, 169);
}

.articleCard:hover, .floatingCard:hover {
    transform: scale(1.03, 1.03);
}

.articleCard, .floatingCard {
    transition: transform 0.4s;
}

/* header */ 
header {
    background-color: black;
    color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
}

header .content {
    padding: 2rem 1rem;
}

header .top {
    text-align: center;
    margin-bottom: 2rem;
}

header .top h1 {
    margin: 1rem;
}

header .top img {
    margin: auto;
}

header ul {
    padding: 0rem;
}

header ul li {
    list-style: none;
    text-align: center;
    font-size: larger;
    border-top: 1px solid white;
    border-bottom: none;
    padding: 0.5rem;
}

header a {
    text-decoration: none;
    color: white;
    padding: 0.5rem;
}

header a:hover {
    color: aqua;
    border-bottom: 1px solid white;
}

header a:active {
    background-color: white;
    color: black;
}

/* #signup */
#signup {
    margin: 15rem 1rem 2rem 1rem;
    box-sizing: content-box;
}

.floatingCard {
    background-color: white;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    max-width: 35%;
    padding: 1rem;
}

.floatingCard button {
    width: 100%;
    border: none;
    border-radius: 10px;
    background-color: rgb(143, 162, 169);
    color: white;
    padding: 1rem;
}

/* #stories */
#stories {
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#stories .content > h2:first-of-type {
    text-align: center;
    font-size: 20pt;
}

.largeArticles {
    border-top: 1px solid black;
}

.largeArticles .articleCard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgb(235, 235, 235);
    margin: 1rem;
}

.largeArticles .titleAndText {
    width: 100%;
    height: 30%;
    padding: 1rem;
    box-sizing: border-box;
    overflow: scroll;
}

.largeArticles .image {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    height: 70%;
}

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

.smallArticles {
    border-top: 1px solid black;
}

.smallArticles .articleCard {
    background-color: rgb(235, 235, 235);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 1rem;
}

.smallArticles .titleAndText {
    padding: 1rem;
}

.smallArticles img {
    width: 100%;
}

a.articleCard {
    color: inherit;
    text-decoration: none;
}

a.articleCard:focus-visible {
    outline: 3px solid rgb(143, 162, 169);
    outline-offset: 4px;
}

/* story detail pages */
.storyDetail {
    padding: 2rem 1rem 3rem;
}

.storyArticle {
    background-color: white;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    margin: auto;
    max-width: 1040px;
    padding: 1rem;
}

.storyDetail .backLink {
    color: rgb(86, 118, 130);
    display: inline-block;
    margin-bottom: 1rem;
}

.storyHero img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.storyIntroPanel {
    border-bottom: 1px solid lightgray;
    padding: 1.5rem 0 1rem;
}

.storyEyebrow {
    color: rgb(86, 118, 130);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}

.storyIntroPanel h2 {
    font-size: 28pt;
    line-height: 1.05;
    margin: 0 0 1rem;
}

.storyIntroPanel p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    max-width: 760px;
}

.storyLayout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.storyText {
    line-height: 1.7;
    padding: 1.5rem 0 0;
}

.storyText h3,
.storyMeta h3,
.relatedStories h3 {
    font-size: 16pt;
    margin-top: 0;
}

.storyText ul {
    padding-left: 1.25rem;
}

.storyText li {
    margin-bottom: 0.5rem;
}

.storyMeta {
    border-top: 1px solid lightgray;
    padding-top: 1.25rem;
}

.storyMeta dl {
    margin: 0;
}

.storyMeta dt {
    color: rgb(86, 118, 130);
    font-weight: bold;
    margin-top: 1rem;
}

.storyMeta dt:first-child {
    margin-top: 0;
}

.storyMeta dd {
    margin: 0.25rem 0 0;
}

.relatedStories {
    border-top: 1px solid lightgray;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.relatedStories ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding-left: 0;
}

.relatedStories a {
    color: rgb(86, 118, 130);
    font-weight: bold;
}

/* #exploreMore */
#exploreMore {
    margin: auto;
    text-align: center;
}

#exploreMore .content {
    margin: 1rem;
}

#exploreMore .centredCard {
    background-color: white;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#exploreMore img {
    width: 100%;
    height: auto;
    padding: 1rem;
}

form {
    display: flex;
    flex-direction: column;
}

input, select {
    border: none;
    border-bottom: 1px solid lightgray;
    margin-top: 10px;
    margin-bottom: 10px;
}

label {
    text-align: left;
}

input[type='submit'] {
    background-color: rgb(143, 162, 169);
    color: white;
    height: 40px;
    width: 100px;
    border: none;
    border-radius: 10px;
    margin-bottom: 1rem;
}


/* #videoPart */
#videoPart {
    background-color: black;
    color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
    text-align: center;
}

#videoPart .content {
    padding: 1rem;
}

#videoPart .part1, #videoPart .part2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

iframe {
    width: 100%;
    border: none;
}

/* #contactInfo */
#contactInfo {
    margin: auto;
    text-align: center;
}

#contactInfo .content {
    margin: 1rem;
}

#contactInfo .centredCard {
    background-color: white;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#contactInfo #map {
    width: 100%;
    height: 300px;
    border: none;
}

#contactInfo ul {
    padding-left: 0px;
}

#contactInfo li {
    list-style: none;
    margin-top: 1rem;
}

#contactInfo .icon {
    width: auto;
    height: 1rem;
    padding-right: 1rem;
}


/* footer */
footer {
    background-color: black;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
    color: white;
}

footer .content {
    padding: 1rem;
}

footer .top {
    border-bottom: 1px solid white;
}

footer .top .left {
    border-bottom: 1px solid white;
    text-align: center;
}

footer .top .right {
    text-align: center;
}

footer ul {
    padding-left: 0px;
}

footer .top .left li {
    list-style: none;
}

footer .bottom {
    text-align: center;
}

footer a {
    color: aqua;
}

/* PHP result pages */
.phpPage {
    max-width: 1000px;
    min-height: 100vh;
    margin: auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.phpPanel {
    background-color: white;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
}

.phpPanel h1 {
    font-family: "DM Serif Display";
    color: rgb(143, 162, 169);
}

.phpPanel a {
    color: rgb(86, 118, 130);
}

.subscribersPanel {
    overflow-x: auto;
}

.tableWrapper {
    overflow-x: auto;
}

.phpPanel table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.phpPanel th,
.phpPanel td {
    border: 1px solid lightgray;
    padding: 0.75rem;
    text-align: left;
}

.phpPanel th {
    background-color: rgb(235, 235, 235);
    color: rgb(86, 118, 130);
}

@media screen and (min-width:450px) {
    /* header */
    header .top h1 {
        margin: 1rem;
    }

    /* #stories */
    .largeArticles .articleCard {
        flex-direction: row;
    }

    .largeArticles .titleAndText {
        width: 50%;
        overflow: auto;
    }

    .largeArticles .image {
        width: 50%;
        box-sizing: border-box;
    }

    .smallArticles .part1, .smallArticles .part2 {
        display: flex;
        flex-direction: row;
    }

    .smallArticles .articleCard {
        display: flex;
        justify-content: flex-start;
        width: 50%;
    }

}

@media screen and (min-width:600px) {
    .content {
        max-width: 1400px;
        margin: auto;
    }

    /* header */
    header .top {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }

    header h1 {
        padding: 1rem;
        font-size: 52pt;
    }

    header ul {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    header ul li {
        font-size: medium;
        border-top: none;
        width: 20%;
    }

    header .top img {
        margin: 1rem;
    }

    nav ul {
        display: flex;
        flex-direction: row;
    }

    /* story detail pages */
    .storyArticle {
        padding: 1.5rem;
    }

    .storyHero img {
        height: 360px;
    }

    .storyIntroPanel {
        padding: 2rem 0 1.25rem;
    }

    .storyIntroPanel h2 {
        font-size: 38pt;
    }

    .storyLayout {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(220px, 0.8fr);
        gap: 2.5rem;
    }

    .storyText {
        max-width: 680px;
        padding-top: 2rem;
    }

    .storyMeta {
        border-left: 1px solid lightgray;
        border-top: none;
        margin-top: 2rem;
        padding-left: 1.5rem;
        padding-top: 0;
    }

    .relatedStories {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .relatedStories ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* singup */
    #signup {
        max-width: 1400px;
        margin: auto;
        margin-top: 25rem;
        margin-bottom: 2rem;
    }

    .floatingCard {
        display: flex;
        flex-direction: row;
        margin-left: 1rem;
    }

    .floatingCard .titleAndText {
        padding-right: 1rem;
    }

    .floatingCard button {
        width: 25%;
        margin: 1rem;
        margin-bottom: 0rem;
    }

    /* #stories */
    .largeArticles {
        display: flex;
        flex-direction: row;
    }

    .largeArticles .articleCard {
        flex-direction: column;
        width: 50%;
    }

    .largeArticles .titleAndText {
        width: 100%;
        height: 50%;
    }

    .largeArticles .image {
        height: auto;
        width: 100%;
    }


    /* #exploreMore, */
    #exploreMore {
        max-width: 1400px;
    }

    #exploreMore .content {
        margin: 1rem;
    }

    #exploreMore .centredCard {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        max-height: 500px;
    }

    #exploreMore .titleAndText {
        text-align: left;
        width: 50%;
        padding: 1rem;
        margin-left: 1rem;
        box-sizing: border-box;
    }

    #exploreMore .image {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-end;
        width: 50%;
        height: 100%;
        box-sizing: border-box;
    }
    
    #exploreMore img {
        height: auto;
        width: auto;
        max-width: 100%;
        max-height: 436px;
        box-sizing: border-box;
    }

    /* #videoPart */
    #videoPart .part1, #videoPart .part2 {
        display: flex;
        flex-direction: row;
        justify-content: center;
        height: 350px;
    }

    #videoPart .video {
        display: flex;
        flex-direction: row;
        justify-content: center;
        height: 100%;
        padding: 1rem;
        margin-left: 1rem;
        box-sizing: border-box;
    }

    #videoPart .titleAndText {
        text-align: left;
        width: 50%;
        padding-right: 1rem;
        margin: 1rem;
        box-sizing: border-box;
        overflow: auto;
    }

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

    /* #contactInfo, */
    #contactInfo {
        max-width: 1400px;
    }

    #contactInfo .content {
        margin: 1rem;
    }

    #contactInfo .centredCard {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        max-height: 500px;
    }

    #contactInfo .titleAndText {
        text-align: left;
        width: 50%;
        padding-left: 1rem;
        box-sizing: border-box;
    }

    #contactInfo .image {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: flex-start;
        width: 50%;
        height: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    #contactInfo #map {
        width: 100%;
        height: 436px;
    }

    /* footer */
    footer .content{
        max-width: 900px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    footer .top {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        align-items: stretch;
        padding-bottom: 1rem;
    }

    footer .top .left {
        border-right: 1px solid white;
        border-bottom: none;
        width: 50%;
        padding: 1rem;
    }

    footer .top .right {

        width: 50%;
        padding: 1rem;
    }
}

@media screen and (min-width:900px) {
    /* #stories */
    .largeArticles .articleCard {
        flex-direction: row;
    }

    .largeArticles .titleAndText {
        width: 50%;
        height: 100%;
        overflow: auto;
    }

    .largeArticles .image {
        width: 50%;
        box-sizing: border-box;
    }

    .smallArticles {
        display: flex;
        flex-direction: row;
    }

    .smallArticles .part1, .smallArticles .part2 {
        width: 50%;
    }

    /* story detail pages */
    .storyHero img {
        height: 430px;
    }
}
