/* ==== shared.css overrides ==== */

p, li {
    /* 16px under 1024px, 20px over 1400px | slope: 0.0106383 | yIntersection: 5.1063808 */
    font-size: clamp(16px, 5.106px + 1.06vw, 20px);
}

/* ==== hero ==== */
    
.hero__image {
    background-image: url(../images/piano-journal/top-banner-pianojournal.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    background-color: #5e5e5e;
}

/* ==== about ==== */
.about {
    width: 100%;
}
.about__title {
    margin-top: 42px;
    padding-bottom: 10px;
    border-bottom: 2px var(--app-teal) solid;
    font: 600 36px Quicksand, sans-serif;
}
.about__content {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}
.about__piano-journal {
    display: flex;
    justify-content: space-between;
    flex: 1 50%;
}
.about__piano-journal-cover,
.about__piano-journal-inside {
    width: 49%;
    aspect-ratio: 288 / 405;
    background-size: contain;
    background-repeat: no-repeat;
}
.about__piano-journal-cover {
    background-image: url(../images/piano-journal/about-piano-journal-cover.png);
}
.about__piano-journal-inside {
    background-image: url(../images/piano-journal/about-piano-journal-inside.png);
}
.about__text {
    flex: 1 50%;
}
.about__text ul {
    margin-left: 30px;
}
.about__buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    white-space: nowrap;
}
.about__buy-single-issues-button,
.about__buy-annual-subscription-button {
    padding: 9px 20px;
}
@media (min-width: 1025px) and (max-width: 1300px) {
    .about__buy-single-issues-button,
    .about__buy-annual-subscription-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* -------- BUY SINGLE ISSUES -------- */
.buy {
    width: 100%;
    overflow-x: visible;
    overflow-y: hidden;
}
.buy__title {
    margin-top: 42px;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px var(--app-teal) solid;
    font: 600 36px Quicksand, sans-serif;
}
.buy__grid-container {   
    overflow-x: visible;
    overflow-y: hidden;
    transition: 0.6s ease-in-out;
}
.buy__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 50px 20px;
}
.buy__issue {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.buy__issue-image {
    width: 100%;
    aspect-ratio: 224 / 317;
    background-size: cover;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.buy__issue-image:hover {
    transform: scale(95%);
}
.buy__issue-title {
    width: 100%;
    text-align: center;
    margin-top: 12px;
}
.buy__issue-date {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}
.buy__issue-preview {
    width: 100%;
    height: 35px;
}
.buy__buy-issue {
    width: 100%;
    height: 35px;
    margin-top: 8px;
}
.buy__buy-issue-hidden-form {
    display: none;
}
.buy__show-more {
    width: 100%;
    margin-top: 50px;
    display: flex;
    align-items: center;
}
.buy__show-more-line {
    height: 2px;
    width: 50px;
    flex: auto;
    background-color: var(--app-teal);
}
.buy__show-more-button {
    height: 42px;
    width: 316px;
    margin: 3px 10px;
    transition: 0.3s ease-in-out;
}
.buy__show-more-button:hover {
    color: white;
    background-color: var(--app-teal);
    outline-width: 3px;
}

/* ==== popups ==== */
.please-login-popup,
.annual-subscription-popup {
    display: none;
    width: min(85%, 800px);
    height: fit-content;
    padding: 40px;
    position: fixed;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    border: 1px black solid;
    box-shadow: 0 0 20px 4px #888888;
}
.please-login-popup__close,
.annual-subscription-popup__close {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 10px;
    background-color: transparent;
    border: none;
}
.please-login-popup__close:hover,
.annual-subscription-popup__close:hover {
    padding: 9px;
    cursor: pointer;
}
.please-login-popup__close:active,
.annual-subscription-popup__close:active {
    padding: 10px;
}
.please-login-popup__close:hover path,
.annual-subscription-popup__close path {
    stroke: var(--app-teal);
}
.please-login-popup__close > svg,
.annual-subscription-popup__close > svg {
    width: 100%;
    height: 100%;
}

/* ==== annual subscription ==== */

.subscription {
    width: 100%;
}
.subscription__title {
    margin-top: 42px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px var(--app-teal) solid;
    font-family: Quicksand, sans-serif;
    font-size: 36px;
    font-weight: 600;
}
.subscription__content {
    margin-bottom: 55px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.subscription__image {
    width: 100%;
    aspect-ratio: 1.5; /* 400 / 267 */
    background-image: url(../images/piano-journal/subscription.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.subscription__text-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.subscription__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.subscription__text li {
    margin-left: 30px;
    margin-bottom: 20px;
    list-style-type: disc;
}
.subscription__text li li {
    margin-bottom: 0;
}
.subscription_buy {
    width: 100%;
}
.subscription_buy > input {
    display: none;
}
.subscription_buy > button {
    width: 100%;
    height: 35px;
    margin-top: 8px;

}

@media(max-width: 1400px) {
    .subscription__text {
        justify-content: start;
    }
}
@media(max-width: 800px) {
    .subscription__content {
        grid-template-columns: auto 350px;

    }
}
@media(max-width: 640px) {
    .subscription__content {
        display: flex;
        flex-direction: column;
        align-items: start;
    }
}

/* ==== tablets ==== */

@media(max-width: 1024px) {
    .about__title {
        margin-top: 25px;
    }
    .about__content {
        display: block;
        margin-top: 24px;
    }
    .about__piano-journal {
        margin: auto;
    }
    .about__buy-single-issues-button,
    .about__buy-annual-subscription-button {
        padding: 10px 20px;
        font: var(--h3-phone);
    }
    .about__text {
        margin-top: 34px;
    }
    .subscription__content {
        flex-direction: column;
    }
}

/* ==== phones ==== */

@media(max-width: 640px) {
    .hero {
        display: none;
    }
    .about__title {
        margin-top: 18px;
    }
    .about__title,
    .buy__title,
    .subscription__title
    {
        font: var(--h1-phone);
    }
    .about__piano-journal-cover {
        width: 70%;
        margin: auto;
    }
    .about__piano-journal-inside {
        display: none;
    }
    .about__buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/* JS */
.hidden {
    display: none;
}
.pdf-viewer {
    position: fixed;
    top: 5%;
    left: 10%;
    width: 80%;
    height: 90%;
    z-index: 100;
}
.pdf-viewer__iframe {
    width: 100%;    
    height: 100%;
}