.page-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #edeff2;
}
.page-container::before{
    content: "";
    display: block;
    height: 60px;
    background-color: black;
    position: relative;
}

.page-container::after{
    content: "";
    display: block;
    position: absolute;
    top: 5px;
    left: 25px;
    width: 300px;
    height: 50px;
    background-image: url("/osp/TOP/images/jkuLogo_header_mfa_spacing.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.dialog-footer {
    display: none;
}

#productImage {
    display: none;
}

.dialog-header {
    text-transform: uppercase;
    background: white !important;
}

.dialog-header-content .product-name {
    color: black;
    background-color: white;
    height: 17px;
    font-size: 14px;
    padding-top: 8px;
    font-weight: bold;
}

.input-box input {
    padding: 10px;
    font-size: 16px;
    outline: none;
    border: none;
    width: 100%;
}

.input-box label {
    display: none;
}

.select-box label {
    all: unset;
    display: none;
}

#authenticationArea .title {
    display: none;
}


.panel-heading {
    margin-top: -40px;
}

.panel-accordion .panel-heading {
    background-color: #EDEFF2;
    border: 0px;
    color: black;
    padding: 5px 10px;
    margin-bottom: 12px;
}

.panel-accordion .panel-heading:hover {
    background-color: lightgrey;
    cursor: pointer;
}

.panel-accordion .panel-body {
    display: none;
}

.panel-body p {
    margin-top: 50px;
    font-size: 12px;
}

.panel-accordion .panel-heading::before {
    content: '\02304';
    float: right;
    transition: .4s;

}

.panel-accordion .active::before {
    content: '\02303';
}

.panel-title {
    margin-top: 2px;
    margin-bottom: 2px;
}

.panel-accordion .panel-heading .panel-title{
    overflow: hidden;
}



@media only screen and (min-width: 769px) and (max-height: 570px) {
    .dialog {
        margin-top: max(0px, calc((100vh - 400px) / 2))!important;
    }
}

@media only screen and (min-width: 769px) {

    .panel-body > p {
        top: -34px;
        display: flex;
        position: relative;
    }

    .subtitle {
        font-size: 15px;
    }

    .dialog {
        background-color: white;
        display: inline-block;
        width: 450px;
        height: 344px;
        border: none  ;
        box-shadow: 0px 4px 22px 0px rgba(0, 0, 0, 0.20);
        margin-top: 150px;
    }

    .dialog-body {
        height: 184px;
        position: relative;
        padding: 34px 24px 24px 24px;
        margin-top: 50px;
    }

    .dialog-content {
        width: 450px;
        height: 284px;
    }

    .dialog-header-content {
        width: 434px;
        height: 33px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 8px;
        position: relative;
        background-color: white;
        border-bottom: 1px solid lightgrey;
    }

    .dialog-header-content .frame {
        display: flex;
        justify-content: space-between;
        align-self: stretch;
        width: 100%;
        align-items: center;
        position: relative;
        flex: 0 0 auto;
    }

    .dialog-header-content .div {
        position: relative;
        width: 24px;
        height: 24px;
    }

    .dialog-header-content .moodle-abgabe-wrapper{
        display: inline-flex;
        gap: 8px;
        align-items: center;
        position: relative;
        flex: 0 0 auto;
    }

    .dialog-header-content .moodle-abgabe{
        position: relative;
        width: fit-content;
        margin-top: -1px;
        font-family: var(--interactive-IM-meta-info-capital-font-family);
        font-weight: var(--interactive-IM-meta-info-capital-font-weight);
        color: black;
        font-size: var(--interactive-IM-meta-info-capital-font-size);
        letter-spacing: var(--interactive-IM-meta-info-capital-letter-spacing);
        line-height: var(--interactive-IM-meta-info-capital-line-height);
        font-style: var(--interactive-IM-meta-info-capital-font-style);
    }

    .dialog-body-content {
        align-items: center;
        gap: 16px;
    }

    .dialog-body-content .group {
        position: relative;
        align-self: stretch;
        width: 100%;
        height: 60px;
        margin-right: -2px;
    }

    .dialog-body-content .div{
        position: absolute;
        width: 402px;
        height: 48px;
        top: 26px;
        left: 0;
    }

    .dialog-body-content .dropdown{
        display: flex;
        width: 402px;
        height: 48px;
        align-items: flex-start;
        position: relative;
    }

    .dialog-body-content .dropdown-base{
        display: flex;
        height: 48px;
        align-items: center;
        gap: 8px;
        padding: 0px 16px;
        position: relative;
        flex: 1;
        flex-grow: 1;
        border: 2px solid;
        border-color: black;
    }

    .dialog-body-content .frame{
        align-items: center;
        display: flex;
        gap: 8px;
        position: relative;
        flex: 1;
        flex-grow: 1;
    }

    .dialog-body-content .frame-2 {
        align-items: flex-start;
        display: flex;
        gap: 8px;
        position: relative;
        flex: 1;
        flex-grow: 1;
    }

    .dialog-body-content .text-wrapper{
        position: relative;
        flex: 1;
        margin-top: -1px;
        font-family: var(--body-body-01-font-family);
        font-weight: var(--body-body-01-font-weight);
        color: var(--primitives-color-neutral-700);
        font-size: var(--body-body-01-font-size);
        letter-spacing: var(--body-body-01-letter-spacing);
        line-height: var(--body-body-01-line-height);
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        font-style: var(--body-body-01-font-style);
    }

    .dialog-body-content .text-wrapper-2{
        position: absolute;
        width: 253px;
        top: 0;
        left: 5px;
        font-family: var(--label-label-01-font-family);
        font-weight: var(--label-label-01-font-weight);
        color: black;
        font-size: var(--label-label-01-font-size);
        letter-spacing: var(--label-label-01-letter-spacing);
        line-height: var(--label-label-01-line-height);
        font-style: var(--label-label-01-font-style);
    }

    .dialog-body-content .checkbox{
        display: inline-flex;
        align-items: center;
        gap: 12px;
        position: relative;
        flex: 0 0 auto;
    }

    .dialog-body-content .checkbox-label{
        position: relative;
        width: fit-content;
        margin-top: -1px;
        font-family: var(--link-link-02-font-family);
        font-weight: var(--link-link-02-font-weight);
        color: var(--primitives-color-neutral-black);
        font-size: var(--link-link-02-font-size);
        letter-spacing: var(--link-link-02-letter-spacing);
        line-height: var(--link-link-02-line-height);
        text-decoration: underline;
        white-space: nowrap;
        font-style: var(--link-link-02-font-style);
    }

    #idpLogin {
        width: 402px;
        height: 68px;
        align-items: center;
        justify-content: center;
    }

    #idpLogin #loginButton2 {
        order: 2;
    }

    #idpLogin #loginButton2:only-child {
        margin-left: 208px;
    }

    .login-field-container {
        width: 402px;
        height: 48px;
    }

    #idpLogin #loginButton2:hover {
        background-color: #333;
    }

    .input-box {
        display: flex;
        height: 48px;
        align-items: center;
        gap: 8px;
        padding: 0px 16px;
        position: relative;
        border: 2px solid;
        border-color: black;
        top: -40px;
    }

    .input-box input {
        padding: 10px;
        font-size: 16px;
        outline: none;
        border: none;
    }

    .input-box .frame {
        align-items: center;
        display: flex;
        gap: 8px;
        position: relative;
        flex: 1;
        flex-grow: 1;
    }

    .input-box .div {
        align-items: flex-start;
        display: flex;
        gap: 8px;
        position: relative;
        flex: 1;
        flex-grow: 1;
    }

    .input-box .text-wrapper {
        position: relative;
        flex: 1;
        margin-top: -1px;
        font-family: var(--body-body-01-font-family);
        font-weight: var(--body-body-01-font-weight);
        color: var(--primitives-color-neutral-700);
        font-size: var(--body-body-01-font-size);
        letter-spacing: var(--body-body-01-letter-spacing);
        line-height: var(--body-body-01-line-height);
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        font-style: var(--body-body-01-font-style);
    }

    .button-container.content {
        width: 402px;
        height: 50px;
    }

    .content.subheader {
        background-color: white;
        font-size: 14px;
        font-weight: bold;
        top: -60px;
        display: flex;
        position: relative;
    }

    .factor-toggle {
        display: none;
    }

    #postform .login-field-container {
        width: 402px;
        height: 48px;
    }

    .button-container button {
        all: unset;
        min-height: 44px;
        width: 100%;
        height: 44px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        text-transform: uppercase;
        text-align: center;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        order: 1;
        color: white;
        background-color: black;
    }

    .button-container button:hover {
        background-color: #333;
    }

    #postform #loginButton2 {
        order: 99;
    }

    #postform #cancelButton {
        order: 0;
        background-color: #EDEFF2;
        color: black;
    }

    #postform #cancelButton:hover {
        background-color: lightgrey;
    }

    .select-box {
        min-height: 30px;
        min-width: 366px;
        display: flex;
        height: 48px;
        align-items: center;
        gap: 8px;
        padding: 0px 16px;
        position: relative;
        border: 2px solid;
        border-color: black;
        top: -38px;
    }

    .select-box #naafSelect {
        min-height: 32px;
        min-width: 370px;
        overflow: hidden;
        color: black;
        font-feature-settings: 'clig' off, 'liga' off;
        text-overflow: ellipsis;
        border: none;
        outline: none;

        font: inherit;
        font-size: 16px;
        font-style: normal;
        font-weight: normal;
        line-height: 24px;
        letter-spacing: 0.192px;
    }

    #nffc {
        min-width: 346px;
    }

    #Ecom_User_ID{
        min-width: 346px;
    }

    #procAnimation {
        top: -40px;
        position: relative;
    }

    .dialog-body::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        border-top: 1px solid lightgrey;
        margin-top: 52px;
    }

    .button-container {
        display: flex;
        position: absolute;
        bottom: 0;
        padding-top: 4px;
        grid-gap: 10px;
    }

}

@media only screen and (max-width: 768px) and (max-height: 430px) {
    .panel-heading {
        margin: 40px 25px -20px 25px!important;
    }

    .dialog-header {
        display: none!important;
    }
    .dialog-body {
        height: calc(100vh - 50px)!important;
    }
    .button-container {
        border-top: 0px!important
    }
    .content.subheader {
        margin-top: 10px!important
    }
    .page-container::before{
        height: 50px!important;
    }
    .page-container::after{
        height: 40px!important;
    }
}

@media only screen and (max-width: 768px) and (max-height: 700px) and (min-height: 431px) {
    .panel-heading {
        margin: 40px 25px -20px 25px!important;
    }

    .dialog-header {
        margin-top: 0px!important;
        border-top-left-radius: 0px!important;
        border-top-right-radius: 0px!important;
    }
    .dialog-body {
        height: calc(100vh - 106px)!important;
    }
    .button-container {
        border-top: 0px!important
    }
}

@media only screen and (max-width: 768px) {

    .panel-heading {
        margin: 40px 25px 0px 25px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .dialog-header {
        margin-top: 150px;
        padding: 10px 0 10px 0;
        border-bottom: 1px solid lightgrey;
        border-top-left-radius: 20px 20px;
        border-top-right-radius: 20px 20px;
    }

    .dialog-body {
        background: white;
        height: calc(100vh - 256px);
    }

    .input-box, .select-box {
        display: flex;
        height: 48px;
        align-items: center;
        padding: 0px 16px;
        position: relative;
        border: 2px solid;
        border-color: black;
    }

    .select-box #naafSelect {
        width: 100%;
        border: none;
        outline: none;
        font-size: 16px;
        letter-spacing: 0.1px;
    }

    .dialog-body-content {
        height: 100%;
    }

    /*#idpLogin {*/
    /*    height: 100%;*/
    /*}*/

    .panel-body > p {
        margin: 40px 25px 0px 25px;
    }

    .login-field-container, .login-custom-link-container.content, .user-message-container.content {
        padding-left: 25px;
        padding-right: 25px;
    }

    .button-container {
        position: fixed;
        display: grid;
        grid-gap: 10px;
        bottom: 0px;
        width: calc(100% - 50px);
        padding: 15px 25px 10px 25px;
        border-top: 1px solid lightgrey;
    }

    .button-container button {
        all: unset;
        width: 100%;
        height: 44px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        background-color: black;
        order: 1
    }

    #loginButton2 {
        order: 99;
    }

    #cancelButton {
        order: 0;
        background-color: #EDEFF2;
        color: black;
    }

    .content.subheader {
        color: black;
        background-color: white;
        padding-left: 25px;
        padding-right: 25px;
        font-size: 14px;
        margin-top: 30px;
        margin-bottom: -6px;
        font-weight: bold;
    }

    #procAnimation {
        padding-top: 20px;
    }
}



@media (prefers-color-scheme: dark) {
    html {
        filter: contrast(90%) brightness(100%) invert(100%);
        -webkit-filter: contrast(90%) brightness(100%) invert(100%);
    }

    .button-container button {
        background-color: #e2e4e7;
        color: #0d0d0d;
    }

    .button-container:hover button:hover {
        background-color: #ccc !important;
    }

    .page-container::before{
        background-color: #e2e4e7;
    }

    .page-container::after{
        background-image: url("/osp/TOP/images/jkuLogo_header_mfa_spacing_black.svg");
    }
}
