.form-style-5 {
    max-width: 500px;
    padding: 10px 20px;
    background: #f4f7f8;
    margin: 10px auto;
    padding: 20px;
    background: #f4f7f8;
    border-radius: 8px;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.form-style-5 fieldset {
    border: none;
}

.form-style-5 legend {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.form-style-5 label {
    display: block;
    margin-bottom: 8px;
}

.form-style-5 .form-group .help-block {
    color: #FF0000
}

.form-style-5 .form-group {
    margin-bottom: 30px;
}

.form-style-5 input[type="text"],
.form-style-5 input[type="date"],
.form-style-5 input[type="datetime"],
.form-style-5 input[type="email"],
.form-style-5 input[type="number"],
.form-style-5 input[type="search"],
.form-style-5 input[type="time"],
.form-style-5 input[type="url"],
.form-style-5 textarea,
.form-style-5 select {
    font-family: Georgia, "Times New Roman", Times, serif;
    background: rgba(255, 255, 255, .1);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    margin: 0;
    outline: 0;
    padding: 7px;
    width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    background-color: #e8eeef;
    color: black;
    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
}

.form-style-5 input[type="text"]:focus,
.form-style-5 input[type="date"]:focus,
.form-style-5 input[type="datetime"]:focus,
.form-style-5 input[type="email"]:focus,
.form-style-5 input[type="number"]:focus,
.form-style-5 input[type="search"]:focus,
.form-style-5 input[type="time"]:focus,
.form-style-5 input[type="url"]:focus,
.form-style-5 textarea:focus,
.form-style-5 select:focus {
    background: #d2d9dd;
}

.form-style-5 select {
    -webkit-appearance: menulist-button;
    height: 35px;
}

.form-style-5 .number {
    background: #1abc9c;
    color: #fff;
    height: 30px;
    width: 30px;
    display: inline-block;
    font-size: 0.8em;
    margin-right: 4px;
    line-height: 30px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 15px 15px 15px 0px;
}

.form-style-5 input[type="submit"],
.form-style-5 input[type="button"] {
    position: relative;
    display: block;
    padding: 19px 39px 18px 39px;
    color: #FFF;
    margin-top: 15px;
    background: #1abc9c;
    font-size: 18px;
    text-align: center;
    font-style: normal;
    width: 100%;
    border: 1px solid #16a085;
    border-width: 1px 1px 3px;
    margin-bottom: 10px;
}

.form-style-5 input[type="submit"]:hover,
.form-style-5 input[type="button"]:hover {
    background: #109177;
}

.templateDiv {
    width: 100%;
}

.upload-btn-wrapper {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    display: inline-block;
}

.btn {
    border: 2px solid gray;
    color: gray;
    background-color: white;
    padding: 8px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
}

.upload-btn-wrapper input[type=file] {
    font-size: 100px;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.file_upload {
    margin-top: 5px;
    margin-bottom: 15px;
}

.error_highlight {
    border-radius: 5px !important;
    border: #FF0000 1px solid !important;
}

#btn-preview {
    cursor: pointer;
    float: right;
    margin-bottom: 15px;
}

.previewImage {
    display: none;
    width: 80px;
    height: 80px;
}

#preview_template {
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 87.5%;
    display: flex;
    position: absolute;
    z-index: 110;
    box-sizing: border-box;
    background-color: #f7fbfc;
    padding: 2%;
    border-radius: 3px;
    box-shadow: 0 0 70px #444;
    transition: all .5s;
    line-height: 2em;
    bottom: initial;
    max-height: 92%;
    max-width: 80%;
    min-height: 70%;
    min-width: 70%;
    left: 50%;
    right: 0;
    justify-content: center;
    align-items: center;

}

.jquery-modal .modal {
    padding: 0px;
}

.modal a.close-modal {
    position: absolute;
    top: -4px;
    right: -4px;
    display: block;
    width: 36px;
    height: 36px;
    text-align: center;
    background: transparent;
    border-radius: 0%;
    box-shadow: none;
}

.jquery-modal .media_picker.modal {
    display: inline-block;
    position: absolute;
    top: 50px;
    z-index: 110;
    max-width: 1100px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 0 70px #444;
    text-align: left;
    transform: translateX(-50%);
    transition: all .5s;
    right: initial;
    bottom: initial;
    overflow: initial;
    left: initial;
    padding: 0 0 0 0;
    width: 55%;
    border-left: none;
    max-height: 100%;
    background-color: #fff;
    min-width: 950px;
}

.media_grid {
    font-family: 'Open Sans', Open_Sans;
    width: 100%;
    min-width: 950px;
    border-radius: 12px;
    border: solid 3px #eeeeee;
    background-color: #fff;
}

.media_grid .grid_container {
    margin-top: 10px;
}

.media_grid .grid_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(100px, 1fr));
    grid-gap: 10px;
    grid-auto-flow: dense;
    list-style: none;
    padding: 5px 5px 5px 5px;
}

.media_grid .media_image_container {
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    border-radius: 5px;
    min-height: 110px;
    border: 1px solid #cccccc;
    background-color: #ddd;
    align-items: center;
    justify-content: center;
    display: flex;
}

.media_grid .grid_wrapper li .media_image {
    display: block;
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-height: 200px;
}

.media_grid .overlay_check {
    cursor: pointer;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/media_picker/icons-8-checked-100-1@3x.png');
    object-fit: contain;
    background-size: 40px 40px;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity .3s;
}

.media_grid .overlay_check:hover {
    opacity: 50;
}

.media_grid .overlay_check.active {
    opacity: 100;
}

.paginate_container {
    display: flex;
    justify-content: center;
}

.paginate {
    display: flex;
    padding-left: 0;
    margin: 0px 0px 6px 0px;
    border-radius: 4px;
    list-style-type: none;
}

.paginate li {
    background-color: #fff;
    font-family: Myriad Pro, Open_Sans;
    font-size: 20px;
    color: #25b5f5;
    border: none;
    padding: 2px 5px;
    line-height: 1.2;
    display: inline;
    border-radius: 2px;
    border: solid 2px transparent;
}

.paginate a {
    cursor: pointer;
}

.paginate .active {
    border-radius: 2px;
    border: solid 2px #8f9192;
    pointer-events: none;
}

.media_name_container {
    position: absolute;
    bottom: 2px;
    background-color: rgba(220, 220, 220, .8);
    font-family: Myriad Pro, Open_Sans;
    font-size: 12px;
    overflow: hidden;
    padding: 3px 3px;
    border-radius: 2px;
    line-height: 1.2;
}

.jquery-modal .modal {
    border: 0 !important;
}



.loadingAnimation{
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 1.0);
    z-index: 102;
}
.spinner{
    height: 50vmin;
    width: 50vmin;
    position: relative;
}
.spinner div{
    border-radius: 50%;
}
.spinner .outer{
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-top: 1vmin solid #5e89f2;
    box-shadow:0px -2px 1px 0px #ccc;
    animation: cssSpinnerCW 2s infinite linear;
}
.spinner .inner{
    height: 90%;
    width: 90%;
    position: absolute;
    top: 5%;
    left: 5%;
    border-bottom: 1vmin solid #25b5f5;
    box-shadow:0px 2px 1px 0px #ccc;
    animation: cssSpinnerCCW 2s infinite linear;
}
.spinner .label{
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 6.5vmin;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    color: #00ddff;
    font-family: 'Cantarell', sans-serif;
    font-style:italic;
    font-weight:600;
    text-shadow: -2px 1.5px 2px #ccc;
    text-transform: uppercase;
}

@keyframes cssSpinnerCW{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(359deg);
    }
}
@keyframes cssSpinnerCCW{
    0%{
        transform: rotate(359deg);
    }
    100%{
        transform: rotate(0deg);
    }
}
@keyframes color{
    0%{
        color: #00ddff;
    }
    50%{
        color: #00adff;
    }
    100%{
        color: #00ddff;
    }
}