body {
    padding-top: 180px;
}
body {
    box-sizing: border-box;
    min-width: 320px;
    background-color: rgb(240,240,240);
    font-family: Raleway, sans-serif;
    font-weight: 500;
    font-size: 14px;
    overflow-x: hidden;
    padding-top: 75px;

    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    
}
a, body {
    color: #1D1717;
}


nav {
    padding: 10px 0;
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 22px;
    /*Tady nahod pruhlednost pripadne*/
    background-color: rgba(245,245,245, 1);
    z-index: 10;
    transition: all .3s ease;
}

html:not(.nav-open) nav.smaller {
    /*padding-bottom: 41px;*/
}
html:not(.nav-open) nav.smaller {
    padding: 5px 0;
    padding-bottom: 5px;
}
html:not(.nav-open) nav.smaller {

    padding: 5px 0;
    font-size: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
    background-color: rgb(245,245,245);

}
.page, .select {
    overflow: hidden;
}

/* Spolecne pro vsechny stranky */
div.phheader{
    width:100%;
}
div.content {
    min-width: 1160px;
    width: 80%;
    height: 2048px;
    margin: 0 auto;
    margin-top: 40px;
    background-color: white; 
    margin-bottom: 30px;
}

/*Menu*/
nav ul {
    float: left;
    margin: 0;
    margin-top: 15px;
    /*margin-left: 65%;*/
    padding: 0;
    margin-left: 10%;
    list-style-type: none;
    background-color: rgba(245,245,245,0.0);
    position: relative;
}

nav ul li {
    display: table-cell;
    background-color: rgba(245,245,245,0.0);
    /*display: inline-block;*/
}

nav ul li a {
    color: #292929;
    text-decoration: none;
    padding: 25px;
    display: block;
    background-color: rgba(245,245,245,0.0);
    transition: all .3s ease-in-out;
}
nav ul li a:hover,
nav ul li a:focus {
    background: rgba(230, 230, 230, 0.9);
}

nav ul li:hover {
    background: lightgray;
}

nav ul ul {
    margin-top: 0px;
    margin-left: 0px;
    position: absolute;
    min-width: 200px;
    background: lightgray;
    display: none;
}

nav ul ul li {
    display: block;
    background-color: rgba(245,245,245,1);
}

nav ul li:hover ul{
    display: block;
}


ul li i{
    color: #292929;
    float: right;
    padding-left: 20px;
}
.fa-caret-down{
    color: #292929;
    float: right;
    padding-left: 20px;
    padding-top: 3px;
}

nav div.hamburger {
    background: lightgray;
    color: #292929;
    
    padding: 0.6em;
    cursor: pointer;
    display: none;
}

@media(max-width: 768px) {
    nav div.hamburger {
        display: block;
    }

    nav {
        padding: 10px 0;
        font-size: 20px;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
        
        background-color: rgba(245,245,245, 1);
    }

    nav ul {
        margin-left: 0;
        display: none;
        position: static;
        background: rgb(245,245,245, 1);;
    }

    nav ul li {
        display: block;
    }

    nav ul li a {
        font-size: 15px;
        color: #292929;
        text-decoration: none;
        padding: 15px;
    }

    nav ul ul {
        margin-left: 0;
        position: static;
        background: rgb(245,245,245, 1);;
        /*rgb(245,245,245);*/
    }

}

/*MENU Logo*/
div.rmdlogo {
    background-image: url("{$basePath}/../../../assets/upload/cropped-logo_rm-300x108.png");
    background-size: 80%; 
    float:right;
    margin-right: 150px;
    margin-top: 10px;
    background-repeat: no-repeat;  
    width: 308px;
    height: 108px;
}

div.rmdlogorm {
    width: 308px;
    height: 118px;
}


/* FOOTER */
footer{
    background-color: rgb(39,41,45);
}
div.footer {
    background-color: rgb(39,41,45); 
    width: 100%;
    /*min-width: 1170px;*/
    color: rgb(162,162,162);
}
div.footer div div.footer-phone{
    width:31%;
    float: left;
    background-color: rgb(39,41,45);
    /*border: 1px solid black;*/    
}
div.footer div div.footer-fb{
    width:31%;
    margin-left: 5\0px;
    float: left;
    background-color: rgb(39,41,45);
    /*border: 1px solid black;*/    
}
div.footer div div#footerinfo{
    width: unset;
    width: 31%;
    margin-right: 0px;
    margin-left: 0px;
    margin-top: 50px;
    float: left;
    background-color: rgb(39,41,45);
    /*border: 1px solid black;*/ 
}
div.underline{
    height: 60px;
    clear: both;
    color: rgb(162,162,162);
}
hr {
    display: block;
    margin-left: 75px;
    margin-right: 10%;
    height: 3px;
    border: 0; 
    border-top: 3px solid rgb(55,57,74);
    padding: 0;
}
.un1{
    font-style: italic;
    margin-left: 75px;
}
.un2{
    float: right;
    margin-right: 10%;
}
.un2 a {
    text-decoration: none;
    color: rgb(121,110,95);
}
div.underline div.scrollup {
    position: absolute;
    right: 10px;
    margin-top: -10px;
    margin-right: 10px;
    width: 45px; 
    height: 45px;
    background-color: rgb(185, 185, 185);
    padding-left:15px;      
}
div.underline div.scrollup:hover {
    cursor: hand;
    cursor: pointer;
    opacity: .9;
}
div.footer-phone{
    width: 27%;
    padding-left: 75px;
    min-width: 385px;
    height: 440px;    
}
div.footer-info{
    width: 27%;
    min-width: 385px;
    height: 440px;
}
div.footer-fb{
    float: left;
    min-width: 385px;
    height: 440px;
}
div.footer-phone img{
    margin-top: 50px; 
}
div.footer div span.tit{
    display: inline-block;
    margin-top: 40px;
    margin-bottom: 5px;
    margin-left: 20px;
    font-size: 22px;
    font-weight: bold;
}

div.footer div span.con{
    display: inline-block;
    margin-bottom: 5px;
    margin-left: 20px;
    font-size: 18px;
}

div.footer div span.cone{
    display: inline-block;
    margin-bottom: 5px;
    margin-left: 20px;
    font-size: 28px;
    font-weight: bold;
}
div.fb-page{
    margin-left: 20px;
    margin-top: 10px;
    
}

/* NEWS included */
div.news {
    float: right;
    margin-right: 100px;
    height: 100%;
    width: 400px;
    background-color: rgb(232,232,232);
    color: rgb(119,133,159);
}

h3.list-heading {
    color: rgb(93,93,93);
    margin-left: 40px;
    margin-top: 40px;
}
div.news ul {
    display: block;
    list-style-type: none;
    margin-bottom: 40px;
}
div.news ul li{
    padding: 5px 0px 5px 0px;
    font-size: 18px;
}
div.news ul li a{
    text-decoration: none;
}
div.news ul li a:hover{
    text-decoration: none;
    color: rgb(93,93,93);
}

div.news hr {
    display: block;
    margin-left: 0px;
    margin-right: 40px;
    height: 3px;
    border: 0; 
    border-top: 1px solid rgb(93,93,93);
    padding: 0;
}


/* Contact presenter */
/* Contact */
div#contcontent{
    height: 950px;
}
div#contact {
    float: left;
    margin-left: 50px;
    margin-right: 30px;
    width:50%;
}
div#contact h3 {
    color: rgb(93,93,93);
}
div#contact h1 {
    margin-top: 40px;
    color: rgb(120,120,120);
}
div#contact div.merge {
    background-color: red;
}
div#contact div div{
    padding-left: 30px; 
    color: white;     
}
div#contact div div ul{
    list-style-type: none;  
    margin-left: -20px; 
    padding-bottom: 10px;   
}
div#contact div div ul li{ 
    margin-left: -20px;    
    padding-bottom: 10px;
}
div.conTit{
    background-color: rgb(120,120,120);
    font-size: 18px;
    padding: 10px 0px 10px 30px; 
}
div.conLi{
    font-size: 16px;
}

/* Email form */

div.mailForm{
    background-color: rgb(240,240,240);
    border: 1px solid rgb(185,185,185);
    height: 650px;
}

div.mailForm form {
    margin-top: 20px;
}
div.mailForm label {
    font-size: 16px;
    font-weight: bold;
    color: rgb(93,93,93); 
    margin-left: 30px;
    margin-top: 20px;
}
div.mailForm input {
    font-size: 16px; 
    margin-left: 30px;
    margin-top: 5px;
    width: 90%;
    margin-right: 20px;
    margin-bottom: 20px;
}
div.mailForm textarea{
    font-size: 16px; 
    margin-left: 30px;
    margin-top: 5px;
    width: 90%;
    margin-right: 20px;
    margin-bottom: 20px;
    height: 200px;
    resize: none;
}
input.mailSender{
    width: 100px !important;
    height: 35px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(93,93,93);
}
/* Map */
div.mapouter{
    width: 100%;
    margin-left: -30px;
}


/* Gallery */
#gallcontent{
    height: 6024px;
}

div#gallery {
    float: left;
    margin-left: 50px;
    margin-right: 30px;
    margin-bottom: 50px;
    width:50%;
}
div#gallery h3 {
    color: rgb(93,93,93);
}
div#gallery h1 {
    margin-top: 40px;
    color: rgb(120,120,120);
}

#blackout{
    height: 100%;
    width:100%;
    position:absolute;
    background-color: rgba(0, 0, 0, .5);
    display: none;
    z-index: 20;
}
.modal{
    margin: 100px auto;
}
#close{
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* MobileServis presenter*/
#mobservcontent {
    height: 1550px;
}

/* RallyServis */
#rallycontent{
    height: 400px;
}

/* Motorservis */
#motorcontent{
    height: 400px;
}

/* Diagnostics */
#diagcontent{
    height: 1300px;
}

/* About */
#aboutcontent{
    height: 700px;
}

/* Ultraclean */
#ultracontent{
    height: 400px;
}

/* Ultraclean */
#newwebcontent{
    height: 400px;
}

/* Japanesecars */
#japancontent{
    height: 400px;
}

/* Transmissions*/
#rallycontent{
    height: 420px;
}

/* Seephotos */
#seegalcontent{
    height: 400px;
}
#seegalcontent article a{
    text-decoration: none;
}
#seegalcontent article a:hover{
    text-decoration: none;
    color: gold;
}

/*Homepage presenter*/
div.emptyspace{
    height: 670px;
}
div#homecontent{
    width: 100%;
    background-color: white;
}
div.k_center{
    margin: 0 auto;
    width: 92%;
    display: table;
}
div.hblock{
    position: relative;
    float: left;
    min-width: 200px;
    width: 18%;
    margin: 70px 20px 20px 0; 
    overflow: auto;
    display: table-cell;
    text-align: justify;
}
.fa-wrench, .fa-flag, .fa-laptop, .fa-cog, .fa-cogs{
    font-size: 40px;
}
.clear {
    clear: both;
}
div.aboutus{
    font-family: Raleway, sans-serif;
    margin-top: 50px;
    width: 100%;
    height: 570px;
    background: radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("{$basePath}/../../../assets/upload/Homepage/pp2.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
div.aboutus div{
    color: white;
    padding-top: 40px;
    width: 75%;
    margin: 0 auto;
}
div.aboutus p{
    text-align: justify;
}

div.partners{
    width: 100%;
    height: 420px;
    background-color: rgb(246,246,246); 
}
div.partners div{

    color: #585858;
    font-family: Raleway, sans-serif;
    padding-top: 40px;
    width: 75%;
    margin: 0 auto;
}
div.partners table{
    margin: 0 auto;
}

div.homenews {
    width: 100%;
    margin-bottom: 50px;
    background-color: white;
}
div.homenews div{
    color: #585858;
    text-align: center;
    font-family: Raleway, sans-serif;
    padding-top: 40px;
    width: 75%;
    margin: 0 auto;
}
div.homenewsslider{
    width: 100%;
    height: 340px;
    background-color: white;
    /*min-width: 1400px;*/
    width:100%;
}
div.homenewsslider div{
    position: relative;
    float:left;
    font-family: Raleway, sans-serif;
    width: 25%;
    height: 400px;
}


div.c1{
    background: url("{$basePath}/../../../assets/upload/Homepage/slides/IMG_20180212_084407_1.jpg") no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-width: 300px;
}
div.visible{
    margin-left: 20px;
    margin-top: 310px;
    font-size: 20px;
    font-weight: bold;
    color:white;
    min-width: 300px;
}
div.c2{

    background: url("{$basePath}/../../../assets/upload/Homepage/slides/novinka4_1.jpg") no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-width: 300px;
}
div.c3{

    background: url("{$basePath}/../../../assets/upload/Homepage/slides/IMG_20180212_084833.jpg") no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-width: 300px;
}
div.c4{

    background: url("{$basePath}/../../../assets/upload/Homepage/slides/IMG_20181212_114915_1.jpg") no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-width: 300px;
}

 .hover-content, .hover-content2, .hover-content3, .hover-content4 {
    display:block;
    color: white;
    background-color: rgba(0,0,0,0.5);
    display:none;
}

.hover-content h3, .hover-content2 h3, .hover-content3 h3, .hover-content4 h3{
    margin-left: 20px;
    margin-top: 60px;
    text-transform: uppercase;
}

.hover-content span, .hover-content2 span, .hover-content3 span, .hover-content4 span{
    margin-left: 20px;
    position: absolute;
    bottom: 50px;
    display: block;
}

.hover-content p, .hover-content2 p, .hover-content3 p, .hover-content4 p{
    margin-left: 20px;
    margin-top: 50px;
    display: block;
}