/*
Theme Name: Caffe Adria
Theme URI: https://www.caffeadria.cz
Author: AKIP
Description: Kavárna Adria
Version: 1.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: caffeadria
*/

/* Box sizing + reset */

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body, h1, h2, h3, h4, h5, h6, p, header ul, nav ul, #copyright ul {
    margin: 0;
    padding: 0;
}

header ul, nav ul {
    list-style-type: none;
}

/* Global */

html, body {
    width: 100%;
}

body {
    font-family: 'Times New Roman', serif;
    background: url("img/bg.png");
    background: linear-gradient(rgba(162,144,97,0.53), rgba(162,144,97,0.01)), url("img/bg.png");
    min-width: 260px;
}

table {
    border-collapse: collapse;
    border: 1px solid black;
}

th, td {
    border: 1px solid black;
    padding: 2px;
}

a {
    color: #8c0c04;
}

.page-header h2 {
    display: none;
}

h3 {
    color:  #a75d5a;
    font-size: 24px;
    font-weight: 400;
    margin-top: 10px;
}

.homepage h3 {
    margin-top: 5px;
}

li {
    list-style-image: url("img/bullet.png");
}

img {
    max-width: 100%;
}

/* Layout & grid framework */

#container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex.center {
    align-items: center;
}

.flex > * {
    flex: 1;
}

.flex .f2 {
    flex: 2;
}

header, header + nav, main, footer {
    margin: 0 auto;
    width: 100%;
    max-width: 1140px;
}

/* Header */

header {
    padding: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 16px;
    position: relative;
}

header:before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    margin: auto;
    width: 0px;
    height: 1px;
    z-index: -1;
    box-shadow: 0 0 150px 180px rgba(255,255,255,0.65);
}

header #logo {
    margin: 10px 0;
    padding: 0 10px;
}

header #logo img {
    width: 100%;
    max-width: 390px;
}

#language {
    position: absolute;
}

#language {
    z-index: 10;
    right: 10px;
    bottom: 10px;
}

#language > span {
    display: none;
}

#language > * {
    vertical-align: middle;
}

#language .mod-languages {
    display: inline-block;
    font-size: 0;
    text-align: left;
}

#language .btn-group {
    position: relative;
}

#language .dropdown-toggle, #language .dropdown-menu {
    padding: 7px;
    background: #362f2d;
    width: 36px;
    height: 26px;
}

#language .dropdown-toggle {
    position: relative;
}

#language .dropdown-toggle:after {
    content: "\25bc";
    color: #f7e6cf;
    font-size: 6px;
    text-align: right;
    padding-right: 2px;
    position: absolute;
    right: 0;
    top: 9px;
    display: block;
    width: 11px;
    height: 9px;
    line-height: 9px;
    background: #362f2d;
}

.food.category-no-menu .dropdown-toggle{
    visibility: hidden;
}

#language .dropdown-menu {
    display: none;
    position: absolute;
}

#language .mod-languages li {
    margin: 0;
    display: block;
}

#language .mod-languages a {
    display: block;
}

#language .mod-languages img {
    width: 18px;
    height: 12px;
}

#language .dropdown-toggle:hover + .dropdown-menu, #language .dropdown-menu:hover {
    display: block;
}

#menu-button {
    display: none;
    position: absolute;
    left: 0;
    color: #f7e6cf;
    font-size: 20px;
    font-weight: 600;
    width: 100%;
    line-height: 96px;
    text-align: center;
}
#menu-wrapper {
    flex: 1;
    background: url("img/menu-bg.png");
    height: 96px;
}

#menu-wrapper ul {
    height: 100%;
    width: 100%;
}

nav {
    display: flex;
    margin-bottom: -55px;
    z-index: 3;
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    list-style: none;
}

nav ul li.current_page_item a,
nav ul li.current-page-ancestor a,
nav ul li a:hover {
    border-style: solid;
    border-width: 4px 11px;
    -moz-border-image: url('img/active.png') 4 11 repeat stretch;
    -webkit-border-image: url('img/active.png') 4 11 repeat stretch;
    -o-border-image: url('img/active.png') 4 11 repeat stretch;
    border-image: url('img/active.png') 4 11 repeat stretch;
    line-height: 32px;
    padding: 0 14px;
}

nav ul li a {
    display: block;
    padding: 0px 25px;
    font-style: italic;
    position: relative;
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
}

nav ul li a:before,
nav ul li.current_page_item:first-child a:before,
nav ul li.current-page-ancestor:first-child a:before,
nav ul li:first-child a:hover:before,
nav ul li.current_page_item:last-child a:after,
nav ul li.current-page-ancestor:last-child a:after,
nav ul li:last-child a:hover:after {
    content: "";
    background: url('img/symbol.png');
    width: 8px;
    height: 12px;
    display: block;
    position: absolute;
}

nav ul li:first-child a:before {
    content: none;
}

nav ul li a:before {
    top: 14px;
    left: -4px;
}

nav ul li.current_page_item a:before,
nav ul li.current-page-ancestor a:before,
nav ul li:hover a:before {
    top: 10px;
    left: -15px;
    right: initial;
}

nav ul li.current_page_item:last-child a:after,
nav ul li.current-page-ancestor:last-child a:after,
nav ul li:last-child a:hover:after {
    top: 10px;
    left: initial;
    right: -15px;
}

nav ul a {
    color: #f7e6cf;
    text-decoration: none;
    font-size: 18px;
}

main #menu-wrapper {
    background: url("img/menu2-bg.png");
}

main #menu-button {
    color: #3f3632;
}

main nav {
    position: static;
    margin: 0 auto 30px;
}

main nav ul li a:before,
main nav ul li.current_page_item:first-child a:before,
main nav ul li.current-page-ancestor:first-child a:before,
main nav ul li:first-child a:hover:before,
main nav ul li.current_page_item:last-child a:after,
main nav ul li.current-page-ancestor:last-child a:after,
main nav ul li:last-child a:hover:after {
    background: url('img/symbol2.png');
}

main nav ul a {
    color: #362f2d;
}

main nav ul li.current_page_item a,
main nav ul li.current-page-ancestor a,
main nav ul li a:hover {
    -moz-border-image: url('img/active2.png') 4 11 repeat stretch;
    -webkit-border-image: url('img/active2.png') 4 11 repeat stretch;
    -o-border-image: url('img/active2.png') 4 11 repeat stretch;
    border-image: url('img/active2.png') 4 11 repeat stretch;
}

#bean {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -28px;
}

.trp-shortcode-switcher{
    padding: 0 !important;
}

/* Hero */

#hero {
    position: relative;
    width: 100%;
    height: 403px;
    display: flex;
    align-items: flex-start;
    border-style: solid;
    border-width: 15px 0px;
    -moz-border-image: url("img/slider-border.png") 15 0;
    -webkit-border-image: url("img/slider-border.png") 15 0;
    -o-border-image: url("img/slider-border.png") 15 0;
    border-image: url("img/slider-border.png") 15 0;
}

#hero .image {
    background-position: center;
    background-size: cover;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s;
}

#hero .image.active {
    opacity: 1;
}

#hero a img {
    display: inline-block;
    width: 100%;
}

#hero.rezervace a {
    max-width: 333px;
    margin: auto;
    z-index: 2;
    display: inline-block;
}

#hero.nadpis #nadpis {
    max-width: 533px;
    width: 100%;
    padding: 5px;
    height: 97px;
    margin: 160px auto 0;
    background: #8c0c04;
    background: linear-gradient(#c11206, #580602);
    box-shadow: 3px 4px 5px 0px rgba(0, 0, 0, 0.75);
    color: #f7e6cf;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 2;
}

#hero.nadpis #nadpis .wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-style: solid;
    border-width: 27px;
    -moz-border-image: url("img/nadpis-border.png") 27 repeat;
    -webkit-border-image: url("img/nadpis-border.png") 27 repeat;
    -o-border-image: url("img/nadpis-border.png") 27 repeat;
    border-image: url("img/nadpis-border.png") 27 repeat;
    overflow: hidden;
}

#hero.nadpis #nadpis span {
    max-width: 500px;
    text-align: center;
    white-space: nowrap;
}

#hero.nadpis #nadpis .ornament.l {
    margin-right: 14px;
}

#hero.nadpis #nadpis .ornament.r {
    margin-left: 14px;
}

#indicators {
    position: absolute;
    left: 0px;
    bottom: 7px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.indicator {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border: 2px #362f2d solid;
    margin: 0 5px;
    cursor: pointer;
    transition: background .3s;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.60);
}

.indicator.active {
    background: rgba(255, 255, 255, 0.80);
}

/* Content */

main {
    position: relative;
    padding: 100px 80px 40px 80px;
    /*flex: 1;*/
    background-color: white;
    box-shadow: 0 0 25px -2px rgba(0,0,0,0.2);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.custom + main {
    padding-top: 40px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.has-sidemenu {
    display: flex;
    width: 100%;
}

body.home .page-header, body.domu .page-header {
    display: none;
}

.flex .vertical-line {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 65px;
    margin-top: 0 !important;
}

.flex .vertical-line .line {
    background-color: #e5e5e5;
    width: 1px;
    flex: 1;
}

.flex .vertical-line img:first-of-type {
    margin-bottom: 5px;
}

.flex .vertical-line img:last-of-type {
    margin-top: 5px;
}

.flex.homepage > * {
    margin-top: 25px;
}

.flex.homepage ul {
    margin: 10px 0;
    padding: 0px 17px;
    line-height: 24px;
}

.flex.homepage .homepage-item img {
    border-style: solid;
    border-width: 9px 7px;
    -moz-border-image: url('img/homepage-border.png') 9 7 repeat;
    -webkit-border-image: url('img/homepage-border.png') 9 7 repeat;
    -o-border-image: url('img/homepage-border.png') 9 7 repeat;
    border-image: url('img/homepage-border.png') 9 7 repeat;
}

.food {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #bfbfbf;
    position: relative;
}

.food.homepage {
    border: none;
}

.food.homepage::before,
.food.homepage::after,
.food.homepage table::before,
.food.homepage table::after{
    display: none;
}

.food.categories {
    flex: 0 1 auto;
    margin-right: 70px;
    border-top: 0;
    max-width: 244px;
}

.food.category {
    flex: 1;
}

.food h2 {
    position: absolute !important;
    left: 0;
    right: 0;
    text-transform: uppercase;
    color: #a75d5a;
    font-size: 24px;
}

.food.homepage h2 {
    top: -36px;
}

.food h2 span {
    z-index: 10;
}

.food.categories h2 {
    top: -44px;
}

.food.categories ul {
    padding: 0 5px 0px 36px;
}

.food h2:before {
    content: "";
    position: absolute;
    max-width: 100%;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
}


.food.homepage h2:before {
    top: 16px;
    width: 350px;
    height: 49px;
    background-image: url("img/ornament-top.png");
}

.food.categories h2:before {
    top: 34px;
    width: 188px;
    height: 15px;
    background-image: url("img/ornament-small.png");
}

main.has-sidemenu .food.category {
    flex: 1;
}

.food.category td:first-of-type:before, .food.category td:first-of-type:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 100%;
    width: 208px;
    height: 15px;
    background-image: url("img/ornament-small.png");
}

.food.category td:first-of-type:before {
    top: -10px;
}

.food.category td:first-of-type:after {
    bottom: -6px;
}

.food.homepage h3 {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    color: #362f2d;
    font-size: 16px;
    font-style: italic;
}

.food:before, .food:after, .food table:before, .food table:after {
    content: "";
    display: block;
    position: absolute;
    width: 56px;
    height: 56px;
    z-index: 1;
}

.food:before {
    top: -28px;
    left: -28px;
    background-image: url("img/ornament-tl.png");
}

.food:after {
    top: -28px;
    right: -28px;
    background-image: url("img/ornament-tr.png");
}

.food table:before {
    bottom: -28px;
    left: -28px;
    background-image: url("img/ornament-bl.png");
}

.food table:after {
    bottom: -28px;
    right: -28px;
    background-image: url("img/ornament-br.png");
}

.food table {
    width: 100%;
    border: 0;
}
.food tr {
    border-bottom: 1px dotted #686362;
}
.food td {
    border: 0;
    padding: 10px 0;
}
.food tr td:last-of-type {
    text-align: right;
    color: #8c0c04;
}

.food tr:last-of-type {
    border-bottom: 0;
}

.food.categories li {
    margin: 5px 0;
}

.food.categories li a {
    color: #000;
    text-decoration: none;
}

.food.categories li a:hover {
    color: #8c0c04;
    text-decoration: none;
}

.food.categories li.current {
}

.food.categories li.current a {
    margin: -3px -5px -3px -13px;
    width: calc(100% + 18px);
    background-image: url('img/active.png');
    padding: 5px 18px 7px;
    display: inline-block;
    vertical-align: middle;
    background-size: 100% 100%;
    line-height: 1.2em;
}

.pg-msnr-container, #pg-msnr-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.pg-msnr-container .pg-cv-box, #pg-msnr-container .pg-cv-box {
    margin: 10px 0;
}

#phocagallery > div:last-of-type {
    display: none !important;
}

#sb-title {
    display: none;
}

iframe {
    width: 100%;
    margin: 0 30px 30px 30px;
}

#system-message-container #system-message {
    border: 2px solid #999;
    padding: 1rem;
    margin-bottom: 2rem;
}

#system-message-container #system-message .alert-message {
    position: relative;
}

#system-message-container #system-message .alert-message .close {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    right: 0;
    top: -5px;
    display: none;
}

#system-message-container #system-message .alert-message .alert-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #a75d5a;
}

#userForm fieldset, .item-page.edit fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

#userForm input, #userForm textarea {
    width: 50%;
    padding: 7px;
    border: 2px solid #908b6d;
}

#userForm textarea {
    max-width: 100%;
}

#userForm .uk-form-row {
    margin-top: 15px;
}

#userForm label {
    font-weight: 600;
    font-size: 16px;
}

#userForm span.formValidation {
    display: block;
}

#userForm .formRed {
    color: #CF4D4D;
}

#userForm .formValidation .formError {
    font-size: 12px;
}

#userForm button[type="submit"] {
    background-color: #908b6d;
    border: 0;
    color: white;
    padding: 10px 15px;
}

.btn-group.pull-right {
    float: none;
    position: absolute;
    right: 80px;
    top: 10px;
}

.food.category .btn-group.pull-right {
    right: -2px;
    top: -71px;
}

.food.category-no-menu .btn-group.pull-right {
    top: -71px;
    /*right: -2px;*/
}

.item-page.edit .btn-group {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 10px;
}

.item-page.edit .tab-pane, .item-page.edit .nav-tabs {
    display: none;
}

.item-page.edit .tab-pane.active {
    display: block;
}

.item-page.edit .btn.modal-button {
    margin-top: 5px;
    margin-right: 10px;
    display: inline-block;
}

.popover {
    width: 200px;
    background: #f7e6cf;
    padding: 10px;
    color: #8c0c04;
    margin-left: 60px;
}

.popover h3 {
    margin: 0;
}

h3.fakturacni-adresa {cursor: pointer;}
p.fakturacni-adresa {height: 0; overflow: hidden;}
h3.fakturacni-adresa.active + p {height: auto;}

h3.fakturacni-adresa:after {content: "▼"; font-size: 12px; margin-left: 5px; vertical-align: middle;}
h3.fakturacni-adresa.active:after {content: "▲";}
h3.fakturacni-adresa:hover:after {color: rgba(167,93,90,0.6);}


div.wpforms-container.contact-form{
    width: 50%;
    margin: unset;
}

div.wpforms-container-full button[type="submit"].contact-form-submit{
    background-color: #908b6d !important;
    border-radius: 0;
}

.denni-nabidka{
	margin-top: 10px;
}

.denni-nabidka tr:first-of-type{
	border-top: 1px dotted #686362;
}

.denni-nabidka tr:first-of-type td{
	text-align: left;
}

.denni-nabidka-info{
	padding: 10px 0;
}

.denni-nabidka-time{
	gap: 0;
}

.denni-nabidka-payment{
	margin: 20px auto 10px auto;
	width: 80%;
}

/* Footer */

footer {
    background-color: #908b6d;
    color: #f7e6cf;
    padding: 0 30px;
    text-align: center;
    position: relative;
}

footer .border {
    height: 14px;
    width: 100%;
    left: 0;
    background-image: url("img/footer-border.png");
    position: absolute;
}

footer .line {
    background-color: #AAA381;
    height: 1px;
    margin: 25px 0;
}

footer .flex {
    padding-top: 39px;
    align-items: center;
}

footer a {
    text-decoration: none;
    color: #dbcfb1;
}

footer a:hover {
    color: #f7e6cf;
}

footer #social {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 20px 0;
}

footer #social a {
    display: block;
    margin: 0 4px;
    border-radius: 50%;
    height: 42px;
    width: 42px;
    border: 2px solid #f7e6cf;
    text-decoration: none;
    color: #908b6d;
    position: relative;
    z-index: 1;
}

footer #social a:before {
    position: absolute;
    top: 3px;
    left: 3px;
    height: 32px;
    width: 32px;
    line-height: 32px;
    font-size: 20px;
    z-index: 0;
    border-radius: 50%;
    background-color: #f7e6cf;
}

footer #social a.fa-facebook:hover:before {
    /*background-color: #3b5998;*/
    background-color: #B8B7BD;
}

footer #social a.fa-twitter:hover:before {
    /*background-color: #1da1f2;*/
    background-color: #AECFDB;
}

footer #social a.fa-tripadvisor:hover:before {
    /*background-color: #589442;*/
    background-color: #C2CBA0;
}

footer #social a.fa-instagram:hover:before {
    /*background-color: #405de6;*/
    background-color: #BAB8D7;
}

footer #social a.fa-google-plus:hover:before {
    /*background-color: #dd4b39;*/
    background-color: #EEB29D;
}

footer img {
    width: 100%;
}

footer #copyright {
    padding: 15px;
    font-size: 14px;
    color: #f7e6cf;
}

footer .left-box {
    margin: 0 auto;
    display: inline-block;
}

footer .left-box table {
    border: none;
}

footer .left-box table+table {
    margin-top: 10px;
}

footer .left-box table td {
    border: none;
    text-align: left;
}

#copyright ul {
    margin-top: 15px;
}

#copyright ul li {
    list-style: none;
}

#copyright ul li a {
    text-decoration: none;
    color: #f7e6cf;
    border: initial;
    line-height: initial;
    padding: initial;
}

#copyright ul li a:hover {
    text-decoration: underline;
}

footer #dbz {
    width: 300px;
}

footer #sssvt {
    margin-top: 12px;
    position: absolute;
    right: 30px;
}

footer #sssvt img {
    width: 30px;
}

/* Media queries */

@media (max-width: 1140px) {
    body.historie .item-page img {
        float: none !important;
        display: block;
        margin: 20px auto !important;
    }

    #hero {
        padding: 0 50px;
    }

    #hero.nadpis #nadpis, #hero > a {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #menu-button {
        display: block;
    }

    #menu-wrapper ul {
        display: none;
        background: #3f3632;
        position: relative;
        top: 60px;
        z-index: 20;
        padding: 20px;
        height: initial;
        width: 100%;
    }

    #menu-wrapper.open ul,
    #menu-wrapper ul:hover {
        display: flex;
    }

    #menu-wrapper ul {
        flex-direction: column;
    }

    nav ul li a:hover:after, nav ul li.active a:after, footer ul li a:hover:after, footer ul li.active a:after {
        content: "";
        display: block;
        background: url("img/symbol.png");
        width: 8px;
        height: 12px;
        position: absolute;
        top: 10px;
        left: initial;
        right: -15px;
    }

    nav ul li a:before  {
        display: none !important;
    }

    nav ul li a:hover:before, nav ul li.active a:before {
        display: block !important;
    }

    main #menu-wrapper ul {
        background: #f1e1cc;
    }
}


@media (max-width: 800px) {
    .flex {
        flex-direction: column;
        align-items: center;
    }

    .flex > *, .flex > .f2 {
        flex: 0 1 auto;
    }
    .flex .vertical-line .line, .flex .vertical-line img:last-of-type {
        display: none;
    }

    main {
        padding: 100px 40px 20px 40px;
    }

    .custom + main {
        padding-top: 40px;
    }

    .food.categories {
        margin-right: 0;
    }
    .food.homepage h2:before {
        width: 260px;
    }
    .food.homepage h3 {
        top: -9px;
    }
    .food.homepage h2 {
        top: -41px;
    }
    iframe {
        margin-top: 30px;
    }
    #hero {
        padding: 0 5px;
    }
    #hero.nadpis #nadpis {
        font-size: 25px;
    }
}
@media (max-width: 650px) {
    header {
        flex-wrap: wrap;
        text-align: center;
        padding: 10px 0;
    }

    header > * {
        width: 100%;
        margin: 10px;
    }

    #address, #language {
        position: static;
    }

    header #logo {
        order: -1;
    }
    #userForm input, #userForm textarea  {
        width: 100%;
    }
}
@media (max-width: 355px) {
    .food.homepage h2 {
        top: -61px;
    }
    .food.homepage h2:before {
        top: 36px;
    }

}
@media (max-width: 533px) {
    #hero.nadpis #nadpis span:before, #hero.nadpis #nadpis span:after {
        display: none;
    }

    footer #sssvt {
        float: none;
        position: initial;
        display: inline-block;
        margin: 15px auto 0;
    }
}

@media (max-width: 325px) {
    .food h2:before, .food.category td:first-of-type:before, .food.category td:first-of-type:after {
        width: 107px !important;
    }
}

