﻿@media only screen and (max-width: 768px) {
    .flex-panel {
        background-color: white;
        padding: 10px;
        border-radius: 4px;
        border: none;
        box-shadow: 0 4px 8px 0 #000000, 0 6px 20px 0 #000000;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
        margin: 0 0 16px 0;
        border: 1px solid white;
        position: relative;
        box-sizing: border-box;
    }
}

@media only screen and (min-width: 768px) {
    .flex-panel {
        background-color: white;
        padding: 10px;
        border-radius: 4px;
        border: none;
        box-shadow: 0 4px 8px 0 #000000, 0 6px 20px 0 #000000;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
        margin: 0 0 0 0;
        border: 1px solid white;
        position: relative;
        box-sizing: border-box;
    }
}

.flex-panel.active:hover {
    border: 1px solid #387EF5;
}

/*.flex-panel .img-container img {
    max-width: 100%;
}*/

@media only screen and (min-width: 768px) {
    .flex-panel.one {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 240px;
        width: calc(25% - 16px);
        max-width: calc(25% - 16px);
        flex: 1 1 auto;
        padding: 8px 8px 8px 8px;
        border: 1px solid white;
    }

    .flex-panel.two {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 240px;
        width: calc(50% - 16px);
        max-width: calc(50% - 16px);
        flex: 1 1 auto;
        padding: 4px 4px 4px 4px;
        border: 1px solid white;
    }

    .flex-panel.three {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 240px;
        width: calc(75% - 16px);
        max-width: calc(75% - 16px);
        flex: 1 1 auto;
        padding: 4px 4px 4px 4px;
        border: 1px solid white;
    }

    .flex-panel.four {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 240px;
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        flex: 1 1 auto;
        padding: 4px 4px 4px 4px;
        border: 1px solid white;
    }
}

@media only screen and (max-width: 768px) {
    .flex-panel.one {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 240px;
        width: 98%;
        max-width: 98%;
        flex: 1 1 auto;
        padding: 4px 4px 4px 4px;
        border: 1px solid white;
        box-sizing: border-box;
    }

    .flex-panel.two {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 240px;
        width: 98%;
        max-width: 98%;
        flex: 1 1 auto;
        padding: 4px 4px 4px 4px;
        border: 1px solid white;
        box-sizing: border-box;
    }

    .flex-panel.three {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 240px;
        width: 98%;
        max-width: 98%;
        flex: 1 1 auto;
        padding: 4px 4px 4px 4px;
        border: 1px solid white;
        box-sizing: border-box;
    }

    .flex-panel.four {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 240px;
        width: 98%;
        max-width: 98%;
        flex: 1 1 auto;
        padding: 4px 4px 4px 4px;
        border: 1px solid white;
        box-sizing: border-box;
    }
}

.flex-panel.one > a, .flex-panel.two > a, .flex-panel.three > a, .flex-panel.four > a {
    color: #979797;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    max-width: 100%;
    display: block;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    word-break: break-word;
}

    .flex-panel.one > a > .flex-bottom, .flex-panel.two > a > .flex-bottom, .flex-panel.three > a > .flex-bottom, .flex-panel.four > a > .flex-bottom {
        display: flex;
        flex-direction: column;
        flex: 1 1;
        justify-content: flex-end;
    }

.flex-panel.one a.btn, .flex-panel.two a.btn, .flex-panel.three a.btn, .flex-panel.four a.btn {
    color: white;
}

.flex-panel.one > a > .img-container, .flex-panel.two > a > .img-container, .flex-panel.three > a > .img-container, .flex-panel.four > a > .img-container {
    flex: 2 1 auto;
    display: flex;
    flex-direction: column;
    flex: 3 1;
    justify-content: center;
    align-items: center;
}

    .flex-panel.one > a > .img-container > img, .flex-panel.two > a > .img-container > img, .flex-panel.three > a > .img-container > img, .flex-panel.four > a > .img-container > img {
        max-width: 100%;
        height: 100%;
        max-height: 250px;
    }


.flex-panel.eureka-title {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
}

    .flex-panel.eureka-title h2 {
        margin: 0 0 4px 0;
        font-weight: bold;
    }

    .flex-panel.eureka-title img {
        max-width: 100px;
        margin: 0 16px 0 0;
        align-self: center;
    }

    .flex-panel.eureka-title .expiration {
        color: #979797;
        font-weight: bold;
    }

.flex-panel.title {
    display: flex;
    flex-direction: row;
    flex: 0 1 auto;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    padding: 8px 8px 8px 8px;
}

    .flex-panel.title h2 {
        margin: 0 0 4px 0;
        font-weight: bold;
    }

    .flex-panel.title img {
        max-width: 100px;
        margin: 0 16px 0 0;
        align-self: center;
    }

    .flex-panel.title .expiration {
        color: #979797;
        font-weight: bold;
    }

.flex-panel.announcement {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 200px;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    flex: 1 1 auto;
    padding: 4px 4px 4px 4px;
    border: 1px solid white;
}

    .flex-panel.announcement > .title.split {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0 0 4px 0;
    }

.flex-panel.eureka-links {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    padding: 4px 4px 4px 4px;
    justify-content: flex-start;
    align-items: center;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    gap: 8px;
}

    .flex-panel.eureka-links > a {
        width: auto;
    }

    .flex-panel.eureka-links .notification {
        color: var(--secondary-background-color);
        font-size: 18px;
    }



.flex-panel.eureka-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 4px 4px 4px 4px;
    align-items: center;
}

.flex-panel.goal {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 4px 4px 4px 4px;
    align-items: center;
}

.flex-panel.html-page {
    flex: 1 1 auto;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 4px 4px 4px;
    align-items: flex-start;
}

.flex-panel.flashcard {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 4px 4px 4px 4px;
    align-items: center;
}

.flex-panel.unprotected {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 4px 4px 4px 4px;
    align-items: center;
    justify-content: center;
}

.flex-panel.discussion {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 300px;
    justify-content: flex-start;
}

    .flex-panel.discussion > * {
        width: 100%;
    }

    .flex-panel.discussion > ul {
        border: thin solid #c4c4c4;
    }

    .flex-panel.discussion > .title {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        color: var(--primary-background-color);
        gap: 4px;
    }

        .flex-panel.discussion > .title svg {
            fill: var(--primary-background-color);
        }


    .flex-panel.discussion > ul > li.list-group-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border: none;
    }

.flex-collapse > .flex-heading {
    background: var(--quaternary-background-color);
    color: white;
    display: flex;
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px 4px 4px;
    font-size: 16px;
    border: none;
    border-collapse: collapse;
    cursor: pointer;
}

.flex-collapse.collapse {
    display: none;
}

.flex-collapse.in > .flex-heading > div.collapse-img {
    width: 20px;
    height: 20px;
    background-image: url('/images/actu/minus.white.svg');
}

.flex-collapse > .flex-heading > div.collapse-img {
    width: 20px;
    height: 20px;
    background-image: url('/images/actu/plus.white.svg');
}

.flex-collapse {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    flex-wrap: wrap;
    border-left: 1px solid #9698d5;
    border-right: 1px solid #9698d5;
    border-bottom: 1px solid #9698d5;
    margin: 8px 8px 8px 8px;
    max-width: 100%;
    width: 100%;
}

    .flex-collapse.in {
        display: flex;
        flex-direction: row;
        flex: 1 1 auto;
        flex-wrap: wrap;
        border-left: 1px solid #9698d5;
        border-right: 1px solid #9698d5;
        border-bottom: 1px solid #9698d5;
        margin: 8px 8px 8px 8px;
        max-width: 100%;
        width: 100%;
    }

    .flex-collapse.collapse.in {
        display: flex;
        flex-direction: row;
        flex: 1 1 auto;
        flex-wrap: wrap;
        border-left: 1px solid #9698d5;
        border-right: 1px solid #9698d5;
        border-bottom: 1px solid #9698d5;
        margin: 8px 8px 8px 8px;
        max-width: 100%;
        width: 100%;
    }

    .flex-collapse.collapsing {
        display: flex;
        flex-direction: row;
        flex: 1 1 100%;
        flex-wrap: wrap;
        border-left: 1px solid #9698d5;
        border-right: 1px solid #9698d5;
        border-bottom: 1px solid #9698d5;
        margin: 0 0 16px 0;
    }

.section {
    display: flex;
    flex-direction: row;
    flex: 1 0 0;
    justify-items: flex-start;
    align-items: center;
    padding: 0 0 4px;
    border-bottom: 1px solid #979797;
    margin: 0 0 8px;
}

#contentPanel a.toggle-icon[data-toggle] {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    flex: 1 0 100%;
    justify-items: flex-start;
    align-items: center;
    margin: 16px 0 0 0;
}

#contentPanel a[data-toggle] > div.icon {
    background-image: url(/Images/actu/minus.svg);
    height: 28px;
    width: 28px;
    margin-right: 5px;
}

#contentPanel a[data-toggle].collapsed > div.icon {
    background-image: url(/Images/actu/plus.svg);
    height: 28px;
    width: 28px;
    margin-right: 5px;
}

#contentPanel a[data-toggle] > span {
    color: #979797;
    font-weight: bold;
}

#termsButton {
    text-decoration: none;
}

img.expansion {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    pointer-events: none;
}
