/********************
Quizzes/Surveys Page
*********************/

/*.qsm-quizes-page .widefat td {
  font-size: 16px !important;
}*/

span.qsm-quiz-name {
    font-size: 14px;
    font-weight: 600;
}

.qsm-quizzes-page-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qsm-quiz-page-wrapper {
    flex-grow: 1;
}

.qsm-quiz-page-wrapper-with-ads {
    flex-grow: 1;
}

.qsm-news-ads {
    background-color: #0d97d8;
}

.qsm-news-ads-title {
    text-align: center;
    border-bottom: 5px solid #1DD969;
    margin: 0;
    padding: 10px 0;
    background-color: #fff;
}

.qsm-edit-name {
    font-size: 12px !important;
}

.qsm-action-link {
    font-size: 14px !important;
}

.qsm-action-links:hover {
    background-color: black;
}

.qsm-action-link-delete {
    color: red !important;
}

.qsm-dialog-form label {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    padding-right: 30px;
}

.qsm-quiz-page-addon{
    width: 83%;
    float: left;
}

.quizzes-surveys_page_qmn_addons .qsm-news-ads{
    width: 15%;
    float: right;
}

@media screen and (min-width: 1200px) {
    .qsm-quizzes-page-content {
        flex-direction: row;
    }

    .qsm-quiz-page-wrapper-with-ads {
        margin-right: 10px;
    }

    .qsm-news-ads {
        flex-basis: 15%;
    }
}

@media screen and (max-width: 767px) {
    .qsm-quiz-page-addon{
        width: 100%;
    }

    .quizzes-surveys_page_qmn_addons .qsm-news-ads{
        width: 100%;
    }
}


/********************
Options Page
*********************/

.template_list_holder {
    width: 100%;
}
.template_variable {
    width: 50%;
    float: left;
    font-size: 14px;
}
.template_name {
    font-weight: bold;
}

/********************
Results Pages & Emails Tab
*********************/
.results-page,
.email {
    width: 100%;
    background-color: #0d97d8;
    margin: 20px 0;
    padding-bottom: 15px;
    box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.4)
}

.results-page-header,
.email-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #fff;
    padding: 10px 35px;
    border-bottom: 5px solid #1DD969;
}

.delete-page-button,
.delete-email-button {
    background: none;
    border: none;
    color: #1DD969;
    cursor: pointer;
    transition-duration: 200ms;
}

.delete-page-button:hover,
.delete-email-button:hover {
    transform: scale(1.2);
}

.results-page-content,
.email-content {
    display: flex;
    flex-direction: column;
}

.results-page-when,
.results-page-show,
.email-when,
.email-show {
    padding: 10px;
    background-color: #fff;
    border: 5px solid #1DD969;
    margin: 15px 0;
    min-width: 60%;
}

.results-page-content-header,
.email-content-header {
    margin-bottom: 10px;
}

.results-page-content-header h4,
.results-page-content-header p,
.email-content-header h4,
.email-content-header p {
    margin: 0;
}

.results-page-condition,
.email-condition {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    justify-content: space-around;
}

.results-page-condition > select, 
.results-page-condition > input,
.email-condition > select,
.email-condition > input {
    max-width: 100%;
}

.delete-condition-button {
    background: none;
    border: 1px solid #1DD969;
    color: #1DD969;
    cursor: pointer;
    transition-duration: 200ms;
    padding: 6px;
}

.delete-condition-button:hover {
    transform: scale(1.1);
}

.email-show .label {
    display: block;
}

.results-page-show textarea,
.to-email,
.subject,
.email-template {
    width: 100%;
    margin-bottom: 10px;
}

@media screen and (min-width: 760px) {
    .results-page-content,
    .email-content {
        flex-direction: row;
        justify-content: space-around;
    }

    .results-page-when,
    .results-page-show,
    .email-when,
    .email-show {
        min-width: 35%;
    }

    .results-page-condition,
    .email-condition {
        align-items: center;
        flex-direction: row;
    }
    .results-page-condition > select, 
    .results-page-condition > input,
    .email-condition > select,
    .email-condition > input {
        max-width: 30%;
    }

    .delete-condition-button {
        border: none;
    }
}

/********************
Quiz Styles Tab
*********************/

.qsm-styles {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width:700px) {
    .qsm-styles {
        flex-direction: row;
        flex-wrap: wrap;
    }
}



/********************
About/Credits Page
*********************/

div.qsm_icon_wrap {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(54, 58, 66, 1);
    color: #1DD969;
    background-position: center 24px;
    background-size: 85px 85px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    margin: 5px 0 0;
    padding-top: 120px;
    height: 40px;
    display: inline-block;
    width: 150px;
    text-rendering: optimizeLegibility;
    border: 5px solid #106daa;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    -khtml-border-radius: 20px;
    border-radius: 20px;
}

.qsm-tab-content .feature {
    margin-bottom: 20px;
}

.qsm-tab-content .feature .feature-headline {
    margin: 1.1em 0 .2em;
    font-size: 40px;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
}

.qsm-tab-content .feature .feature-text {
    text-align: center;
    font-size: 16px;
}

ul.changelog {
    background-color: #fff;
    padding: 10px 10px;
}

ul.changelog li {
    padding: 4px 0px;
}

ul.changelog li div.two{
    width: 70%;
    float: left;
    display: inline-block;
    height: 25px;
    margin-right: 20px;
    background: #D9E0E4;
    text-align: center;
    line-height: 25px;
}

ul.changelog li.fixed > div {
    background:#F0FFE1;
    color: #444;
    border-right:1px solid #5cb85c;
    width: 20%;
}

ul.changelog li.fixed div.two:before {
    content: "\f147";
    font-family: "dashicons";
    color:#5CB85C;
    margin-right: 5px;
}

ul.changelog li.add > div{
    background:#FFEED0;
    color: #444;
    border-right:1px solid #EFA537;
    width: 20%;
}

ul.changelog li.add div.two:before {
    content: "\f155";
    font-family: "dashicons";
    color:#EFA537;
    margin-right: 5px;
}

ul.changelog li.update > div{
    background:#bde7ff;
    color: #444;
    border-right:1px solid #106daa;
    width: 20%;
}

ul.changelog li.update div.two:before {
    content: "\f463";
    font-family: "dashicons";
    color:#106daa;
    margin-right: 5px;
}

/********************
Addons Page
*********************/

.qsm-addons {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width:700px) {
    .qsm-addons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}


/********************
Help Page
*********************/

.quiz_email_support p#mlw_support_message {
    color: red;
    font-size: 20px;
}

.quiz_email_support input, .quiz_email_support textarea {
    width: 100% !important;
}

.quiz_email_support textarea {
    min-height: 200px;
}

.quiz_email_support label {
    font-weight: bold;
}


/********************
Misc.
*********************/

/* Ads */
.help-decide {
    display: block;
    text-align:center;
    background: #fff;
    border: 5px solid #1DD969;
    color: #000;
    font-weight: bold;
}
.help-decide p {
    font-size: 14px;
}

/* Info Bar */
.qsm-info-box {
    display: block;
    text-align:center;
    background: #0d97d8;
    border: 5px solid #1DD969;
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.qsm-info-box p {
    font-size: 14px;
}

.qsm-info-box a {
    color: yellow;
}

/* Info Widget */
.qsm-info-widget {
    text-align: center;
    border: 5px solid #1DD969;
    margin: 10px 5px;
    background: #fff;
    padding: 10px 5px;
    transition-duration: 0.5s;
    max-width: 330px;
}

.qsm-info-widget:hover {
    transform: scale(1.1);
}

/* Options tabs */
.qsm_tab_content,
.mlw_tab_content {
    padding: 10px 10px 10px 10px;
}

.qsm_tab_content label{
    margin-right: 20px;
}

/* Popup */

.qsm-popup {
    font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}

.qsm-popup__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.qsm-popup__container {
    background-color: #fff;
    padding: 30px;
    min-width: 500px;
    max-width: 700px;
    max-height: 95vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
}

.qsm-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qsm-popup__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #00449e;
    box-sizing: border-box;
}

.qsm-popup__close {
    background: transparent;
    border: 0;
    color: #00449e;
    text-decoration: none;
}

.qsm-popup__header .qsm-popup__close:before { 
    content: "\2715"; 
}

.qsm-popup__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0,0,0,.8);
}

body .qsm-popup__btn {
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0,0,0,.8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out,-webkit-transform .25s ease-out;
}

.qsm-popup__btn:focus, .qsm-popup__btn:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

body .qsm-popup__btn-primary {
    background-color: #00449e;
    color: #fff;
}

@keyframes mmfadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mmslideIn {
    from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.qsm-popup-slide {
    display: none;
}

.qsm-popup-slide.is-open {
    display: block;
}

.qsm-popup-slide[aria-hidden="false"] .qsm-popup__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.qsm-popup-slide[aria-hidden="false"] .qsm-popup__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.qsm-popup-slide[aria-hidden="true"] .qsm-popup__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.qsm-popup-slide[aria-hidden="true"] .qsm-popup__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.qsm-popup-slide .qsm-popup__container,
.qsm-popup-slide .qsm-popup__overlay {
    will-change: transform;
}

/**
* Shortcode accordion
*/
.sc-opener{
    position: relative;
    font-size: 14px !important;
    margin-bottom: 10px;
    cursor: pointer;
}
.sc-opener span.dashicons{
    position: relative;
    top: 2px;
    margin-right: 5px;
}
.sc-content{
    display: none;
}
.quiz-preview-link{
    margin-left: 10px;
    position: relative;
    top: 3px;
}

#show-advanced-option{
    font-size: 16px;
    cursor: pointer;
    color: #0073aa;
    margin-bottom: 15px;
}

.remove-ads-adv-link{
    text-align: center;
}

.remove-ads-adv-link a{
    background: #1DD969;
    text-align: center;
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.help-decide a.remove-adv-button{
    background: #1DD969;
    text-align: center;
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-left: 10px;
}

h3.addon_category_name {
    width: 100%;
    background: #d7d1d1;
    padding: 15px;
}
/*Design of new radio taggle*/
.buttonset.ui-buttonset .ui-button.ui-state-active {
    background: #E21130 none repeat scroll 0 0;
    border-color: #E21130 !important;
}
.buttonset.ui-buttonset .ui-button.ui-state-active span.ui-button-text{
    color: #fff !important;
}
.buttonset.ui-buttonset.green .ui-state-active {
    background: #44c767 none repeat scroll 0 0;
    border-color: #44c767 !important;
}
.buttonset.ui-buttonset .ui-button.ui-state-active.ui-corner-left {
    background: #44c767 none repeat scroll 0 0;
    border-color: #44c767 !important;
}
.buttonset.ui-buttonset label {
    background: #fff;
    border: 1px solid #B6B6B6;
    margin-right: -5px !important;
}
.buttonset.ui-buttonset label span.ui-button-text{
    color: #727272;
    font-size: 12px;
    height: 35px;
    line-height: 35px;
    min-width: 20px;
    padding: 0 10px;
}
.qsm_tab_content input[type="text"],
.qsm_tab_content input[type="number"],
.qsm_global_settings input[type="text"],
.qsm_global_settings input[type="number"],
.qsm_global_settings input[type="email"],
.qsm-addon-setting-wrap input[type="email"],
.qsm-addon-setting-wrap input[type="text"],
.qsm-addon-setting-wrap input[type="number"]{
    background: #ffffff none repeat scroll 0 0;
    border: 1px solid #dddddd;
    border-radius: 5px;
    box-shadow: none;
    color: #666666;
    /*padding: 10px 15px;*/
    width: auto;
    height: auto;    
    /*min-width: 230px;*/
    /*max-width:100%;*/
}
.qsm_tab_content textarea{
    background: #ffffff none repeat scroll 0 0;
    border: 1px solid #dddddd;
    border-radius: 5px;
    box-shadow: none;
    color: #666666;
    padding: 10px 15px;
    width: auto;
    height: auto;
}
.global-sub-text{
    margin-left: 15px;
}
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
@media screen and (max-width: 767px){
    .qsm-quiz-row td:nth-of-type(2n){
        display: none;
    }
    .qsm-quiz-page-wrapper thead th:nth-of-type(2n),
    .qsm-quiz-page-wrapper tfoot th:nth-of-type(2n),
    .qsm-quiz-page-wrapper-with-ads thead th:nth-of-type(2n),
    .qsm-quiz-page-wrapper-with-ads tfoot th:nth-of-type(2n){
        display: none;
    }
    .qsm-quiz-page-wrapper .row-actions{
        display: inline-block !important;
    }
    .qsm-quiz-page-wrapper p.search-box {
        bottom: -30px;
    }
    .qsm-popup__container{
        min-width: auto;
        max-width: 100%;
    }
    #show-advanced-option {
        display: block;
        width: 100%;
        float: left;
    }
    .contact-form-label {        
        display: inline-block;
    }
    .template_variable{
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
        word-break: break-word;
    }
    .qsm_tab_content .form-table input[type=radio]{
        top: 6px;
        margin-bottom: 8px;
    }
    .result-page-wrapper form{
        overflow: scroll;
        width: 100%;
    }
    p.search-box{
        bottom: -30px;
    }
    .quizzes-surveys_page_qsm_quiz_help .hndle{
        padding-left: 15px;
        padding-bottom: 15px;
    }
}