@media screen and (max-width: 1100px)
{
    h2 { display: none; }
    #header { float: none; clear: both; height: 80px; }
    .menu-header { text-align: left; margin: 0; }
    .menu-header { display: block; float: left; clear: both; }
    #logo { position: absolute; margin: 0 auto; float: none; clear: both; top: -20px; left: 0; }

    #header-icon { display: none; }

    #page { width: 100%; }
    #content .newsblocks .widget { width: 30%; }
    #content #first_panel .widget_text { height: 170px; }

    body.single #content #tartalom-reklam { width: 675px; display: block !important; }
/*    body.single #content #tartalom-reklam div.widget_text { width: 675px; } */

    body.frame #logo { position: absolute; top: -5px; left: -5px; }
    body.frame #page,
    body.frame .wrapper,
    body.frame #header { width: 100%; }
}

@media screen and (max-width: 1024px)
{
    /* body { margin-top: -20px; } */
    h2 { display: none; }
/*
    #logo { position: absolute; margin: 0 auto; float: none; clear: both; top: -5px; left: 0; }
*/
    #logo { top: 0; }
    #page { width: 100%; margin: 0; padding: 0; }
    #header { height: 125px; width: 100%; }
    #header-icon { display: none; }
    #header #header-reklam { display: block; position: relative; top: 0; right: 0; float: none; }
    #header #header-widget { margin-left: 5px; margin-top: 52px; }
/*    
    #header #header-widget { display: block; position: absolute; top: 10px; left: 190px; margin: 0; }
    #header #nem-poll-korrekt { top: 40px; right: 5%; left: auto; }
    .menu-header { width: 100%; top: 50px; }
*/
    .menu-header { top: 90px; width: 100%; }
    .menu-header ul li a { padding: 0 6px; }
    .menu-header ul li.menu-item-home { display: none; }
    .menu-header ul li.menu-item-close { display: none; }

    #content .newsblocks .widget { width: 49%; }
    #content #second_panel,
    #content #third_panel,
    #content #fourth_panel,
    #content #fifth_panel,
    #content #sixth_panel { display: grid; }
    #content #kepes_hirek { width: 100%; }

    #content #second_panel div.widget_show_term_entries:nth-of-type(1),
    #content #second_panel div.widget_show_term_entries:nth-of-type(3),
    #content #second_panel div.widget_show_term_entries:nth-of-type(5),
    #content #second_panel div.widget_show_term_entries:nth-of-type(7),
    #content #second_panel div.widget_show_term_entries:nth-of-type(9) { grid-column:1 !important; }

    #content #second_panel div.widget_show_term_entries:nth-of-type(2),
    #content #second_panel div.widget_show_term_entries:nth-of-type(4),
    #content #second_panel div.widget_show_term_entries:nth-of-type(6),
    #content #second_panel div.widget_show_term_entries:nth-of-type(8) { grid-column:2 !important; }

    #content .newsblocks div.widget { width: 100%; }

    #content #first_panel .widget_sticky_entries, 
    #content #first_panel .widget_popular_entries,
    #content #first_panel .widget_text { float: right; width: 390px; }

    #content .list-news,
    #content .list-news #topposts { width: auto; max-width: 600px; }

    body.single #single_news { width: 300px; }
    body.single #content { min-width: 675px; }
    body.single #content #tartalom-reklam { width: 675px; display: block !important; }
    body.single #content #tartalom-reklam div.widget { margin: 0; }
    body.single #content div.entry-image img { max-width: inherit; width: 100%; }

    body.frame #logo { position: absolute; top: 0px; left: -5px; }
    body.frame #page,
    body.frame .wrapper,
    body.frame #header { width: 100%; }

    body.frame #page,
    body.frame .menu-header,
    body.frame #header { height: 65px; }
    
    body.frame #logo { top: 15px !important; }
}

@media screen and (min-width: 480px) and (max-width: 1023px)
{
    #header { height: 162px;  }
    .menu-header { top: 130px; }


    body.frame #page,
    body.frame .menu-header,
    body.frame #header { height: 65px; }

    body.frame #logo { top: 15px !important; }
}

@media screen and (max-width: 640px)
{
    body.single #single_news,
    body.single #social-panel,
    body.single #content { width: auto; max-width: 640px; min-width: inherit; }

    body.single #content img,
    body.single #content div.entry-image img{ max-width: 640px; width: 100%; }

    .wrapper { width: 100%; margin: 0 auto; }

    div.footer-wrapper,
    div.footer-wrapper #footer { width: 100%; }
    
    div.widget_recent_entries,
    div.widget_hirdetes_tartalom,
    div.widget_text { width: 640px; overflow: hidden; }
    
    #header #header-widget { margin: 5px 0 0 0; }

    div#kepes_hirek,
    div#kepes_hirek div.kepek { width: 100%; }
    
    #content #first_panel .widget_recent_entries,
    #content #first_panel .widget_popular_entries,
    #content #first_panel .widget_text { float: none; width: 100% !important; clear: both; }
    
    #header-reklam { position:relative; float: none; clear: both; max-width: 640px; width: 100%; }
    
    div.widget_text, 
    div.widget_hirdetes_tartalom,
    div.widget_recent_entries { max-width: 640px; width: 100%; }
    
    div#kepes_hirek { height: auto; }
    #kepes_hirek div.kepek span.image-post { width: 100%; }
    #kepes_hirek div.kepek span.image-post span.image {  width: 100%; height: 130px; }
/*    #kepes_hirek div.kepek span.hirdetes-post { width: 372px; } */

    #content iframe,
    #content object
    #content div.entry-image,
    #content div.entry-image img { width: 100%; max-width: 640px; }
}

@media screen and (max-width: 480px)
{
    body li,
    body span,
    body a { font: 20px Arial; }

    .menu-header a { font-size: 16px; }

    h2 { display: none; }
    #page { width: 100%; margin: 0; padding: 0; }
    #header { float: none; clear: both; height: 40px; margin-bottom: 10px; margin-top: 0; width: 100%; }
    #header-icon { display: block; position: absolute; top: 0.5em; right: 0.5em; z-index: 1000; }

    .wrapper { width: 100%; margin: 0 auto; }

    div.footer-wrapper,
    div.footer-wrapper #footer { width: 100%; }

    #header-reklam { display: block !important; position: relative; top: 0; left: 0; right: auto; margin:0;  }
    #header-reklam { width:100%;  max-width: 480px; }
    
    div.widget_text, 
    div.widget_hirdetes_tartalom,
    div.widget_recent_entries { max-width: 480px; width: 100%; }
    
    #header #nem-poll-korrekt { display: none; }
    .menu-header { text-align: left; margin: 0; font-size: 14px; }
    .menu-header ul li { border-bottom: 0; }
    #header #header-widget { display: none; }
    .menu-header { display: block; float: left; clear: both; top: 0; }
    #footer-pages { display: none; }
    #logo { position: relative; margin: 0 auto; float: none; clear: both; top: 0; }

    ul#menu-fejlec { display: none; }
    ul#menu-fejlec.open { display: block; width: 100%; background: #fff; position: absolute; z-index: 20000; }
    ul#menu-fejlec.open li { display: block; width: 100%; height: 1.5em; font-size: 1em; }
    ul#menu-fejlec.open li span { font-size: 1em; font-weight: 800; }
    ul#menu-fejlec.open li.menu-item-close { position: absolute; top: 0; right: 0; text-align: right; }

    ul#menu-fejlec.open li#header-date,
    ul#menu-fejlec.open li#header-nameday,
    ul#menu-fejlec.open li.header-currency { padding: 0 6px; }

    /* #text-2 { display: none; } */
    
    .menu-header { background: transparent; height: auto; position: relative; top: auto; width: 100%; }
    .menu-header ul li a { line-height: normal; height: auto; color: #000; }
    .menu-header ul li { line-height: normal; height: auto; border: 0; font-size: 18px; }
    #header #header-widget { margin-left: 6px; font-size: 20px; }
    
    #popular-posts-2 { margin-top: 20px; }
    #content #first_panel .widget_recent_entries { width: 99%; }
    #content #first_panel .widget_popular_entries { width: 99%; }
    #content #first_panel #text-2,
    #content #first_panel #text-2 div.fb_iframe_widget,
    #content #first_panel #text-2 div.fb_iframe_widget span,
    #content #first_panel #text-2 div.fb_iframe_widget span iframe { width: 99% !important; }

    #content #kepes_hirek { display: block !important; }
    body #content #kepek_panel #kepes_hirek .kepek span.image-post { grid-column: 1 !important; width: 355px; margin: 0 auto; }
    
    #content .newsblocks .widget { height:auto; }
    
    #content #first_panel .widget_popular_entries li, 
    #content #first_panel .widget_recent_entries li { float: none; display: inline-block; margin: 6px 0; }

    #content .list-news,
    #content .list-news #topposts { width: 100%; max-width: 475px; float: none; }
    body.archive #content .list-news ul,
    body.archive #content .list-news ul li { display: block; clear: both; float: none; height: auto; line-height: auto; margin: 0.5em 0; font-size: 0.75em; }
    #content .list-news div.archive-images { width: 100%; max-width: 475px; float: none; }
    #content .archive-images .archive-image img { max-width: 230px; }
    
    body.single #single_news { width: 100%; }
    body.single #social-panel div.fb-like { width: 156px; overflow: hidden; }
    body.single #content { width: 100%; margin: 0; }
    body.single #content div.entry-image img { max-width: 480px; width: 100%; }
    body.single div.entry-meta span.entry-date time { margin: 0.2em; font-size: 18px; }
    body.single #content h1 { margin: 1em 0.2em; line-height: 1em; font-size: 21px; font-weight: bold; }
    body.single #content p { margin-left: 0.5em; margin-right: 0.5em; }

    body.frame #logo { margin: 0 auto; position: relative; }
    body.frame #page,
    body.frame .wrapper,
    body.frame #header { width: 100%; background: #ffb949; }
    body.frame .menu-header { display: none; }

    #content .newsblocks .widget { width: 100%; }
    div.widget_recent_entries ul li { display: block; width: 100%; }

    div.widget_recent_entries ul li span.site-name { font-size: 22px; }
    div.widget_recent_entries ul li span.post-time { font-size: 20px; }

    div#highlighted-posts div.widget_highlighted_entries { height: auto; margin: 10px 0;  }

    div#highlighted-posts div.widget_highlighted_entries section.featured { grid-row-gap: 10px; }

/*
    div#highlighted-posts div.widget_highlighted_entries article:nth-of-type(1),
    div#highlighted-posts div.widget_highlighted_entries article:nth-of-type(2),
*/
    div#highlighted-posts div.widget_highlighted_entries article { grid-column: 1; margin: 0 auto; }

    body.single #social-panel div.fb-like,
    body.single #social-panel div.fb-send,
    body.single #social-panel #___plusone_0 { float: none !important; clear: both; }


    #content iframe,
    #content object
    #content div.entry-image,
    #content div.entry-image img { width: 100%; max-width: 480px; }

    /* reklam blokkok  */

    body.single #content #tartalom-reklam { display: block !important; width: 100%; background: transparent; }
    body.single #content #tartalom-reklam span.title { display: none; }

    body.single #content #tartalom-mobil-reklam { display: block !important; }

    body.single #content #tartalom-reklam div.widget_hirdetes_tartalom { display: none; }
    body.single #content #tartalom-reklam div.widget_hirdetes_tartalom:first-of-type { display: block; }
}

@media screen and (max-width: 360px)
{
    body { margin-top: 0; }

    .menu-header { display: none; }

    .wrapper { width: 100%; margin: 0 auto; }

    div.footer-wrapper,
    div.footer-wrapper #footer { width: 100%; }

    body.single #single_news,
    body.single #social-panel,
    body.single #content { width: auto; max-width: 360px; min-width: inherit; }

    body.single #content h1 { margin: 1em 0.5em 1em 0.5em; }

    body.single #content img,
    body.single #content div.entry-image img{ max-width: 360px; width: 100%; }
    
    div.widget_recent_entries,
    div.widget_hirdetes_tartalom,
    div.widget_text { width: 360px; overflow: hidden; }
    
    #content #first_panel .widget_popular_entries li, 
    #content #first_panel .widget_recent_entries li, 
    body.single #single_news .widget_recent_entries li { margin: 1.5em 0; }
    body.single #content div.entry-content a.followup { font-size: 16px; margin: 10px 0; display: inline-block; }

    body.single #social-panel { width: 100%; background-size: 400px auto; }

    body.single #social-panel div.telegram-share,
    body.single #social-panel div.fb-send,
    body.single #social-panel div.fb-like,
    body.single #social-panel div.twitter-share { float: none; clear: both; width: 90px; }

    #header #header-reklam { width: 100%; max-width: 360px; }
    div.widget_text, 
    div.widget_hirdetes_tartalom,
    div.widget_recent_entries { max-width: 340px; width: 100%; }

    #content iframe,
    #content object
    #content div.entry-image,
    #content div.entry-image img { width: 100%; max-width: 360px; }
}

@media screen and (max-width: 320px)
{
    body { margin-top: 0; }

    .menu-header { display: none; }

    .wrapper { width: 100%; margin: 0 auto; }

    body.single #single_news,
    body.single #social-panel,
    body.single #content { width: auto; max-width: 320px; min-width: inherit; }

    body.single #content img,
    body.single #content div.entry-image img{ max-width: 320px; width: 100%; }
    
    div.widget_recent_entries,
    div.widget_hirdetes_tartalom,
    div.widget_text { width: 320px; overflow: hidden; }
    

    #content #first_panel .widget_popular_entries li, 
    #content #first_panel .widget_recent_entries li, 
    body.single #single_news .widget_recent_entries li { margin: 5px 0; }

    body.single #content div.entry-content a.followup { font-size: 16px; margin: 10px 0; display: inline-block; }

    #header #header-reklam { width: 100%; max-width: 320px; }
    div.widget_text, 
    div.widget_hirdetes_tartalom,
    div.widget_recent_entries { max-width: 320px; width: 100%; }

    #content iframe,
    #content object
    #content div.entry-image,
    #content div.entry-image img { width: 100%; max-width: 320px; }
}

@media screen and (max-width: 240px)
{
    body li,
    body span,
    body a { font: 16px arial; }

    h2 { display: none; }
    #page { width: 100%; padding: 0; margin: 0; }
    #header { float: none; clear: both; height: auto; margin-bottom: 20px; margin-top:0; width: 100%;  }
    #header #nem-poll-korrekt { display: none; }
/*    #header #header-reklam { display: none; } */
    .menu-header { text-align: left; margin: 0; font-size: 14px; }
    .menu-header ul li { border-bottom: 0; }
    .menu-header { display: block; float: left; clear: both;}
    #footer-pages { display: none; }

    .wrapper { width: 100%; margin: 0 auto; }

    #logo { position: relative; margin: 0 auto; float: none; clear: both; }	
    /* #text-2 { display: none; } */
    #popular-posts-2 { margin-top: 20px; }
    #content #first_panel .widget_recent_entries { width: 98%; }
    body.single #content { margin: 0; }
    body.single #content img { max-width: 240px; }
    body.single #content div.entry-image img { max-width: 240px; width: 100%; }
    body.single #social-panel div.fb-like { width: 156px; overflow: hidden; }
    #content #kepes_hirek { display: none !important; }

    #content .list-news,
    #content .list-news #topposts { width: auto; max-width: 240px; }
    #content .list-news .archive-images { float: none; clear: both; }

    div.widget_recent_entries ul li span.post-time { font: 14px arial; }
    body.single #social-panel div.fb-like,
    body.single #social-panel div.fb-send { width: 240px; float: none; clear: both; }
    body.single #social-panel #___plusone_0 { float: none !important; clear: both; }

    #header #header-reklam { width: 240px; }
    div.widget_text,
    div.widget_hirdetes_tartalom,
    div.widget_recent_entries { max-width: 240px; width: 100%; }

    #content iframe,
    #content object
    #content div.entry-image,
    #content div.entry-image img { width: 100%; max-width: 240px;  }
}

@media screen and (min-width: 1100px)
{
    #page { width: 100%; }
    .wrapper { width: 1100px; margin: 0 auto; }
    #header #header-reklam { display: block !important; }
    #content #tartalom-reklam { display: block !important; }

    #header #header-icon { display: none; }
    .menu-header ul li.menu-item-close { display: none; }
}
