/**
 * Version details
 *
 * @package    theme
 * @subpackage COME
 * @copyright  2018 Centrum Otwartej i Multimedialnej Edukacji (COME)
 * @author     Marcin Golebiowski
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 *
 */


.region-content-box > .section       { padding: 0; }
.region-content-box > .section > .region-content > div[role='main'] > br:last-child { display: none; }
 
/**** Flex header ************************************************************/

body.hdrAlt .region-header           { height: 130px; background-color: transparent; }
.region-banner                       { padding-top: 130px; } /* = height of .region-header.altered */

#logo-hd-1, #logo-hd-2, 
#logo-hd-3, #logo-hd-4          { transition: all 400ms ease 0ms; }

body.hdrAlt #logo-hd-1, 
body.hdrAlt #logo-hd-2          { opacity: 0.0; visibility: hidden;  top: 130px; }
body.hdrAlt #logo-hd-3, 
body.hdrAlt #logo-hd-4          { opacity: 1.0; visibility: visible; top: 35px; }

body.navAlt .region-navigation                                  { position: relative; top: 400px ; } /* = height of .region-banner */
body.navAlt .region-navigation + .region-banner                 { position: relative; top: -35px; } /* = height of .region-navigation */
            .region-navigation + .region-banner + .region-alert { padding-top: 35px; } /* = threshold of .region-navigtion + height of .region-header + height of .region-navigation - height of .region-banner */
body.navAlt .region-navigation + .region-banner + .region-alert { padding-top:  0;   } 


/**** CONTENT ADD-ONS ********************************************************/

/* Cztegories box */

.catBox                              { width: 50%; float: left; text-align: center; }

.catBox > a 
{ 
	display: inline-block; width: 290px; height: 218px; margin: 15px; box-shadow: -7px 7px 7px 0px #C9C9C9; 
	background: #F8F9FA url('/theme/come/pix/fp/cat_bg.png') left top repeat scroll; 
}

.catBox > a > p 
{
	margin-bottom: 0; padding-top: 59%; height: 100%; text-align: center; 
	background: transparent url('/theme/come/pix/fp/cat.png') center 35% no-repeat scroll;
}

.catBox > a:hover > p 
{
	background-color: rgba(255,112,0,0.15);
}

.catBox > a:hover > p > span 
{
	padding: 0.5em 1em; 
}

/* Lift top regions level up */

.region-header                       { z-index: 3; }
.region-navigation                   { z-index: 2; }

/* Banner */

.ssBanner .ssbCtrlGoto               { display: none; }

.ssBanner > ul > li:nth-child(2)     { text-align: center !important; }
.ssBanner > ul > li:nth-child(2) > a { text-shadow: none; text-transform: uppercase; position: relative; top: 415px; }


/**** OPTIONAL : Transitions *************************************************/

.region-header                       { transition: background-color 350ms ease 0ms, height           500ms ease 0ms; }
