/* 
   Happy Dotters - Shared Stylesheet
   Designed for senior citizens on mobile devices 
*/

/* Import modern, highly readable Google Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

body {
    background-image: none !important;
    background: transparent !important;
    text-align: center;
    font-family: 'Outfit', Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #2b1044; /* Deep violet for excellent senior contrast */
    font-size: 20px;
    margin: 0;
    padding: 0;
}

/* Pseudo-element hack to make fixed background wallpapers render natively on mobile (iOS/Android) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(background1.jpg);
    background-repeat: repeat;
    background-size: 100% auto;
    z-index: -1;
    pointer-events: none; /* Allows clicks to pass through */
}

/* Redesigned content card wrapper for mobile */
.bodyborder {
    width: calc(100% - 24px); /* Leaves a 12px margin on the left and right sides of mobile screens */
    margin: 20px auto;
    padding: 20px 5px;
    max-width: 500px; /* Constraints width for comfortable column-reading on mobile/tablet */
    background: transparent; /* Main container background made transparent as requested */
    box-sizing: border-box;
}

/* Original Header text rules preserved */
h1 {
    width: 100%;
    color: white;
    text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
    font-size: 1.8em;
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Fancy border complement for the header */
header {
    padding: 20px 10px;
    margin-bottom: 25px;
    background: #ffffff; /* White background inside dotted border */
    border: 4px dotted #6f2dbd;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.08);
    box-sizing: border-box;
}

/* Modernized h2 sections */
h2 {
    color: #6f2dbd;
    border: 4px dotted #6f2dbd;
    background-color: #ffffff; /* White background inside dotted border */
    border-radius: 16px;
    padding: 12px;
    font-size: 1.3em;
    font-weight: 800;
    margin-top: 25px;
    margin-bottom: 15px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.08);
}

hr {
    height: 3px;
    border-width: 0;
    color: #d1bfe3;
    background-color: #d1bfe3;
    margin: 15px 0;
}

nav {
    text-decoration: none;
    font-weight: bold;
    color: #6f2dbd;
    padding: 5px 0;
}

a:link, :active, a:visited {
    color: #6f2dbd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.buttonnav, a.buttonnav:link, a.buttonnav:visited {
    cursor: pointer;
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* Smooth rounded corners for all catalog pictures */
}

.center {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Senior-friendly Navigation Buttons */
.buttonnav {
    border-radius: 12px;
    border: 2px solid #6f2dbd;
    box-shadow: 0 4px 10px rgba(111, 45, 189, 0.15);
    color: #ffffff;
    background-color: #6f2dbd;
    padding: 10px 16px;
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    margin: 6px 4px;
    cursor: pointer;
    min-height: 48px; /* Safe tap-target height for older fingers */
    transition: all 0.2s;
    box-sizing: border-box;
}

.buttonnav:hover, .buttonnav:active {
    background-color: #5a229c;
    border-color: #5a229c;
    transform: scale(1.03);
    text-decoration: none;
}

/* Modernized catalogue button rows (instantly transforms standard button menus into clear grid/list item links) */
.buttoncat {
    border-radius: 20px;
    border: 4px dotted #6f2dbd; /* Dotted border */
    width: 95%;
    color: #2b1044;
    background-color: #ffffff; /* White background inside dotted border */
    padding: 15px;
    display: inline-block;
    font-size: 20px;
    font-weight: 800;
    margin: 10px auto;
    box-shadow: 0 4px 12px rgba(92, 44, 144, 0.08);
    box-sizing: border-box;
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    text-align: center;
}

.buttoncat:active, .buttoncat:hover {
    transform: scale(0.98);
    border-color: #6f2dbd;
    background-color: #fcfaff;
}

/* Custom Table cards matching grid layouts (Transforms existing table structures into card deck grids) */
table {
    width: 100%;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 12px;
    font-size: 20px;
    background: transparent;
}

tr {
    background: transparent;
}

td {
    width: 50%;
    padding: 15px 10px;
    border: 4px dotted #6f2dbd; /* Dotted border */
    border-radius: 20px;
    background: #ffffff; /* White background inside dotted border */
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.06);
    box-sizing: border-box;
    vertical-align: top;
    text-align: center;
    transition: transform 0.2s;
}

td:active {
    transform: scale(0.98);
    border-color: #6f2dbd;
}

/* Mobile-friendly Prominent scroll to top button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #ffb703;
    color: #2b1044;
    border: 3px solid #6f2dbd;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2.2em;
    font-weight: 800;
    line-height: 52px;
    text-align: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.back-to-top:active {
    transform: scale(0.9);
}

sub {
    font-size: 0.9em;
    opacity: 0.85;
}

/* Responsive, premium look for video player embeds */
iframe {
    max-width: 100%;
    border-radius: 16px;
    border: 3px solid #d1bfe3;
    box-shadow: 0 8px 24px rgba(92, 44, 144, 0.1);
    box-sizing: border-box;
    margin: 15px auto;
    display: block;
}

/* AB drills page: clear, high-contrast information cards for comfortable mobile reading. */
.ab-introduction,
.ab-best-for,
.ab-ordering-tip {
    background: #ffffff;
    border: 4px dotted #6f2dbd;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.10);
    box-sizing: border-box;
    margin: 20px 0;
    padding: 18px 14px;
}

.ab-introduction p {
    line-height: 1.55;
    margin: 16px 6px;
}

.ab-picture {
    margin: 0;
}

.ab-picture img {
    border: 4px solid #d1bfe3;
    box-shadow: 0 0 0 5px #fff5c2, 0 7px 18px rgba(111, 45, 189, 0.18);
}

.ab-picture figcaption {
    color: #5a229c;
    font-size: 0.9em;
    line-height: 1.35;
    margin: 14px 4px 0;
}

.ab-shine-message {
    color: #5a229c;
    font-size: 1.15em;
    font-weight: 800;
}

.ab-best-for h3,
.ab-ordering-tip h3 {
    color: #5a229c;
    font-size: 1.15em;
    margin: 0 0 14px;
}

.ab-feature-list {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.ab-feature {
    align-items: center;
    background: #fcfaff;
    border: 2px solid #d1bfe3;
    border-radius: 14px;
    display: flex;
    gap: 14px;
    min-height: 58px;
    padding: 10px 14px;
    text-align: left;
}

.ab-feature .material-icons,
.ab-ordering-tip > .material-icons {
    color: #b7791f;
    flex: 0 0 auto;
    font-size: 2em;
}

.ab-feature p,
.ab-ordering-tip p {
    line-height: 1.35;
    margin: 0;
}

.ab-ordering-tip {
    align-items: flex-start;
    background: #fff8d8;
    border-color: #b7791f;
    display: flex;
    gap: 12px;
    text-align: left;
}

.ab-ordering-tip h3 {
    color: #7a4a00;
}

@media (min-width: 430px) {
    .ab-feature-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .ab-feature {
        flex-direction: column;
        gap: 6px;
        justify-content: center;
        min-height: 125px;
        padding: 10px;
        text-align: center;
    }
}

/* A small visual lift for visitors who enjoy animation; no movement for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
    .ab-picture img {
        animation: ab-soft-shimmer 3.5s ease-in-out infinite;
    }
}

@keyframes ab-soft-shimmer {
    0%, 100% { box-shadow: 0 0 0 5px #fff5c2, 0 7px 18px rgba(111, 45, 189, 0.18); }
    50% { box-shadow: 0 0 0 7px #f4d7ff, 0 9px 24px rgba(255, 183, 3, 0.38); }
}

/* Other information page: welcoming, easy-to-tap guide cards. */
.other-welcome,
.other-helpful-note {
    background: #ffffff;
    border: 4px dotted #6f2dbd;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.10);
    box-sizing: border-box;
    margin: 20px 0;
    padding: 18px 16px;
}

.other-welcome-icon {
    color: #b7791f;
    font-size: 2.2em;
}

.other-welcome h2 {
    margin: 10px 0 14px;
}

.other-welcome p {
    line-height: 1.5;
    margin: 10px 4px;
}

.other-welcome-note {
    color: #5a229c;
    font-weight: 800;
}

.other-guides {
    display: grid;
    gap: 18px;
    padding: 0;
}

a.other-guide-card,
a.other-guide-card:link,
a.other-guide-card:visited {
    align-items: stretch;
    background: #ffffff;
    border: 4px dotted #6f2dbd;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.12);
    box-sizing: border-box;
    color: #2b1044;
    display: flex;
    min-height: 170px;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.other-guide-card:hover,
a.other-guide-card:focus-visible,
a.other-guide-card:active {
    box-shadow: 0 9px 22px rgba(92, 44, 144, 0.20);
    text-decoration: none;
    transform: translateY(-2px);
}

.other-guide-image {
    align-items: center;
    background: #fff5c2;
    display: flex;
    flex: 0 0 42%;
    padding: 8px;
}

.other-guide-image img {
    border: 2px solid #d1bfe3;
    border-radius: 10px;
    width: 100%;
}

.other-guide-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 16px 14px;
}

.other-guide-icon {
    color: #b7791f;
    font-size: 2em;
    margin-bottom: 6px;
}

.other-guide-title {
    color: #5a229c;
    font-size: 1.18em;
    font-weight: 800;
    line-height: 1.2;
}

.other-guide-description {
    font-size: 0.92em;
    line-height: 1.35;
    margin-top: 8px;
}

.other-guide-action {
    align-items: center;
    color: #5a229c;
    display: flex;
    font-size: 0.88em;
    font-weight: 800;
    gap: 4px;
    margin-top: 12px;
}

.other-guide-action .material-icons {
    font-size: 1.2em;
}

.other-colour-card {
    background: #f7efff !important;
}

.other-colour-card > .other-guide-icon {
    align-self: center;
    background: #e5cdf8;
    font-size: 3em;
    margin: 0;
    padding: 20px 12px;
}

.other-helpful-note {
    align-items: center;
    background: #fff8d8;
    border-color: #b7791f;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.other-helpful-note .material-icons {
    color: #b7791f;
    font-size: 1.7em;
}

.other-helpful-note p {
    color: #5a3a00;
    line-height: 1.35;
    margin: 0;
}

@media (max-width: 360px) {
    a.other-guide-card {
        flex-direction: column;
    }

    .other-guide-image {
        flex-basis: auto;
    }

    .other-guide-image img {
        max-height: 150px;
        object-fit: cover;
    }
}

/* DMC colour chart: short, practical instructions before the long reference table. */
.colour-chart-guide,
.colour-community-note,
.colour-chart-example {
    background: #ffffff;
    border: 4px dotted #6f2dbd;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.10);
    box-sizing: border-box;
    margin: 20px 0;
    padding: 18px 16px;
}

.colour-chart-guide h3,
.colour-community-note h3 {
    color: #5a229c;
    font-size: 1.15em;
    margin: 0 0 10px;
}

.colour-guide-icon {
    color: #b7791f;
    font-size: 2em;
    margin-bottom: 6px;
}

.colour-chart-guide p,
.colour-community-note p {
    line-height: 1.5;
    margin: 10px 0 0;
}

.colour-chart-guide ol {
    line-height: 1.55;
    margin: 10px 0 0;
    padding-left: 34px;
    text-align: left;
}

.colour-chart-guide li {
    margin: 8px 0;
    padding-left: 4px;
}

.colour-spill-guide {
    background: #fcfaff;
}

.colour-guide-note {
    align-items: flex-start;
    background: #f5edff;
    border-radius: 12px;
    color: #4d247b;
    display: flex;
    font-size: 0.9em;
    gap: 8px;
    padding: 10px;
    text-align: left;
}

.colour-guide-note .material-icons {
    color: #6f2dbd;
    flex: 0 0 auto;
    font-size: 1.3em;
}

.colour-community-note {
    align-items: flex-start;
    background: #fff8d8;
    border-color: #b7791f;
    display: flex;
    gap: 12px;
    text-align: left;
}

.colour-community-note > .material-icons {
    color: #b7791f;
    flex: 0 0 auto;
    font-size: 2em;
}

.colour-community-note h3 {
    color: #7a4a00;
}

.colour-chart-example {
    padding: 12px;
}

.colour-chart-example img {
    border: 3px solid #d1bfe3;
}

.colour-chart-example figcaption {
    color: #5a229c;
    font-size: 0.9em;
    line-height: 1.35;
    margin: 12px 4px 2px;
}

/* About, help and privacy page: friendly, short sections for mobile readers. */
.about-card,
.about-learning-note {
    background: #ffffff;
    border: 4px dotted #6f2dbd;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.10);
    box-sizing: border-box;
    margin: 20px 0;
    padding: 18px 16px;
}

.about-card h3,
.about-learning-note h3 {
    color: #5a229c;
    font-size: 1.15em;
    margin: 0 0 10px;
}

.about-card-icon {
    color: #b7791f;
    font-size: 2em;
    margin-bottom: 6px;
}

.about-card p,
.about-learning-note p {
    line-height: 1.5;
    margin: 10px 0 0;
}

.about-privacy-card {
    background: #fcfaff;
}

.about-learning-note {
    align-items: center;
    background: #fff8d8;
    border-color: #b7791f;
    display: flex;
    gap: 14px;
    text-align: left;
}

.about-learning-note a {
    flex: 0 0 auto;
}

.about-learning-note img {
    border-radius: 8px;
    display: block;
}

.about-learning-note h3 {
    color: #7a4a00;
}

.about-closing {
    color: #5a229c;
    font-size: 1.2em;
    font-weight: 800;
    margin: 26px 0;
}

@media (max-width: 340px) {
    .about-learning-note {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Video page: readable topic groups and responsive video frames. */
.video-introduction {
    background: #ffffff;
    border: 4px dotted #6f2dbd;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.10);
    box-sizing: border-box;
    line-height: 1.5;
    margin: 20px 0;
    padding: 16px;
}

.video-category {
    margin: 28px 0;
}

.video-category > h3 {
    align-items: center;
    color: #5a229c;
    display: flex;
    font-size: 1.18em;
    gap: 8px;
    justify-content: center;
    margin: 0 0 14px;
}

.video-category > h3 .material-icons {
    color: #b7791f;
    font-size: 1.35em;
}

.video-card {
    background: #ffffff;
    border: 4px dotted #6f2dbd;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.10);
    box-sizing: border-box;
    margin: 18px 0;
    padding: 16px 12px;
}

.video-card h4 {
    color: #5a229c;
    font-size: 1.12em;
    margin: 0 4px 14px;
}

.video-card > p:last-child {
    line-height: 1.45;
    margin: 14px 5px 2px;
}

.video-recommended {
    background: #fff8d8;
    border-color: #b7791f;
}

.video-recommended h4 {
    color: #7a4a00;
}

.video-label {
    color: #7a4a00;
    font-size: 0.85em;
    font-weight: 800;
    margin: 0 4px 8px;
    text-transform: uppercase;
}

.video-frame {
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    max-width: 460px;
    overflow: hidden;
}

.video-frame.video-portrait {
    aspect-ratio: 9 / 16;
    max-width: 300px;
}

.video-frame iframe {
    border: 3px solid #d1bfe3;
    border-radius: 14px;
    box-shadow: none;
    box-sizing: border-box;
    display: block;
    height: 100%;
    margin: 0;
    max-width: none;
    width: 100%;
}

/* Landing page: important information first, with large, clear mobile actions. */
.home-hero,
.home-order-summary,
.home-quick-links,
.home-closing {
    background: #ffffff;
    border: 4px dotted #6f2dbd;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.10);
    box-sizing: border-box;
    margin: 20px 0;
    padding: 18px 16px;
}

.home-hero-icon {
    color: #b7791f;
    font-size: 2.4em;
}

.home-hero h2,
.home-order-summary > h2,
.home-quick-links > h2 {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #5a229c;
    margin: 8px 0 14px;
    padding: 0;
}

.home-hero p {
    line-height: 1.5;
    margin: 10px 4px;
}

.home-hero-note {
    color: #5a229c;
    font-weight: 800;
}

.home-whatsapp-notice {
    align-items: flex-start;
    background: #25D366;
    border: 4px solid #168a43;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0, 90, 40, 0.24);
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    gap: 12px;
    margin: 20px 0;
    padding: 18px 16px;
    text-align: left;
}

.home-whatsapp-notice > .material-icons {
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 2.1em;
}

.home-whatsapp-notice h2 {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #ffffff;
    font-size: 1.3em;
    margin: 0 0 10px;
    padding: 0;
    text-align: left;
}

.home-whatsapp-notice p {
    line-height: 1.45;
    margin: 9px 0;
}

a.home-whatsapp-link,
a.home-whatsapp-link:link,
a.home-whatsapp-link:visited {
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    color: #168a43;
    display: inline-flex;
    font-size: 0.95em;
    font-weight: 800;
    gap: 6px;
    margin: 8px 0 2px;
    padding: 12px 16px;
    text-decoration: none;
}

a.home-whatsapp-link:hover,
a.home-whatsapp-link:focus-visible {
    background: #effff3;
    text-decoration: underline;
}

.home-whatsapp-link .material-icons {
    font-size: 1.2em;
}

.home-whatsapp-help {
    font-size: 0.9em;
    font-weight: 600;
}

.home-order-summary > h2 .material-icons {
    color: #b7791f;
    font-size: 1.15em;
    vertical-align: -0.15em;
}

.home-order-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.home-order-item {
    background: #fcfaff;
    border: 2px solid #d1bfe3;
    border-radius: 14px;
    padding: 14px 10px;
}

.home-order-item > .material-icons {
    color: #b7791f;
    font-size: 1.8em;
}

.home-order-item h3 {
    color: #5a229c;
    font-size: 1em;
    margin: 6px 0;
}

.home-order-item p {
    line-height: 1.4;
    margin: 0;
}

.home-order-date {
    background: #fff8d8;
    border-color: #d39b31;
}

.home-order-date p {
    color: #9e1b32;
    font-size: 1.12em;
    font-weight: 800;
}

.home-order-note {
    text-align: left;
}

.home-quick-links-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

a.home-quick-link,
a.home-quick-link:link,
a.home-quick-link:visited {
    align-items: center;
    background: #6f2dbd;
    border: 2px solid #6f2dbd;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(111, 45, 189, 0.15);
    color: #ffffff;
    display: flex;
    font-size: 1.05em;
    font-weight: 800;
    gap: 12px;
    justify-content: flex-start;
    min-height: 58px;
    padding: 10px 16px;
    text-align: left;
    text-decoration: none;
}

a.home-quick-link:hover,
a.home-quick-link:focus-visible,
a.home-quick-link:active {
    background: #5a229c;
    border-color: #5a229c;
    text-decoration: none;
    transform: scale(1.02);
}

.home-quick-link .material-icons {
    color: #fff5c2;
    font-size: 1.55em;
}

.home-closing {
    background: #fff8d8;
    border-color: #b7791f;
}

.home-closing > p:first-child {
    color: #7a4a00;
    font-size: 1.2em;
    font-weight: 800;
    margin: 0 0 10px;
}

.home-closing h3 {
    color: #9e1b32;
    font-size: 1.08em;
    margin: 10px 0 16px;
}

.home-closing img {
    max-width: 180px;
}

.home-support-note {
    font-size: 0.9em;
    line-height: 1.4;
    margin: 16px 2px 2px;
}

/* Ordering and catalogue guides: help visitors capture the right details for Anique. */
.ordering-welcome,
.ordering-checklist,
.catalogue-introduction,
.catalogue-order-guide {
    background: #ffffff;
    border: 4px dotted #6f2dbd;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(92, 44, 144, 0.10);
    box-sizing: border-box;
    margin: 20px 0;
    padding: 18px 16px;
}

.ordering-welcome {
    background: #fff8d8;
    border-color: #b7791f;
}

.ordering-welcome > .material-icons {
    color: #b7791f;
    font-size: 2em;
}

.ordering-welcome h3,
.ordering-checklist h3,
.catalogue-introduction h3,
.catalogue-order-guide h3 {
    color: #5a229c;
    font-size: 1.15em;
    margin: 0 0 10px;
}

.ordering-welcome h3 {
    color: #7a4a00;
}

.ordering-welcome p,
.ordering-checklist p,
.catalogue-introduction p,
.catalogue-order-guide p {
    line-height: 1.5;
    margin: 10px 0 0;
}

.ordering-checklist,
.catalogue-order-guide {
    text-align: left;
}

.ordering-checklist ol,
.catalogue-order-guide ol {
    line-height: 1.55;
    margin: 10px 0;
    padding-left: 32px;
}

.ordering-checklist li,
.catalogue-order-guide li {
    margin: 8px 0;
    padding-left: 4px;
}

.catalogue-introduction {
    text-align: left;
}

.catalogue-example {
    background: #f5edff;
    border-radius: 12px;
    color: #4d247b;
    padding: 10px;
}

@media (min-width: 430px) {
    .home-order-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
