.page {
    box-shadow: 0px 10px 20px 3px #756d5e;
    margin-bottom: 200px;
}


.web-title-container {
    content: '';
    background: url("/img/design/apagyi/header_top.png") no-repeat;
    width: 468px;
    height: 244px;
}
.web-title:hover, .web-title:active  {
    color: #c43939;
    text-decoration: none;
}
.web-title {
    display: inline-block;
    font-family: arial;
    color: #af1919;
    text-align: center;
    position: absolute;
    left: 30px;
    top: 15px;
}
.web-title span {
    display: block;
}
.web-title span:first-child {
    font-size: 68px;
}
.web-title span:nth-child(2) {
    font-size: 42px;
    margin-top: -10px;
}
.web-title span:last-child {
    font-size: 30px;
}
.article-header {
    background: rgba(190, 190, 190, .2);
    padding-left: 30px;
}
.article-container .info span {
    display: inline-block;
    color: #aaa;
    margin: 3px;
}
.article-container .title-link .title {
    color: #0e0e0e !important;
    font-weight: bold;
    margin-top: 0px;
}
.article-container .title-link:hover {
    text-decoration: none;
}
.article-container .title-link:hover .title {
    color: #333 !important;
}
.article-container .social>* {
    margin-right: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
}
.article-container img {
    max-width: 100%;
    height: auto;
}
.article-container {
    margin-bottom: 80px;
}
.fb-comments, .fb-comments iframe[style] {
    width: 100% !important;
    min-width: 100% !important;
}
.fb-likebox {
    width:100%;
    border:none;
    overflow:hidden;
    height:258px;
}


.map-container {
    overflow:hidden;
    padding-bottom:400px;
    position:relative;
    height:0;
}
.map-container iframe{
    left:0;
    top:0;
    height:400px;
    width:100%;
    position:absolute;
}


#logo {
    margin: 20px;
    margin-bottom: 0px;
}
h1 {
    font-size: 1em;
    position: relative;
    left: 140px;
    margin: 0px;
    margin-bottom: 20px;
    color: #3a5235;
    font-weight: bold;
    text-transform: uppercase;
}
h2 {
    margin-top: 60px;
}
#sidebar-1 h2, #sidebar-2 h2 {
    padding: 3px;
    color: #333;
}

#sidebar-1, #sidebar-2 .article-container .clock {
    display: none;
}
#content h2 {
    color: rgb(51, 122, 183);
}

.pagination-container {
    text-align: center;
}




body {
    background: url("/img/design/apagyi/bg.jpg");
}


.middle {
    background: #fff;
}

#header {
    position: relative;
    background: url("/img/design/apagyi/header_bg.jpg") no-repeat 280px 47%;
    background-size: auto 500px;
    min-height: 297px;
/*    overflow: hidden;*/
}

#footer {
    min-height: 100px;
    text-align: center;
    padding: 10px;
    padding-left: 15%;
    padding-right: 15%;
    background: #b68d5c;
    border-bottom: 17px solid #d9b07e;
    position: relative;
}
.footer-text {
    background: url("/img/design/apagyi/footer_triangle.png");
    color: #fff;
    font-size: 11px;
    width: 244px;
    height: 28px;
    position: absolute;
    bottom: 0px;
    left: 50%;
    margin-left: -122px;
    padding-top: 14px;
}
.footer-social:nth-child(1) a {
    background-image: url("/img/design/default/facebook.png");
}
.footer-social:nth-child(2) a {
    background-image: url("/img/design/default/google.png");
}
.footer-social:nth-child(3) a {
    background-image: url("/img/design/default/twitter.png");
}
.footer-social:nth-child(4) a {
    background-image: url("/img/design/default/linkedin.png");
}
.footer-social a {
    background-size: contain;
    width: 64px;
    height: 64px;
    display: inline-block;
}



#sidebar-1, #sidebar-2, #content {
    padding-bottom: 100px;
}



#bottom {
    color: #666;
    font-weight: bold;
    position: relative;
}
#bottom>div {
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 10px;
}
.wrapper {
    margin: 0 auto -10px;
}
#bottom, .push {
    height: 10px;
}



.top-main-menu li {
    border-radius: 0;
}
.top-main-menu .dropdown-menu a:after {
    display: none;
}
.top-main-menu .dropdown-menu {
    padding: 0px;
    margin-top: -8px;
}
.top-main-menu .btn-nav {
    border-radius: 0 !important;

    background: #d9b07e;
    background: -moz-linear-gradient(top,  #d9b07e 0%, #b48c5a 100%);
    background: -webkit-linear-gradient(top,  #d9b07e 0%,#b48c5a 100%);
    background: linear-gradient(to bottom,  #d9b07e 0%,#b48c5a 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d9b07e', endColorstr='#b48c5a',GradientType=0 );
    border-bottom: 8px solid #d8af7d !important;

    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
    border: none;
    display:inline-block;
    cursor:pointer;
    color: #af1919 !important;
    font-family:arial;
    font-size:15px;
    padding:6px 15px;
    text-decoration:none;

    box-shadow: none !important;
    height: 54px;
    line-height: 27px;
}
.top-main-menu .btn-nav:hover {
    color: #fff;
    border: none;
    background: #d8a870;
    background: -moz-linear-gradient(top,  #d8a870 0%, #af8046 100%);
    background: -webkit-linear-gradient(top,  #d8a870 0%,#af8046 100%);
    background: linear-gradient(to bottom,  #d8a870 0%,#af8046 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d8a870', endColorstr='#af8046',GradientType=0 );
}
.top-main-menu .btn-nav.active {
    background: #d8a870;
    background: -moz-linear-gradient(top,  #d8a870 0%, #af8046 100%);
    background: -webkit-linear-gradient(top,  #d8a870 0%,#af8046 100%);
    background: linear-gradient(to bottom,  #d8a870 0%,#af8046 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d8a870', endColorstr='#af8046',GradientType=0 );
}
.top-main-menu .dropdown-menu {
    background: #d9b07e;
    background: -moz-linear-gradient(top,  #d9b07e 0%, #b48c5a 100%);
    background: -webkit-linear-gradient(top,  #d9b07e 0%,#b48c5a 100%);
    background: linear-gradient(to bottom,  #d9b07e 0%,#b48c5a 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d9b07e', endColorstr='#b48c5a',GradientType=0 );
    border-bottom: 8px solid #d8af7d !important;
}
.top-main-menu .dropdown-menu a {
    border-bottom: none !important;
    background: transparent;
    height: 44px;
}

.top-main-menu .btn-nav:after {
    content: '';
    background: url("/img/design/apagyi/menu_separator.png") no-repeat;
    width: 5px;
    height: 54px;
    position: absolute;
    top: 0px;
    right: 0px;
}
.top-main-menu li:last-child .btn-nav:after {
    display: none;
}


.bottom-main-menu .btn-nav {
    color: #524a41;
}
.bottom-main-menu>.dropdown.open a {
    background: #b68d5c;
    border: none !important;
}
.bottom-main-menu .dropdown-menu {
    padding: 0px;
/*    background: #d8d8d8;*/
    box-shadow: 0px 0px 10px #000;
}
.bottom-main-menu .dropdown-menu li:first-child a {
    border-radius: 3px 3px 0px 0px;
}
.bottom-main-menu .dropdown-menu li:last-child a {
    border-radius: 0px 0px 3px 3px;
}
.bottom-main-menu .dropdown-menu a {
    border-radius: 0px;
    background: #d8d8d8;
}
.bottom-main-menu .btn-nav:after {
    content: '|';
    position: absolute;
    right: 0px;
}
.bottom-main-menu li:last-child .btn-nav:after {
    content: '';
}
.bottom-main-menu .dropdown-menu .btn-nav:after {
    content: '';
}
.bottom-main-menu .btn-nav:hover,
.bottom-main-menu .btn-nav:active,
.bottom-main-menu .btn-nav.active,
.bottom-main-menu .btn-nav.active:hover
{
    color: #524a41;
    text-decoration: underline;
    box-shadow: none;
    background: transparent !important;
}






@-webkit-keyframes hvr-buzz-out {
  10% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }

  20% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }

  30% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }

  40% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }

  50% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }

  60% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }

  70% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }

  80% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }

  90% {
    -webkit-transform: translateX(1px) rotate(0);
    transform: translateX(1px) rotate(0);
  }

  100% {
    -webkit-transform: translateX(-1px) rotate(0);
    transform: translateX(-1px) rotate(0);
  }
}

@keyframes hvr-buzz-out {
  10% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }

  20% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }

  30% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }

  40% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }

  50% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }

  60% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }

  70% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }

  80% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }

  90% {
    -webkit-transform: translateX(1px) rotate(0);
    transform: translateX(1px) rotate(0);
  }

  100% {
    -webkit-transform: translateX(-1px) rotate(0);
    transform: translateX(-1px) rotate(0);
  }
}

.hvr-buzz-out {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
}
.hvr-buzz-out:hover, .hvr-buzz-out:focus, .hvr-buzz-out:active {
  -webkit-animation-name: hvr-buzz-out;
  animation-name: hvr-buzz-out;
  -webkit-animation-duration: 0.75s;
  animation-duration: 0.75s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}



.normal_img_container {
    position: relative;
}
.normal_img_caption {
    position: absolute;
    left: 0px;
    bottom: 0px;
}
.popup-gallery {
    text-align: center;
}
.popup-gallery a {
    margin-bottom: 5px;
    display: inline-block;
}

.fotorama__caption__wrap {
    font-size: 10px;
    line-height: 10px;
    padding: 4px;
}
.fotorama__caption__wrap strong {
    font-size: 12px;
}

.slideshow {
    text-align: center;
}
.slideshow > .fotorama__wrap {
    margin: 0px auto;
}


.infobox {
    margin: 5px;
    box-shadow: inset 0px 0px 13px rgba(0, 0, 0, 0.5);
    background: rgb(144,188,234);
    background: -moz-linear-gradient(top,  rgba(144,188,234,1) 9%, rgba(144,191,240,1) 50%, rgba(162,218,245,1) 83%, rgba(189,243,253,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(9%,rgba(144,188,234,1)), color-stop(50%,rgba(144,191,240,1)), color-stop(83%,rgba(162,218,245,1)), color-stop(100%,rgba(189,243,253,1)));
    background: -webkit-linear-gradient(top,  rgba(144,188,234,1) 9%,rgba(144,191,240,1) 50%,rgba(162,218,245,1) 83%,rgba(189,243,253,1) 100%);
    background: -o-linear-gradient(top,  rgba(144,188,234,1) 9%,rgba(144,191,240,1) 50%,rgba(162,218,245,1) 83%,rgba(189,243,253,1) 100%);
    background: -ms-linear-gradient(top,  rgba(144,188,234,1) 9%,rgba(144,191,240,1) 50%,rgba(162,218,245,1) 83%,rgba(189,243,253,1) 100%);
    background: linear-gradient(to bottom,  rgba(144,188,234,1) 9%,rgba(144,191,240,1) 50%,rgba(162,218,245,1) 83%,rgba(189,243,253,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#90bcea', endColorstr='#bdf3fd',GradientType=0 );
}
.infobox .fotorama__stage__frame {
    margin: 10px;
}

.top-main-menu li a {
    display: block !important;
}

#sidebar-2 .line {
    margin-top: 40px;
}
.line {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
}

.line {
    width: 100%;
    top: 50%;
    background: url("/img/design/apagyi/line.png") repeat-x 10px 50%;
}
.line span {
    padding-right: 10px;
    background: #fff;
}
.clock {
    line-height: 10px;
    color: #ce2828;
    background: url("/img/design/apagyi/clock.png") no-repeat 10px 50%;
    width: 75px;
    height: 62px;
    padding-top: 16px;
    padding-left: 6px;
    font-size: 10px;
}
.clock span {
    font-weight: bold;
    font-size: 20px;
}
#content {
    padding-top: 25px;
}


#idokep {
    width: 300px;
    height: 260px;
    border:none;
    margin: 0px auto;
    display: block;

    -ms-zoom: 0.85;
    -moz-transform: scale(0.85);
    -moz-transform-origin: 0 0;
    -o-transform: scale(0.85);
    -o-transform-origin: 0 0;
    -webkit-transform: scale(0.85);
    -webkit-transform-origin: 0 0;
}














@media(max-width:767px) {
    .mainmenu {
        width: 100%;
    }
    .mainmenu > li {
      float: none;
      display: block;
    }
    .mainmenu > li > a {
      margin-bottom: 5px;
      text-align: center;
    }
    .mainmenu > .dropdown .dropdown-menu {
        left: 10%;
        right: 10%;
    }

    .clock {
        margin: 0px auto;
    }
    .top-main-menu .btn-nav {
        margin: 0px;
    }
    .bottom-main-menu .btn-nav:after {
        display: none;
    }
    .bottom-main-menu .btn-nav {
        margin: 0px;
    }
    .bottom-main-menu {
        padding-bottom: 50px;
    }
    .top-main-menu .btn-nav:after {
        display: none;
    }
    #logo {
        width: 60%;
    }
    .middle {
        background: #fff;
    }
    #header {
        background-position: 120px -150px;
    }
    .title {
        text-align: center;
    }
}

@media(min-width:768px) and (max-width:991px) {
    .top-main-menu {
        background: #d9b07e;
        background: -moz-repeating-linear-gradient(top,  #d9b07e 0%, #b48c5a 54px);
        background: -webkit-repeating-gradient(linear, left top, left bottom, color-stop(0%,#d9b07e), color-stop(54px,#b48c5a));
        background: -webkit-repeating-linear-gradient(top,  #d9b07e 0%,#b48c5a 54px);
        background: -o-repeating-linear-gradient(top,  #d9b07e 0%,#b48c5a 54px);
        background: -ms-repeating-linear-gradient(top,  #d9b07e 0%,#b48c5a 54px);
        background: repeating-linear-gradient(to bottom,  #d9b07e 0%,#b48c5a 54px);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d9b07e', endColorstr='#b48c5a',GradientType=0 );

        text-align: center;
    }
    .top-main-menu li {
        display: inline-block;
        width: auto;
    }
    .top-main-menu .btn-nav {
        line-height: 40px;
        border-bottom: none !important;
    }
    .top-main-menu .btn-nav:after {
        top:4px;
    }
    #footer {
        padding-left: 0%;
        padding-right: 0%;
    }
    #footer {
        padding-left: 0%;
        padding-right: 0%;
    }
    #footer .bottom-main-menu li {
        display: inline-block;
        float: none;
        width: auto;
    }
    #footer .bottom-main-menu li:last-child a {
        height: 30px;
        margin-bottom: 30px;
    }
}

@media(min-width:992px) {
    #footer {
        padding-left: 0%;
        padding-right: 0%;
    }
    #idokep {
        -ms-zoom: 0.70;
        -moz-transform: scale(0.70);
        -moz-transform-origin: 0 0;
        -o-transform: scale(0.70);
        -o-transform-origin: 0 0;
        -webkit-transform: scale(0.70);
        -webkit-transform-origin: 0 0;
    }
}

@media(min-width:1200px) {
    #footer {
        padding-left: 15%;
        padding-right: 15%;
    }
    #idokep {
        -ms-zoom: 0.88;
        -moz-transform: scale(0.88);
        -moz-transform-origin: 0 0;
        -o-transform: scale(0.88);
        -o-transform-origin: 0 0;
        -webkit-transform: scale(0.88);
        -webkit-transform-origin: 0 0;
    }

}







.zabuto_calendar {
    border-radius: 10px;
    border: 1px solid #ccc;
    border-bottom: 10px solid #a16d46;
}
.zabuto_calendar th {
    background-color: #fff !important;
}
.zabuto_calendar tr:nth-child(2) th {
    border-left: 1px solid #e5e6df;
    border-bottom: 1px solid #e5e6df;
    border-top: none;
}
.zabuto_calendar td {
    color: #a16d46;
    border: 1px solid #e5e6df;
}
.zabuto_calendar tr:last-child td {
    border-bottom: 1px solid transparent;
}
.zabuto_calendar tr td:first-child, .zabuto_calendar tr th:first-child {
    border-left: none;
}
.zabuto_calendar tr td:last-child {
    border-right: none;
}
.zabuto_calendar tr:first-child th:first-child {
    border-top-left-radius: 10px;
}
.zabuto_calendar tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.btn-apagyi {
    border-radius: 1px !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #d9b07e;
    position: relative;
    color: #fff;
}
.btn-apagyi:hover {
    color: #fff;
    background: #ba8e58;
}
.btn-more {
    border-radius: 1px !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #d9b07e;
    position: relative;
    color: #fff;
}
.btn-more:hover {
    color: #fff;
    background: #ba8e58;
}
.btn-more:after {
    color: #75695a;
    content: ">";
    padding-left: 15px;
}
.btn-more:before {
    content: '';
    width: 1px;
    height: 80%;
    background: #c7a172;
    position: absolute;
    right: 26px;
    top: 3px;
}


/*Minden kép és galéria középre*/
.fotorama__wrap {
    margin: 0px auto;
}
.normal_img_container {
    text-align: center;
}
.normal_img_container img {
    margin: 0px auto;
}


.masikola-title {
    display: block;
    margin-top: 40px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
.maiskola-logo {
    margin: 0px auto;
    opacity: 0.7;
}
.maiskola-logo:hover {
    opacity: 1.0;
}
.btn-limited {
    background: #000;
    color: #ffc107;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 50px;
}
.btn-limited img {
    margin: auto auto;
    left: 5px !important;
}
.btn-limited:hover {
    background: #ffc107;
    color: #000;
}