/* * Optimized screen.css for ElectionPakistani
 * Fixes: AdSense Width=0 error and Layout Overlaps
 */

/* -- General Setup -- */
body {
    background: url(../img/bg.gif) #e7f3f7;
    color: black;
    margin: 0;
    padding: 1%;
    font-size: 100.01%;
    font-family: verdana, arial, sans-serif;
}

a { color: #0B4D8C; text-decoration: none; }
a:visited { color: black; }

/* -- Layout Containers -- */
#container {
    max-width: 70em;
    margin: auto;
    border: 1px solid #aaa;
    border-top: 0;
    background: white;
    overflow: hidden; /* Clears floats automatically */
}

/* -- The Sidebar (Right Column) -- */
#subnav {
    width: 280px; /* Fixed width for stability */
    float: right;
    padding: 20px 1%;
    margin: 0;
    border-left: 1px dotted #aaa;
    box-sizing: border-box; /* Crucial: Padding won't break width */
    font-size: 0.9em;
}

/* -- The Main Content (Left Column) -- */
#main {
    /* Creates a fixed gap on the right for the sidebar */
    margin-right: 280px; 
    padding: 20px;
    line-height: 1.5em;
    display: block;
    overflow: hidden; /* Prevents content from sliding under sidebar */
    background: url(../img/blaue-blume.png) no-repeat 100% 0 white;
}

/* -- AdSense Fixes (The most important part) -- */
.ad-container {
    display: block !important;
    width: 100% !important;
    min-width: 250px;
    min-height: 250px; /* Reserves space so page doesn't jump */
    margin: 20px auto;
    text-align: center;
    clear: both;
}

ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-width: 250px !important; /* Forces Google to see a width */
}

/* -- Header & Logo -- */
#logo {
    background: url(../img/blume.jpg) 0 0 no-repeat black;
    height: 64px;
    padding: 0 20px;
    text-align: right;
    line-height: 54px;
    font-size: 54px;
    overflow: hidden;
    letter-spacing: -3px;
    margin: 0;
}

#logo a { color: white; }
#logo a span { 
    color: black; 
    background: white; 
    padding-right: 0.1em; 
    font-weight: bold; 
}

/* -- Navigation Menu -- */
#menu {
    background: url(../img/wechselschatten.png) #287635;
    padding: 5px 5%;
    margin: 0;
    text-align: right;
}

#menu li {
    font-size: 1.2em;
    display: inline-block;
    list-style-type: none;
    border-left: 1px solid white;
    padding: 0 10px 0 15px;
    font-weight: bold;
}

#menu li a { color: white; }

/* -- Typography -- */
h1 {
    font-size: 2.2em;
    color: #6699CC;
    font-family: Georgia, serif;
    border-bottom: 1px dashed #E6E6FA;
    margin: 0 0 0.5em 0;
}

/* -- Mobile Responsiveness -- */
@media screen and (max-width: 768px) {
    #subnav {
        width: 100%;
        float: none;
        border-left: none;
        border-top: 1px dotted #aaa;
    }
    
    #main {
        margin-right: 0;
        padding: 15px;
    }
    
    #logo { font-size: 35px; }
    
    #menu { text-align: center; }
    #menu li { margin: 5px; border: 1px solid white; }
}