/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/*****************/
/* BUTTON STYLES */
/*****************/

.thinkific-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.8rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 60ms ease-in-out;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    appearance: none;
    line-height: 1.3;
    font-weight: 500;
    text-transform: capitalize;
;
    color: #4a4a4a;
    background-color: #f2f2f2;
    border: 0 none;
    border-radius: 3px;
}

.thinkific-button:hover {
    transition: all 60ms ease;
    opacity: .85;
}

.thinkific-button:active {
    text-decoration: none;
    transition: all 60ms ease;
    transform: scale(0.97);
    opacity: .75;
}

.thinkific-button:visited {
    text-decoration: none;
}

.thinkific-button.good {
    color: #FFFFF3;
    background: #47b8e0;
}
.thinkific-button.button-bordered {
    color: #FFFFF3;
    border: 2px solid #FFFFF3;
    background: transparent;
}
.thinkific-button.button-bordered:hover, .thinkific-button.button-bordered:active {
    color: #ff7473;
    border-color: #FFFFF3;
    background: #FFFFF3;
}

/*************/
/*   MODAL   */
/*************/
/* The Modal (background) */

.thinkific-modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease 0.06s;
}


/* Modal Content/Box */

.thinkific-modal .modal-content {
    background-color: #fff;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 1.2rem;
    max-width: 50%;
    /* Could be more or less, depending on screen size */
    visibility: hidden;
    box-shadow: 2px 2px 10px 0px rgba(99, 106, 119, 0.6);
    border-radius: 5px;
}


/* The Close Button */

.thinkific-modal .close {
    color: #dedede;
    /*float: right;*/
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.thinkific-modal .close:before {
    content: "Close";
    font-size: 1rem;
    display: none;
    text-decoration: none;
    align-self: center;
    margin-top: 0.2rem;
    font-weight: 400;
}

.thinkific-modal .close:hover:before {
    display: initial;
    color: #dedede;
}

.thinkific-modal .close:hover,
.thinkific-modal .close:focus {
    color: hsl(0, 100%, 70%);
    text-decoration: none;
    cursor: pointer;
}

.thinkific-modal .close:active,
.thinkific-modal .close:before:active {
    transition: all 60ms ease;
    transform: scale(0.97);
}


/***********************/
/*  modal form layout  */
/***********************/

.thinkific-modal .modal-body,
.thinkific-modal .modal-footer {
    width: 100%;
}

.thinkific-modal .modal-content {
    display: flex;
    flex-direction: column;
}

.thinkific-modal .modal-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 2em;
    font-weight: bold;
}

.thinkific-modal.modal-footer {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.thinkific-modal .modal-footer > input {
    margin-top: 0.8rem;
    margin-bottom: 0rem;
    margin-left: 0rem;
    margin-right: 0rem;
}

.thinkific-modal .modal-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.thinkific-modal .form-row {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 0.4rem 0.4rem;
}

.thinkific-modal .form-row:nth-child(even) {
    background: #f2f2f2;
}

.thinkific-modal .form-row label {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 25%;
}

.thinkific-modal .form-row input{
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 75%;
    border: 1px solid hsl(0, 0%, 90%);
    padding: 0.2rem 0.2rem;
    max-width: 75%;
}

.thinkific-modal .slideDown {
    animation-name: slideDown;
    -webkit-animation-name: slideDown;
    animation-duration: 0.6s;
    -webkit-animation-duration: 0.6s;
    animation-timing-function: ease;
    -webkit-animation-timing-function: ease;
    visibility: visible !important;
}
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
    }
    50%{
        transform: translateY(4%);
    }
    65%{
        transform: translateY(-2%);
    }
    80%{
        transform: translateY(2%);
    }
    95%{
        transform: translateY(-1%);
    }
    100% {
        transform: translateY(0%);
    }
}


.thinkific-user-courses-section {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thinkific-user-courses-title {
    max-width: 1320px;
    margin: auto;
    width: 88%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thinkific-user-courses-title h2 span {
    font-size: 16px;
}

#thinkific-table {
    max-width: 1320px;
    margin: auto;
    width: 88%;
    border-collapse: collapse;
}

#thinkific-table th,
#thinkific-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#thinkific-table th {
    background-color: #f2f2f2;
}

#thinkific-table .edit-btn,
#thinkific-table .delete-btn {
    padding: 6px 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    margin-right: 5px;
}

#thinkific-table .edit-btn {
    background-color: #3498db;
    color: #fff;
}

#thinkific-table .delete-btn {
    background-color: #e74c3c;
    color: #fff;
}

#thinkific-loader-wrapper {
    display: none;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 15;
    background-color: rgba(255,255,255,0.5);
}

.thinkific-loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    top: 50%;
    left: 50%;
    position: absolute;
    z-index: 16;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.thinkific-modal .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: relative;
}

.thinkific-badge {
    margin: 0 10px;
    padding: 2px 4px;
    text-align: center;
    border-radius: 5px;
    font-size: 12px;
}

.thinkific-badge.active-thinkific-course {
    background-color: green;
    color: white;
}

.thinkific-badge.expired-thinkific-course {
    background-color: grey;
    color: white;
}

.thinkific-modal .select2-results__option[aria-selected="true"]::before {
    content: "✔";
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    line-height: 14px;
    background-color: #007bff;
    border-color: #007bff;
}

.thinkific-modal .select2-results__options {
    list-style-type: none;
}

.thinkific-modal .select2-results__option {
    position: relative;
    padding-left: 24px;
}

.thinkific-modal .select2-results__option::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid #666;
    background-color: #fff;
    border-radius: 3px;
}
