
@font-face {
    font-family: 'BebasNeue';
    src: url(res/BebasNeue-Regular.ttf);
    font-display: fallback;
}

@font-face {
    font-family: 'Kanit';
    src: url(res/Kanit-Regular.ttf);
    font-display: fallback;
}


@font-face {
    font-family: 'Open Sans';
    src: url(res/OpenSans-Regular.ttf);
    font-display: fallback;
}

/* --- a border vastagsága a méretezés része legyen --- */
*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* --- kijelölhetetlen --- */
.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- .clearfix: floating elemeket tartalmazó szülők magasságának helyes beállítása --- */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
    clear: both;
}
.clearfix:after {
}
.clearfix {
    *zoom: 1;
}

/* --- ajax-loader animáció <span class="loader"></span> --- */
.loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid #9d683e;
    border-left: 4px solid #9d683e;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
    position: relative;
    top: -2px;
    margin-left: 2px;
}
/*.loader::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eae3d5;
    display:block;
    position: absolute;
    right: -4px;
    top: -3px;
    border: 1px solid #9d683e;
}*/
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

/* --- alsó, dupla, döntött árnyék --- */
.doubleshadow {
    min-height: 50px;
    position: relative;
    margin: 0;
    padding: 0;
    background: white;
}
.doubleshadow.bordered {
    border-bottom: 1px solid #E4E4E4;
}
.doubleshadow:before,
.doubleshadow:after {
    z-index: -1;
    position: absolute;
    content: "";
    bottom: 18px;
    left: 15px; /* különben kilóg oldalt */
    width: 70%;
    top: 30%;
    max-width: 500px;
    background: #FFF;
    -webkit-box-shadow: 0 15px 10px #777;
    -moz-box-shadow: 0 15px 10px #777;
    box-shadow: 0 15px 10px rgba(0,0,0,0.5);
    -webkit-transform: rotate(-2deg);
    -moz-transform: rotate(-2deg);
    -o-transform: rotate(-2deg);
    -ms-transform: rotate(-2deg);
    transform: rotate(-2deg);
}
.doubleshadow:after
{
    -webkit-transform: rotate(2deg);
    -moz-transform: rotate(2deg);
    -o-transform: rotate(2deg);
    -ms-transform: rotate(2deg);
    transform: rotate(2deg);
    right: 15px;
    left: auto;
}


/* --- linkek, telefonszámok --- */
.weblink,
.telszam {
    text-decoration: underline;
    white-space: nowrap;
}

.kiemelt {
    font-weight: bold;
}

/* --- a fő témaszín --- */
.activecolor,
.kiemelt,
.weblink,.telszam,
h1,h2,h3,h4,
#menuitems a:hover > span {
    color: #3b6e97 !important; /* #97643B / #7d5331 */
}
#menuitems .item_goback {
    border-color: #3b6e97 !important;
}

.embla__dots > div.active::after,
h3::before {
    background-color: #3b6e97 !important;
}

/* --- main elements --- */

html {
    min-width: 330px;
}

p {
    margin: 0;
}

h1 {
    margin: 0.25em 0 0.5em 0;
    font-family: 'BebasNeue', serif;
    font-size: 2em;
    font-weight: normal;
}

h2 {
    font-weight: normal;
    display: inline-block;
    width: 100%;
    margin: 1em 0 0.25em 0;
    padding: 4px 10px 0 0px;
    line-height: 1.2em;
    font-family: 'BebasNeue', serif;
    font-size: 1.5em;
    /*font-weight: bold;*/

    /*background: #8B6C53;
    color: white;
    /*border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;*/
}
h1+h2 {
    margin-top: 0;
}

h3 {
    font-weight: bold;
    font-size: 110%;
    margin: 0.75em 0 0em 0;
    vertical-align: middle;

    /*background: rgb(187,160,100);
    background: linear-gradient(90deg, rgba(187,160,100,1) 0%, rgba(241,221,155,1) 48%, rgba(187,160,100,1) 100%);
    background: #eae3d5;
    padding: 0.2em 1em;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;*/
}
h3::before {
    content: "";
    display: inline-block;
    width: 0.35em;
    height: 0.35em;

    margin-right: 5px;
    margin-bottom: 3px;
    vertical-align: middle;

}

h4 {
    margin: 0.75em 0 0.25em 0;
    font-size: 120%;
    font-weight: normal;
}

ul { /* <ul> alatti és feletti margin eltávolítása */
    margin: 0;
}

ul li::marker {
    color: #3b6e97;
    font-weight: bold;
}

a {
    color: inherit;
    text-decoration: none;
    border: none;
    outline: none;
}
a img {
    border: none; /* IE */
    outline: none;
}
a:visited {
    background: inherit;
    color: inherit;
}


/* -------------------------------------------------------------------------- */
/* ------------------------- MOBIL, ALAP MEGJELENÉS ------------------------- */

body {
    -webkit-tap-highlight-color: transparent;
    font-family: 'Open Sans', sans-serif; /* google font */
    color: #444; /* alap betűszín */
    margin: 0;
    padding: 5px; /* csak mobilon */
    font-size: 16px; /* alap font size, minden ehhez viszonyul százalékértékekkel, a @media ezt módosítja */
}

.main_container {
    position: relative;
    z-index: 0; /* .doubleshadow láthatósága miatt kell */
    background: white;
    margin: 0 auto;
}

.largedisplayonly {
    display: none;
}
.mobileonly {
}


/* --- HEADER ------------------------------ */

header  {
    text-align: center;
}

.header_links {
    font-family: 'Kanit', sans-serif;
    font-size: 1.3em;
    padding: 8px 0 0 0;
    text-align: center;
}

.header_links .logo {
    display: block;
}

.header_links .logo span {
    display: inline-block;
    font-weight: bold;
    font-size: 1.2em;
    vertical-align: middle;
    padding-left: 8px;
}

.header_links .logo img {
    display: inline-block;
    height: 30px;
    vertical-align: middle;
}

.header_links .phonelink { /* telefonszám */
    display: block;
    padding: 8px 0;
}
.header_links .phonelink svg { /* telefon ikon */
    height: 1em;
    width: 1em;
    vertical-align: middle;
    position: relative;
    top: -0.1em;
    margin-right: 0.2em;
}

.header_links .quickinfo {
    font-size: 0.65em;
}

.header_links .quickinfo div {
    display: inline-block;
    background: red;
    color: white;
    padding: 0 3px;
    border-radius: 4px;
}

.cimfoto_container {
    background-size: cover;
    background-position: center;
    min-height: 250px;
}




/* --- MENU -------------------------------- */

/* mobilon megjelenő "Menü"-sáv */
#menuheader {
    cursor: pointer;
    background: #454545;
    margin: 0 0 0px 0;
    padding: 10px;
    color: white;
    line-height: 30px;
    -webkit-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
    box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
}
#menuheader span { /* a Menü szöveg és ikonja */
    vertical-align: middle;
    padding-right: 28px;
    background: transparent url(imgs/opener.png) no-repeat center right;
    font-size: 112.5%;
}

/* -------------------- */

/* menuitem <a> elementeket tartalmazó szülő element*/
#menuitems {
    font-size: 105%;
    max-height: 0; /* alapból csukva van */
    overflow: hidden;
    background: #F1F1F1;
    transition: max-height 0.25s ease;
}

#menuitems.opened {
    -webkit-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
    box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
}

/* a fő menüpontok */
#menuitems > a {
    display: block;
    padding: 2px 0;
    border-bottom: 1px solid #DCDCDC;
    cursor: pointer;
    line-height: 2.3em;
}

/* az egyes menuitemek belseje */
#menuitems > a > span {
    display: block;
    padding: 0 0 0 10px;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* vissza a főoldalra gomb */
#menuitems > a.item_goback {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
#menuitems > a.item_goback > span {
    background: #8d7967;
    color: white;
}
#menuitems > a.item_goback > span > span:first-child { /* balra nyíl */
    font-size: 1.2em;
    padding-right: 10px;
}
#menuitems > a.item_goback:hover > span {
    color: white !important;
}

/* a kiválaszott fő- vagy almenuitem belseje */
#menuitems a.activemenuitem > span {
    background: #d5dcea;
    color: #2f5879;
}

/* --- almenük --- */

/* almenü elemeket tároló div */
#menuitems > div {
    border-bottom: 1px solid #DCDCDC;
}

/* az almenü-pontok */
#menuitems > div > a {
    display: block;
    border-top: 1px solid #DCDCDC;
    cursor: pointer;
    margin-left: 1em;
    font-size: 90%;
    padding: 2px 0;
}
#menuitems > div > a:first-child {
    border-top: none;
}

/* az egyes almenu-pontok szövege */
#menuitems > div > a > span {
    display: block;
    line-height: 2.3em;
    vertical-align: top;
    padding: 0 6px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#menuitems > div > a span::before { /* a felsorolásjel az almenüpont előtt */
    content: "\25AA";
    display: inline-block;
    padding: 0 6px 0 0;
}



/* --- TARTALOM ------------------------------------------------------------- */

.content {
    line-height: 30px;
    margin-top: 1.25em;
    min-height: 400px;
}

.content p {
    overflow: hidden; /* a hosszú linkek kilógnának */
    text-overflow: ellipsis;
    margin-bottom: 0.5em;
}

.content > * {
    max-width: 100% !important;
}
/* IE10+ CSS only */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .content > * {
        width: 100%; /* IE max-width csak strict doctype alatt működik, azaz itt nem, így hackelünk */
    }
}

.contentimage {
    margin-top: 0.5em;
    display: inline-block;
    vertical-align: top;
    background: black;
}
.contentimage > img {
    display: inline-block;
    vertical-align: top;
}

.contentimage_label { /* DIV */
    text-align: right;
    font-size: 0.8em;
    font-style: italic;
    line-height: normal;
}
.contentimage_label::before {
    content: "- ";
}
.contentimage_label::after {
    content: " -";
}

.rfloatingimage {
    /*float: none;
    /*width: 50%;
    margin: 0 0 5px 5px;*/
}

/* --- FOOTER --------------------------------------------------------------- */

#footer {
    position: relative;
}

#footer_content {
    font-size: 0.75em;
    margin: 20px 0;
    height: 20px;
    line-height: 20px;
}

#footer_content span { /* | dividers */
    display: inline-block;
    padding: 0 0.5em;
    color: silver;
}


/* -------------------------------------------------------------------------- */
/* -------------------------- MINDEN, AMI NEM MOBIL ------------------------- */
/* -------------------------------------------------------------------------- */

@media all and (min-width: 620px) {
    body {
        overflow-y: scroll;
        padding: 0; /* mobilos padding kikapcsolása */
        /* background: white url('imgs/mainbg2.jpg') no-repeat left top; */
    }

    .main_container {
        padding: 0.25em 2em;
        box-shadow: 0 0 20px 15px white;
    }

    .largedisplayonly {
        display: initial;
    }
    .mobileonly {
        display: none;
    }


    /* --- HEADER ----------------------------------------------------------- */

    /* legfelső link sáv */

    header {
        padding: 0 0 10px 0;
    }

    .header_links {
        padding-bottom: 8px;
        font-size: 1.1em;

        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    .header_links .logo {
        display: inline-block;
        flex: 2 1 0px;
        text-align: left;
    }
    .header_links .logo span {
        vertical-align: middle;
    }

    .header_links .phonelink {
        display: inline-block;
        padding: 0;
        flex: 1 1 0px;
        text-align: right;
    }
    .header_links .phonelink:hover {
        text-decoration: underline;
    }
    .header_links .phonelink svg { /* ikon */
        height: 1em;
        width: 1em;
        vertical-align: middle;
        position: relative;
        top: -0.1em;
        margin-right: 0.2em;
    }

    .header_links .quickinfo {
        flex: 0.5 1 0px;
        font-weight: bold;
        line-height: 1.3em;
        position: relative;
    }
    .header_links .quickinfo div {
        display: inline-block;
        background: red;
        color: white;
        padding: 0 3px;
        border-radius: 4px;
    }

    /* címfotó */

    .cimfoto_container {
        position: relative;
    }

    .cimfoto { /* <img> */
        display: block;
        width: 100%;
        border: 1px solid #97643B;
        background: white;
    }


    /* --- LAP (MENÜ ÉS CONTENT) -------------------------------------------- */

    .lap {
        display: flex;
    }

    #mainmenu {
        min-width: 18%;
        max-width: 25%;
        flex-shrink: 0;
    }

    #menuheader { /* a "Menü"-sáv */
        display: none;
    }

    #menuitems {
        max-height: 5000px !important; /* akkor is jelenjen meg, ha mobilnézetben elrejtette JS */
        background: transparent;
        box-shadow: none; /* a mobilnézetes .shadow class felülbírálása */
    }

    .content {
        margin-top: 0.5em;
        flex-grow: 1;
    }

    .content p {
        /*text-indent: 1em;*/
    }

    .rfloatingimage {
        float: right;
        width: 40% !important;
        margin: 0 0 0px 5px;
    }

    .lfloatingimage {
        float: left;
        width: 40% !important;
        margin: 0 15px 0px 0;
    }
}


/* -------------------------------------------------------------------------- */
/* -------------------------- MIN-WIDTH: 620 > 799 -------------------------- */
/* -------------------------------------------------------------------------- */

@media all and (min-width: 620px) and (max-width: 799px) {
    body {
        font-size: 15px;
    }

    .main_container {
        width: 600px;
    }

    .content {
        padding: 0 0 0 12px;
        line-height: 26px;
    }

}


/* -------------------------------------------------------------------------- */
/* -------------------------- MIN-WIDTH: 800 > 999 -------------------------- */

@media all and (min-width: 800px) and (max-width: 999px) {
    body {
        font-size: 16px;
    }

    h2 {
        width: auto;
    }

    .main_container {
        width: 780px;
    }

    .content {
        padding: 0 0 0 16px;
        line-height: 28px;
    }

}


/* -------------------------------------------------------------------------- */
/* ------------------------- MIN-WIDTH: 1000 > 1199 ------------------------- */

@media all and (min-width: 1000px) and (max-width: 1199px) {
    body {
        font-size: 17px;
    }

    h2 {
        width: auto;
    }

    .main_container {
        width: 980px;
    }

    .content {
        padding: 0 0 0 20px;
        line-height: 28px;
    }

}


/* -------------------------------------------------------------------------- */
/* ----------------------- MIN-WIDTH: 1200 > FELFELÉ ------------------------ */

@media all and (min-width: 1200px) {
    body {
        font-size: 18px;
    }

    h2 {
        width: auto;
    }

    .main_container {
        width: 1180px;
    }

    .content {
        padding: 0 0 0 24px;
        line-height: 34px;
    }

}










/* -------------------------------------------------------------------------- */
/* --- GRID ----------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */

.grid {
    text-align: center;
}

.griditem { /* <A> tag */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: white;
    padding: 10px 5px;

    /* az alsó ::after border miatt */
    position: relative;
    margin: 0 0 10px 0;
}
.griditem::after { /* alsó border */
    content: '';
    width: 98%;
    height: 1px;
    background: #E8E8E8;
    position: absolute;
    bottom: -5px;
    left: 1%;
}

.griditem_pic {
    display: block;
    position: relative;
    background-position: center center;
    background-color: #F4F4F4;
    background-size: cover;
    background-repeat: no-repeat;

    width: 100%;
    padding-top: 56.25%; /* 16:9 képarány */
}

.griditem_text {
    padding-left: 10px;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* --- GRID: MINDEN, AMI NEM MOBIL ------------------------------------------ */

@media all and (min-width: 620px) {

    .griditem {
        display: inline-block;
        vertical-align: top;
        border-right: 1px solid #E8E8E8;
        mix-blend-mode: multiply;
        font-size: 0.8em;
        padding: 10px;
    }
    .griditem:hover {
        box-shadow: 0 0 8px 0 #AAA;
    }

    .griditem_pic {
        width: 100%;
        padding-top: 75%; /* 16:9 képarány */
    }

    .griditem_text {
        width: 100%;
        padding: 0;
    }

}

/* --- GRID: MIN-WIDTH: 620 > 799 ------------------------------------------- */

@media all and (min-width: 620px) and (max-width: 799px) {
    .griditem {
        width: 50%;
    }
    .griditem:nth-child(2n) {
        border-right: none;
    }
}
@media all and (min-width: 800px) and (max-width: 999px) {
    .griditem {
        width: 33.33%;
    }
    .griditem:nth-child(3n) {
        border-right: none;
    }
}
@media all and (min-width: 1000px) and (max-width: 1199px) {
    .griditem {
        width: 33.33%;
    }
    .griditem:nth-child(3n) {
        border-right: none;
    }
}
@media all and (min-width: 1200px) {
    .griditem {
        width: 25%;
    }
    .griditem:nth-child(4n) {
        border-right: none;
    }
}




/* ---- WEBSITE-SPECIFIC SETTINGS ---- */


.content {
    overflow: hidden;
}

.content img {
    width: 100%;
}

.phonebtn {
    vertical-align: middle;
    display: block;
    text-align: center;
    margin: 1em 0;
}
.phonebtn a {
    background-color: #ffdc26;
    padding: 5px 20px;
    border: 1px dashed #6f5135;
    display: inline-block;
    font-weight: bold;
    vertical-align: middle;
    outline: 8px solid #ffdc26;
    margin: 20px;
    color: #6f5135;
    box-shadow: 4px 6px 10px 0 rgba(0,0,0,0.5);
}
.phonebtn svg {
    height: 1.2em;
    width: 1.2em;
    vertical-align: middle;
    position: relative;
    top: -0.1em;
    margin-right: 0.4em;
}

.embla__viewport {
    background: transparent;
}