input.disabled,
select.disabled {
    pointer-events: none;
    opacity: .65;
    background-color: #e9ecef;
}

div.popupwrapper {
    background-color: rgba(255, 255, 255, 0.5);
    position : fixed;
    top : 0px;
    left : 0px;
    width : 100%;
    height : 100%;
    overflow: hidden;
    z-index: 10;
}

div.popup {
    margin: auto;
    width: 50%;
    border: 1px solid rgba(0,0,0,.3);
    border-radius: 0.3rem;
    outline: 0;
    background-color : white;
    padding : 10px;

    position: relative;
    top: 10%;
/*    transform: translateY(-50%);*/
    z-index: 11;
    max-height: 70%;
    overflow-y: auto;
}

div.popup.add_project_module {
    padding-bottom: 60px;
}

.popupbuttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    margin-top: .5rem;
}

#btn_close_merge_runs_popup {
    margin: 0 0 0 .5rem;
}

div.popup div.popup_content {
    overflow-y: none;
}

div.popup.add_project_module div.popup_content,
div.popup.add_programme div.popup_content,
div.popup.link_module div.popup_content {
    overflow-y: none;
}

div.popup.optima_settings,
div.popup.add_programme {
    position: absolute;
    top: 20px;
    transform: translateX(50%);
}

div.popup.add_programme {
    padding-bottom: 50px;
}

div.popup.optima_settings textarea {
    width: 100%;
    min-height: 200px;
    max-height: 69vh;
}

div.popup.link_module div.popup_content {
    margin-bottom: 10px;
}

.space-right, .space-right:link, .space-right:hover, .space-right:active,
.space-right:visited {
    color: inherit;
    text-decoration: none;
}

div.popup.optima_settings .popupbuttons {
    bottom: 5px;
}

div.add_programme .popupbuttons {
    bottom: 5px;
    right: 10px;
}

div.form_error {
    color: red;
    font-size: .9em;
}

td.error-msg {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-width: 250px;
}

td.inactive-programme {
    cursor:not-allowed;
}

div.popup.optima_settings .textarea-container,
div.add_programme .textarea-container{
    max-height: 70vh;
    overflow-y: hidden;
}

div.right.selected_programme_name h5 {
    white-space: nowrap;
    padding: 0 20px
}

table.table.syllabus_preview tr.level1 {
    background-color: #BEBEBE;
}

table.table.syllabus_preview tr.level3 {
    background-color: #F5F5F5;
}

table.table.syllabus_preview tr.level4 td:first-child {
    padding-left: 40px;
}

table.table.syllabus_preview tr.level5 td:first-child {
    padding-left: 80px;
}

table.table.syllabus_preview tr td.comparison-td {
    max-width: 120px;
}

table.table.syllabus_preview tr td.comparison-td.num_negative {
    color: red;
}

table.table.syllabus_preview tr td.comparison-td.num_positive {
    color: green;
}

.loader {
    border: 5px solid #dedede;
    border-top: 5px solid #555;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#login_page {
    height: 95vh;
    width: 95vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#login_page #ci_logo {
    position: absolute;
    top: 20px;
    left: 20px;
}

#login_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 15vw;
}

#login_wrapper img {
    width: 50%;
    margin-bottom: 2rem;
}

#login_wrapper .form_subscript {
    font-size: .8rem;
    text-align: center;
}

#login_form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

#login_form input {
    padding: .3rem .5rem;
    width: 100%;
    border-radius: .2rem;
    border: 1px solid #333;
}

#login_form #id_login {
    margin-top: 1rem;
    background-color: #ef5d10;
    color: white;
    border: none;
    padding: .5rem;
    border-radius: .2rem;
    font-size: 1.05rem;
}

#id_username {
    margin-bottom: 1rem;
}

#login_separator {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#login_separator .login_separator_line {
    height: 2px;
    background-color: black;
    width: 50px;
}

#google_login_wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: .2rem;
    padding: .5rem 0;
    background-color: #dd4b39;
    color: white;
    width: 100%;
    text-decoration: none;
}
#google_login_wrapper:hover {
    background-color: #aa4b39;
}

#google_login_wrapper i {
    color: white;
}
