/* =========================================================
   GENERAL
   ========================================================= */

#bodymain {
    background: #303030 url(../images/design/metal003.gif);
}

#bodyedit {
    background: #303030 url(../images/design/grey046.jpg);
}

#wrapper {
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #f0f0f0 !important;
}

#wrapper::after {
    content: "";
    display: table;
    clear: both;
}

#top {
    width: 100%;
    box-sizing: border-box;
	background-color:#f0f0f0 !important
}

#menu {
    float: left;
    width: 20%;
    box-sizing: border-box;
	background-color:#f0f0f0 !important
}

#page {
    float: left;
    width: 75%;
    box-sizing: border-box;
	background-color:#f0f0f0 !important;
}

#bottomwrap {
    clear: both;
}

.clearboth {
    clear: both;
}

img {
    border: none;
    max-width: 100%;
}

/* =========================================================
   ABOUT
   ========================================================= */

.aboutpage {
    float: left;
    width: 28%;
    height: 170px;
    margin: 0 15px 15px 0;
    padding: 5px;
    color: #000000;
    background: #f0f0f0 !important;
    opacity: 0.88;
    filter: alpha(opacity=40);
}


/* =========================================================
   TEXT
   ========================================================= */

p {
    font-weight: 100;
    margin-bottom: 0;
    margin-top: 0;
}

h1 {
    font: bold 20px sans-serif;
    position: relative;
    color: #464646;
}

h1 span {
    background: url(../images/design/gradient-grey.png) repeat-x;
    position: absolute;
    display: block;
    width: 100%;
    height: 31px;
}

h2 {
    font-size: 18px;
}

h3 {
    font-size: 16px;
}

h4 {
    font-size: 14px;
}

h5 {
    font-size: 12px;
    font-weight: bold;
}

h6 {
    font-size: 10px;
    font-weight: bold;
}


/* =========================================================
   LINKS
   ========================================================= */

a:visited {
    text-decoration: underline;
    font-weight: bold;
    color: darkblue;
}

a:link {
    text-decoration: underline;
    font-weight: bold;
    color: darkblue;
}

a:hover {
    color: darkred;
    font-weight: bold;
    text-decoration: none;
}


/* =========================================================
   TITLE
   ========================================================= */

.title {
    color: #000000;
    font-family: sans-serif;
    font-size: 25px;
    font-style: italic;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    float: right;
    width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   SECTION
   ========================================================= */

.section_desc {
    background-color: #f0f0f0 !important;
    font-size: 12px;
    padding: 20px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.section_desc img {
    padding-right: 20px;
}


/* =========================================================
   COMMENTS
   ========================================================= */

.comments {
    background-color: #f0f0f0 !important;
}


/* =========================================================
   NEWS / INFORMATION
   ========================================================= */

.goodnews {
    color: lightgreen;
    font-weight: bold;
    background: url(../images/design/ok.png) no-repeat 0 0;
    background-position: left top;
    padding: 5px 0 10px 35px;
}

.goodnews2 {
    color: green;
    font-weight: bold;
    background: url(../images/design/ok.png) no-repeat 0 0;
    background-position: left top;
    padding: 5px 0 10px 35px;
}

.badnews {
    color: red;
    font-weight: bold;
    background: url(../images/design/notok.png) no-repeat 0 0;
    background-position: left top;
    padding: 5px 0 10px 35px;
}

.info2 {
    background: url(../images/design/info.png) no-repeat 0 0;
    background-position: left top;
    padding: 5px 0 10px 35px;
}

.info {
    font-size: 15px;
    font-weight: 550;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admitem {
    color: #000000;
    text-decoration: underline;
    font-weight: bold;
}


/* =========================================================
   TOP / HEADER
   ========================================================= */

.tophr {
    height: 5px;
    border: 1px;
    background-color: #000000;
}

#linknodecor {
    text-decoration: none;
}


/* =========================================================
   FEEDS
   ========================================================= */

.showfeed img {
    width: auto;
    height: auto;
}


/* =========================================================
   NEWSFEED PAGE
   Desktop:
   Feeds       Archive
   65%         35%
   ========================================================= */

.newsfeed-columns {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.newsfeed-column {
    box-sizing: border-box;
    min-width: 0;
}

.newsfeed-feeds {
    flex: 1 1 auto;
    min-width: 0;
}

.newsfeed-history {
    flex: 0 0 300px;
    width: 300px;
    min-width: 0;
    box-sizing: border-box;
}

.newsfeed-history h2 {
    margin-top: 0;
}

.historical-intro {
    font-size: 11px;
    color: #666;
}

.historical-source {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.historical-source-image {
    max-width: 60px;
    max-height: 40px;
    width: auto;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
}

.historical-source-title {
    font-weight: bold;
}

.historical-source a {
    margin-right: 8px;
}


/* =========================================================
   NEWSFEED PAGE CONTAINER
   ========================================================= */

/*.newsfeed-page {
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}*/

.newsfeed-page {
    font-size: 12px;
    box-sizing: border-box;
    /*float: left;
    width: 75%;*/

}





    /* -----------------------------------------------------
       BOTTOM

       bottom.php contains:

       style="margin-top:550px"

       We keep the old PHP untouched but remove the
       huge mobile gap.
       ----------------------------------------------------- */

    #bottomwrap {
        clear: both;
        margin-top: 30px !important;
        width: 100%;
        max-width: 100%;
        /*box-sizing: border-box;*/
    }


#wrapper::after {
    content:"";
    display:table;
    clear:both;
}

/* =========================================================
   MOBILE / RESPONSIVE
   ========================================================= */

@media screen and (max-width: 800px) {

    /* -----------------------------------------------------
       MAIN WRAPPER
       ----------------------------------------------------- */

    #wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
		background-color:#f0f0f0 !important
    }


    /* -----------------------------------------------------
       MENU
       ----------------------------------------------------- */

    #menu {
        float: none !important;
        width: 100% !important;
        /* max-width: 100%;
        box-sizing: border-box;*/
    }


    /* -----------------------------------------------------
       PAGE

       page.php has inline:
       style="width:75%;"

       !important is therefore needed here.
       ----------------------------------------------------- */

    #page {
        float: none !important;
        width: 100% !important;
		background-color:#f0f0f0 !important
        /*max-width: 100%;
        box-sizing: border-box;
        padding-left: 10px;
        padding-right: 10px;*/
    }


    /* -----------------------------------------------------
       TOP
       ----------------------------------------------------- */

    #top {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
		background-color:#f0f0f0 !important
    }


    /* -----------------------------------------------------
       BANNER / IMAGES
       ----------------------------------------------------- */

    #top img,
    #page img,
    #menu img,
    #bottomwrap img {
        max-width: 100%;
    }

    #banner {
        max-width: 100%;
        height: auto !important;
    }


    /* -----------------------------------------------------
       NEWSFEED

       Desktop:
       Feeds | Archive

       Mobile:
       Feeds
       Archive
       ----------------------------------------------------- */

    .newsfeed-columns {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .newsfeed-column {
        display: block;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .newsfeed-feeds,
    .newsfeed-history {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .newsfeed-history {
        margin-top: 30px;
    }


    /* -----------------------------------------------------
       HISTORICAL SOURCE IMAGES
       ----------------------------------------------------- */

    .historical-source-image {
        max-width: 60px;
        max-height: 40px;
        width: auto;
        height: auto;
    }


    /* -----------------------------------------------------
       FACEBOOK / OLD IFRAMES

       Keeps the historical iframe active,
       but prevents it from breaking the mobile layout.
       ----------------------------------------------------- */

    iframe {
        max-width: 100%;
        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       ADMIN BAR

       top.php contains an old table.
       On mobile we allow the cells to wrap.
       ----------------------------------------------------- */

    #adminbar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #adminbar table {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        box-sizing: border-box;
    }

    #adminbar tbody,
    #adminbar tr {
        width: 100%;
        box-sizing: border-box;
    }

    #adminbar td {
        box-sizing: border-box;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }


    /* -----------------------------------------------------
       OLD SECTION LIST

       section.php contains inline:
       width:37%;
       height:200px;
       float:left;

       Make those blocks stack on mobile.
       ----------------------------------------------------- */

    #page div[style*="width:37%"] {
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        margin: 15px 0 !important;
        padding-left: 10px !important;
        padding-right: 10px;
        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       OLD 300px IMAGES IN section.php
       ----------------------------------------------------- */

    #page img[style*="width:300px"] {
        width: auto !important;
        max-width: 100%;
        height: auto !important;
    }


    /* -----------------------------------------------------
       LARGE IMAGE IN menu.php

       The Savage Grace image has inline:
       height:300px;
       ----------------------------------------------------- */

    #menu img[style*="height:300px"] {
        max-width: 100%;
        height: auto !important;
    }


    /* -----------------------------------------------------
       ABOUT BOXES
       ----------------------------------------------------- */

    .aboutpage {
        float: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 0 15px 0;
        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       SECTION DESCRIPTION
       ----------------------------------------------------- */

    .section_desc {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 10px;
        box-sizing: border-box;
    }

    .section_desc img {
        max-width: 100%;
        height: auto !important;
        padding-right: 0;
    }


    /* -----------------------------------------------------
       TITLE
       ----------------------------------------------------- */

    .title {
        float: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 22px;
        padding: 10px;
    }


    /* -----------------------------------------------------
       LONG URLS / OLD LINKS

       Prevent old URLs from forcing horizontal scrolling.
       ----------------------------------------------------- */

    #page a,
    #menu a,
    #bottomwrap a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }




    /* -----------------------------------------------------
       BOTTOM ITEMS
       ----------------------------------------------------- */

    .bottomitem {
        max-width: 100%;
        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       GENERAL RESPONSIVE TABLES
       ----------------------------------------------------- */

    #page table {
        max-width: 100%;
    }


    /* -----------------------------------------------------
       PREVENT HORIZONTAL OVERFLOW
       ----------------------------------------------------- */

    #bodymain,
    #bodyedit,
    #wrapper {
        max-width: 100%;
        overflow-x: hidden;
		background-color:#f0f0f0 !important
    }

}


/* =========================================================
   VERY SMALL MOBILE SCREENS
   ========================================================= */

@media screen and (max-width: 480px) {

    #page {
        padding-left: 5px;
        padding-right: 5px;
    }

    .newsfeed-history {
        margin-top: 25px;
    }

    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 16px;
    }

    h3 {
        font-size: 15px;
    }

    .title {
        font-size: 20px;
    }

    .section_desc {
        padding: 8px;
    }

    .historical-source {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

}