/* 
 * Microsite Casopisy zdarma
 * Ondrej Kucera
 */

#free-magazines {
    max-width: 980px;
    padding: 20px 50px 0;
    background: #fff;
    font-size: 0;
}

#free-magazines div,
#free-magazines p,
#free-magazines span,
#free-magazines ul {
    font-size: 17px;
    color: #444;
    line-height: 1.2em;
}

#h1c {
    max-width: 980px;
}

#h1c h1 {
    max-width: 980px;
    padding: 0 50px;
    text-align: center;
}


#free-magazines h2,
#free-magazines h3,
#free-magazines h4 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    line-height: 1.2em;
    clear: none;
}

#free-magazines h2 {
    color: #2f8dcd;
    font-size: 28px;
    padding: 0;
    margin: 30px 0 10px;
}

#free-magazines ul {
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

#free-magazines ul > li {
    line-height: 1.2em;
    font-size: 16px;
    padding: 3px 20px;
    background: url('images/green-bullet.png') no-repeat 5px 6px transparent;
}

#free-magazines a {
    outline: none;
    color: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-shadow: none;
}

#free-magazines a:hover {
    text-decoration: none;
    color: #2f8dcd;
}

#free-magazines p {
    margin: 0 !important;
    margin-top: 7px !important;
}

#free-magazines img {
    display: block;
    max-width: 100%;
}

#free-magazines .centered {
    text-align: center;
}

#free-magazines .tight {
    padding: 0 180px;
}

#free-magazines .bg-colored {
    background-color: whitesmoke;
    margin: 20px -50px 0;
    padding: 5px 0 30px;
    border-top: 1px solid gainsboro;
}

#free-magazines .dwn-apps {
    margin-top: 20px;
}

#free-magazines .dwn-apps > a {
    display: inline-block;
}

#free-magazines .dwn-apps > a > img {
    width: 150px;
}


#free-magazines .note {
   display: block; 
   font-size: 13px;
}

#free-magazines .clearfix:after {
   content: " ";
   display: block; 
   height: 0; 
   clear: both;
}


/**** 
    **********************************
    MAGAZINEs
    **********************************
*****/

#free-magazines .magazines {
    margin: 0;
    font-size: 0;
}

#free-magazines .magazines > li {
   display: inline-block; 
   vertical-align: top;
   width: 25%;
   min-height: 300px;
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;   
   padding: 10px;
   text-align: center;
   background-image: none;
   margin-bottom: 5px;
}

#free-magazines .magazines > li > a {
    text-decoration: none;
    display: block;
    background: whitesmoke;
    border-bottom: 1px solid #cbcbcb; 
}

#free-magazines .magazines > li > a > img {
    margin: 0 auto 10px;
}

#free-magazines .magazines > li > a > .name,
#free-magazines .magazines > li > a > .more {
    display: block;
    padding: 0 10px 5px;
    font-size: 16px;
    color: #2f8dcd;
}

#free-magazines .magazines > li > a > .more {
    font-size: 14px;
    color: #444;
}

#free-magazines .magazines > li > a:hover .name,
#free-magazines .magazines > li > a:hover .more {
    color: #2f8dcd;
}



/**** 
    **********************************
    BUTTONs
    **********************************
*****/

#free-magazines .button {
    display: inline-block;  
    vertical-align: bottom;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    font-weight: normal;    
    margin: 10px 0;
    padding: 10px 20px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-decoration: none !important;
}

#free-magazines .button.tiny {
    font-weight: normal !important;
    font-size: 13px;
    padding: 7px 20px;
}

#free-magazines .button:hover {
    cursor: pointer;
}

#free-magazines .button:active{
}

#free-magazines .button.green {
    font-weight: bold;
    color: #fff;
    background: #91c71d;
    background: -moz-linear-gradient(top, #91c71d 0%, #76a411 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#91c71d), color-stop(100%,#76a411));
    background: -webkit-linear-gradient(top, #91c71d 0%,#76a411 100%);
    background: -o-linear-gradient(top, #91c71d 0%,#76a411 100%);
    background: -ms-linear-gradient(top, #91c71d 0%,#76a411 100%);
    background: linear-gradient(to bottom, #91c71d 0%,#76a411 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#91c71d', endColorstr='#76a411', GradientType=0); 
    -moz-box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.3);  
}

#free-magazines .button.green:not(.hoverless):hover {
    background: #8ac016;
    background: -moz-linear-gradient(top, #8ac016 0%, #69920f 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#8ac016), color-stop(100%,#69920f));
    background: -webkit-linear-gradient(top, #8ac016 0%,#69920f 100%);
    background: -o-linear-gradient(top, #8ac016 0%,#69920f 100%);
    background: -ms-linear-gradient(top, #8ac016 0%,#69920f 100%);
    background: linear-gradient(to bottom, #8ac016 0%,#69920f 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#8ac016', endColorstr='#69920f', GradientType=0);   
}

#free-magazines .button.grey {
    color: #000;
    background: #ececec;
    background: -moz-linear-gradient(top, #ffffff 0%, #ececec 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ececec));
    background: -webkit-linear-gradient(top, #ffffff 0%,#ececec 100%);
    background: -o-linear-gradient(top, #ffffff 0%,#ececec 100%);
    background: -ms-linear-gradient(top, #ffffff 0%,#ececec 100%);
    background: linear-gradient(to bottom, #ffffff 0%,#ececec 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ececec', GradientType=0); 
    border: 1px solid #d2d2d2;  
}

#free-magazines .button.grey:not(.hoverless):hover {
    background: #e5e5e5;
    background: -moz-linear-gradient(top, #f8f8f8 0%, #e5e5e5 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#e5e5e5));
    background: -webkit-linear-gradient(top, #f8f8f8 0%,#e5e5e5 100%);
    background: -o-linear-gradient(top, #f8f8f8 0%,#e5e5e5 100%);
    background: -ms-linear-gradient(top, #f8f8f8 0%,#e5e5e5 100%);
    background: linear-gradient(to bottom, #f8f8f8 0%,#e5e5e5 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8f8f8', endColorstr='#e5e5e5', GradientType=0); 
}

#free-magazines .button.blue {
    color: #fff;
    background: #389de2;
    background: -moz-linear-gradient(top, #389de2 0%, #2880bc 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#389de2), color-stop(100%,#2880bc));
    background: -webkit-linear-gradient(top, #389de2 0%,#2880bc 100%);
    background: -o-linear-gradient(top, #389de2 0%,#2880bc 100%);
    background: -ms-linear-gradient(top, #389de2 0%,#2880bc 100%);
    background: linear-gradient(to bottom, #389de2 0%,#2880bc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#389de2', endColorstr='#2880bc', GradientType=0); 
    -moz-box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.3); 
}

#free-magazines .button.blue:not(.hoverless):hover {
    background: #2374ac;
    background: -moz-linear-gradient(top, #3697d9 0%, #2374ac 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3697d9), color-stop(100%,#2374ac));
    background: -webkit-linear-gradient(top, #3697d9 0%,#2374ac 100%);
    background: -o-linear-gradient(top, #3697d9 0%,#2374ac 100%);
    background: -ms-linear-gradient(top, #3697d9 0%,#2374ac 100%);
    background: linear-gradient(to bottom, #3697d9 0%,#2374ac 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2374ac', endColorstr='#3697d9', GradientType=0); 
}


/**** 
    **********************************
    MOBILE
    **********************************
*****/

#content {
    padding: 10px 0 0;
}

#content .inner {
    margin: 0;
}

.inner #free-magazines {
    padding: 0 20px 20px;
}

.inner #h1c h1{
    padding: 0 10px;
}

.article {
    padding: 0;
}

.inner #free-magazines .bg-colored {
    margin: 20px -20px 0;
}

@media screen and (max-width: 700px) {  
    
    #free-magazines .magazines > li {
        width: 50%;  
    }
    
    #free-magazines .magazines > li > a {
        padding-top: 15px;
    }
    
}

@media screen and (max-width: 500px) {  
    
    #free-magazines .magazines > li {
        width: 100%;  
    }
    
    #free-magazines .tight {
        padding: 0 20px;
    }
    
}