/*
Theme Name: 4Pastelky
Theme URI:
Author: KTStudio.cz
Author URI: http://www.ktstudio.cz/
Description: Na míru pro 4Pastelky.cz
Version: 1.0
License: GNU General Public License
License URI: license.txt
*/

/*-------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&display=swap');

/* CSS RESET ZACATEK */
* {
    margin: 0px;
    padding: 0px;
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

table {
    border-collapse: collapse;
    border-spacing: 0px;
}

tr {
    vertical-align: top;
}

td {
    vertical-align: top;
    padding: 3px;
}

img {
    margin: 0px;
    padding: 0px;
    border: 0px;
}

address, code, dfn, em, strong, var {
    font-style: normal;
    font-weight: normal;
}

caption, th {
    text-align: center;
    font-weight: bold;
    font-style: normal;
}

p, pre, blockquote, ul, ol, dl, address {
    /*margin: 1em 0px;*/
}

blockquote, cite {
    font-style: italic;
    font-weight: normal;
}

blockquote {
    text-align: justify;
    margin: 1em;
}

dd {
    text-align: justify;
    margin: 0em 1em 1em 1em;
}

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

abbr, acronym {
    font-weight: bold;
    cursor: pointer
}

form {
    margin: 1em 0px;
}

label {
    font-weight: bold;
    cursor: pointer;
}

input, select, textarea {
    font-family: Arial, Courier, monospace;
}

h1 {
    font-size: 1.2em;
}

/* CSS RESET KONEC */

body {
    background: url("images/body_bg.jpg") top center no-repeat;
    background-size: cover !important;
    font-family: 'Open Sans', sans-serif;
    color: #4b463e;
    font-size: .875rem;
}

body.red {
    background: url("images/body_bg_red.jpg") top center no-repeat;
}

body.green {
    background: url("images/body_bg_green.jpg") top center no-repeat;
}

body.blue {
    background: url("images/body_bg_blue.jpg") top center no-repeat;
}

.clearfix:before, .clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.container-full {
    width: 100%;
    text-align: center;
}

.container-full > .container2 {
    width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

div#leftSidebar {
    width: 280px;
    float: left;
    position: relative;
}

div#rightContent {
    width: 700px;
    float: left;
    /*height: 1400px;*/
    overflow: hidden;
    position: relative;
}

body.home div#rightContent,
body.home div#leftSidebar {
    height: 750px;
}

body.home div#contentBLock {
    padding-top: 150px;
}

div#entryContent a, div#entryContent a:visited {
    color: #4b463e;
}

#brusher {
    width: 175px;
    height: 128px;
    background: url("images/sprite.png") -167px 0 no-repeat;
    overflow: hidden;
    text-indent: -2000px;
    position: absolute;
    top: 10px;
    right: 120px;
    display: block;
}

body.category #brusher {
    top: 40px;
}

div#leftSidebar {
    height: 1105px;
}

div#leftSidebar > ul {
    /*position: absolute;*/
    /*right: 0;*/
    /*top: 207px;*/
    width: 280px;
    list-style-type: none;
    z-index: 10;
}

div#leftSidebar > ul > li {
    height: 51px;
    background-image: url("images/sprite.png");
    background-repeat: no-repeat;
    margin-bottom: 4px;
}

div#leftSidebar > ul > li.position-1 {
    margin-left: -110px;
}

div#leftSidebar > ul > li.position-1.blue {
    margin-left: -80px;
}

div#leftSidebar > ul > li.position-1.red {
    margin-left: -80px;
}

div#leftSidebar > ul > li.position-1.yellow {
    margin-left: -105px;
}

div#leftSidebar > ul > li.position-2 {
    margin-left: -110px;
}

div#leftSidebar > ul > li.position-2 {
    margin-left: -100px;
}

div#leftSidebar > ul > li.position-2.yellow {
    margin-left: -120px;
}

div#leftSidebar > ul > li.position-2.green {
    margin-left: -135px;
}

div#leftSidebar > ul > li.position-3 {
    margin-left: -130px;
}

div#leftSidebar > ul > li.position-3 {
    margin-left: -120px;
}

div#leftSidebar > ul > li.position-3.yellow {
    margin-left: -140px;
}

div#leftSidebar > ul > li.position-3.green {
    margin-left: -145px;
}

div#leftSidebar > ul > li.position-3.green > a {
    padding-left: 145px;
}

div#leftSidebar > ul > li.position-3.yellow > a {
    padding-left: 139px;
}

div#leftSidebar > ul > li.position-3.blue > a {
    padding-left: 120px;
}

div#leftSidebar > ul > li.position-3.red > a {
    padding-left: 100px;
}

div#leftSidebar > ul > li.position-2.green > a {
    padding-left: 135px;
}

div#leftSidebar > ul > li.position-2.yellow > a {
    padding-left: 119px;
}

div#leftSidebar > ul > li.position-2.blue > a {
    padding-left: 100px;
}

div#leftSidebar > ul > li.position-2.red > a {
    padding-left: 100px;
}

div#leftSidebar > ul > li.position-1.green > a {
    padding-left: 110px;
}

div#leftSidebar > ul > li.position-1.yellow > a {
    padding-left: 105px;
}

div#leftSidebar > ul > li.position-1.blue > a {
    padding-left: 80px;
}

div#leftSidebar > ul > li.position-1.red > a {
    padding-left: 80px;
}


div#leftSidebar > ul > li.yellow {
    width: 386px;
    background-position: -391px -215px;
}

div#leftSidebar > ul > li.red {
    width: 359px;
    background-position: 0px -164px;
}

div#leftSidebar > ul > li.green {
    width: 391px;
    background-position: 0px -215px;
}

div#leftSidebar > ul > li.blue {
    width: 361px;
    background-position: -359px -164px;
}


div#leftSidebar > ul > li > a {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 1px 1px 1px rgba(150, 150, 150, 0.3);
    color: #fff;
    line-height: 51px;
    height: 51px;
    display: block;
    text-decoration: none;
    text-align: left;
}

div#rightContent {
    padding-top: 85px;
}

div#contentBLock {
    padding-left: 60px;
}

div#contentBLock.pageContent {
    padding-top: 65px;
}

div#contentBLock > h1 {
    font-size: 35px;
    font-weight: 800;
    color: #ffab23;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1.2em;
    margin-bottom: 25px;
}

div#contentBLock .categoryDesc a {
    color: #f70005;
}

div#contentBLock .categoryDesc a:hover {
    text-decoration: none;
}

div#contentBLock > .categoryDesc {
    font-style: italic;
    font-size: 18px;
    letter-spacing: -1px;
    display: none;
}

#entryContent .entryHeader h1 {
    font-size: 40px;
    font-weight: 800;
    color: #ffab23;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1.2em;
    /*margin-left: 30px;*/
}

#entryContent > h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffab23;
    letter-spacing: -2px;
    line-height: 1.2em;
}

#entryContent b, #entryContent strong {
    color: #ffab23;
}

#entryContent ul,
#entryContent ol {
    margin-left: 20px;
}

#entryContent {
    margin-top: 15px;
}

#entryContent ul > li,
#entryContent ol > li {
    margin: 5px;
}

#entryContent blockquote {
    font-style: normal;
    border-left: solid #ffab23 4px;
    padding-left: 10px;
    text-transform: uppercase;
    margin-left: 0;
}

#entryContent .entryHeader {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

div#newsList > div {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

div#newsList > div > div > div {
    float: left;
    z-index: 1;
    margin-right: 25px;
    width: 40px;
    text-align: center;
}

div#newsList > div > div > div > p:first-child {
    font-weight: 800;
    color: #f70005;
    font-size: 40px;
    letter-spacing: -1px;
    line-height: 1em;
    margin: 0;
}

div#newsList > div > div > div > p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1em;
}

div#newsList > div > div > h2 {
    overflow: hidden;
}

div#newsList > div > div > h2 > a {
    font-size: 1.5rem;
    font-weight: 300;
    color: #4b463e;
    text-decoration: none;
    letter-spacing: -1px;
    line-height: 1.3em;
}

div#newsList > div > div > h2 > a:hover {
    color: #000;
}

div#newsList > div > p {
    margin-top: 5px;
}

div#newsList > div > a {
    display: block;
    width: 19px;
    height: 19px;
    background: url("images/sprite.png") -342px 0 no-repeat;
    position: absolute;
    right: 0;
    bottom: 0;
    text-indent: -2000px;
    overflow: hidden;
}

div#preschoolList {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

div#preschoolList > div {
    /*width: 25%;*/
    /*float: left;*/
    /*text-align: right;*/
    /*position: relative;*/
}

div#preschoolList > div:first-child {
    padding-left: 0;
}

div#preschoolList > div > a {
    display: inline-block;
    width: 230px;
    height: 230px;
    border-width: 10px;
    border-radius: 50px;
    border-style: solid;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
}

div#preschoolList > div > a > div {
    position: absolute;
    left: -10px;
    border-style: solid;
    top: -10px;
    width: 230px;
    height: 230px;
    border-radius: 50px;
    border-width: 10px;
    -webkit-box-shadow: inset 3px 3px 3px 0px rgba(0, 0, 0, 0.48);
    -moz-box-shadow: inset 3px 3px 3px 0px rgba(0, 0, 0, 0.48);
    box-shadow: inset 3px 3px 3px 0px rgba(0, 0, 0, 0.48);
}

div#preschoolList > div > a > p {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    position: absolute;
    left: 0;
    bottom: 0;
    text-align: center;
    color: #fff;
    width: 210px;
    margin: 0;
    padding: 15px 0;
    letter-spacing: 0px;
    width: 100%;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

div#preschoolList > div > a.blue,
div#preschoolList > div > a.blue > div {
    border-color: #056fcf;
}

div#preschoolList > div > a.blue > p {
    background: rgba(5, 111, 207, 0.5);
}

div#preschoolList > div > a.yellow,
div#preschoolList > div > a.yellow > div {
    border-color: #ffab23;
}

div#preschoolList > div > a.yellow > p {
    background: rgba(255, 171, 35, 0.5);
}

div#preschoolList > div > a.green,
div#preschoolList > div > a.green > div {
    border-color: #36cc12;
}

div#preschoolList > div > a.green > p {
    background: rgba(54, 204, 18, 0.5);
}

div#preschoolList > div > a.red > div,
div#preschoolList > div > a.red {
    border-color: #f70005;
}

div#preschoolList > div > a.red > p {
    background: rgba(247, 0, 5, 0.5);
}

div#imageBanner {
    height: 83px;
    margin-bottom: 5px;
    text-align: center;
}

div#footerBg {
    height: 91px;
    background: url("images/footer_bg.png") top center no-repeat;
}

div#footer {
    height: 71px;
    position: relative;
    padding-top: 1px;
}

div#footer > p {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 0;
}

div#footer > p:first-child {
    margin: 35px 0 5px 0;
}

div#footer > p:first-child > a {
    color: #056fcf;
}

div#footer > p > a {
    color: #f70005;
}

div#footer > .admin {
    width: 110px;
    height: 55px;
    position: absolute;
    top: 35px;
    left: 50%;
    margin-left: -490px;
    text-indent: -2000px;
    overflow: hidden;
    display: block;
}

div#footer > .pixon {
    width: 134px;
    height: 36px;
    position: absolute;
    top: 35px;
    right: 50%;
    margin-right: -330px;
    text-indent: -2000px;
    overflow: hidden;
    display: block;
}

.pagePagination {
    margin-top: 10px;
    padding-top: 10px;
    border-top: solid #5e3b26 1px;
}

.pagePagination > p {
    color: #5e3b26;
    margin: 0;
}

.pagePagination > p > a {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    background: #ffab23;
    color: #fff;
    border-radius: 9px;
    text-decoration: none;
}

#strankovani > a {
    padding: 10px 15px;
    color: #fff;
    background: #ffab23;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

#strankovani > a:hover {
    color: #000;
}

#strankovani > span {
    padding: 10px 15px;
    font-weight: bold;
}

.pagePagination > p > a:hover {
    color: #000;
}

.wp-block-file:not(.wp-element-button) {
    font-size: unset;
}

/**vachr**/
/*main page*/
.main-page-button-wrap {
    display: flex;
    width: 100%;
    justify-content: space-around;
    padding: 15px 0;
}

.main-page-button-wrap div {
    position: relative;
}

.main-page-button-wrap a {
    display: flex;
    height: 51px;
    background-image: url(images/sprite.png);
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
    margin: 10px;

    position: relative;
    left: 0;
    transition: all 0.5s ease;
}

.main-page-button-wrap a:link {
    text-decoration: none;
}

.main-page-button-wrap a.button-zapis {
    width: 359px;
    background-position: 0px -164px;
}

.main-page-button-wrap a.button-zapis:hover {
    left: 20px;
}

.main-page-button-wrap a.button-projekty {
    width: 361px;
    background-position: -359px -164px;
    transform: rotate(180deg);
}

.main-page-button-wrap a.button-projekty:hover {
    left: -20px;
}

.main-page-button-wrap a.button-pastelka3 {
    width: 391px;
    background-position: 0px -215px;
}

.main-page-button-wrap a.button-pastelka3:hover {
    left: 20px;
}

.main-page-button-wrap a.button-pastelka4 {
    width: 386px;
    background-position: -391px -215px;
    transform: rotate(180deg);
}

.main-page-button-wrap a.button-pastelka4:hover {
    left: -20px;
}

.main-page-button-wrap a span {
    display: block;
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.main-page-button-wrap a.button-projekty span {
    transform: rotate(180deg);
}

.main-page-button-wrap a.button-pastelka4 span {
    transform: rotate(180deg);
}

/*Pagination*/
#strankovani {
    padding-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/*TOGGLE MENU*/
/* Menu Icon */
.hamb {
    display: none;
    cursor: pointer;
    padding-left: 30px;
    background-color: #faead7;
}


.hamb-line {
    background: #ffab23;
    display: block;
    height: 13px;
    position: relative;
    width: 80px;
    border-radius: 5px;

}

.hamb-line::before,
.hamb-line::after {
    background: #ffab23;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
    border-radius: 5px;
}

.hamb-line::before {
    top: 22px;
}

.hamb-line::after {
    top: -22px;
}

.skolka-category {
    margin: 0 0 25px 0;
}

.skolka-category p {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.category-ms-pl .skolka-category {
    color: #056fcf;
}
.category-ms-pl .hamb-line,
.category-ms-pl .hamb-line::before,
.category-ms-pl .hamb-line::after {
    background: #056fcf;
}

.category-ms-ko .skolka-category {
    color: #f70005;
}
.category-ms-ko .hamb-line,
.category-ms-ko .hamb-line::before,
.category-ms-ko .hamb-line::after {
    background: #f70005;
}

.category-ms-pl2 .skolka-category {
    color: #ffab23;
}
.category-ms-pl2 .hamb-line,
.category-ms-pl2 .hamb-line::before,
.category-ms-pl2 .hamb-line::after {
    background: #ffab23;
}

.category-ms-se .skolka-category {
    color: #36cc12;
}
.category-ms-se .hamb-line,
.category-ms-se .hamb-line::before,
.category-ms-se .hamb-line::after {
    background: #36cc12;
}

.side-menu {
    display: none;
}

/* Toggle menu icon */
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top: 0;
}

.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top: 0;
}

/** DESKTOPS */
@media (min-width: 1201px) {
    body:not(.home) a.logo-4pastelky {
        margin-top: 20px;
        display: block;
    }
}

/*Posts search*/
#newsList > .search-form {
    display: flex;
    justify-content: flex-end;
    align-content: center;
    flex-wrap: nowrap;
    align-items: center;
}
#newsList > .search-form label {
    display: flex;
    margin-right: 5px;
}
#newsList > .search-form input {
    padding: 10px;
    font-size: 1rem;
}
#newsList > .search-form input.search-submit {
    /*padding: 8px;*/
    cursor: pointer;
}

#bottomMainMenu {
    display: grid;
    list-style-type: none;
    row-gap: 15px;
    column-gap: 15px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    align-items: center;
    justify-items: start;
}

#bottomMainMenu li {
    padding: 5px 5px;
    border-radius: 5px;
    width: 100%;
}

#bottomMainMenu li a, #bottomMainMenu li a:link {
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    color: white;
}

#bottomMainMenu li a::before {
    content: "✏";
    margin-right: 10px;
    font-size: 25px;
    transform: rotate(145deg);
    font-family: 'Noto Sans Symbols 2', sans-serif;
}

/*#bottomMainMenu li.blue a::before {*/
/*    color: #056fcf;*/
/*}*/
/*#bottomMainMenu li.green a::before {*/
/*    color: #36cc12;*/
/*}*/
/*#bottomMainMenu li.yellow a::before {*/
/*    color: #ffab23;*/
/*}*/
/*#bottomMainMenu li.red a::before {*/
/*    color: #f70005;*/
/*}*/
/*#bottomMainMenu li:hover a {*/
/*    text-decoration: none;*/
/*}*/

#bottomMainMenu li.blue {
    border: 4px solid #056fcf;
    background-color: #056fcfcc;
}
#bottomMainMenu li.green {
    border: 4px solid #36cc12;
    background-color: #36cc12cc;
}
#bottomMainMenu li.yellow {
    border: 4px solid #ffab23;
    background-color: #ffab23cc;
}
#bottomMainMenu li.red {
    border: 4px solid #f70005;
    background-color: #f70005cc;
}

#bottomMainMenu li.blue:hover {
    background-color: #056fcf;
}
#bottomMainMenu li.green:hover {
    background-color: #36cc12;
}
#bottomMainMenu li.yellow:hover {
    background-color: #ffab23;
}
#bottomMainMenu li.red:hover {
    background-color: #f70005;
}

#bottomMainMenu li:hover a::before {
    scale: 1.2;
}
#bottomMainMenu li:hover a {
    text-decoration: none;
}

/*Page navigation*/
.pagePagination .post-nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.pagePagination .post-nav-links > * {
    padding: 10px;
    font-size: 1rem;
    height: unset;
    width: unset;
    font-weight: bold;
}

/*MOBILE DEVICES*/
@media (max-width: 1020px) {
    body {
        font-size: 2rem;
        background-size: cover !important;
    }

    .container-full > .container2 {
        width: 100%;
    }

    div#contentBLock {
        padding: 0 25px;
    }

    div#newsList > div > div > h2 > a {
        font-size: 3rem;
    }

    div#leftSidebar {
        display: flex;
        width: 100vw;
        font-size: 1rem;
        top: 0;
        z-index: 99;
        align-items: center;
        height: auto;
        position: sticky;
        background-color: antiquewhite;
        padding: 20px;
        overflow: visible;
    }

    div#leftSidebar > ul {
        position: absolute;
        top: 100px;
        right: unset;
    }

    body:not(.home) a.logo-4pastelky {
        margin: 0 auto;
    }

    div#rightContent {
        width: 100%;
    }

    #brusher {
        display: none;
    }

    #scalePhoto {
        width: 100%;
    }

    #scalePhoto img {
        width: 100%;
    }

    .hamb {
        display: block;
    }

    #pencilMenu {
        /*display: none;*/
        transform: scaleY(0%);
        transition: all 0.2s ease;
    }

    .side-menu:checked ~ #pencilMenu {
        display: block;
        height: auto;
        zoom: 1.4; /* Old IE only */
        -moz-transform: scale(1.4);
        -webkit-transform: scale(1.4);
        transform: scale(1.4);
        transform-origin: top left;
    }

    #newsList > .search-form input {
        font-size: 1.5rem;
    }

    div#leftSidebar.smallit {
        padding-top: 3px;
        padding-bottom: 0;
    }

    div#leftSidebar.smallit a.logo-4pastelky > img {
        width: 120px;
    }
    div#leftSidebar.smallit .hamb {
        scale: 0.8;
    }
}

@media (max-width: 980px) {
    div#preschoolList > div {
        width: 50%;
    }

    .main-page-button-wrap div {
        scale: 1.2;
    }


    element.style {
        background-image: url(https://skolka.vachr.cz/wp-content/uploads/2014/06/plaminkove_web-210x210.jpg);
    }
    div#preschoolList > div > a.blue, div#preschoolList > div > a.blue > div {
        border-color: #056fcf;
    }
    div#entryContent a, div#entryContent a:visited {
        color: #4b463e;
    }
    div#preschoolList > div > a {
        width: 400px;
        height: 400px;
    }

    div#preschoolList > div > a > p {
        font-size: 44px;
    }

    #newsList > .search-form input {
        font-size: 2rem;
    }

    #bottomMainMenu {
        row-gap: 25px;
        column-gap: 25px;
        grid-template-columns: 1fr 1fr;
        margin: 20px auto;
        width: 96%;
    }
    #bottomMainMenu li a {
        font-size: 2.3rem;
    }
    #bottomMainMenu li a::before {
        font-size: 60px;
        margin-right: 20px;
    }

    .pagePagination .post-nav-links > * {
        padding: 20px;
        font-size: 2rem;
    }

    .skolka-category {
        margin: 0;
    }

    .skolka-category p {
        font-size: 3rem;
    }

    div#newsList > div > div > div {
        scale: 1.3;
    }

    .wp-block-columns {
        display: block !important;
    }
}