/****************** ERROR PAGES ******************/

.md-grid:not(:has(.celum-error-page)) {
    max-width: 96%;
}

.md-grid:has(.celum-error-page) {
    max-width: 100%;
}

.md-main:has(.celum-error-page),
.md-content:has(.celum-error-page),
.md-content__inner:has(.celum-error-page):before,
.md-main:has(.celum-error-page) h1 {
    background-color: var(--white);
}

.md-main:has(.celum-error-page) h1 {
    text-align: center;
    margin: 0;
}

.md-content__inner:has(.celum-error-page) {
    background-color: var(--white);
    padding-top: 0;
    margin: 0;
}

.celum-error-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-self: stretch;
}

.celum-error-content-wrapper {
    width: 100%;
    background-color: var(--celum-blue-quinary);
    background-image: url("/images/bg-polygon-light-error.svg"), url("/images/bg-polygon-dark-error.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: -100px 20%, calc(100% + 100px) 80%;
    background-size: 239px 218px;
}

.celum-error-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    align-self: stretch;
    width: 50%;
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 140px;
    border-radius: 30px;
    background-color: var(--white, #FFF);
    /* elevation/4dp */
    box-shadow: 0 0 15px -3px rgba(43, 69, 93, 0.15);
    text-align: center;
}

img.errorPageIcon {
    width: 40px;
    height: 40px;
    margin-left: auto;
    margin-right: auto;
    border: none;
}

.errorPageButton {
    display: block;
    min-width: 140px;
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    text-transform: uppercase;
}

.errorPageButton.blue {
    background-color: var(--celum-blue-secondary);
    color: var(--white);
}

.errorPageButton.blue:active,
.errorPageButton.blue:focus,
.errorPageButton.blue:hover {
    background-color: rgba(0, 107, 156, 0.86);
    color: var(--white);
    text-decoration: none;
}

.errorPageButton.grey {
    background-color: var(--celum-bluegrey-50);
    color: var(--md-typeset-a-color);
}
.errorPageButton.grey:active,
.errorPageButton.grey:focus,
.errorPageButton.grey:hover {
    background-color: var(--celum-bluegrey-100);
    text-decoration: none;
    color: var(--md-typeset-a-color);
}

.errorPageList {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.errorPageList ul {
    text-align: left;
}

/* Text size + alignments for splash pages in desktop mode */
@media screen and (min-width: 76.234375em) {

    .md-main:has(.celum-splash-page) h1,
    .md-main:has(.celum-error-page) h1 {
        text-align: center;
        font-size: 48px;
        font-weight: 700;
    }

    .md-main:has(.celum-splash-page) h2,
    .md-main:has(.celum-error-page) h2 {
        font-size: 38px;
        font-weight: 700;
    }

    .md-main:has(.celum-splash-page) h1 + p {
        text-align: center;
    }

}

/* Tablet/Mobile view */
@media screen and (max-width: 76.234375em) {
    
    .md-grid:not(:has(.celum-error-page)) {
        max-width: 100%;
    }

    .celum-error-content-wrapper {
        background-color: var(--white);
        background-image: none;
    }

    .celum-error-content {
        width: 90%;
        padding: 20px 20px;
        border-radius: unset;
        box-shadow: none;
    }

    .errorPageList {
        width: unset;
    }
}


/***************** SPLASH PAGES ******************/

.md-main:has(.celum-splash-page) {
    background-image: url("/images/bg-polygon-dark-splash.svg"), url("/images/bg-polygon-light-splash.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: -100px top, calc(100% + 100px) top;
    background-size: 239px 218px;
}

.celum-splash-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: stretch;
}

.celum-splash-content {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    align-self: stretch;
}

.splash-page-section {
    width: 100%;
}

.splash-page-flex {
    display: flex;
    align-items: center;
    gap: 28px;
    align-self: stretch;
    flex-wrap: wrap;
}

.splashCard {
    cursor: pointer;
    display: flex;
    padding: var(--spacing-xxlarge, 40px);
    flex-direction: column;
    gap: 20px;
    align-self: stretch;
    align-items: flex-start;
    flex: 0 0 calc(33.3333% - 28px);
    border-radius: var(--border-radius-medium, 8px);
    background-color: var(--quinary, #E1F3FA);
    color: var(--celum-blue-tertiary);
}

.splashCard:active,
.splashCard:focus,
.splashCard:hover {
    text-decoration: none;
    box-shadow: 0 5px 5px -3px rgba(38, 50, 56, 0.20), 0 3px 14px 2px rgba(38, 50, 56, 0.12), 0 8px 10px 1px rgba(38, 50, 56, 0.14);
    color: var(--celum-blue-tertiary);
}

.splashCard p {
    margin: 0;
}

.splashCard p.title {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    font-family: "proximanova-bold", "Open Sans", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 800;
    line-height: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Tablet/Mobile view */
@media screen and (max-width: 76.234375em) {

    .md-main:has(.celum-splash-page) {
        background-image: none;
    }
    
    a.splashCard {
        flex: 0 0 100%;
    }
    
}

@media screen and (max-width: 44.984374em) {

    .splashCard p.title {
        flex-direction: column;
    }
    
}

/********************* USER ACADEMY ************************/

/* YouTube embedding */

.md-typeset .youtube-embed-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 60%;
    padding-top: calc(56.25%*0.6); /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    min-width: 300px; /* Smallest emulatable phone width is 344px */
    margin-left: 20%;
    margin-right: 20%;
}

.md-typeset .user-academy-resized,
.md-typeset .user-academy-resized_headline {
    width: 60%;
    min-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/*.md-typeset .user-academy-resized_headline {
    text-align: center;
}*/

.youtube-placeholder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38%, 50%, 56%, 0.5);
}

.youtube-cookie-hint-container {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    max-width: calc(100% - 70px);
    max-height: calc(100% - 35px);
    transform: translateX(-50%) translateY(-50%);
    flex-direction: column;
    width: 60%;
    padding: 2%;
    z-index: 4;
    background-color: var(--white);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    text-align: center;
    overflow: auto;
}

.youtube-cookie-hint-title {
    font-weight: bold;
}

/* Tablet/Mobile view */
@media screen and (max-width: 76.234375em) {

    .md-typeset .youtube-embed-container {
        width: 100%;
        padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
        margin-left: 0;
        margin-right: 0;
    }

    .md-typeset .user-academy-resized,
    .md-typeset .user-academy-resized_headline {
        width: 100%;
    }

}

.md-typeset .youtube-embed-container iframe,
.md-typeset img#youtube-placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}


/************************ OTHER STYLES ************************/

/* A section that contains a table with 2 columns which changes to top-bottom alignment on small screens */
.versatile-table-column {
    display: block;
}

.versatile-table-column-left {
    clear: both;
    width: 100%;
}

.versatile-table-column-right {
    clear: both;
    width: 100%;
}

@media screen and (min-width: 60em) {
    .versatile-table-column {
        display: table-cell;
    }

    .versatile-table-column-left {
        float: left;
        width: 50%;
    }

    .versatile-table-column-right {
        float: right;
        width: 50%;
    }

}

