/*
 * Copyright (c) 2018. Please do not steal my humble code. There are a lot of superior free to use sources on the wild, this is a very poor code. Thank you!
 */

/* NOTE: The view defaults to "Mobile" view, if the device width is higher than 980px (based on the original design), it will be handled as a "PC" */

/* Common -------------------------------------------------------------- */

body {
    background: url("../images/main_bg.png") repeat-x black;
    max-width: 980px;
    margin: 0 auto;
    font-family:Verdana,Arial,Helvetica;
    font-weight:normal;
    /*font-size: 0.75em;*/
    color: white;
}


/* This is for IE  only */
img {
    border: 0;
}

#main {
    background-color: #3d3d3d;
}
#main_logo a img {
    background-color: black;
    box-shadow: 0px 0px 10px black;
}
#main_greeting {}

#main_greeting h1 {
    font-size:1.6em;
    font-weight:700;
    margin-bottom: 1.5em;
}
#main_greeting h1 .red {
    color: red;
}
#main_info {
    line-height: 0;
}
#main_links {
    line-height: 0;
}
#main_links a {
    position: relative;
}
#main_links a img {
    width: 100%
}
#main_links a span/*.description*/ {
    float: left;
    z-index: 10;
    display: inline;
    position: absolute;
    bottom: 1em;
    color: white;
    font-size: 5vw;
    left: 10px;
    text-shadow: 3px 3px black;
    font-weight: bold;
}
/*#main_gallery*/ #gallery_list a img {
    width: 100%;
}
#gallery_list a {
    position: relative;
}

/*#main_links*/ #gallery_list a span/*.description*/ {
    float: left;
    z-index: 10;
    display: inline;
    position: absolute;
    bottom: 0.5em;
    color: white;
    font-size: 5vw;
    left: 10px;
    text-shadow: 2px 2px black;
    font-weight: bold;
}

/* Text */
.text {
    background-color: #3d3d3d;
    padding: 0 1em 1em 1em;
    line-height: 1.25em;
}
.text a, .text a:visited, .text a:active {
    color: red;
    text-decoration: none;
}
.text a:hover {
    color:#FFF !important; background-color:#FF0000;
}

/* Headers */
.group_header {
    clear: both;
    height: 33px;
}
#gallery_header {
    background: url("../images/gallery_label_bg.png") repeat-x;
}
#events_header {
    background: url("../images/esemenyek_label_bg.png") repeat-x;
}
#news_header {
    background: url("../images/hirek_label_bg.png") repeat-x;
}
#facebook_header_pc, #facebook_header_mobile {
    background: url("../images/facebook_label_bg.png") repeat-x;
}
.drop_shadow {
    height: 8px;
    background: url("../images/shadow.png") repeat-x;
}

/* Menu */
#menu {
    margin: -30px 0 -10px 10px;/* in mobile view */
}

footer {
    text-align: center;
    clear: both;
    padding: 2em;
    font-size: 1.25em;
}

/* FaceBook ------------------------------------------------------------ */
#main_facebook_pc {
    float: right;
    width: 245px;
    min-height: 428px;
    background: url("../images/loader.gif") white no-repeat center;
    background-size: 10% 10%;
    text-align: center;
    display: none;
}
#fb_container_mobile {
    display: block;
    min-height: 390px;
    max-width: 100vw;
    background: url("../images/ajax-loader.gif") #3d3d3d no-repeat center;
    background-size: 10% 10%;
    text-align: center;
/*    display: none;*/
}
/* PC view ------------------------------------------------------------- */

@media screen and (min-width: 980px) {

    /* Common ---------------------------------------------------------- */
    body {
        font-size: 10px;
    }
    header {
        height: 75px;
    }

    .one_column {
        width: 245px;
    }
    .two_column {
        width: 490px;
    }
    .four_column {
        width: 980px;
    }


    #main {
        min-height: 700px; /* FB box is 390px, so this is a "bug" override*/
    }
    #main_logo a img {
        position: absolute;
        top: 16px;
        /*border: 1px solid #333;*/
        background-color: black;
        box-shadow: 0px 0px 10px black;
    }
    #main_greeting {
        font-size: 1em;
    }
    #main_news {
        float: right;
        /*margin-right: 245px;*/ /* only needed, if FB box isn't present */
        border-left: 1px solid black;
        width: 244px;
        overflow: hidden;
    }
    #main_events {
        float: right;
        /*margin-right: 245px;*/ /* only needed, if FB box isn't present */
        border-left: 1px solid black;
        width: 244px;
        overflow: hidden;
    }
    #main_links {
        line-height: 0;
        float: right;
    }
    #main_links a {
        display: inline-block;
        float: left;
    }
    #main_links a img {
        border: 0;
        width: 245px;
        height: auto;
    }
    #main_links a span {
        text-shadow: 2px 2px black;
/*        font-size: 1.35em;*/
	font-size: 1em;
        bottom: 10px;
    }
    #main_gallery {
        float: left;
        background-color: #3d3d3d;
    }
    #gallery_list {
        text-align: center;
    }
    /*#main_gallery*/ #gallery_list a img {
        width: 160px;
    }
    #gallery_list a {
        position: relative;
    }
    /*#main_links*/ #gallery_list a span/*.description*/ {
        float: left;
        z-index: 10;
        display: inline;
        position: absolute;
        bottom: 0.5em;
        color: white;
        font-size: 1em;
        left: 10px;
        text-shadow: 2px 2px black;
        font-weight: bold;
    }

    /* FaceBook -------------------------------------------------------- */
    #main_facebook_pc {
        display: block;
    }
    #main_facebook_mobile {
        display: none;
    }
    /* Menu ------------------------------------------------------------ */
    #menu {
        float: right;
        margin: 0;
    }
    #main_info {
        width: 490px;
        /*box-shadow: inset 0px 0px 1px white;*/
        float:left;
    }


/*
    #main_facebook {
        float: right;
        width: 245px;
        min-height: 428px;
        background-color: white;
        text-align: center;
    }
    */
}

