
/* =========================================
   MR. ADVENTURE'S RESEARCH NOTES
   Interactive parchment sheets
========================================= */

.dover-research-notes {
    width: 100%;
    max-width: 1150px;
    margin: 90px auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.dover-research-notes > h2 {
    font-family: "Carter One", Georgia, serif;
    color: #d5b681;
    font-size: clamp(26px, 3vw, 42px);
    margin-bottom: 12px;
}

.dover-research-notes > p {
    font-family: Georgia, serif;
    color: #e8d8b8;
    font-size: 17px;
    margin-bottom: 25px;
}

/* THE THREE STACKED PARCHMENT PAGES */

.research-paper-stack {
    position: relative;
    width: min(100%, 950px);
    aspect-ratio: 1.75 / 1;
    margin: 65px auto 45px;
    isolation: isolate;
}

.research-paper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    background-image: url("../Images/Parchment-Sheet.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    color: #392818;
    text-align: left;
    cursor: pointer;

    filter: drop-shadow(8px 14px 9px rgba(0, 0, 0, 0.45));

    transition:
        transform 0.45s ease,
        filter 0.45s ease;

    overflow: hidden;
}

/* MAKE THE STACK LOOK LIKE LOOSE PAPERS */

.research-paper:nth-child(1) {
    transform: translate(-2%, -4%) rotate(-5deg);
}

.research-paper:nth-child(2) {
    transform: translate(3%, 2%) rotate(5deg);
}

.research-paper:nth-child(3) {
    transform: translate(-1%, 5%) rotate(-1deg);
}

/* SELECTED PAGE COMES TO THE FRONT */

.research-paper.is-active {
    transform: translate(0, -5%) rotate(0deg) scale(1.015);
    filter: drop-shadow(12px 20px 14px rgba(0, 0, 0, 0.55));
}

/* HANDWRITING INSIDE THE PAPER */

.research-paper-content {
    position: absolute;
    top: 12%;
    left: 12%;
    width: 76%;
    height: 74%;
    box-sizing: border-box;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #a48a68 transparent;
}

.research-paper-content h3 {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(23px, 3vw, 40px);
    font-weight: normal;
    line-height: 1.15;
    text-align: center;
    color: #392818;
    margin: 0 0 20px;
}

.research-paper-content p {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(18px, 2.3vw, 30px);
    line-height: 1.3;
    color: #392818;
    margin: 0 0 18px;
}

/* BUTTONS UNDER THE STACK */

.research-page-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px auto 0;
}

.research-page-controls button {
    font-family: Georgia, serif;
    font-size: 15px;
    color: #f3dfb5;
    background: #3a281b;
    border: 1px solid #a88b5d;
    border-radius: 5px;
    padding: 11px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.research-page-controls button:hover,
.research-page-controls button.is-active {
    background: #74512c;
}

/* SMALLER SCREENS */

@media (max-width: 700px) {
    .research-paper-stack {
        aspect-ratio: 0.8 / 1;
        margin: 40px auto 25px;
    }

    .research-paper-content {
        top: 12%;
        left: 13%;
        width: 74%;
        height: 74%;
    }

    .research-paper-content h3 {
        font-size: 25px;
    }

    .research-paper-content p {
        font-size: 20px;
    }
}

/* Research cards - responsive handwriting with tight spacing */

.research-paper-content p {
    font-size: clamp(24px, 3.8cqw, 46px) !important;
    line-height: 0.9 !important;
    margin-bottom: 5px !important;

/* Research cards - larger responsive handwriting */

.research-paper-stack {
    container-type: inline-size;
}

.research-paper-content p {
    font-size: clamp(26px, 4.2cqw, 50px) !important;
    line-height: 0.9 !important;
    margin-bottom: 5px !important;
}

.research-paper-content h3 {
    font-size: clamp(33px, 5cqw, 58px) !important;
    line-height: 0.95 !important;
    margin-bottom: 8px !important;
}
