/**
 * JCH Optimize - Performs several front-end optimizations for fast downloads
 *
 * @package   jchoptimize/core
 * @author    Samuel Marshall <samuel@jch-optimize.net>
 * @copyright Copyright (c) 2020 Samuel Marshall / JCH Optimize
 * @license   GNU/GPLv3, or later. See LICENSE file
 *
 * If LICENSE file missing, see <http://www.gnu.org/licenses/>.
 */

/** Icons **/


div.icon{

        text-align: center;
        margin-right: 12px;
        float: left;
        margin-bottom: 15px;
        font-size: 0.9em;
}

div.icon label{
        display: inline-block;
}

div.icon a {
        padding: 7px 5px 5px;
        background-color: white;
        background-position: -30px;
        display: block;
        float: left;
        height: 97px;
        width: 108px;
        color: #565656;
        vertical-align: middle;
        text-decoration: none;
/*        border: 1px solid #CCC;
        border-radius: 5px;
        transition-property: none;
        box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.1), inset 5px 5px 10px rgba(0, 0, 0, 0.05);*/
}

/*div.icon.enabled a:hover {
        background-position: 0;
        -webkit-border-bottom-left-radius: inherit;
        -moz-border-radius-bottomleft: inherit;
        border-bottom-left-radius: inherit;
        box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1), inset -5px -5px 10px rgba(0, 0, 0, 0.05);
        position: relative;
        z-index: 10;
}*/

div.icon.disabled a{
        pointer-events: none;
        text-decoration: none;
        color: #ccc;
}

div.icon.disabled a i#toggle:before{
        content:"(Pro only)";
        color:#999;
}

div.icon.enabled[class*="settings"] a i#toggle{
        color:crimson;
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
        -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
}

div.icon.enabled[class*="settings"] a i#toggle:before{
        content:"\f205";
}

div.icon.enabled[class*="settings"] a i#toggle.on{
        filter: none;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
}

div.icon.enabled[class*="settings"] a i#toggle.on:before{
        color:#60AF2C !important;
}

.container-icons{
        float: left;
}


/** Optimize Images **/

#optimize-log{
        border: 1px #CCC solid;
        list-style-type: none;
        padding: 10px;
        margin: 10px;
	overflow-y: auto;
	height:300px;
}

#optimize-log li{
        font-size: 11px;
}


#optimize-status{
	padding: 7px;
	font-size: 12px;
	font-style: italic;
}


.collapsible h3 span{
        margin-left: 10px;
}

.collapsible.collapse-open h3 span:before {
        content: "\f151"
}
.collapsible.collapse-close h3 span:before {
        content: "\f150"
}

#jform_pro_downloadid {
        min-width: 250px;
}

fieldset[id^=jform_staticfiles],
fieldset[id^=jform_pro_staticfiles],
fieldset[id^=jform_pro_http2_file_types]{
        padding:0;
        margin: 0;
        display: grid;
        width: 300px;
}

fieldset[id^=jform_staticfiles],
fieldset[id^=jform_pro_staticfiles]{
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

fieldset[id^=jform_pro_http2_file_types] {
        grid-template-columns: 1fr 1fr 1fr 1fr;
}


fieldset[id^=jform_staticfiles] ul,
fieldset[id^=jform_pro_staticfiles] ul,
fieldset[id^=jform_pro_http2_file_types] ul{
        margin: 0;
}

fieldset[id^=jform_staticfiles] ul li,
fieldset[id^=jform_pro_staticfiles] ul li,
fieldset[id^=jform_pro_http2_file_types] ul li{
        display:inline-table;
        width: 20%;
}

fieldset[id^=jform_staticfiles] label,
fieldset[id^=jform_pro_staticfiles] label,
fieldset[id^=jform_pro_http2_file_types] label{
        display:inline-table;
        width: 12%;
}

.form-horizontal .control-label .spacer hr {
        margin: 0 0 15px !important;
}

div.icons-container{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
}

figure.icon{
        position: relative;
        margin: 0 12px 15px 0;
        text-align: center;
}

figure.icon a {
        height: 110px;
        width: 120px;
        text-decoration: none;
        padding: 7px 5px 5px;
        background-color: #fafafa;
        line-height: 13px;
        box-sizing: content-box;
}

figure.icon img {
        display: block;
        margin: 0 auto 5px;
}

figure.icon span.fig-caption{
        word-break: break-word;
        width: 90%;
        line-height: 1em;
        display: inline-block;
        z-index: 100;
        pointer-events: all;
}

figure.icon i#toggle{
        display: inline-block;
        position: absolute;
        bottom: 15px;
        left: 60px;
}
figure.icon span#proonly-span {
        display: inline-block;
        position: absolute;
        bottom: 15px;
        left: 40px;
}

figure.icon.disabled.proonly a{
        pointer-events: none;
        cursor: default;
        background-color: #eaeaea;
}
figure.icon.enabled i#toggle:before, figure.icon.disabled i#toggle:before {
        content:"\f205";
}

figure.icon.disabled {
        opacity: 0.6;
}

figure.icon.disabled i#toggle{
        color: #ce3813;
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
        -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
}

figure.icon.enabled i#toggle{
        color: #60af2c;
}

figure .btn {
        display: inline-block;
        *display: inline;
        *zoom: 1;
        padding: 4px 12px;
        margin-bottom: 0;
        font-size: 13px;
        line-height: 18px;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
        background-color: #f3f3f3;
        color: #333;
        border: 1px solid #b3b3b3;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

figure .btn:hover, figure .btn:focus {
        background-color: #e6e6e6;
        text-decoration: none;
        text-shadow: none;
}