
/* =========================================
   DOVER DEMON — MAIN PAGE STYLES
========================================= */

@font-face {
    font-family: "Snake";
    src: url("../fonts/Snake.ttf") format("truetype");
    unicode-range: U+0020-007E;
    font-display: swap;
}

@font-face {
    font-family: "Carter One";
    src: url("../fonts/CarterOne.ttf") format("truetype");
    font-display: swap;
}

.dover-page {
    min-height: 100vh;
}

.dover-main {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 15px 20px 80px;
    box-sizing: border-box;
}

/* =========================================
   NAVIGATION
========================================= */

.dover-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto 40px;
}

.dover-navigation a,
.dover-footer a {
    color: #f1c56a;
    font-family: Georgia, serif;
    font-size: 17px;
    text-decoration: none;
    text-shadow: 1px 2px 3px #000;
}

.dover-navigation a:hover,
.dover-footer a:hover {
    color: #fff0b8;
    text-decoration: underline;
}

/* =========================================
   OPEN LEATHER JOURNAL
========================================= */

.dover-journal {
    position: relative;
    width: min(100%, 1400px);
    margin: 30px auto 70px;
    aspect-ratio: 1.8 / 1;
    container-type: inline-size;
}

.dover-journal-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

/* Both pages sit on top of the journal image */

.dover-left-page,
.dover-right-page {
    position: absolute;
    top: 9%;
    width: 36%;
    height: 80%;
    box-sizing: border-box;
    z-index: 2;

    font-family: "Snake", Georgia, serif;
    color: #342313;
    text-align: left;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #9e825f transparent;
}

.dover-left-page {
    left: 10%;
    padding-right: 1%;
}

.dover-right-page {
    right: 10%;
    padding-left: 1%;
}

/* Journal handwriting */

.dover-left-page h3,
.dover-right-page h3 {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(18px, 3.2cqw, 44px);
    font-weight: normal;
    line-height: 1.1;
    text-align: center;
    margin: 0 0 2%;
    color: #382415;
}

.dover-left-page p,
.dover-right-page p {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(12px, 2.25cqw, 31px);
    line-height: 1.24;
    margin: 0 0 3%;
    color: #382415;
}

.dover-left-page .journal-date,
.dover-right-page .journal-date {
    font-size: clamp(11px, 1.8cqw, 24px);
    text-align: center;
    margin-bottom: 5%;
}

.dover-signature {
    text-align: right;
    margin-top: 6% !important;
}

/* =========================================
   WITNESS DRAWING PARCHMENT
========================================= */

.evidence-section {
    width: 100%;
    max-width: 1200px;
    margin: 35px auto 90px;
    display: flex;
}

.evidence-left {
    justify-content: flex-start;
}

.evidence-right {
    justify-content: flex-end;
}

.evidence-paper {
    position: relative;
    width: min(90%, 950px);
    aspect-ratio: 1.5 / 1;
    container-type: inline-size;
    filter: drop-shadow(12px 17px 12px rgba(0,0,0,0.55));
}

.evidence-left .evidence-paper {
    transform: rotate(-3deg);
}

.evidence-right .evidence-paper {
    transform: rotate(3deg);
}

.evidence-paper-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.evidence-content {
    position: absolute;
    top: 7%;
    left: 6%;
    width: 88%;
    height: 86%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.evidence-content h3 {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(28px, 7cqw, 75px);
    font-weight: normal;
    line-height: 1.1;
    color: #382415;
    margin: 0 0 2%;
}

.evidence-image-button {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.evidence-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.evidence-content > p {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(20px, 3.5cqw, 40px);
    color: #382415;
    margin: 1% 0 0;
}

/* =========================================
   IMAGE LIGHTBOX
========================================= */

.evidence-lightbox {
    position: fixed;
    inset: 0;
    width: min(94vw, 1100px);
    max-height: 92vh;
    padding: 45px 25px 25px;
    box-sizing: border-box;
    border: 2px solid #9c7138;
    border-radius: 8px;
    background: #ead4a6;
    color: #352416;
    text-align: center;
    box-shadow: 0 15px 70px rgba(0,0,0,0.7);
}

.evidence-lightbox::backdrop {
    background: rgba(0,0,0,0.85);
}

.evidence-lightbox:not([open]) {
    display: none;
}

.evidence-lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.evidence-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    min-height: 0;
    object-fit: contain;
}

.evidence-lightbox p {
    font-family: Georgia, serif;
    font-size: 18px;
    margin: 15px 0 0;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 15px;
    border: none;
    background: transparent;
    color: #392818;
    font-size: 36px;
    cursor: pointer;
}

/* =========================================
   YOUTUBE SECTION
========================================= */

.dover-video-section,
.dover-research {
    max-width: 1000px;
    margin: 90px auto;
    text-align: center;
    color: #f2dfb9;
}

.dover-video-section h2,
.dover-research h2 {
    font-family: "Carter One", Georgia, serif;
    font-size: clamp(27px, 4vw, 43px);
    color: #e8b640;
    text-shadow: 2px 3px 5px #000;
}

.dover-video-section p,
.dover-research p {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    max-width: 850px;
    margin: 18px auto 25px;
}

.dover-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 5px solid #6c4628;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.dover-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.dover-youtube-link {
    display: inline-block;
    margin-top: 25px;
    padding: 13px 25px;
    background: #6a3e24;
    color: #f6db9b;
    border: 1px solid #b78d4e;
    border-radius: 5px;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 17px;
}

.dover-youtube-link:hover {
    background: #8c5830;
}

/* =========================================
   FOOTER
========================================= */

.dover-footer {
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 30px 0;
    border-top: 1px solid rgba(230,190,120,0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dover-footer p {
    color: #e6c58e;
    font-family: Georgia, serif;
    text-align: center;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .dover-main {
        padding: 10px 10px 50px;
    }

    .dover-navigation {
        gap: 12px;
        margin-bottom: 30px;
    }

    .dover-navigation a {
        font-size: 13px;
    }

    .dover-journal {
        width: 100%;
        margin-bottom: 40px;
    }

    .dover-left-page,
    .dover-right-page {
        top: 9%;
        height: 79%;
        width: 36%;
    }

    .dover-left-page {
        left: 10%;
    }

    .dover-right-page {
        right: 10%;
    }

    .dover-left-page h3,
    .dover-right-page h3 {
        font-size: clamp(10px, 3cqw, 20px);
    }

    .dover-left-page p,
    .dover-right-page p {
        font-size: clamp(8px, 2.2cqw, 15px);
    }

    .evidence-section {
        margin-bottom: 55px;
    }

    .evidence-paper {
        width: 95%;
    }

    .evidence-content h3 {
        font-size: clamp(18px, 6cqw, 42px);
    }

    .evidence-content > p {
        font-size: clamp(13px, 3cqw, 25px);
    }

    .dover-video-section,
    .dover-research {
        margin: 60px auto;
    }

    .dover-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   JOURNAL TEXT POSITION CORRECTION
========================================= */

.dover-journal .dover-left-page,
.dover-journal .dover-right-page {
    position: absolute;
    top: 10%;
    width: 32%;
    height: 78%;
    box-sizing: border-box;
    overflow: auto;
}

.dover-journal .dover-left-page {
    left: 12%;
    right: auto;
    padding: 0;
}

.dover-journal .dover-right-page {
    right: 12%;
    left: auto;
    padding: 0;
}

.dover-journal .dover-left-page p,
.dover-journal .dover-right-page p {
    font-size: clamp(12px, 1.85cqw, 26px);
    line-height: 1.3;
}

.dover-journal .dover-left-page h3,
.dover-journal .dover-right-page h3 {
    font-size: clamp(18px, 2.8cqw, 39px);
}

/* FINAL JOURNAL TEXT FIX */

.dover-journal .dover-left-page {
    position: absolute !important;
    top: 10% !important;
    left: 15% !important;
    right: auto !important;
    width: 29% !important;
    height: 77% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: auto;
}

.dover-journal .dover-right-page {
    position: absolute !important;
    top: 10% !important;
    right: 15% !important;
    left: auto !important;
    width: 29% !important;
    height: 77% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: auto;
}

.dover-journal .dover-left-page p,
.dover-journal .dover-right-page p {
    font-size: clamp(12px, 1.65cqw, 23px) !important;
    line-height: 1.3 !important;
    overflow-wrap: break-word;
}

.dover-journal .dover-left-page h3,
.dover-journal .dover-right-page h3 {
    font-size: clamp(17px, 2.5cqw, 35px) !important;
}

/* =========================================
   JOURNAL HANDWRITING SIZE CORRECTION
========================================= */

.dover-journal .dover-left-page p,
.dover-journal .dover-right-page p {
    font-size: clamp(14px, 2.05cqw, 29px) !important;
    line-height: 1.25 !important;
}

.dover-journal .dover-left-page h3,
.dover-journal .dover-right-page h3 {
    font-size: clamp(19px, 2.8cqw, 39px) !important;
}

.dover-journal .journal-date {
    font-size: clamp(12px, 1.7cqw, 24px) !important;
}

/* LARGER JOURNAL HANDWRITING */

.dover-journal .dover-left-page p,
.dover-journal .dover-right-page p {
    font-size: clamp(18px, 2.8cqw, 40px) !important;
    line-height: 1.15 !important;
    margin-bottom: 2% !important;
}

.dover-journal .dover-left-page h3,
.dover-journal .dover-right-page h3 {
    font-size: clamp(24px, 3.6cqw, 50px) !important;
    line-height: 1.1 !important;
}

.dover-journal .journal-date {
    font-size: clamp(16px, 2.2cqw, 30px) !important;
}

/* REMOVE HEADER LINK UNDERLINE */

.dover-page .dover-home-link,
.dover-page .dover-home-link:link,
.dover-page .dover-home-link:visited,
.dover-page .dover-home-link:hover,
.dover-page .dover-home-link:active {
    text-decoration: none !important;
    color: inherit;
}

.dover-page .dover-home-link h1 {
    text-decoration: none !important;
}

/* NAVIGATION BUTTONS - CARTER ONE FONT */

.dover-navigation a,
.dover-footer a {
    font-family: "Carter One", Georgia, serif !important;
    font-weight: normal !important;
}

/* FOOTER - THE JOURNALS OF MR. ADVENTURE */

.dover-footer > p {
    font-family: "Carter One", Georgia, serif !important;
    font-size: 30px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    color: #e5b84f !important;
    margin: 25px 0 !important;
}

/* Minimal navigation above the Dover Demon adventure */

.dover-page-header {
    text-align: left;
    padding: 18px 30px;
}

.dover-page-header .dover-home-link {
    font-family: "Carter One", Georgia, serif;
    font-size: 17px;
    color: #e5b84f;
    text-decoration: none;
}

.dover-page-header .dover-home-link:hover {
    text-decoration: underline;
}
/* Reserve room for the closing signature without changing the account. */
@media(min-width:601px){.dover-journal:has(.dover-signature) .dover-right-page p:not(.dover-signature){font-size:clamp(18px,2.6cqw,37px)!important}}
