body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin: 0.8rem 0;
    margin-left: 250px;
    margin-right: 250px;
    margin-bottom: 50px;
    margin-top: 25px;
}

#title-explore {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 50px;
}

.explore-card {
    aspect-ratio: 16 / 14;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.6rem;
    text-align: center;
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    overflow: hidden;
    /* force a purple theme regardless of inline styles */
    background: linear-gradient(135deg, rgb(225, 0, 255) 0%, rgb(196, 0, 222) 100%);

}

.explore-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.1;
}

.explore-card .card-desc {
    font-size: 1.0rem;
    opacity: 0.95;
    padding: 0 0.45rem;
}

.explore-card:hover,
.explore-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
    filter: brightness(1.03);
}

@media (min-width: 900px) {
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Blur page when modal is open; keeps header included */
body.modal-open header,
body.modal-open main,
body.modal-open footer,
body.modal-open .container {
    filter: blur(6px);
    transition: filter 200ms ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 80px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding-top: 120px;
    flex: 1;
    width: 100%;
}


/* Inline CMS Images */
.cms-inline-img {
    max-width: 90%;
    min-width: 50px;
    height: auto;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Contain floated images — flow-root creates BFC without overflow clipping or scrollbars */
main p:has(.cms-inline-img),
main div:has(.cms-inline-img),
main h1:has(.cms-inline-img),
main h2:has(.cms-inline-img),
main h3:has(.cms-inline-img) {
    display: flow-root;
}

main h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 24px;
    color: #333;
}

main p {
    margin-bottom: 14px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #000;
    color: #aaa;
}


footer span {
    color: rgb(225, 0, 255);
}

.profile-pic {
    display: block;
    width: 240px;
    /* Adjust to desired size */
    height: 240px;
    object-fit: cover;
    /* Keeps proportions without distortion */
    border-radius: 50%;
    /* Perfect circle */
    border: 4px solid rgb(225, 0, 255);
    /* Feminine accent border */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    margin: 40px auto 20px auto;
    /* Centers the image horizontally */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(225, 0, 255, 0.4);
}

/* Overlay covers screen */
.age-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    padding: 20px;
}

/* Modal box */
.age-modal {
    width: 96%;
    max-width: 520px;
    background: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    color: #222;
    font-family: Arial, sans-serif;
}

/* hidden helper */
.hidden {
    display: none;
}

/* Buttons */
.age-actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.age-btn {
    padding: 10px 14px;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}

.age-btn.primary {
    background: rgb(225, 0, 255);
    color: #fff;
}

.age-btn.secondary {
    background: rgb(225, 0, 255);
    color: #fff;
}

.age-btn.primary:hover,
.age-btn.secondary:hover {
    transform: scale(1.05);
    transition: 200ms;
    background: rgb(234, 78, 255);
}

/* DOB input */
#dob {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 260px;
}

.dob-actions {
    margin-top: 10px;
}

/* feedback */
.dob-message {
    margin-top: 10px;
    color: #8b0000;
    font-weight: 600;
}