
/* ✅ Root Variables for Global Theming */
:root {
    --primary: #007bff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e0e0e0;
    --gray-dark: #343a40;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}
    

/* ========================
   Breathing Module Container
======================== */
.ma-breathing-container {
    max-width: 1200px;
    width: 100%;
    margin-top: calc(1px + env(safe-area-inset-top, 0px));
    margin-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    margin-left: auto;
    margin-right: auto;
   
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ma-breathing-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .ma-breathing-container {
        margin-top: calc(0px + env(safe-area-inset-top, 0px));
        margin-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
        
    }
}





/* Optional Title */
.ma-breathing-title {
    font-size: 1.6rem;
    color: #0a5175;
    background: linear-gradient(to right, #f8f9fa, #eef5f9);
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
}

/* ======================
   1. Core Breathing Interface
====================== */
.ma-breathing-exercise {
    
    position: relative;
    max-width: 600px;
    margin: 1rem auto 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ma-breathing-exercise:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}


/* ======================
   3. Speaker Icon in Controls
====================== */
.ma-sound-toggle-circle {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.ma-sound-toggle-circle i {
    font-size: 1.4rem;
    color: #4682B4;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 20px !important;
}
.ma-sound-toggle-circle i:hover {
    transform: scale(1.1);
}

/* ======================
   4. Energy Transfer Bar
====================== */
.ma-download-bar-container {
    width: 90%;
    max-width: 500px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    margin: 1rem auto 0 auto;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}
.ma-download-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #42a5f5, #66bb6a);
    transition: width 0.4s ease;
    border-radius: 6px;
}


@keyframes breatheCycle {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
  }
  .ma-breathing-cycle .ma-breathing-circle {
    /* Loop indefinitely so icon keeps scaling until you remove the class. */
    animation: breatheCycle 8s ease-in-out infinite;
  }
  
  
/* ======================
   6. Controls Styling
====================== */
.ma-controls {
    position: relative;
    text-align: center;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
    z-index: 1;
    padding-top: 30px !important;
}
.ma-controls:focus-within {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.ma-title {
    color: #2B82B3 !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    border-bottom: 2px solid #d1d1d1;
    border-top: 2px solid #d1d1d1;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ======================
   7. Block Elements Spacing
====================== */
.ma-sound-toggle,
.ma-focus-selector,
.ma-download-bar-container,
.ma-progress-container,
.ma-action-buttons
{
    display: block !important;
    margin: 0.8rem auto !important;
    width: 100% !important;
    text-align: center !important;
}

/* ✅ Modal Title */
.ma-steps-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2B82B3 !important;
    margin-bottom: 15px;
    text-align: center;
}

h2.ma-steps-title{

    text-align: center !important;
}

.ma-session-message {
    text-align: center; /* Center text horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px; /* Adjust height as needed */
    font-size: 18px; /* Make it readable */
    font-weight: bold;
    color: #007bff; /* Match theme color */

}

/* ======================
   8. Focus Area Dropdown (if needed)
====================== */
.ma-focus-selector label {
    display: inline-block;
    font-size: 1.1rem;
    color: #2B82B3 !important;
    margin-right: 10px;
    margin-bottom: 0.5rem;
}
.ma-focus-selector select {
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 200px;
}
.ma-focus-selector select:focus {
    border-color: #4682B4;
    box-shadow: 0 0 5px rgba(70,130,180,0.5);
    outline: none;
}
.ma-focus-selector {
    position: relative;
}
.ma-focus-selector::after {
    content: "\25BC";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #4682B4;
    font-size: 0.8rem;
}

/* ======================
   9. Breaths Counter
====================== */
.ma-progress-container {
    margin: 0.8rem auto 1rem auto;
    padding: 5px 0;
    position: relative;
    z-index: 3;
    border: none;
    background: none;
}
.ma-session-count {
    font-size: 1.4rem;
    color: #4682B4;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    margin: 0 auto;
}

/* ======================
   10. Session Message
====================== */
.ma-session-message {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4682B4;
}
.ma-notification {
    font-size: 1.2rem;
    color: #4682B4;
    font-weight: bold;
    min-height: 3rem;
    line-height: 1.5;
    position: static;
}

/* ======================
   11. Buttons & Effects
====================== */
.ma-button {
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin: 0.5rem;
}
.ma-button:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.6s ease, height 0.6s ease, opacity 1s ease;
}
.ma-button:active:after {
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: 0s;
}
.ma-action-buttons {
    text-align: center;
    margin-bottom: 10px;
}
.ma-button:disabled {
    background: #d3d3d3;
    color: #777;
    cursor: not-allowed;
    opacity: 0.6;
}
.ma-start-button {
    min-width: 160px;
    padding: 14px 20px;
    font-size: 17px;
    border-radius: 8px;
    text-align: center;
    background: #4682B4;
    color: #fff;
    transition: transform 0.2s ease, background 0.3s ease;
    margin-top: 10px;
}
.ma-start-button:hover {
    background: #3CB371;
    transform: scale(1.03);
}

/* ======================
   12. Session History
====================== */
.ma-history {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ma-history:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}
.ma-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}
.ma-pagination .ma-button {
    min-width: 120px;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    background: #4682B4;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.ma-pagination .ma-button:hover {
    background: #3CB371;
}
.ma-pagination .ma-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
.ma-history-list {
    display: block !important;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}




/* ======================
   13. Default Light Mode
====================== */
body {
    background: #F9F9F9;
    color: #333;
    font-family: Arial, sans-serif;
}

/* ======================
   14. Intro & Explanations
====================== */
.ma-intro {
    margin: 2rem auto;
    max-width: 600px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}
.ma-intro h2 {
    color: #4682B4;
    margin-bottom: 1rem;
}
.ma-intro h3 {
    text-align: center;
}
.ma-intro ol,
.ma-intro ul {
    margin-left: 1.5rem;
}
.ma-breathe-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 1.5rem auto;
    background: #4682B4;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    text-align: center;
}
.ma-breathe-button:hover {
    background: #3CB371;
}
.ma-explanations {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: left;
    font-size: 1rem;
}
.ma-explanations h3 {
    margin-bottom: 1rem;
    color: #4682B4;
}

/* ======================
   15. Cards for 3 Simple Steps
====================== */






.ma-step-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    min-height: 42px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 12px; /* ✅ Fixes spacing */
    flex-shrink: 0; /* ✅ Ensures the icon does NOT resize */
}

/* ✅ Ensure Cards Stack Vertically on Small Screens */
@media screen and (max-width: 768px) {
    .ma-step-cards {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    .ma-step-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 90% !important; /* Ensure it doesn't get too wide */
        text-align: center !important;
        margin-bottom: 10px !important; /* Add spacing between stacked cards */
        gap: 15px !important;
    }

    .ma-step-icon {
        margin-bottom: 10px !important; /* Ensure space below icon */
    }
    .ma-gratitude-title {
        margin-top: 25px;
    }
}






/* Improve spacing for gratitude title */
.ma-gratitude-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2B82B3 !important;
    margin-bottom: 12px;
    margin-top: 30px; /* Adds spacing before gratitude */
}

/* Improve spacing for gratitude list */
.ma-gratitude-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Adds spacing between gratitude items */
    max-width: 450px;
}

/* Improve spacing for gratitude items */
.ma-gratitude-list li {
    padding: 14px 18px;
    border-radius: 8px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

/* Icon Styling */
.ma-gratitude-list li i {
    color: #4682B4; /* THEME BLUE */
    font-size: 1.3rem;
    margin-right: 10px;
}

/* Hover Effect */
.ma-gratitude-list li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

/* ✅ Responsive Fixes */
@media screen and (max-width: 500px) {
    .ma-gratitude-title {
        font-size: 1.4rem;
    }

    .ma-gratitude-list li {
        font-size: 1rem;
    }
}


/* 
------------------------------------------------------
✅ Breathe Modal Wrapper: margin & responsiveness 
------------------------------------------------------
*/

#ma-iframe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 84vw;
    height: 34vh;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px; /* Top/Bottom + Left/Right padding */
    box-sizing: border-box;
}

.ma-breathing-popup-iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}


/* ✅ Modal Box - Fully Centered */
#ma-iframe-modal .ma-iframe-wrapper {
    width: 84%;
    max-width: 500px;
    height: 34vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    margin: auto; /* ✅ Important for centering */
}

/* ✅ Embedded Iframe */
#ma-popup-iframe {
    flex: 1;
    width: 84%;
    border: none;
}

/* ✅ Close Button Style */
#ma-close-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}














/* Adjust spacing for the instruction section */
.instruction-container {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 25px; /* Adds space below instructions */
}

/* Improve spacing between title and steps */
.instruction-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px; /* Reduce space under title */
}

.instruction-subtitle {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 20px; /* Adds more space before steps */
}

/* ✅ Steps Layout */
.instruction-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* ✅ Steps Container */
.instruction-steps {
    display: flex;
    flex-direction: row; /* ✅ Wide screen: steps in a row */
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ✅ Individual Step Styling */
.instruction-step {
    background: #f7fbff;
    border: 1px solid #cce5ff;
    border-radius: 10px;
    padding: 15px;
    width: 30%; /* ✅ Wider screens: distribute width */
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.instruction-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}



/* ✅ Step Number Icon */
.step-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ✅ Gratitude Section */
.gratitude-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2B82B3 !important;
    margin-top: 30px;
}

/* ✅ Gratitude List */
.gratitude-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 600px;
}

.gratitude-list li {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    color: #333;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

/* ✅ Icon Styling */
.gratitude-list li i {
    color: #007bff;
    font-size: 1.3rem;
    margin-right: 10px;
}

/* ✅ Hover Effect */
.gratitude-list li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

/* ✅ Allow content to adjust dynamically on small devices */
@media screen and (max-width: 768px) {

    .instruction-container {
        max-height: unset !important; /* Ensures it expands properly */
        overflow-y: visible !important; /* Prevents hidden content */
    }

    /* ✅ Stack Step Cards Vertically */
    .ma-step-cards, .instruction-container .step-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 15px !important; /* Adds space between cards */
    }

    .ma-step-card, .instruction-step {
        display: flex !important;
        flex-direction: column !important; /* Ensures icon is on top */
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 90% !important; /* Prevents excessive stretching */
        text-align: center !important;
        padding: 20px !important; /* Increases padding for better appearance */
        border-radius: 12px !important; /* Softens edges */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important; /* Adds depth */
        background: #f7fbff !important; /* Light background */
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }

    .ma-step-card:hover, .instruction-step:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    }
    /* Add space between steps and gratitude section */


.ma-step-card:last-of-type {
    margin-bottom: 35px !important; /* Adds space before the gratitude section */
}

    

    /* ✅ Improved Step Text */
    .ma-step-text {
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #333 !important;
        line-height: 1.5 !important;
    }

    /* ✅ Fixes Layout for Gratitude List */
    .instruction-container .gratitude-list {
        padding-bottom: 20px; /* Avoids content being cut off */
    }
}

.instruction-title, 
.instruction-subtitle 
{
    text-align: center !important;
    margin: 0 auto; /* Centers block elements */
    margin-bottom: 20px;
}




/* Session List Styling */
.ma-history-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    max-height: 250px; /* Ensures scrollable area if history is long */
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #4682B4 #f5f5f5;
}

.ma-history-list::-webkit-scrollbar-thumb {
    background: #4682B4;
    border-radius: 3px;
}

.ma-history-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

/* Individual Session Item */
.ma-history-list li {
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.ma-history-list li:hover {
    background: #e8f5ff;
    transform: translateY(-2px);
}

/* Placeholder Styling */
.ma-history-list .ma-placeholder {
    font-size: 1.2rem;
    font-weight: bold;
    color: #999;
}

/* Pagination Styling */
.ma-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.ma-pagination .ma-button {
    min-width: 120px;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    background: #4682B4;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.ma-pagination .ma-button:hover {
    background: #3CB371;
    transform: scale(1.05);
}

.ma-pagination .ma-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}


/* ======================
   17. Community Call-To-Action
====================== */
.ma-community-cta {
    margin: 2rem auto;
    text-align: center;
}
.ma-community-button {
    display: inline-block !important;
    width: 100% !important;
    max-width: 400px !important;
    background: #3CB371 !important;
    color: #fff !important;
    padding: 1rem 0 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: background 0.3s ease;
    text-align: center !important;
}
.ma-community-button:hover {
    background: #2E8B57;
}
.ma-community-button i {
    margin-right: 0.5rem;
}

.ma-circle-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 0;
    border-radius: 0; /* Remove circular mask */
    box-shadow: none;
    background: transparent;
}


/* ======================
   18. Responsive Design
====================== */
@media screen and (max-width: 768px) {
    .ma-breathing-exercise {
        max-width: 100%;
        margin: 1rem auto;
        padding: 1rem;
    }

    .ma-breathing-circle {
        width: clamp(140px, 40vw, 200px);
        height: clamp(140px, 40vw, 200px);
    }

    /* Ensure image is not stretched */
    .ma-circle-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
    }
    
    .ma-breathing-circle-container {
        margin-top: 1.7 !important;
        margin-bottom: 1rem !important;
        display: flex;
        justify-content: center;
        align-items: center;
        
        
    }
    .ma-controls {
       
        margin-bottom: 1rem;
        padding-top: 30px !important;
    }
    .ma-title {
        margin-bottom: 0.8rem;
        font-size: 1.4rem;
        color: #2B82B3 !important;
        border-bottom: 2px solid #d1d1d1;
        border-top: 2px solid #d1d1d1;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .ma-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .ma-history {
        padding: 1rem;
        max-width: 100%;
    }

    .ma-history h3 {
        font-size: 1.3rem;
    }
    .ma-intro {
        margin: 1rem auto;
        padding: 0.8rem;
    }
    .ma-breathe-button {
        max-width: 300px;
        margin: 1rem auto;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    .ma-explanations {
        margin-top: 1rem;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    .ma-history-list li {
        font-size: 1rem;
        padding: 10px;
    }

    .ma-pagination .ma-button {
        min-width: 100px;
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* ======================
   19. Ensure Breathing Circle Visibility When Scaling
====================== */
.ma-breathing-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.ma-breathing-circle {
    width: clamp(120px, 30vw, 180px);
    height: clamp(120px, 30vw, 180px);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none; /* remove default bg */
}


.ma-breathing-circle:hover {
    transform: scale(1.05);
}

.ma-breathing-circle img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center center;
    display: block;
    padding: 8px;
    box-sizing: border-box;

    /* iOS compatibility */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}


@media screen and (max-width: 768px) {
    .ma-breathing-circle {
        width: clamp(140px, 40vw, 180px);
        height: clamp(140px, 40vw, 180px);
        padding: 4px;
    }

    .ma-breathing-circle img {
        width: 90%;
        height: 90%;
        object-fit: contain;
        object-position: center center;
        display: block;
        padding: 6px;
        box-sizing: border-box;
    }
}