@font-face {
    font-family: 'myriad_procondensed';
    src: url('../fonts/myriadpro-cond-webfont.eot');
    src: url('../fonts/myriadpro-cond-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/myriadpro-cond-webfont.woff') format('woff'),
    url('../fonts/myriadpro-cond-webfont.ttf') format('truetype'),
    url('../fonts/myriadpro-cond-webfont.svg#myriad_procondensed') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'myriad_probold_condensed';
    src: url('../fonts/myriadpro-boldcond-webfont.eot');
    src: url('../fonts/myriadpro-boldcond-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/myriadpro-boldcond-webfont.woff') format('woff'),
    url('../fonts/myriadpro-boldcond-webfont.ttf') format('truetype'),
    url('../fonts/myriadpro-boldcond-webfont.svg#myriad_probold_condensed') format('svg');
    font-weight: normal;
    font-style: normal;

}


@font-face {
    font-family: 'MyriadPro-Semibold';
    src: url('../fonts/MyriadPro-Semibold.eot?#iefix') format('embedded-opentype'),  url('../fonts/MyriadPro-Semibold.otf')  format('opentype'),
    url('../fonts/MyriadPro-Semibold.woff') format('woff'), url('../fonts/MyriadPro-Semibold.ttf')  format('truetype'), url('../fonts/MyriadPro-Semibold.svg#MyriadPro-Semibold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyriadPro-Regular';
    src: url('../fonts/MyriadPro-Regular.eot?#iefix') format('embedded-opentype'),  url('../fonts/MyriadPro-Regular.otf')  format('opentype'),
    url('../fonts/MyriadPro-Regular.woff') format('woff'), url('../fonts/MyriadPro-Regular.ttf')  format('truetype'), url('../fonts/MyriadPro-Regular.svg#MyriadPro-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}



body {
    background-color: #EDEDED;
}
#sponsor {
        color: red;
        backgground-color: red;
        position: absolute;
        top: 0px;
        right: 0px;
        z-index: 1;
}
#site {
    width: 100%;
    height: 100%;
}

/* Header */

#logo {
    display: inline-block;
    float: left;
}

#logo img{
    display: block;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#site header {
    position: relative;
    background-color: rgba(61, 61, 61, .95);
    padding-top:75px;

}

#site header > img {
    width: 100%;
    height: auto;
/*    z-index: -2*/;
    position: relative;
}

#site header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(61, 61, 61, .95);
    z-index: 100;
    border-bottom: solid 1px #464748;
    padding: 10px 0;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#site header .frame{
    position: relative;
    z-index: 2222;
}

#site header nav ul {
    display: inline-block;
    float: right;
    margin-top: 13px;
    margin-bottom: 0;
    text-align: right;
    position: relative;
    z-index: 5000;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#site header nav ul li {
    display: inline-block;

}

#site header nav ul li a {
    position: relative;
    text-transform: uppercase;
    font-size: 18px;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    font-family: 'MyriadPro-Semibold';
    display: block;
}

#site header nav ul li.active a, #site header nav ul li a:hover {
    background-color: #1E77D2;
}

#site header nav ul li a:before {
    position: absolute;
    content: "";
    width: 1px;
    height: 8px;
    background-color: white;
    left: -2px;
    top: 19px;
}

#site header nav ul li:first-of-type a:before {
    display: none;
}

#site header nav ul li.active a {
    padding-left: 30px;
    background-image: url("../img/arrow.png");
    background-repeat: no-repeat;
    background-position: 13px center;
}

#header_content {
    width: 990px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

#title h1 {
    color: #383737;
    font-size: 37px;
    text-transform: uppercase;
    font-family: 'MyriadPro-Regular';
    position: relative;
    left: -1500px;
}

#title h1 b {
    color: white;
}

#title p {
    font-size: 16px;
    margin-bottom: 20px;
    margin-top: 20px;
    color: black;
}

#header_boxes {
    width: 100%;
    min-height: 178px;
    font-size: 0;
    background-color: #333333;
}

#header_boxes div {
    min-width: 200px;
    height: 100%;
    margin: 0;
    width: 33.33333339%;
    display: inline-block;
    font-size: 15px;
    text-align: center;
    vertical-align: top;
    position: relative;


}

#header_boxes div:hover p{
    -webkit-box-shadow: inset 0px 0px 25px 2px rgba(255,255,255,1);
    -moz-box-shadow: inset 0px 0px 25px 2px rgba(255,255,255,1);
    box-shadow: inset 0px 0px 25px 2px rgba(255,255,255,1);
}

#header_boxes div:nth-of-type(2) h1, #header_boxes div:nth-of-type(2) p{
    border-left: 1px solid rgba(240,240,240,0.08);
    border-right: 1px solid rgba(240,240,240,0.08);

}

#header_boxes div h1 {
    position: relative;
    margin: 0;
    display: block;
    width: 100%;
    height: 45px;
    line-height: 45px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #1E77D2;
}

#header_boxes div h1:after {
    position: absolute;
    content: "";
    bottom: -8px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 8px;
    border-color: #1E77D2 transparent transparent transparent;
}

#header_boxes div p {
    padding-top: 30px;
    color: #C9C9C9;
    padding-bottom: 60px;
    padding-right: 20px;
    padding-left: 20px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    margin: 0;

}

#header_boxes div a.circleBtn {
    width: 27px;
    height: 27px;
    display: block;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;

    position: absolute;
    bottom: 20px;
}

#header_boxes div a.circleBtn img{
    max-width: none;
  /*  -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;*/
}

@keyframes btnHover {
    20% {-ms-transform: scale(1.5,1.5); /* IE 9 */
        -webkit-transform:  scale(1.5,1.5); /* IE 9 */
        transform:  scale(1.5,1.5); /* IE 9 */}
    50%{
    -ms-transform: scale(0.9,0.9);
    -webkit-transform: scale(0.9,0.9);
    transform:  scale(0.9,0.9);
    }
    100%{
    -ms-transform: scale(1.4,1.4);
    -webkit-transform: scale(1.4,1.4);
    transform:  scale(1.4,1.4);
    }

}


#header_boxes div:hover a.circleBtn img{
    animation-name: btnHover;
    animation-duration: 1s;
    animation-iteration-count: 1;
    -ms-transform: scale(1.4,1.4);
    -webkit-transform: scale(1.4,1.4);
    transform:  scale(1.3,1.3);
}





#header_boxes:before {
    position: absolute;
    content: "";
    left: -35px;
    right: 0;
    bottom: -48px;
    margin-left: auto;
    margin-right: auto;
    height: 82px;
    width: 1057px;
    background-image: url("../img/shadow.png");
    z-index: -1;
}

/* Header vége */

/* Footer */

#site footer {
    position: relative;
    width: 990px;
    margin-left: auto;
    margin-right: auto;
    background-color: #2F2F2F;
    margin-bottom: 50px;
    color: #979797;
}

#site footer a:hover{
    color: white;
}

#footer_boxes {
    font-size: 0;
    width: 100%;
}

#footer_boxes > div {
    display: inline-block;
    vertical-align: top;
    min-height: 270px;
    font-size: 14px;
}

#footer_boxes > div > *:not(h1) {
    margin-left: 30px !important;
    margin-right: 10px !important;
}

#footer_boxes > div:nth-of-type(1) {
    width: 45%;
    min-width: 445px;
    background-repeat: no-repeat;
    background-image: url("../img/logo.png");
    background-position: 30px bottom;
    min-height: 300px;
}

#footer_boxes > div:nth-of-type(2) {
    width: 25%;
    min-width: 247px;
}

#footer_boxes > div:nth-of-type(3) {
    width: 30%;
    min-width: 297px;
}

#footer_boxes > div > h1 {
    display: block;
    color: white;
    font-size: 18px;
    width: 100%;
    min-height: 50px;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 70px;
    margin: 0;
    border-bottom: double 4px #434343;
    background-repeat: no-repeat;
    background-position: 30px 11px;
    background-image: url("../img/circle_button.png");
    margin-bottom: 10px;

}

#footer_boxes>  div > blockquote {
    padding: 0;
    font-style: italic;
    color: rgb(151, 151, 151);
    font-size: 15px;
    border: none;
    line-height: 20px;
    background-image: url("../img/quotation_marks.png");
    background-repeat: no-repeat;
    background-position: left middle;
}

#footer_boxes > div > blockquote div {
    font-style: normal;
    margin-top: 20px;
    font-size: 13px;
}

#footer_boxes > div > h2 {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    color: #979797;
}

#footer_boxes > div > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer_boxes>  div > ul > li {
    line-height: 25px;
    background-image: url("../img/footer_list_image.png");
    background-repeat: no-repeat;
    background-position: 5px 9px;
    padding-left: 20px;
}

#footer_boxes > div>  p {
    margin: 0;
    color: #979797;
}

#footer_boxes > a {
    color: #979797;
    text-decoration: none;
}

#footer_boxes>  a:hover {
    color: white;
}

#footer_note {
    margin-top: 15px;
    overflow: auto;
    min-height: 45px;
    border-top: solid 1px #434343;
    padding: 10px 20px 10px 20px;
    font-size: 14px;
}

#copyright {
    float: left;
}

#watermark {
    float: right;
}

#site footer:after {
    position: absolute;
    content: "";
    left: -35px;
    right: 0;
    bottom: -48px;
    margin-left: auto;
    margin-right: auto;
    height: 82px;
    width: 1057px;
    background-image: url("../img/shadow.png");
    z-index: -1;
}

#motto_slider{
    margin-top: 20px;
}

/* Footer vége */

/* Content */

#content, .content_box {
    width: 990px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    padding: 20px;
    margin-bottom: 30px;
    margin-top: 20px;
    border-bottom: solid 1px #C8C8C8;
    border-left: solid 1px #DDDDDD;
    border-right: solid 1px #D3D3D3;
    border-top: solid 1px #CDCDCD;
    position: relative;
    font-size: 0;
    max-width: 95%;
}



.content_box.motto{

}

.content_box a:hover, .content_box a{
    color: #1E77D2;
}



#content:after,  .content_box:after {
    left: -1px;
    position: absolute;
    content: "";
    width: 100%;
    height: 5px;
    background-color: #D5D5D5;
    bottom: -5px;
    max-width: 990px;
}

#content > div {    /*  #content div -ről ------ #content > div -re KARESZ */
    display: inline-block;
    font-size: 14px;
    vertical-align: top;
    height: 100%;
}

#left {
    width: 32%;
    min-width: 284px;
}

#right {
    width: 68%;
}

.main_title {
    display: block;
    width: 100%;
    line-height: 40px;
    background-color: #EDEDED;
    font-size: 19px;
    color: #656565;
    margin: 0;
    padding-left: 20px;
    font-weight: bold;
}

.switcher {
    position: absolute;
    height: 40px;
    top: 0;
    right: -15px;
    text-align: right;
    float: right;
}

.switcher >  a {
    cursor: pointer;
    text-align: center;
    float: right;
    width: 40px;
    line-height: 40px;
    height: 40px;
    border-left: solid 1px #D5D5D5;
    position: relative;
}

.switcher >  a.active:after, .switcher >  a:hover:after {
    position: absolute;
    content: "";
    bottom: -1px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent white transparent;
}

.switcher > a.active, .switcher >  a:hover {
    background-color: #A1A1A1;
    box-shadow: inset 0px 0px 40px -6px rgba(0, 0, 0, .5);
}

.switcher > a >  img:last-of-type {
    display: none;
}

.switcher > a.active >  img:first-of-type, .switcher > a:hover > img:first-of-type {
    display: none !important;
}

.switcher >  a.active >  img:last-of-type, .switcher >  a:hover > img:last-of-type {
    display: inline-block;
}

#left > div:first-of-type >  *:nth-of-type(1) {
    padding-top: 10px;
}

#left > div {
    position: relative;
    background-color: #F5F5F5;
    border-left: solid 1px #D7D7D7;
    border-bottom: solid 1px #D7D7D7;
    border-right: solid 1px #D7D7D7;
    color: #909090;
    padding-bottom: 10px;
    width: 100%;
}

#left > div > *:not(h1) {
    margin-left: 15px !important;
    margin-right: 15px !important;
}

#left > div > h1 {
    margin: 0;
    width: 100%;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: #656565;
    line-height: 40px;
    padding-left: 15px;
    border-bottom: solid 1px #D7D7D7;
    margin-bottom: 10px;
}

#left > div > div.data_box {
    display: none;
}

#left > div > div.data_box.active {
    display: block;
}

#left > div > div.data_box > h2 {
    font-size: 14px;
    color: #656565;
    margin: 0;
    margin-bottom: 5px;
}

#left > div > div.data_box > p {
    margin: 0;
}

#left > div > form > input[type="email"] {
    border: solid 1px #B8B8B8;
    border-radius: 6px;
    outline: none;
    height: 35px;
    padding-left: 10px;
    width: 100%;
    padding-right: 40px;
}

#left > div > form > input[type="email"]:focus {
    border-color: #1E77D2;
}

#left > div > form {
    margin-top: 10px;
    margin-bottom: 2px;
    position: relative;
}

#left > div > form >  input[type="submit"] {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    border: none;
    background-color: #1E77D2;
    background-image: url("../img/arrow.png");
    background-repeat: no-repeat;
    background-position: 9px 8px;
    top: 15px;
}

#real_content, .real_content {
    padding: 20px;
    border-bottom: solid 1px #D8D8D8;
    border-right: solid 1px #E6E6E6;
    color: #656565;
    position: relative;
}

#real_content:after{
    position: absolute;
    content: "";
    height: 100%;
    width: 1px;
    top: 0;
    left: -1px;
    border-left: solid 1px #D7D7D7;
}
.real_content:after {
    position: absolute;
    content: "";
    height: 100%;
    width: 1px;
    top: 0;
    left: 0;
    border-left: solid 1px #D7D7D7;
}

/* Content vége */

/* Mobil nézet */

#menu_button {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: #1E77D2;
    font-size: 50px;
    line-height: 45px;
    color: white;
    text-align: center;
    padding-top: 4px;
    text-decoration: none;
    z-index: 4000;
    margin-top: 8px;
}

#menu_button.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: #1E77D2;
    background: white;
}


p{
    color: #2f2f2f;
    font-size: 14px;
}

h1{
    color: #2f2f2f;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
}

h2{
    color: #2f2f2f;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 18px;
}

.tel_holder{
    position: absolute;
    top: -45%;
}

.tel{
    position: relative;
    color: white;
    z-index: 79;
    font-family: 'MyriadPro-Regular';
    font-size: 22px;
    background: rgba(30, 119, 210, 0.43);
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 7px;
    display: block;
}

#tel1{
   /* top: -41%;*/
    left: -1000px;
}


#tel2{
    /*top: -29%;
    top: -41%;*/
    right:  -3000px;
}


#tel3{
    /*top: -17%;
    top: -41%;*/
    left:  -1000px;
}

video#bgvid, #slider iframe{
    position: relative;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    /*width: 100%!important;*/
    /*height: 100%!important;*/
    z-index: -100;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background: url(../img/header_logo.jpg) no-repeat;
    background-size: cover;
}


.video_holder{
    margin-bottom: 10px;
}



/* ==========================================================================
   MYBASE
   ========================================================================== */

a{
    color: inherit;
    font-size: 14px;
 }

a:hover{
    color: inherit;
    text-decoration: none;

}

.clear {
   clear:both;
   font-size:0px;
   line-height:0px;
   height:0px;
   display: block;
}

.float.left{
    float: left;
}

.float.right{
    float: right;
}

.section{
	width: 100%;

}

.frame{
    max-width: 990px;
	width: 95%;
	margin: 0 auto;
}

.pad-no{
	padding: 0;
}

.pad-no-l{
	padding-left: 0;
}

.pad-no-r{
	padding-right: 0;
}

/* akkor használom ha a kereső doboz együtt van a gombbal */
.search_form{
    display: block;
    float: right;
    border-radius: 5px;
    position: relative;
}

.search_form input[type="text"]{
    border: 0;
    padding: 5px;
    display: block;
    width: 100%;
}

.search_form input[type="submit"]{
    border: 0;
    padding: 5px;
    position: absolute;
    top: 0px;
    right: 0px;
    text-transform: uppercase;
    background: none;
}


.alignCenter{
    display: block;
    margin: 15px 0;
    padding: 10px;
    text-align: center;
}

.alignLeft{
    float: left;
    margin: 5px 10px 10px 0;
}

.alignRight{
    float: right;
    margin: 5px 0 10px 10px;
}

img{
    max-width: 100%;
}

form{
    display: block;
    margin: 15px 0;

}

form input, form select, form textarea{
    display: block;
    padding: 5px 10px;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
}


/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
