/* https: //stackoverflow.com/a/16771693/4306257 */
@-moz-keyframes thirdspin { 100% { -moz-transform: rotate(-120deg); } }
@-webkit-keyframes thirdspin { 100% { -webkit-transform: rotate(-120deg); } }
@keyframes thirdspin { 
    100% { 
        -webkit-transform: rotate(-120deg);
        transform:rotate(-120deg);
    } 
}

body {
    padding: 1em;
    font-size: 16px;
    overflow-x: hidden;
}

h1 {
    margin-bottom: 0;
}

p {
    margin-bottom: 0;
}

.accordion {
    width: 96%;
    height: 100px;
    opacity: 1;
    line-height: 100px;
    border-radius: 5px;
    border: 2px solid #8a8aff;
    margin: 10px;
    padding: 1%;
    font-size: 1.5em;
    cursor: pointer;
    transition: opacity .2s, height .5s, font-size .5s;
}

.accordion.open {
    height: 0px;
    opacity: 0;
    font-size: 0;
}

@media only screen and (max-width: 300px) {
    .minitruncate {
        display: none;
    }
}

@media only screen and (max-width: 630px) {
    .accordion {
        font-size: 1em;
    }
}

.accordion_section {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity .5s, max-height 2s;
}

.accordion_section.open {
    max-height: 10000px;
    opacity: 1;
    pointer-events: initial;
}

.nextToEachOtherIfMatch>.topic {
    display: inline-block;
    vertical-align: top;
}

.topic {
    margin-top: 2em;
    box-shadow: 0 0 20px 0px #c1c1c1;
    border-radius: 4px;
    padding: 20px;
    padding-left: 30px;
    width: 500px;
    min-width: 40%;
    max-width: 80%;
    margin-left: 5px;
}

.topic.fullwidth {
    width: 90%;
    max-width: 90%;
}

@media only screen and (max-width: 600px) {
    .topic.fullwidth {
        width: 80%;
        max-width: 80%;
    }
}

.topic>h3 {
    margin-left: -10px;
}

button.disabled {
    background: #8a8a8a;
}

.student-entry {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 12px;
    border-radius: 4px;
}

.student-entry.studentFormTemplate {
    display: none;
}

.student-entry .remove-student-button {
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 12px;
    border: none;
    background: none;
    cursor: pointer;
}

.withdescription {
    display: inline;
}

.filmCardDelete {
    margin-left: 7px;
    color: red;
    cursor: pointer;
}

#filmFormTemplate .filmCardDelete {
    display: none;
}

.filminfo {
    margin-left: -10px;
}

select {
    max-width: 100%;
}

.round2 {
    background-color: #f9f957;
    border-radius: 5px;
    box-shadow: 0 0 15px #f9f957;
}

.field {
    margin-top: 2em;
}

.inline-fields .field {
    display: inline-block;
    vertical-align: top;
}

.field.moreBottomMargin {
    margin-bottom: 2em;
}

input[type="text"],
input[type="email"],
input[type="tel"], 
textarea {
    width: 100%;
    max-width: 500px;
}

.shortInput {
    width: 80px;
}

.hidden {
    display: none;
}

.formError, .important {
    color: red;
}

.formError.tag-input.type-checkbox, .formError.tag-textarea.type-textarea {
    width: auto !important;
}

.taskBoxNumber {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5em;
}

.previewImg {
    width: 100%;
    max-height: 500%;
}

#formConvert input {
    display: none;
}

.infoIcon {
    width: 1.2em;
    height: 1.2em;
}

#edit_icon {
    position: fixed;
    top: 5px;
    right: 5px;
    width: 80px;
    z-index: 3;
}

.loadingimg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20vh;
    height: 20vh;
    margin: -10vh 0 0 -10vh;
    z-index: 5;
}

.rotatinglogo {
    -webkit-animation: thirdspin 2s ease-in-out infinite;
    -moz-animation: thirdspin 2s ease-in-out infinite;
    animation: thirdspin 2s ease-in-out infinite;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 4;
    background-color: #ffffff66;
    display: none;
    opacity: 0;
    transition: opacity 1s;
}

#submittimewarning {
    background-color: #b50000;
    padding: 1em;
    border-radius: 5px;
    color: white;
    margin-bottom: 2em;
    font-weight: bold;
}

#submit_button {
    margin-top: 2em;
}

/* 
https: //kyusuf.com/post/completely-css-custom-checkbox-radio-buttons-and-select-boxes, 
modified to make the checkbox have a border and be a bit lighter
*/

.control-group {
    display: inline-block;
    vertical-align: top;
    background: #fff;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 200px;
    height: 210px;
    margin: 10px;
}

.control {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 18px;
}

.control input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.control__indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: #f9f9f9;
    border: 1px solid #525252;
}

.control--radio .control__indicator {
    border-radius: 50%;
}

.control:hover input~.control__indicator,
.control input:focus~.control__indicator {
    background: #ccc;
}

.control input:checked~.control__indicator {
    background: #2aa1c0;
}

.control:hover input:not([disabled]):checked~.control__indicator,
.control input:checked:focus~.control__indicator {
    background: #0e647d;
}

.control input:disabled~.control__indicator {
    background: #f9f9f9;
    border: 1px solid #525252;
    opacity: 0.6;
    pointer-events: none;
}

.control__indicator:after {
    content: '';
    position: absolute;
    display: none;
}

.control input:checked~.control__indicator:after {
    display: block;
}

.control--checkbox .control__indicator:after {
    left: 8px;
    top: 4px;
    width: 3px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.control--checkbox input:disabled~.control__indicator:after {
    border-color: #7b7b7b;
}

.control--radio .control__indicator:after {
    left: 7px;
    top: 7px;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #fff;
}

.control--radio input:disabled~.control__indicator:after {
    background: #7b7b7b;
}

#user_number_input {
    width: 300px;
    max-width: 100%;
}

.filmFileUpload {
    width: 500px;
    height: 250px;
}

.button-primary.addFilm {
    background-color: #f08a33;
    border-color: #f08a33;
}

.button-primary.addFilm:hover {
    background-color: #c15900;
    border-color: #c15900;
}
