/* Styles for featureset template.

   developer:   rmiske,charlest
   requires:    /common/framework/css/framework.en.css
   ========================================================================== */

/* ==========================================================================
   setup the environment
   ========================================================================== */
:root {
    /*greys*/
    --grey-22: #222222;
    --grey-32: #323232;
    --grey-4b: #4b4b4b;
    --grey-53: #535353;
    --grey-80: #808080;
    --grey-a6: #a6a6a6;
    --grey-db: #dbdbdb;
    --grey-f2: #f2f2f2;

    /*blues*/
    --darkest-blue: #1c2a40;
    --dark-blue: #364660;
    --hero-blue: #4e70a7;
    --light-blue: #8e9fbc;
    --lightest-blue:#bed4f5;

    /*links*/
    --link-base: #227599;
    --link-hover: #eb661e;

    /*etc*/
    --main-red: #dd1100;
    --main-orange: #ff7700;

    /*measurements*/
    --wrapper-h-pad: 2rem;
    --mobile-img-pad-bot: 1rem;
    --three-col-max-width: 298px;
    --four-col-max-width: 262px;
    --ref-img-border: 10px;
    --ref-bars-height: 22px;
    --ref-words-width: 135%;
    --rsrc-max-width: 318px;
}

main {
    color: var(--grey-53);
    font-family: 'Source Sans Pro', Arial, sans-serif;
}
main img, main video { height: auto; max-width: 100%; }


/*section*/
section, main header {
    padding: 0 var(--wrapper-h-pad);
    width: 100%;
}
div[id$="-content"] { 
    margin: 0 auto;
    max-width: 72.5rem;
    padding-bottom: 3.75rem;
    padding-top: 3.75rem;
    width: 100%;
}
div[id$="-content"].narrow { max-width: 68.75rem; }
.feature div[id$="-content"] { border-top: 1px solid var(--grey-db); }


/*grids*/
.feature-grid {
    align-items: center;
    display: grid;
    grid-gap: 0 80px;
    grid-template-columns: 1fr 1fr;
}
.feature-grid:first-of-type {
    grid-gap: 0 40px;
} 
.feature-grid img, .feature-grid video { margin: 0 auto;}
.feature-grid .feature-right { font-size: 0; text-align: center;}
.feature-grid.img-on-left .feature-left { order: 2; }
.feature-grid.img-on-left .feature-right { order: 1; }
.feature-grid.img-stroke img, .feature-grid.img-stroke video { border: 2px solid var(--grey-db); }
.feature-grid.img-gradient img, .feature-grid.img-gradient video { 
    background: linear-gradient(0deg, #ebebeb 0%, #fbfbfb 100%);
    padding: 0.625rem; 
}
.feature-grid .what-is-video {background: url("../img/slide1-off.png") no-repeat; background-size: contain;}
.feature-grid .what-is-video:hover {background: url("../img/slide1-hover.png") no-repeat; background-size: contain;}
.feature-grid .why-use-video {background: url("../img/slide2-off.png") no-repeat; background-size: contain;}
.feature-grid .why-use-video:hover {background: url("../img/slide2-hover.png") no-repeat; background-size: contain;}
.feature-grid .how-to-use-video {background: url("../img/slide3-off.png") no-repeat; background-size: contain; border: 1px solid #dbdbdb;}
.feature-grid .how-to-use-video:hover {background: url("../img/slide3-hover.png") no-repeat; background-size: contain;}

body::after{
   position:absolute; width:0; height:0; overflow:hidden; z-index:-1; /* hide images */
   content:url(../img/slide1-hover.png) url(../img/slide2-hover.png) url(../img/slide3-hover.png);   /* load images */
}

/*text*/
main h2 {
    color: var(--main-red);
    font-size: 3.125rem;
    letter-spacing: -0.06rem;
    line-height: 1;
    margin: .25rem 0 0 0;
	padding-bottom: 2.5rem;
}

main h3 {
    color: var(--gray-22);
    font-size: 2.25rem;
    padding-bottom: 1.5rem;
}
div[id$="-content"] > h3 { text-align: center; }

main h3 {
    font-size: 1.875rem;
    line-height: 1.15;
}

main p {
    font-size: 1.25rem;
    padding-bottom: 0.75rem; 
}

main p.large {
    font-size: 1.625rem;
    color: #ed6600;
    font-weight: 300;	
}

div[id$="-content"].feature-grid p { padding-bottom: 1.375rem; }

main li {
    font-size: 1.1rem;
    line-height: 1.2;
    padding-bottom: 0.625rem;
}
/*main li:last-child { padding-bottom: 0; }*/
main a { color: #e65c00; }
main a:hover { color: var(--main-orange); }

/* top-links */

#crosslink-content {
	padding-top: 2rem;
	padding-bottom: 0.25rem;
	color: #535353;
    font-size: 1.13rem;	
}

#crosslink-content span {
	float: right;
    font-size: 1rem;
    color: #808080;	
}

#crosslink-content span.pipe {
    color: #dbdbdb;
    margin: 0 0.2rem;
    float: none;	
}





/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */
@media (max-width: 1200px) {
    /*setup*/
    :root {
        /*etc*/
        --wrapper-h-pad: 3rem; /*45px*/
        --ref-img-border: 5px;
    }
	
	#sm4-section-header .width {
	    padding: 0 1rem;	
	}
	main h2 {
	    padding-bottom: .8rem;
    }
	main p.large {
	    padding-bottom: 2rem;	
	}
	.feature-grid:first-of-type {
        grid-gap: 0 24px;
    }
	.feature-grid ul {
	    max-width: 550px;
        margin: 0 auto;	
	}
	#complete-modelica-tool .feature-grid ul {
	    max-width: 458px;
	}
	#system-modeler-and-modelica .feature-grid ul {
	    max-width: 484px;
	}
}


@media (max-width: 900px) {
    /*setup*/
    :root {
        /*etc*/
        --wrapper-h-pad: 3.2rem; /*~45px*/
        --four-col-max-width: 210px;
        --rsrc-max-width: 320px;
    }
	div[id$="-content"] { 
        padding-bottom: 2rem;
        padding-top: 2rem;
    }
    /*div[id$="-content"].narrow { max-width: 90%; }*/
    .feature-grid { grid-template-columns: 1fr !important; }
    .feature-grid img, .feature-grid video { margin-bottom: 1.75rem; }
	main h2 {
	    padding-bottom: 1.8rem;
    }
	main p.large {
	    padding-bottom: 1.5rem;	
	}
	main p {
	    padding-bottom: 1.5rem;	
	}
}


@media (max-width: 600px) {
    /*setup*/
    :root {
        /*etc*/
        --wrapper-h-pad: 1rem; /*line up with global menu*/
        --four-col-max-width: 144px;
        --rsrc-max-width: 300px;
    }
    div[id$="-content"].narrow { max-width: 450px; }
    section.feature div[id$="-content"] {
        padding-left: var(--wrapper-h-pad);
        padding-right: var(--wrapper-h-pad);
    }
    /* main h2 { font-size: 36px; line-height: 1; } */
    main li { font-size: 1.24rem; line-height: 1.25; }
    .button { 
        border-radius: 0.3rem;
        font-size: 1.24rem;
        padding: 0.9rem 1.7rem;
    }
		#crosslink-content {
	    padding: 0.75rem 0;
        text-align: center;
        font-size: 1.24rem;		
    }

    #crosslink-content a {
        color: #222;
        font-size: 1.24rem;			
    }
	#crosslink-content a:hover {
        color: #ff7700;	
    }

    #crosslink-content span.page {
        color: #e65c00;
        font-size: 1.24rem;	
        float: none;		
    }

    #crosslink-content span.pipe {
        font-size: 1.24rem;	
    }
    
}


@media (max-width: 320px) {}


@media print {}