* {
    box-sizing: border-box;
}

a {
    cursor: pointer;
}

.hidden{
    display: none !important;
}

body {
    margin:0;
    padding:0;
    font-family: 'Arial', sans-serif;
    display: grid;
    grid-template-areas:
        "header"
        "menu"
        "content"
        "footer";
    grid-template-rows: max-content max-content auto max-content;
    min-height: 100vh;
}

header {
    background-color: #fff;
    grid-area: header;
    display: flex;
    align-items: center;
}

header .assist-user {
    text-align: right;
    flex-grow: 1;
    padding-right: 30px;
}

header .assistance-box {
    background: transparent url("../images/help.svg") no-repeat left center;
    height: 30px;
    display: inline-block;
    line-height: 30px;
    padding-left: 40px;
    color: #000;
    font-size: .9em;
    text-decoration: none;
    margin-bottom: 15px;
}

header .login {
    margin-left: 25px;
    border: none;
    padding: 8px 20px;
    font-size: 1.1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    outline: none;
    text-transform: uppercase;
    cursor: pointer;
}

header .user-info-box {
    font-weight: bold;
    font-size: .9em;
}

header .user-info-box a {
    margin-top: 5px;
}
header .login-actions {
    display: inline;
}

.menu-box {
    grid-area: menu;
    background-color: #2b4a57;
}
.menu-box .toggle-menu {
    cursor: pointer;
    display: none;
    align-items: center;
}
.menu-box .toggle-menu .menu-chevron {
    margin-left: 10px;
    font-size: 32px;
    transform: rotateZ(90deg);
    transition: transform .3s ease;
}
.menu-box .toggle-menu.active .menu-chevron {
    transform: rotateZ(-90deg);
}
.menu-box .toggle-menu ~ .menu {
    transition: all .5s ease-in-out;
    overflow-y: hidden;
    max-height: 100vh;
}
.menu-box .toggle-menu.active ~ .menu {
    max-height: 0px;
    padding: 0;
}

.menu {    
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
}

.menu .menu-item {
    color:#c9d101;
    padding: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu .menu-item.active {
    background-color: #c9d101;
    color:#2b4a57;
}

.content-box {
    grid-area: content;
    padding: 0 30px;
    color: #fff;
}

.content-box h1 {
    max-width: 1600px;
    margin-right: auto;
    margin-left: auto;
}

/************************************ HOME **************************************************** */

.content-box .home-title {
    text-align: center;
}

.home-content {
    max-width: 1600px;
    margin: auto;
}

.home-content h2 {
    margin: 0 10px 30px;
    font-weight: normal;
}

.home-content .cards-list {
    display:flex;
    justify-content: center;
}

/********************************* WEBINAR CARD ************************************************** */

.webinarcard {
    display:grid;
    grid-template-areas:
        "date"
        "title"
        "longtitle"
        "illustre"
        "description"
        "infos"
        "actions";
    width:50%;
    align-content: baseline;
    background: #fff;
    color: #000;
    padding: 20px;
    margin: 0 10px;
    border:1px solid gray;
}

.webinarcard .webinar-date {
    grid-area: date;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.webinarcard .webinar-date .start-time {
    display: none;
}

.webinarcard .webinar-date .end-time {
    display: none;
}

.webinarcard .webinar-date .timezone {
    display: none;
}

.webinarcard .webinar-title {
    grid-area: title;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.webinarcard .webinar-longTitle {
    grid-area: longtitle;
    font-size: 1.5em;    
    margin-bottom: 5px;
}
.webinarcard .webinar-faculty {
    display: none;
}

.webinarcard .webinar-illustre {
    grid-area:illustre;
    margin-bottom: 10px;
    width: 100%;
    height: auto;
}

.webinarcard .webinar-description {
    grid-area: description;
    margin-bottom: 10px;;
}

.webinarcard .webinar-infos {
    grid-area: infos;
    margin-bottom: 10px;
}

.webinarcard .actions{
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webinarcard .webinar-action-btn.unregistered .webinar-date {
    display: none;
    margin-top: 20px;
}

.webinarcard .webinar-action-btn.unregistered .webinar-time {
    display: none;
}

.webinarcard .webinar-action-btn.unregistered .webinar-title {
    font-size:inherit;
}

.webinarcard .webinar-register-box{
    display: flex;
}
.webinarcard .webinar-register-box .registered-text .webinar-date{
    display: none;
}
.webinarcard .webinar-register-box .registered-text .webinar-time{
    display: none;
}

.webinarcard .webinar-action-btn,
.login-container button,
.home-btn,
.register-btn,
.webinar-page-container button.unregistered {
    border: none;
    padding: 10px;
    font-size: 1.2em;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    outline: none;
    cursor: pointer;
}

.add-to-calendar {
    padding: 10px;
    cursor: pointer;
    background-color: #EEE;
    text-align: center;
}


/********************************** WEBINAR PAG ***********************************************/

/* .content-box.webinar{
    display: flex;
} */

.content-box.webinar .webinar-infos{
    display: grid;
    grid-template-areas: 
        "title date"
        "longTitle longTitle";
    grid-auto-columns: max-content;
    margin-bottom: 50px;
    margin-top: 20px;
}

.content-box.webinar .webinar-infos{
    display: none;
}

.content-box.webinar .webinar-infos h1{
    margin:0;
    
}

.content-box.webinar .webinar-infos .webinar-title{
    grid-area: title;
}

.content-box.webinar .webinar-infos .webinar-longTitle{
    grid-area: longTitle;
}

.content-box.webinar .webinar-infos .webinar-date{
    margin:0;
    margin-top: 5px;
    align-self: center;
    grid-area: date;
}


/****************************************** FOOTER ***************************************************/

footer {
    background-color: #fff;
    color: #666;
    font-size: .9em;
    padding: 0 15px;
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    margin-left: 10px;
}

/* ************************************* FORM *********************************************** */

.login-container,
.account-form {
    margin: auto;
    width: 50%;
    height: 100%;
    padding: 0 1em 1em 1em;
    display: flex;
    flex-direction: column;
}

.account-form, .account-form section {
    display: flex;
    flex-direction: column;
}

.account-form .submit-btn {
    padding: 10px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
}

.account-form input:not([type="checkbox"]),.account-form select {
    margin-bottom: 1em;
}
.account-form .privacy {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

.account-form .privacy input[type="checkbox"] {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    position: relative;
    top: -10px;
}

.account-form input[type="checkbox"],
.account-form input[type="radio"] {
    cursor: pointer;
}

.login-form input,
.form-reset-password input {
    margin-bottom: 1em;
}

.login-container h1 {
    text-align: center;
}

.login-container a,
.account-form a {
    color: #fff;
}

.login-container hr,
.account-form hr {
    height: 1px;
    border: none;
    background: #fff;
    margin: 20px 0;
}

input[type="email"],
input[type="mail"],
input[type="password"],
input[type="text"] {
    height: 30px;
}

select {
    height: 36px;
}

.login-form,
.form-reset-password {
    display: flex;
    flex-direction: column;
}

.login-form label,
.account-form label,
.form-reset-password label {
    font-size: .9em;
    margin-bottom: 5px;
}

.account-form label.title {
    margin-bottom: 15px;
}

.account-form section .label {
    margin-bottom: 0;
}

.login-container button,
.account-form .submit-btn {
    text-transform: uppercase;
    font-weight: bold;
}

.account-form .submit-btn.disabled {
    cursor: default;
    opacity: .5;
}

.login-container .connect-btn {
    margin-bottom: 10px;
}

.login-container .register-button {
    background: none;
    box-shadow: inherit;
    color: #fff;
    text-decoration: underline;
}

.login-form .actions {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 300px;
    max-width: 100%;
    margin: auto;
}

.login-form .login-infos {
    text-align: center;
    margin-top: 10px;
}

.reset-btn,
.request-btn,
.login-btn,
.home-btn {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.input-account-phone {
    width: 230px;
}
.input-error {
    border: 1px solid red;
}

/* iziToast */

.iziToast-wrapper .iziToast {
    font-family: 'Arial', sans-serif;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.2)
}

.iziToast-wrapper .iziToast:after {
    box-shadow: inherit;
}

/* faculty */

.faculty{
    padding: 10px;
    margin-bottom:20px;
}

.faculty-container {
    margin-bottom: 20px;
    max-width: 1600px;
    margin: auto;
}

.faculty-container h2 {
    padding-bottom: 5px;
    margin-top: 30px;
}

.faculty-item {
    display: flex;
    margin-bottom: 10px;
}

.faculty-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 20px;
}
.faculty [data-webinar-time] {
    display: none;
}
.faculty-infos {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faculty-item .faculty-name {
    font-weight: bold;
    margin: 0;
    font-size: 1.1em;
}

.faculty-item .faculty-description {
    margin: 0;
    font-size: .9em;
    text-align: justify;
}

.faculty-item .faculty-description p {
    margin: 5px 0 10px;
}
/* Agenda */

.timeline-label.clickable {
    cursor: pointer;
}

/* Admin */

.admin-menu .menu li {
    padding: 1em;
    background-color: #37474F;
    color: #C0C934;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}
.admin-menu .menu li.active {
    color: white;
    background-color: #48585F;
}
.admin-menu .menu li:first-child {
    border-bottom-left-radius: 5px;
}
.admin-menu .menu li:last-child {
    border-bottom-right-radius: 5px;
}
.table-container {
    display: grid;
}

.table-container .actions, .table-container #accounts-table {
    display: none;
}

.table-container.loaded .actions, .table-container.loaded #accounts-table {
    display: block;
}

.table-container.loaded .loader {
    display: none;
}

.alert-modal-container {
    display: none;
    width: 100%;
    position: absolute;
    height: 100%;
    background-color: #0008;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}
.alert-modal-container.show {
    display: flex;
}
.alert-modal-container .alert-modal {
    color: black;
    background-color: white;
    border-radius: 5px;
    position: relative;
}
.alert-modal-container .alert-modal .alert-modal-title {
    border-radius: 5px 5px 0 0;
    background-color: orange;
    padding: 1em;
    font-weight: bold;
}
.alert-modal-container .alert-modal .alert-modal-content {
    padding: 1em 2em;
}
.alert-modal-container .alert-modal .alert-modal-actions {
    position: absolute;
    right: 5px;
    bottom: 5px;
}
.webinar-selection {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    max-width: 70%;
}
.admin .webinar-list {
    cursor: pointer;
    display: block;
    margin: 10px;
    max-width: 300px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    background-color: #48585F;
    color: white;
    border-radius: 5px;
    padding: 1em;
    text-align: center;
    
}
.admin .webinar-list:hover, .admin .webinar-list.selected {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    background-color: #37474F;
    color: #C0C934
  }
  .admin .webinar-list h3 {
      margin: 0px 10px 10px 10px;
  }
  .stats-container {
      margin: 10px auto;
      background:white;
      box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  }
  .content-box.admin {
      background: #F3F3F3;
      color: black;
  }
  .stats-container {
      padding: 1em;
  }
  .stats-container h1 {
      margin: 0 10px 10px 10px;
  }
  .stats { display: flex;}
  .stats > div {
      margin: 0 10px;
  }
  .stats > div > span {
      font-weight: bold;
  }

/* live */

.links {
    flex-wrap: wrap;
}
.not_registered {
    max-width: 1600px;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.player.active {
    display: block;
}

.live-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.player-container {
    background: #000;
    width: 720px;
    height: 405px;
}
.player, .player-ratio {
    width: 100%;
    height: 100%;
}

.player {
    display: none;
}

.chat {
    border: none;
    min-height: 405px;
}

.player-ratio img {
    max-width: 100%;
}

@media screen and (min-width: 1440px)
{
    .player-container { width: 888px; height: 500px; }
    .chat { height: 500px; width: 400px; }
}

@media screen and (min-width: 1800px)
{
    .player-container { width: 1000px; height: 563px; }
    .chat { height: 563px; }
}

/* live eval */

#evaluationContainer > h3 {
    color: #000;
}

.evaluation {
    display: block;
    width: 100%;
    height: 500px;
}

/* Disclaimer */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    text-align: justify;
    max-width: 500px;
    padding: 1em 2em;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,.6);
}
.modal-content h3 {
    font-weight: bold;
    text-align: center;
    margin: 10px 0 0;
}

.modal-content button {
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px;
    width: 100px;
    align-self: center;
    font-weight: bold;
    font-size: 1em;
    border: none;
}

/* REPLAY *********************/

.replay-content {
    margin-top: 20px;
    padding-top: 20px;
    max-width: 1600px;
    margin: 10px auto;
}

.replay-content h2 {
    text-transform: uppercase;
    font-weight: bold;
}

.replay-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.replay-content ul li {
    position: relative;
    width: 400px;
    margin-bottom: 20px;
}

.replay-content ul li a:before, [data-replay-elem]:before {
    content:'';
    position: absolute;
    left: calc(50% - 30px);
    top: calc(50% - 30px);
    width: 60px;
    height: 60px;
    background: transparent url("../images/thumbPlay.png") no-repeat center center;
}

.replay-content ul li img {
    width: 100%;
    height: auto;
    box-shadow: 0 0 10px #ccc;
}

.replay-content .infos {
    background: rgba(255,255,255,.85);
    position: absolute;
    bottom: 0;
    color: #000;
    padding: 10px;
    font-size: .8rem;
    width: 100%;
}

.replay-content .infos span {
    display: block;
}

.replay-content .infos .webinar-title {
    font-weight: bold;
    font-size: .9rem;
}

.replay-content .infos .webinar-date {
    font-weight: bold;
    margin-top: 5px;
}

.replay-container {
    max-width: 1600px;
    margin: auto;
}

.replay-container .webinar-title {
    font-weight: bold;
    display: block;
    font-size: 1.3rem;
    margin-top: 10px;
    margin-bottom: 5px;
}

.replay-container .webinar-longTitle {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.replay-container video {
    max-width: 100%;
    margin-bottom: 20px;
}

.mediaCount {
    display: none;
}
[data-webinar-replay] .replay-list {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    text-align: center;
}
.replay-main {
    display: flex;
    margin-bottom: 2em;
}
.replay-main video {
    margin: auto;
}
[data-webinar-replay] .replay-list [data-replay-elem] {
    margin: 0 10px 20px;
    transition: .3s ease;
    position: relative;
    cursor: pointer;
    padding: 1em;
    background-color: white;
    border-radius: 2px;
}
.replay-title {
    position: absolute;
    bottom: 0;
    background: rgba(255,255,255,.85);
    display: block;
    width: 100%;
    margin: 0;
    left: 0;
    padding: 0.5em;
    max-height: 100%;
    overflow: hidden;
    color: black;
}
[data-webinar-replay] .replay-list [data-replay-elem].active {
    transform: scale(1.01);
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

[data-replay-elem-thumb] {
    width: 100%;
}

.replay-docs {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0;
    margin: 0;
    z-index: 1;
}
.replay-docs .replay-doc {
    width: 32px;
    height: 32px;
    display: block;
    background: transparent url("../images/pdf.svg") no-repeat center center;
}

.replay-docs .replay-doc.pdf::after {
    color: black;
}


/* ************************************************************************************************** */

.registered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.registered.hidden, .registered-text {
    display: none;
}
.circle-loader {
    margin-bottom: 3.5em;
    margin: auto;
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-left-color: #5cb85c;
    animation: loader-spin 1.2s infinite linear;
    position: relative;
    display: inline-block;
    vertical-align: top;
    border-radius: 50%;
    width: 4em;
    height: 4em;
}
.circle-loader .checkmark {
    display: none;
}
.registered.loaded .checkmark, .registered.loaded .registered-text {
    display: block;
}
.registered.loaded .circle-loader {
    -webkit-animation: none;
    animation: none;
    border-color: #5cb85c;
    transition: border 500ms ease-out;
}
.checkmark.draw:after {
    animation-duration: 800ms;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
}
.checkmark:after {
    opacity: 1;
    height: 2.5em;
    width: 1em;
    transform-origin: left top;
    border-right: 5px solid #5cb85c;
    border-top: 5px solid #5cb85c;
    content: '';
    left: .5em;
    top: 1.7em;
    position: absolute;
}
@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 1em;
        opacity: 1;
    }
    40% {
        height: 2.5em;
        width: 1em;
        opacity: 1;
    }
    100% {
        height: 2.5em;
        width: 1em;
        opacity: 1;
    }
}

/* RESPONSIVE */

@media screen and (min-width: 1024px)
{
    .replay-content ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .replay-content ul li {
        margin-right: 20px;
    }
}
@media screen and (max-width: 1024px)
{
    .login-container, .account-form {
        width: 80%;
    }
    .live-container img {
        width: 100%;
        height: auto;
    }

    .live-container {
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 0;
    }

    .player-container,
    .chat {
        width: 100%;
        height: auto;
    }
    .player {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .player-ratio {
        width: 100%;
        padding-top: 56.25%;
        position: relative;
    }

    [data-webinar-replay] .replay-list {
        display: inherit;
    }

    [data-webinar-replay] .replay-list [data-replay-elem] {
        width: 48%;
        display: inline-block;
        margin: 1%;
    }
}

@media screen and (max-width: 768px)
{
    .home-content .cards-list {
        flex-direction: column;
    }
    .webinarcard {
        width: 100%;
        margin: 0 0 20px;
    }
    .login-container, .account-form {
        width: 100%;
    }
}

@media screen and (max-width: 580px)
{
    header {
        flex-direction: column;
    }
    header .logo {
        margin-bottom: 10px;
    }
    header .assist-user {
        padding: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    header .login-actions {
        display: inherit;
    }
    .menu-box {
        height: auto;
    }
    .menu {
        flex-direction: column;
        padding: 10px;
        height: auto;
    }
    .menu .menu-item {
        padding: 10px;
    }
    .content-box h1,
    .content-box h2 {
        text-align: center;
    }
    .content-box .home-title,
    .webinarcard .webinar-title {
        font-size: 1.6em;
        line-height: 1;
    }
    header, .menu-box, .content-box, footer {
        max-width: 100vw;
    }
    .faculty-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }
    .faculty-item .faculty-name {
        margin: 10px 0 5px;
    }
    [data-webinar-replay] .replay-list [data-replay-elem] {
        width: 80%;
        margin-bottom: 20px;
    }
}
