* {
  box-sizing: border-box;
}
body {
    font-family: Helvetica, Arial, Sans-Serif;
    background-image: url(images/pozadi.png);
    background-repeat: repeat;
    height: 100%;
    margin: 0;
}

/*Rozdělený index*/
.cela_stranka {
    position: relative;
    //min-height: 100%;
    overflow: hidden;    
} 
.main {
    padding-top: 30px;
    width: 980px;
    margin-left: auto;
    margin-right: auto;
    //width: 100%; /* The width is 60%, by default */
    //max-width: 1095px;
    //border: 1px solid black;
    //background-color: rgb(255,255,255);
    //border-radius: 10px 10px 10px 10px;
    //box-shadow: 0 2px 6px rgb(100 100 100 / 30%);
    min-height: 470px;
    min-width: 358px;
}
.main-cara {
    border-left: 4px solid #ed2e29;
    height: 70px;
    max-width: 100%;
}
.main-nadpis {
    padding-left: 30px;
    padding-top: 15px;
    color: #a13a3b;
    font-size: 40px;
}
.main-text {
    line-height: 1.7;
    font-family: Raleway Flex, Raleway-Fallback, sans-serif;
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.main-text-sluzby {
    line-height: 1.7;
    font-family: Raleway Flex, Raleway-Fallback, sans-serif;
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    //max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    //overflow: hidden;
    display: flex;
    align-items: center;
}
.main-text-sluzby-levy {
    //position: relative;
    //float: left;
    width: 35%;
    text-align: right;
    //border: 1px solid black;
}
.main-text-sluzby-pravy {
    //position: relative;
    padding: 20px;
    //float: left;
    margin-left: 20px;
    width: 60%;
    //border: 1px solid black;
    text-align: left;
}
.main-text-img {
    max-width: 200px;
}
.main-text2 {
    line-height: 1.7;
    font-family: Raleway Flex, Raleway-Fallback, sans-serif;
    text-align: center;
    font-size: 17px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgb(182,182,182);
}
.main-podnadpis {
    line-height: 1.7;
    font-family: Raleway Flex, Raleway-Fallback, sans-serif;
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #bd5c27;
}
.main-odkaz:link {
    color: #ed2e29;
}
.main-odkaz:visited {
    color: #ed2e29;
}
.main-odkaz:hover {
    color: #ed2e29;
}
.main-odkaz:active {
    color: #ed2e29;
}

/* Use a media query to add a break point at 800px: */
@media screen and (max-width: 950px) {
    .main, .right, .odkazy {
        width: 100%; /* The width is 100%, when the viewport is 800px or smaller */
    }
    .main {
        border-radius: 10px 10px 0px 0px;
        margin-bottom: 20px;
        min-height: 100px;
    }
    .index-footer {
        position: relative;
        left: auto;
        height: auto;
        bottom: auto;
        //margin-bottom: -40px;
        width: 100%;
        min-height: 55px;
    }
    ul {
        padding-right: 0%;
    }
    .index-footer-tvurce {
        font-size: 14px;
    }
    .ordinacni_doba-objednani {
        font-size: 14px;
    }
    li a {
        display: block;
        color: rgb(218,218,218);
        text-align: center;
        margin: auto;
        padding: 7px 16px;
        text-decoration: none;
    }
}

@media screen and (max-width: 650px) {
    .menu-text {
        padding-top: 300px;
        padding-left: 50%;
    }
}

@media screen and (max-width: 500px) {
    .main-text-sluzby {
        display: grid;
        padding-top: 10px;
    }
    .menu-text {
        font-size: 18px;
    }
    .main-nadpis {
        font-size: 30px;
    }
}

/*hlavička - index*/
.index-hlavicka {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: rgb(64,64,64);
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}
h3 {
    color: rgb(218,218,218);
}
.index-jmeno {
    font-size: 28px;
    font-weight: bold;
}

.hr-ordinacni-doba {
    //width: 265px;
    width: 100%;
    border: 1px solid rgb(141,226,255);
    margin: 15px 0px 15px 0px;
}

/*Menu*/
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: rgba(0,0,0, 0.8);
    color: rgb(218,218,218);
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    width: 100%;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 5%;
}
ul.zahlavi-img {
    background-image: url(images/elektrika-kabel-novy2.png);
    min-width: 100%;
    background-size: cover;
    height: 400px;
    padding-left: 30px;
}
li {
    float: left;
}
li a {
    display: block;
    color: rgb(218,218,218);
    text-align: center;
    margin: auto;
    padding: 14px 16px;
    text-decoration: none;
}
li a:hover:not(.active) {
    //background-color: rgba(255,255,255, 0.8);
    color: rgba(237,46,41, 0.8);
    transition: 0.3s;
}
li a.active {
    //background-color: rgba(255,255,255, 0.8);
    color: rgba(237,46,41, 0.8);
    //height: 17px;
}
.menu-text {
    padding-top: 320px;
    padding-left: 60%;
    color: #ed2e29;
    font-size: 20px;
}
.odkazy {
    width: 100%;
    //width: 980px;
    margin: 0 auto;
    padding-bottom: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/*Index text*/
.index-text {
    font-size: 18px;
    padding-bottom: 15px;
    display: inline-block;
}

/*Ordinační doba*/
.ordinacni_doba-nadpis {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 10px;
    display: inline-block;
}
.ordinacni_doba-adresa {
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    width: 90px;
}
.ordinacni_doba-tel_cislo {
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    width: 90px;
}
.ordinacni_doba-dny {
    font-weight: bold;
    width: 60px;
}

/*patička - index*/
.index-footer {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    //background-color: rgba(119,218,214, 0.8);
    //background-color: rgba(141,226,255, 0.8);
    background-image: url(images/footer.png);
    color: rgb(218,218,218);
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 55px;
    //margin-left: -10px;
    line-height: 1.5;
}
.index-footer a:link {
    color: rgb(120,120,120);
}
.index-footer a:visited {
  color: rgb(120,120,120);
}
.index-footer a:hover {
  color: rgb(0,191,255);
}
hr {
    border-top: 1px solid rgb(182,182,182);
    margin-left: 100px;
    margin-right: 100px;
}
.main-podnadpis2 {
    line-height: 1.7;
    font-family: Raleway Flex, Raleway-Fallback, sans-serif;
    text-align: center;
    font-size: 23px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgb(198,198,198);
}
.main-podnadpis3 {
    line-height: 1.7;
    font-family: Raleway Flex, Raleway-Fallback, sans-serif;
    text-align: center;
    font-size: 30px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #a13a3b;
}
.footer-input-zprava {
    padding: 8px 15px;
    width: 350px;
    min-height: 110px; 
}
.footer-input-email {
    padding: 8px 15px;
    width: 350px;
}
.submit {
    background-color: rgb(162,162,162); /* Green */
    border: none;
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 14px 2px;
    cursor: pointer;
}

/*aktuality*/
.aktuality-nadpis {
    font-size: 24px;
    color: rgb(50,206,255);
    padding-bottom: 20px;
    display: inline-block;
    //padding: 20px 20px 20px 20px; 
}
.aktuality-text {
    font-size: 18px;
    padding-bottom: 15px;
    display: inline-block;
}
.aktuality-datum {
    font-size: 13px;
    color: grey;
}
.aktuality-hr {
    border: 1px solid rgb(141,226,255);
    margin: 20px 0px 50px 0px;
}
