html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, img,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video { 
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
	font-family: Verdana, Tahoma, sans-serif;
}

@font-face { font-family: "PokePixel RBY"; src: url("/data/includes/fonts/pokepixel-rby.ttf") format("truetype")  }
@font-face { font-family: "PokePixel FRLG"; src: url("/data/includes/fonts/pokepixel-frlg.ttf") format("truetype")  }
@font-face { font-family: "PokePixel PMD"; src: url("/data/includes/fonts/pokepixel-pmd.ttf") format("truetype")  }

/* COLOURSCHEME */
:root {
  --darkestgrey: #2D2D2D; /* banner, footer */
  --mediumdarkgrey: #BABABA; /* background */
  --mediumlightgrey: #E0E0E0; /* content headings, menu link text */
  --lightestgrey: #F0F0F0; /* content background */
  --accentred: #BC6672; /* menu background, selected text background */
}

::-moz-selection { background: var(--accentred); color: #FFFFFF; text-shadow: none; }
::selection { background: var(--accentred); color: #FFFFFF; text-shadow: none; }

html, body {
    background-color: var(--mediumdarkgrey);
    height: 100%;
}

#banner {
    width: 100%;
    height: 125px;
    background-color: var(--darkestgrey);
    background-image: url("/data/media/layout/banner3.png");
    background-position: center;
    background-repeat: no-repeat;
}
    
    #logo {
        position: relative;
        top: 20px;
        left: 0;
        width: 100%;
        height: 85px;
        background-image: url("/data/media/layout/logo.png");
        background-position: center;
        background-repeat: no-repeat;
        }
        
    #bannerimgleft {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 125px;
        width: 400px;
        background-image: url("/data/media/layout/bannerimgleft.png");
    }
    
    #bannerimgright {
        position: absolute;
        top: 0px;
        right: 0px;
        height: 125px;
        width: 400px;
        background-image: url("/data/media/layout/bannerimgright.png");
    }
    
#menu {
    position: relative;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--accentred);
    color: var(--mediumlightgrey);
}

    #menu a:link, #menu a:visited, #menu a:active {
        display: inline-block;
        min-width: 150px;
        text-decoration: none;
        color: var(--mediumlightgrey);
    }
    
    #menu a:hover {
        background-color: var(--darkestgrey);
    }
    
    #menu ul {
        padding: 0;
        margin: 0;
        list-style: none;
        position: relative;
        z-index: 9999;
    }
    #menu ul li {
        display: inline-block;
        background-color: var(--accentred);
        color: var(--mediumlightgrey);
    }

    #menu ul ul {
        display: none;
        position: absolute;
        top: 50px;
    }
    
    #menu li:hover a {
        background: var(--darkestgrey);
    }
    
    #menu li:hover ul a {
        background: var(--accentred);
        color: var(--mediumlightgrey);
        height: 40px;
        line-height: 40px;
    }

    #menu li:hover ul a:hover {
        background: var(--darkestgrey);
    }

    #menu ul li:hover > ul {
        display: inherit;
    }

    #menu ul ul li {
        width: 150px;
        height: 35px;
        line-height: 35px;
        float: none;
        display: list-item;
        position: relative;
        left: -150px;
        font-size: 85%;
    }
    
    #menu li > a:after { content:  ' ▾'; }
    #menu li > a:only-child:after { content: ''; }
    
    .hamburger {
        text-decoration: none;
        text-align: center;
        display: none;
        cursor: pointer;
    }

    input[type=checkbox] {
        display: none;
    }

    input[type=checkbox]:checked ~ #menu-sub {
        display: block;
    }

#container {
    background-color: var(--lightestgrey);
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1250px;
    height: auto !important; /* real browsers */
	height: 100%; /* IE6 version of min-height*/
	min-height: calc(100% - 250px);
	font-size: 10pt;
	line-height: 120%;
}

/* START CONTENT */
#content {
    position: relative;
    top: 0px;
    width: 100%;
    background-color: var(--lightestgrey);
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box;
    padding: 8px;
    min-height: 100%;
}

    #content a:link, #content a:visited, #content a:active {
        color: #666666;
        text-decoration: none;
    }

    #content a:hover {
        color: #2F2F2F;
        text-decoration: underline;
    }
    
    #content a.button:link, a.button:visited, a.button:active {
        color: #666666;
        background-color: var(--mediumlightgrey);
        height: 35px;
        line-height: 35px;
        padding: 8px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
    }
    
    #content a.button:hover {
        color: var(--lightestgrey);
        background-color: var(--mediumdarkgrey);
        text-decoration: none;
    }

    #content p {
        padding: 0px 8px;
        margin-bottom: 8px;
        text-align: justify;
    }
    
        #content p span.code {
            font-family: "courier new", courier, sans-serif;
            background-color: #EBEBEB;
        }
    
    #content ul {
        margin-left: 20px;
        margin-bottom: 8px;
        list-style-image: url("/data/media/layout/bullet.png");
    }
        
        #content ul li.indent {
            margin-left: 20px;
        }
            
    #content hr {
        display: block;
        border: 0;
        height: 9px;
        background-image: url("/data/media/layout/hr.png");
        background-repeat: no-repeat;
        background-position: top left;
        margin-bottom: 8px;
    }
    
    #content h1 {
        font-size: 120%;
        text-align: center;
        background-color: var(--mediumlightgrey);
        width: 100%;
        height: 40px;
        line-height: 40px;
        margin-bottom: 8px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
    }
    
    #content h2 {
        font-size: 110%;
        text-align: left;
        background-color: var(--mediumlightgrey);
        width: calc(100% - 15px);
        height: 25px;
        line-height: 25px;
        margin-bottom: 8px;
        padding-left: 15px;
        -webkit-border-radius: 7px;
        -moz-border-radius: 7px;
        border-radius: 7px;
    }
    
        /* START HOMEPAGE ELEMENTS */
        span.printables { color: #8eab57; font-weight: bold; }
        span.downloads { color: #ae4c58; font-weight: bold; }
        span.tutorials { color: #5780ab; font-weight: bold; }
        span.site { color: #2a2727; font-weight: bold; }
        
        #intro {
            display: inline-block;
            background-color: var(--mediumlightgrey);
            -webkit-border-radius: 20px;
            -moz-border-radius: 20px;
            border-radius: 20px;
            padding: 8px;
            font-size: 125%;
            text-align: center;
	        line-height:1.5; 
	        margin-bottom: 9px;
	        vertical-align: top;
	        border: 9px solid var(--mediumlightgrey);
        }
        
        #homepage-left {
            display: inline-block;
            width: 59%;
            vertical-align: top;
        }
        
        #homepage-right {
            display: inline-block;
            float: right;
            width: 40%;
            vertical-align: top;
            height: 100%;
        }
        
            #homepage-right-biglinks img {
                width: calc(100% - 18px);
                -webkit-border-radius: 15px;
                -moz-border-radius: 15px;
                border-radius: 15px;
                border: 9px solid var(--mediumlightgrey);
                margin-bottom: 9px;
            }
            
            #homepage-right-biglinks-b img.left {
                width: calc(50% - 22px);
                -webkit-border-radius: 15px;
                -moz-border-radius: 15px;
                border-radius: 15px;
                border: 9px solid var(--mediumlightgrey);
                margin-bottom: 9px;
                margin-right: 4px;
            }
            
            #homepage-right-biglinks-b img.right {
                width: calc(50% - 22px);
                -webkit-border-radius: 15px;
                -moz-border-radius: 15px;
                border-radius: 15px;
                border: 9px solid var(--mediumlightgrey);
                margin-bottom: 9px;
                margin-left: 4px;
            }
        
            #homepage-right-biglinks img:hover, #homepage-right-biglinks-b img:hover {
                border-color: var(--mediumdarkgrey);
                -o-transition:.5s;
                -ms-transition:.5s;
                -moz-transition:.5s;
                -webkit-transition:.5s;
                transition:.5s;
            }
        
            /* #homepage-right-biglinks {
                border: 0px solid blue;
            } */
            
            #homepage-right-aff {
                margin-bottom: 9px;
            }
            
                #homepage-right-aff img {
                    -webkit-border-radius: 5px;
                    -moz-border-radius: 5px;
                    border-radius: 5px;
                    border: 3px solid var(--mediumlightgrey);
                }
                
                #homepage-right-aff img:hover {
                    border-color: var(--mediumdarkgrey);
                    -o-transition:.5s;
                    -ms-transition:.5s;
                    -moz-transition:.5s;
                    -webkit-transition:.5s;
                    transition:.5s;
                }
        
        /* END HOMEPAGE ELEMENTS */
        
        /* START PRINTABLES PAGE ELEMENTS */
        /**** This table is currently unused, but keeping the code here just in case ****/
        table.printableslist, table.printableslist tr, table.printableslist td {
            border: 0px solid red;
        }
        
        table.printableslist {
            width: 100%;
            margin-bottom: 20px;
        }
        
        table.printableslist td {
            vertical-align: top;
        }
        
        table.printableslist  td.boxart {
            width: 320px;
            text-align: right;
        }
        
        /* END PRINTABLES PAGE ELEMENTS */
        
        /* START DOWNLOADS PAGE ELEMENTS */
        span.font-pokepixelrby { font-family: "PokePixel RBY"; font-size: 8.5pt; }
        span.font-pokepixelfrlg { font-family: "PokePixel FRLG"; font-size: 8.5pt; }
        span.font-pokepixelpmd { font-family: "PokePixel PMD"; font-size: 8.5pt; }
        
        table#cursor, table#wallpaper, table#ringtone, table#font {
            width: 100%;
            margin-bottom: 20px;
        }
        
        table#font {
            margin-top: 20px;
        }
    
        table#cursor, table#cursor tr, table#cursor td,
        table#wallpaper, table#wallpaper tr, table#wallpaper td,
        table#ringtone, table#ringtone tr, table#ringtone td,
        table#font, table#font tr, table#font td {
            text-align: center;
            vertical-align: middle;
        }
    
        table#cursor td {
            width: 12.5%;
        }
        
        table#wallpaper td, table#ringtone td {
            width: 25%;
        }
        
        table#font td {
            width: 33%;
        }
    
        table#cursor tr.preview td, table#wallpaper tr.preview td, table#ringtone tr.preview td {
            height: 50px;
        }
        
        table#cursor tr.download td, table#wallpaper tr.download td, table#ringtone tr.download td, table#font tr.download td {
            font-size: 80%;
        }
        /* END DOWNLOADS PAGE ELEMENTS */
        
        /* START SITE MAP PAGE ELEMENTS */
        table#sitemapafflinks {
            width: 100%;
        }
        
            table#sitemapafflinks td.sitemaptd {
                width: 55%;
                padding-right: 4px;
            }
            
            table#sitemapafflinks td.afflinkstd {
                width: 45%;
                text-align: center;
                padding-left: 4px;
            }
                table#sitemapafflinks td.afflinkstd p {
                    font-size: 80%;
                    text-align: center !important;
                }
        /* END SITE MAP PAGE ELEMENTS */
/* END CONTENT */

/* START FOOTER */
#footer {
    bottom: 0px;
    width: 100%;
    height: 75px;
    /* line-height: 50px; */
    text-align: center;
    color: #BABABA;
    background-color: var(--darkestgrey);
    font-size: 9pt;
}

    #footer p {
        padding-top: 8px;
        padding-bottom: 0px;
        margin: 0;
    }

    #footer a:link, #footer a:visited, #footer a:active {
        color: var(--mediumlightgrey);
        text-decoration: none;
    }

    #footer a:hover {
        color: var(--lightestgrey);
        text-decoration: underline;
    }

    /* AFFILIATES */
        a.affy {
            display: inline-block;
            height: 31px;
            width: 88px;
            text-decoration: none;
            opacity: 0.5;
        }

        a.affy:hover {
            opacity: 1;
            transition: 0.4s;
            text-decoration: none;
        }

        a#absolsmoonlitcave { background-image: url("/data/media/affiliates/88x31/absolsmoonlitcave.png"); }
        a#alteredorigin { background-image: url("/data/media/affiliates/88x31/alteredorigin.png"); }
        a#buriedrelic { background-image: url("/data/media/affiliates/88x31/buriedrelic.png"); }
        a#tcod { background-image: url("/data/media/affiliates/88x31/caveofdragonflies.png"); }
        a#classicpokemon { background-image: url("/data/media/affiliates/88x31/classicpokemonguide.png"); }
        a#greninsplace { background-image: url("/data/media/affiliates/88x31/greninsplace.png"); }
        a#legendarybirds { background-image: url("/data/media/affiliates/88x31/legendarybirds.png"); }
        a#lycanrocnet { background-image: url("/data/media/affiliates/88x31/lycanrocnet.png"); }
        a#mirageisland { background-image: url("/data/media/affiliates/88x31/mirageisland.png"); }
        a#noseclub { background-image: url("/data/media/affiliates/88x31/noseclub.png"); }
        a#pokemontrainer { background-image: url("/data/media/affiliates/88x31/pokemontrainer.png"); }
        a#poliwager { background-image: url("/data/media/affiliates/88x31/poliwager.png"); }
        a#serfetch { background-image: url("/data/media/affiliates/88x31/serfetch.png"); }
    /* END AFFILIATES */
/* END FOOTER */

/* RESPONSIVE STYLE FOR MOBILE DEVICES */
@media only screen and (max-width: 800px) {
    
    #menu {
        background-image: url("/data/media/layout/menubg.png");
        background-repeat: no-repeat;
        background-position: right top;
    }
    
    #menu ul {
        position: static;
        display: none;
        z-index: 9999;
    }
    
    #menu ul {
        width: 150px;
        position: absolute;
        left: 0;
        top: 50px;
    }
    
    #menu ul a { width: 100% !important; }
    
    #menu ul li {
        width: 100%;
        position: relative;
    }
    
    #menu ul li ul.sub {
        width: 150px;
        position: absolute;
        left: 300px;
        top: 0;
    }
    
    /* #menu li a { width: 50%; } */
    
    #menu li:hover ul a { background: #2D2D2D; } /* darkest grey */
    #menu li:hover ul a:hover { background: #BC6672; } /* accent red */
    
    #menu li > a:after { content:  ' ▸'; }
    #menu li > a:only-child:after { content: ''; }
    
    .hamburger {
        display:block;
        font-size: 150%;
        font-weight: bold;
        text-align: left;
        padding-left: 15px;
    }
    
    .hamburger-container {
        display: inline-block;
        cursor: pointer;
        height: 40px;
        margin-top: 5px;
    }

    .bar1, .bar2, .bar3 {
        width: 35px;
        height: 5px;
        background-color: #E0E0E0; /* medium-light grey */
        margin: 6px 0;
        transition: 0.1s;
    }

    .change .bar1 {
        -webkit-transform: rotate(-45deg) translate(-9px, 6px);
        transform: rotate(-45deg) translate(-9px, 6px);
    }

    .change .bar2 { opacity: 0; }

    .change .bar3 {
        -webkit-transform: rotate(45deg) translate(-8px, -8px);
        transform: rotate(45deg) translate(-8px, -8px);
    }
    
    #bannerimgleft, #bannerimgright {
        display: none;
    }
    
    #footer {
        font-size: 8pt;
    }
    
    #homepage-left {
        display: block;
        width: 100%;
        vertical-align: top;
    }
        
    #homepage-right {
        display: block;
        width: 100%;
        vertical-align: top;
        float: none;
    }
        
        /* #homepage-right-biglinks img {
            width: calc(49% - 18px);
            display: inline-block;
            -webkit-border-radius: 15px;
            -moz-border-radius: 15px;
            border-radius: 15px;                
            border: 9px solid var(--mediumlightgrey);
            margin-bottom: 9px;
        } */
}
/* END RESPONSIVE STYLE */

/* AFFILIATES */
@media only screen and (max-width: 1020px) {
    a.affy {
        display: inline-block;
        height: 31px;
        width: 50px;            
        text-decoration: none;
        opacity: 0.5;
    }

    a.affy:hover {
        opacity: 1;
        transition: 0.4s;
    }
    
    a#absolsmoonlitcave { background-image: url("/data/media/affiliates/50x31/absolsmoonlitcave.png"); }
    a#alteredorigin { background-image: url("/data/media/affiliates/50x31/alteredorigin.png"); }
    a#buriedrelic { background-image: url("/data/media/affiliates/50x31/blank.png"); }
    a#tcod { background-image: url("/data/media/affiliates/50x31/caveofdragonflies.png"); }
    a#classicpokemon { background-image: url("/data/media/affiliates/50x31/classicpokemonguide.png"); }
    a#greninsplace { background-image: url("/data/media/affiliates/50x31/greninsplace.png"); }
    a#legendarybirds { background-image: url("/data/media/affiliates/50x31/legendarybirds.png"); }
    a#lycanrocnet { background-image: url("/data/media/affiliates/50x31/lycanrocnet.png"); }
    a#mirageisland { background-image: url("/data/media/affiliates/50x31/mirageisland.png"); }
    a#noseclub { background-image: url("/data/media/affiliates/50x31/noseclub.png"); }
    a#pokemontrainer { background-image: url("/data/media/affiliates/50x31/pokemontrainer.png"); }
    a#poliwager { background-image: url("/data/media/affiliates/50x31/poliwager.png"); }
    a#serfetch { background-image: url("/data/media/affiliates/50x31/serfetch.png"); }
}

@media only screen and (max-width: 600px) {
    a.affy {
        height: 16px;
        width: 35px;
        opacity: 1;
    }

    a#absolsmoonlitcave { background-image: url("/data/media/affiliates/35x16/absolsmoonlitcave.png"); }
    a#alteredorigin { background-image: url("/data/media/affiliates/35x16/alteredorigin.png"); }
    a#buriedrelic { background-image: url("/data/media/affiliates/35x16/alteredorigin.png"); }
    a#tcod { background-image: url("/data/media/affiliates/35x16/caveofdragonflies.png"); }
    a#classicpokemon { background-image: url("/data/media/affiliates/35x16/classicpokemonguide.png"); }
    a#greninsplace { background-image: url("/data/media/affiliates/35x16/greninsplace.png"); }
    a#legendarybirds { background-image: url("/data/media/affiliates/35x16/legendarybirds.png"); }
    a#lycanrocnet { background-image: url("/data/media/affiliates/35x16/lycanrocnet.png"); }
    a#mirageisland { background-image: url("/data/media/affiliates/35x16/mirageisland.png"); }
    a#noseclub { background-image: url("/data/media/affiliates/35x16/noseclub.png"); }
    a#pokemontrainer { background-image: url("/data/media/affiliates/35x16/pokemontrainer.png"); }
    a#poliwager { background-image: url("/data/media/affiliates/35x16/poliwager.png"); }
    a#serfetch { background-image: url("/data/media/affiliates/35x16/serfetch.png"); }
}
/* END AFFILIATES */
