﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

input, select, textarea {
}

.abpathreadonly {
    color: red !important;
    font-size: small;
}

.bg-abpathadd {
    color: black !important;
    background-color: lawngreen !important;
    border-color: lawngreen !important;
}

    .bg-abpathadd:hover, a.bg-abpathadd:focus,
    button.bg-abpathadd:hover,
    button.bg-abpathadd:focus {
        color: white !important;
        background-color: green !important;
        border-color: green !important;
    }

.bg-abpathdelete {
    color: black !important;
    background-color: #FB1717 !important;
    border-color: #FB1717 !important;
}

    .bg-abpathdelete:hover, a.bg-abpathdelete:focus,
    button.bg-abpathdelete:hover,
    button.bg-abpathdelete:focus {
        color: white !important;
        background-color: darkred !important;
        border-color: darkred !important;
    }

.card {
    border: 3px solid #003da5;
    border-radius: .8rem;
    margin-bottom: 10px;
}

.card p {
    color: darkblue;
    font-size: 1.5em;
    font-weight: bolder
}

.bg-abpath {
    background-color: #003da5 !important;
    border-color: #003da5 !important;
}

    .bg-abpath:hover, a.bg-abpath:focus,
    button.bg-abpath:hover,
    button.bg-abpath:focus {
        color: #fff !important;
        background-color: #6c757d !important;
        border-color: #6c757d !important;
    }

.bg-abpathalt1 {
    background-color: #8db600 !important;
    border-color: #8db600 !important;
}

    .bg-abpathalt1:hover, a.bg-abpathalt1:focus,
    button.bg-abpathalt1:hover,
    button.bg-abpathalt1:focus {
        color: #fff !important;
        background-color: #e75480 !important;
        border-color: #e75480 !important;
    }



.navbar-brand {
    float: left;
    padding: 15px;
    font-size: 18px;
    line-height: 20px;
    height: 50px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

#chatnotifications {
    width: 35px;
    height: 35px;
    background-image: url("https://abpathpathwaywebapp.azurewebsites.net/Images/mail-gray.svg");
    background-repeat: no-repeat;
    cursor: pointer;
    float: right;
    margin-right: 50px;
}

#notificationsCountValue {
    position: relative;
    background-color: #fa3e3e;
    border-radius: 2px;
    padding: 1px 3px;
    color: #fff;
    right: -25px;
    font-size: 10px;
}

#notificationsContent {
    position: relative;
    width: 300px;
    height: 70px;
    background-color: #fff;
    right: 270px;
    top: 23px;
}

#uparrow {
    width: 20px;
    height: 11px;
    background-image: url("https://www.facebook.com/rsrc.php/v3/yP/r/sgy1EK7Cr23.png");
    background-repeat: no-repeat;
    background-size: 30px 1082px;
    background-position: 0 -802px;
    float: right;
    top: -11px;
    position: relative;
}
/* CSS to defines your number of messages */
.numbofpathwaynotifications {
    display: inline-block;
    background: red;
    text-align: center;
    color: #FFF;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 26px;
}

.queuetitle {
    color: black;
    background-color: transparent;
    border-color: transparent;
    font-weight: 500;
}

.standardcontrolwidth {
    width: 400px !important;
}


#nexttutpagebutton {
    display: inline-block !important;
    aspect-ratio: 757 / 300;
    min-width: 5px !important; /* 🔑 stops width=0 edge cases */
    background-image: url('/graphics/grph_next_001.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 50px;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
}

    #nexttutpagebutton:hover {
        background-image: url('/graphics/grph_next_002.gif');
        transform: scale(.9);
    }

#previoustutpagebutton {
    display: inline-block !important;
    aspect-ratio: 756 / 300;
    min-width: 5px !important; /* 🔑 stops width=0 edge cases */
    background-image: url('/graphics/grph_previous_001.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 50px;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
}

    #previoustutpagebutton:not(:disabled):hover {
        background-image: url('/graphics/grph_previous_002.gif');
        transform: scale(.9);
    }

    #previoustutpagebutton:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        filter: grayscale(100%);
    }


.modal {
    overflow: hidden;
    text-align: center;
}


.modal-dialog {
    text-align: left;
}

#imagemodalnew .modal-dialog {
    display: inline-block;
    width: auto;
    max-width: none; /* overrides Bootstrap's max-width */
}


.modal-dialog-abpathimage {
    max-width: 960px;
    width: auto;
}

.modal-body-abpathimage {
    display: block;
    max-height: 80vh;
    overflow-y: auto;
}

    .modal-body-abpathimage img {
        object-fit: scale-down;
    }



/* Center the inline-block dialog inside the modal */
#imagemodalnew .modal.show .modal-dialog {
    margin: 1.75rem auto;
}

/* Make the image define the width */
#imagemodalnew .imagepreview {
    display: block; /* prevents inline img extra whitespace */
    width: auto;
    height: auto;
    max-width: 95vw; /* safety: don't overflow viewport */
    max-height: 95vh;
    object-fit: contain;
}


.modal-body-abpathimage {
    position: relative;
    display: inline-block; /* <-- critical */
    padding: 0;
}

/* Ensure the image defines the width */
.imagepreview {
    display: block;
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.image-close-left {
    position: absolute;
    top: 50%;
    left: -82px;
    transform: translateY(-50%);
    z-index: 1056;
    width: 48px;
    height: 48px;
    padding: 12px;
    background-color: #fff; /* ✅ use background-color, not background */
    border-radius: 50%;
    border: 2px solid #000;
    opacity: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,.6);
}

    /* Make the Bootstrap X black (default is a variable, but this is reliable) */
    .image-close-left.btn-close {
        filter: none; /* remove invert */
    }

    .image-close-left:hover {
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0,0,0,.75);
    }

#imagemodalnew .modal-content,
#imagemodalnew .modal-body {
    overflow: visible;
}



#tutstemrow i {
    display: inline !important;
    white-space: normal;
    margin: 0;
    padding: 0;
}

#tutimagerow {
    background-color: white;
}

.tutexamcontent-stem {
    display: block;
    padding-bottom: 30px;
}
.tutexamcontent-distractor {
    display: block;
    padding-bottom: 20px;
}

.tutexamcontent-distractor-radio {
    display: inline;
    padding-right: 5px;
}

.tutexamcontent-distractor-letter {
    display: inline;
    padding-right: 10px;
}

.tutexamcontent-distractor-text {
    display: inline;
}

.sidebar .nav-link {
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.sidebar .nav-link:hover {
    background-color: #003DA5;
    color: #FFFFFF !important;
}

