/* =========================================
   EVERYDAY WITH DOCTOR JESUS CHRIST
   CARD VIEWER
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0018A8;
    color: white;
    padding-bottom: 60px;
}


/* =========================================
   HEADER
   ========================================= */

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    width: 100%;

    background: #0018A8;

    padding: 18px 25px;

    border-bottom: 2px solid white;
}


/* WEBSITE NAME — FAR LEFT */

.logo-area {
    text-align: left;
}

.logo-area a {
    color: yellow;
    text-decoration: none;

    font-size: 24px;
    font-weight: bold;

    white-space: nowrap;
}

.logo-area a:hover {
    color: white;
}


/* NAVIGATION — CENTER */

nav {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 22px;

    white-space: nowrap;
}

nav a {
    color: yellow;

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;
}

nav a:hover {
    color: white;
}


/* RIGHT SIDE */

.header-right {
    min-width: 1px;
}


/* =========================================
   MAIN
   ========================================= */

main {
    width: 100%;

    padding: 30px 20px;
}

.card-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    text-align: center;
}


/* =========================================
   IMAGE NUMBER
   ========================================= */

.image-number {
    margin-bottom: 10px;

    color: yellow;

    font-size: 18px;
    font-weight: bold;
}


/* =========================================
   CARD TITLE
   ========================================= */

#cardTitle {
    margin: 0 0 25px 0;

    color: yellow;

    font-size: 30px;
    line-height: 1.25;
}


/* =========================================
   PREVIEW SECTION
   ========================================= */

.preview-section {
    display: flex;

    justify-content: center;
    align-items: flex-start;

    gap: 30px;

    width: 100%;
}

.preview-box {
    flex: 1;

    min-width: 0;

    background: white;

    color: #222;

    padding: 15px;

    border-radius: 10px;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.25);
}

.preview-box h3 {
    margin: 0 0 12px 0;

    color: #0018A8;

    font-size: 18px;
}


/* =========================================
   IMAGE
   ========================================= */

.image-wrapper {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 6px;
}

.image-wrapper img {
    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;
}


/* =========================================
   IMAGE WATERMARK
   ========================================= */

.watermark {
    position: absolute;

    right: 8px;
    bottom: 8px;

    color: yellow;

    font-size: 9px;
    font-weight: bold;

    text-align: right;

    text-shadow:
        1px 1px 2px #000;

    pointer-events: none;
}


/* =========================================
   DESCRIPTION
   ========================================= */

.card-description {
    width: 100%;

    margin-top: 25px;

    padding: 20px;

    background: white;

    color: #222;

    border-radius: 10px;

    text-align: left;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.25);
}

.card-description h3 {
    margin: 0 0 12px 0;

    color: #0018A8;

    text-align: center;

    font-size: 20px;
}

.card-description p {
    margin: 0;

    color: #333;

    font-size: 15px;

    line-height: 1.6;

    overflow-wrap: break-word;
}


/* =========================================
   DOWNLOAD / SHARE BUTTONS
   ========================================= */

.button-group {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 25px;
}

.button-group a,
.button-group button {

    display: inline-block;

    padding: 10px 15px;

    border: none;

    border-radius: 5px;

    background: white;

    color: #0018A8;

    text-decoration: none;

    font-family: inherit;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;
}

.button-group a:hover,
.button-group button:hover {

    background: yellow;

    color: #0018A8;
}


/* =========================================
   NAVIGATION BUTTONS
   ========================================= */

.navigation-buttons {

    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 25px;
}

.navigation-buttons a,
.navigation-buttons button {

    display: inline-block;

    padding: 10px 15px;

    border: none;

    border-radius: 5px;

    background: yellow;

    color: #0018A8;

    text-decoration: none;

    font-family: inherit;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;
}

.navigation-buttons a:hover {

    background: white;

    color: #0018A8;
}

.navigation-buttons button:disabled {

    background: #777;

    color: #ddd;

    cursor: not-allowed;
}


/* =========================================
   FOOTER
   ========================================= */

footer {

    text-align: center;

    padding: 25px 20px;

    color: white;

    font-size: 14px;
}

footer p {
    margin: 0;
}


/* =========================================
   PAGE WATERMARK
   ========================================= */

.page-watermark {

    position: fixed;

    right: 15px;
    bottom: 10px;

    color: white;

    font-size: 11px;
    font-weight: bold;

    text-align: right;

    z-index: 1000;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1100px) {

    header {

        grid-template-columns: 1fr;

        gap: 15px;

        text-align: center;
    }

    .logo-area {

        text-align: center;
    }

    nav {

        flex-wrap: wrap;

        gap: 15px;
    }

    .preview-section {

        gap: 20px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    main {

        padding: 20px 12px;
    }

    .logo-area a {

        font-size: 20px;
    }

    nav {

        gap: 10px;
    }

    nav a {

        font-size: 12px;
    }

    #cardTitle {

        font-size: 24px;
    }

    .preview-section {

        flex-direction: column;

        gap: 20px;
    }

    .preview-box {

        width: 100%;
    }

    .button-group a,
    .button-group button,
    .navigation-buttons a,
    .navigation-buttons button {

        width: 100%;

        max-width: 300px;
    }

    .page-watermark {

        right: 8px;

        bottom: 5px;

        font-size: 9px;
    }
}