﻿html, body {
    margin: 0;
    padding: 0;
    height: 100% !important;
    font-family: "Source Sans Pro", Arial, sans-serif;
    height: 100vh;
}

.layout {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
    min-width: 700px; /* your min width */
    width: 100vw;    
    height:100%;    
}

.body {
    flex: 1 1 auto;
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    height: 100vh !important;
    overflow: hidden;
}

.top {
    height: 60px;
    background-color: #FFF;
    color: #000;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    justify-content: space-between;
}
.footer {
    height: 60px;
    background-color: #FFF;
    color: #000;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    justify-content: space-between;
}

.side {
    background-color: #f2f2f2;
    background-color: #FFF;
    padding: 0rem;    
    flex-shrink: 1;
    width:clamp(300px,20vw,330px);
}

.main {
    flex: 1;
    background-color: #fff;
    padding: 1rem;
    overflow-y: auto;
    
}


.LoginBox {
    height: 100vh;
    display: grid;    
    justify-content: center;
    font-size:1.2rem;    
    width:clamp(700px, 80vw, 50vw)
}

.fontsizesheader {
    font-size: 1.2rem !important;
}

.fontsizestitle {
    font-size: 1.2rem !important;
}

.fontsizeslink {
    font-size: 1.2rem !important;
}

.fontsizesdesc {
    font-size: 1.2rem !important;
}

.fontsizesinput {
    font-size: 1.2rem !important;
}

    .fontsizesinput input {
        font-size: 1.2rem !important;
        height: 1.2rem !important;
        font-weight: normal;
    }

.fontsizesvalidation {
    font-size: 1.2rem !important;
    color: #C00;
}

.fontsizesdescsublabel {
    font-size: 1.2rem !important;
}

.mud-checkbox {
    align-items: flex-start !important;
}

.mud-typography-body1 {
    margin-top: 5px !important;
    
}


.payment-grid-container {
    width: 600px;
    display: grid;
    grid-template-areas:
        "r0 r0 r0 r0"
        "r1c1 r1c1 r1c2 r1c2"
        ".    .    .    r2"
        ".   r3   r3   ."
        "r4   .    .   ."
        "r5   r5   r5  r5"
        "r6c1 r6c2 r6c3 ."
        "r7   r7   r7   r7"
        "r8 r8 r8 r8"
        ". r9 r9 r9"
        ". . r10 r10"
        "r11 r11 r11 r11";
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

    .payment-grid-container .mud-input-control input {
        background-color: white !important;
    }

    .payment-grid-container .mud-input-control textarea {
        background-color: white !important;
    }

.itemCourseContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.itemCourseBoxSashRow {
    display: flex;
    flex-direction: row;
    margin-top: -30px;
    justify-content: space-between
}

.itemLastPurchased {
    display: flex;
    flex-direction: row;
    margin-top: 0px;
    margin-left: 0px;
    padding: 8px;
    border: 1px solid #EFEFEF;
    width: 100%;
    font-weight: bold;
    font-size: 1rem;
    color: #0A0;
    background-color: #0A0;
    color:#FFF;
    justify-content: center;
}

.itemLastPurchasedSmall {
    display: flex;
    flex-direction: row;
    margin-top: 0px;
    margin-left: 0px;
    color: #FFF;
    width: 80%;
    font-weight: bold;
    justify-content: space-between
}

.itemCourseBox {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem;
    padding-bottom: 0rem;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-sizing: border-box;
    min-height: 200px;
    max-height: 400px;
    overflow-y: hidden;
    min-width: 500px;
    flex-grow: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.itemCourseBox3 {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem;
    padding-bottom: 0rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
    height: 300px;
    overflow-y: hidden;
    min-width: 350px;
    background-image: linear-gradient(to bottom left, #e0e4e5, #f2f6f9);
    border-radius: 2rem;
    box-shadow: inset -2px 2px hsl(0 0 100% / 1), -20px 20px 40px hsl(0 0 0 / .25);
}


.itemCourseBox:hover {
    border: 1px solid #FFF;
    transform: scale(1.05); /* makes it "pop" */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* stronger shadow on hover */
}

.CourseLink:hover {
    background-color: FFF;
    background: linear-gradient(to right, #F5F5F5, #FFF);
}

.itemCourseHeader {
    font-size: clamp(1.4rem, 10vw, 1.4rem);
    font-weight: bold;
    display: flex;
    flex-shrink: 1;
    flex-wrap: nowrap;
    overflow-x: hidden;
    white-space: nowrap;
    overflow: hidden;
    transform-origin: left center;    
}

.itemCourseSubHeader {
    font-size: clamp(1.2rem, 10vw, 1.2rem);
    color:#333;
}

.itemCourseClip {
    font-size: clamp(1.0rem, 10vw, 1.0rem);
    color: #000;
    font-weight:normal;   
}

.gradient-bottom-border {
    position: relative;
}

.custom-link:hover {
    text-decoration: underline;
    text-decoration-color: #EEE !important; /* your desired color */
}
.gradient-bottom-border::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, red, white);    
}

.itemCourseClipIconColor {
    color:#AAA;
}

.itemCourseClipBoxLeft {
    padding: 5px;
    padding-left: 10px;
    padding-right: 15px;
    
    border-bottom-right-radius: 20px;
    background-image: linear-gradient(to bottom left,#A00,#000);
    background-image: linear-gradient(to bottom left,#FFF,#FFF);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.05);
}

.itemCourseClipBox {
    width: 150px;
    padding: 5px;
    padding-left: 10px;
    border-bottom-left-radius: 20px;
    background-image: linear-gradient(to bottom left,#A00,#000);
    background-image: linear-gradient(to bottom left,#FFF,#FFF);
    box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.05);
    z-index:10;
}


.itemCourseDescription {
    font-size: clamp(1.0rem, 10vw, 1.0rem);
    color: #888;
    overflow: hidden;
    height: calc(100% - 250px);
    max-height: calc(100% - 250px);
    min-height:100px;
    align-items:flex-start;
    text-overflow: ellipsis; /* show ... */
    display: block; /* or inline-block or inline-flex */
}

.tagpill {
    font-family: Arial, Tahoma, Geneva, sans-serif;
    font-family: "Source Sans Pro", Arial, sans-serif;
    font-size: clamp(0.8rem, 10vw, 0.8rem);
    color: #888;
    border-radius: 15px;
    border: 1px solid #888;
    padding: 1px 8px;
    margin: 1px;
    display: block; /* or inline-block or inline-flex */
    max-width: 100px; /* required for truncation */
    white-space: nowrap; /* no wrapping */
    overflow: hidden; /* clip overflow */
    text-overflow: ellipsis; /* show ... */
}

.TopMiddleMenu {
    display:flex;
}

.TopMiddleMenuItem {
    font-size: clamp(1.2rem, 10vw, 1.2rem);
    color:#888;
    margin:20px;
}


#coursefilter  {
    display:none;
}

.FilterBackground {
    background-color: #000;
    overflow-y: auto;
    flex-shrink: 1;
    padding-left: 20px;
    padding-right: 20px;
    height: 100vh;
    padding-bottom: 50px;
}

.FilterItem {
    font-size: clamp(1.4rem, 10vw, 1.4rem);
    font-weight: bold;
    color:#FFF;
}

.FilterHeader {
    font-size: clamp(1.4rem, 10vw, 1.4rem);
    font-weight: bold;
    display: flex;
    flex-shrink: 1;
    flex-wrap: nowrap;
    overflow-x: hidden;
    color:#C00;
}

.FilterSticky {
    position: sticky !important;
    top: 1px;
}
.img-splash2 {
    width: 100vw;
    aspect-ratio: 16 / 9; /* or whatever ratio you want */
    min-height: 200px;
    
    max-height: 50vh; /* optional: don't exceed viewport */
    overflow: hidden;
    position: relative;
    z-index: 0;
}

    .img-splash2 img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        z-index: 0;
    }
.img-splash {
    display: flex;
    width: calc(100vw); /* full screen width minus some padding */
    max-width: 100%; /* prevents overflow on small screens */
    min-width: 700px;
    height: auto; /* maintains aspect ratio */
    display: block;
    margin: 0; /* center the image */
    padding: 0;
    max-height: 50vh;
    object-fit: cover;
    object-position: top;
}


.FooterContainer {
    background-color: #000;
    display: grid;
    gap: 2rem;
    padding: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    place-items: center;
    padding-left: 100px;
    padding-right: 100px;
    color:#FFF;
    z-index:100;
}

.CourseDetailCart {
    display:block;
}

.CartSmall {
    display: none;
}

.CartSmallFactor {
    background-color: #C00;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    color: #FFF;
    z-index: 1000; /* HIGH ENOUGH to overlay footer */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
    /*border-bottom-left-radius: 25px;*/
}

.CourseDetailMargin {
    display: flex;
    flex-shrink: 1;
    background-color: #000;
    flex-direction: row !important;
}


.CourseDetailBoxHeader {
    font-size: clamp(1.8rem, 10vw, 1.8rem);
    display: flex;
    font-weight: bold;
    top: 90px;
    position: sticky;
    z-index:100;
    min-width:700px;
}

.PageHeaderLabel {
    font-size: clamp(1.8rem, 10vw, 1.8rem);
    display: flex;
    font-weight: bold;
    top: 0px;
    position: sticky;
    z-index: 100;
    padding-left: 41px;
    width: 100%;
    flex-direction: column;
}  

.MenuFooter {
    display: none;
    flex-direction: row;
    position: fixed;
    bottom: 0;
    background-color: #C00;
    width: 100%;
    height: 80px;
    z-index: 1100;
    justify-content: space-evenly;
    padding: 1rem;
    margin: 0;
    box-shadow: 0 -4px 6px -2px rgba(0, 0, 0, 0.2); /* top shadow only */
    color:#FFF;    
}

.CourseDetailItem {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-columns: 70% 30%;
    direction: ltr;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
}

.CourseDetailOverviewBullets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    direction: ltr;    
}


.CourseDetailBoxText {
    font-size: clamp(1.2rem, 10vw, 1.2rem);
    display: flex;
    direction: ltr;
}

.CourseDetailBoxSubText {
    font-size: clamp(1.0rem, 8vw, 1.0rem);
    display: flex;
    direction: ltr;
    color:#888;
}

.FooterContainerSmall {
    display: none;
}

.TopCartButton {
    display: flex;
    padding:0px;
    margin:0px;
    background-color:#EFEFEF;
    margin-right:10px;
    height:60px;
}

.PaymentContainer {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0rem;
    padding: 1rem;
    max-width: 1000px;
    min-width: 500px;

}

.CartItemsContainer > * {
    
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0rem;
    padding: 1rem;
    max-width: 1000px;
    min-width: 500px;
    background-color: #FFF;
    margin-left: 35px;
    align-items: start;
}

.CartItemRow {
    display: grid;
    grid-template-columns: min-content 1fr 200px;
    grid-template-rows: auto;
    gap: 0rem;
    padding: 1rem;
}

.CartItemTitle {
    font-size: clamp(1.0rem, 10vw, 1.2rem);
    display: flex;
    font-weight: bold;
    padding-left: 0px;
}

.CartItemAmount {
    font-family: Tahoma, "Source Sans Pro", Arial, sans-serif;
    font-size: clamp(0.8rem, 10vw, 1rem);
    display: flex;
    font-weight: bold;
    padding-left: 0px;
}

.CartItemTotalAmount {
    font-family: Tahoma, "Source Sans Pro", Arial, sans-serif;
    font-size: clamp(1.2rem, 10vw, 1.2rem);
    display: flex;
    font-weight: bold;
    padding-left: 0px;
}


.CartItemAmountTitleSub {
    font-family: Tahoma, "Source Sans Pro", Arial, sans-serif;
    font-size: clamp(0.9rem, 10vw, 0.9rem);
    display: flex;
    padding-left: 0px;
}


.CartItemAmountSub {
    font-family: Tahoma, "Source Sans Pro", Arial, sans-serif;
    font-size: clamp(0.9rem, 10vw,0.9rem);
    display: flex;
    padding-left: 0px;
    justify-content:end;
}


.CartItemSelected {
    font-size: clamp(1.0rem, 10vw, 1.2rem);
    padding-left: 0px;
}

.emptycart {
    display: grid;
    grid-template-rows: 50px;
    grid-template-columns: 300px 1fr;
    margin: 50px;
    height: 50vh;
    background-color: #fff;
    padding: 50px;
}


#smallFactorStatus {
    display: none;
}

#bigFactorStatus {
    display: block;
}


.UserPageContainer {
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    font-size: 1.2rem;
    justify-content: start;
    align-content: start;
    justify-items: start;
    flex-grow: 1;
    width: clamp(700px,80vw,800px);
    margin-left:10px;
}

.InCartViewNow {
    text-transform: none !important;
    background-color: #f0c14b !important;
    color: #000 !important;
    font-size: 1.2rem !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 0px !important;
    padding-top: 0px !important;
}

.bigfactor {
    display: block;
}

.UserProfileContainerIDLabel {
    font-size: 0.8rem;
}


@media screen and (max-width: 1800px) {
    .itemCourseContainer {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
        gap: 1rem;
    }
}


@media screen and (max-width: 1300px) {
    .itemCourseContainer {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
}
    /* ≥ 600px (desktop/tablet): max 2 columns */
@media screen and (max-width: 1000px) {


        html, body {
            height: 100% !important;
            margin: 0rem;
            padding: 0rem;
        }

        .layout {
            height: 200% !important; /* Full viewport height */
            min-height: 100% !important; /* fill viewport */
        }

        .emptycart {
            grid-template-rows: 100px;
            grid-template-columns: 300px;
        }

        .itemCourseContainer {
            grid-template-columns: 1fr;
            padding: 1rem;
            gap: 1rem;
        }

        .side {
            display: none;
        }

        #coursefilter2 {
            display: flex;
            margin: 0px;
            padding: 0px;
        }

        #coursefilter {
            display: grid;
            grid-template-columns: 1fr;
            width: 100vw;
            margin: 0px;
            padding: 0px;
        }


        .main {
            padding: 0rem;
            margin: 0rem;
        }

        .itemCourseBox {
            min-height: 400px;
            max-height: 600px;
            min-width: 600px;
        }

        .itemCourseDescription {
            font-size: clamp(1.6rem, 20vw, 1.6rem);
        }


        .itemCourseBox:hover {
            transform: scale(1); /* makes it "pop" */
        }

        .img-splash {
            object-fit: cover; /* makes the image fill container while keeping aspect ratio */
            object-position: center;
            min-height: 300px;
        }

        .CourseDetailMargin {
            display:none;
        }

     

    .CartSmall {
        display: block;
        position: fixed;
        width:100%;
        bottom: 80px; /* pushes it 100px below the bottom of the viewport */
        right: 0; /* aligns it to the right */
        z-index: 9999; /* keeps it on top */
    }

        .CourseDetailBox {
            display: flex;
            width: 100%;
            justify-content: left;
        }


        .CourseDetailBoxHeader {
            top: 70px;
        }

        .MenuFooter {
            display: flex;
        }

        .CourseDetailItem {
            display: flex;
            flex-direction: column-reverse;
        }

        .CourseDetailOverviewBullets {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: flex-start
        }

        .FooterContainerSmall {
            display: block;
            background-color: #000;
            padding-bottom: 150px;
        }

        .TopCartButton {
            display: none;
        }

        #smallFactorStatus {
            display: block;
            font-size:1.4rem;
        }

        #bigFactorStatus {
            display: none;
        }


        .CartItemsContainer > * {
            margin-left: 0px;
        }

        .itemCourseHeader {
            font-size: clamp(2.0rem, 20vw, 2.0rem);
        }

        .mud-typography-body1 {
            margin-top: -5px !important;
            font-size: 1.8rem !important;
        }

        .scaleup {
            transform: scale(1.4);
        }
        .InCartViewNow {
            font-size: 1.6rem !important;
        }

        .itemCourseClipBoxLeft {
            font-size: 1.4rem !important;
        }

        .tagpill {
            font-size: 1.4rem !important;
            max-width: 200px; /* required for truncation */
        }

        .itemCourseClip {
            font-size: 1.4rem !important;
        }

        .itemCourseSubHeader {
            font-size: 1.6rem !important;
        }

        .schedule {
            font-size: 1.4rem !important;
        }

        .itemLastPurchased {
            font-size: 1.4rem !important;
        }

        .CourseDetailBoxText {
            font-size: 1.8rem !important;
            display: flex;
            direction: ltr;
        }

        .links {
            font-size: 1.3rem !important;
        }

        .bigfactor {
               display:none;
        }

        .CartAmount {
            font-size: 2rem !important;
        }
        .GlobalFont {
            font-size: 1.4rem !important;
        }

    .fontsizesheader {
        font-size: 2rem !important;
    }

    .fontsizestitle {
        font-size: 2rem !important;
    }

    .fontsizesinput input {
        font-size: 2rem !important;
        height: 2rem !important;
        background-color:#AAA;
     }

    .fontsizesvalidation {
        font-size: 1.4rem !important;
        color:#C00;
    }


    .fontsizeslink {
        font-size: 1.8rem !important;
    }

    .fontsizesdesc {
        font-size: 1.8rem !important;
    }

    .fontsizesdescsublabel {
        font-size: 1.4rem !important;
    }


    .UserProfileContainerIDLabel {
        font-size: 1.2rem;
    }

}