/*
    1.  z-index, position, float, box properties
    2.  height and width
    3.  margin, padding, border
    4.  background
    5.  font, text
*/

/* MAIN PAGE STYLES */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}
html {
    height: 100%;
}
body {
    height: 100%;
    background: #FFF;
    font-size: 62.7%;
    font-family: Verdana, Geneva, sans-serif;
    color: #000;
}
#wrapper {
    background: #FFF;
    width: 100%;
    max-width: 960px;
    height: 100%;
    min-height: 680px;
    padding-right: 5%;
}
#ban {
    width: 960px;
    height: 0;
    overflow: hidden;
}
#main {
    width: 80%;
    height: 100%;
    margin-left: 130px;
    padding: 5%;
    font-size: 1.2em;
}
#footer {
    clear: both;
    background: #FFF;
    width: 100%;
    max-width: 580px;
    margin: 0 auto 20px auto;
    padding: 20px 0 10px 0;
    text-align: center;
    color: #888;
}

/* ELEMENTS */

a {
    text-decoration: none;
    color: darkblue;
    font-weight: bold;
}
a:hover {
    color: darkred;
}
img {
    max-width: 90%;
    height: auto;
}
#main p {
    margin: 10px 0;
}
h2 {
    font-family: 'Brady Bunch', sans-serif;
    text-transform: lowercase;
    font-size: 250%;
    font-weight: normal;
    letter-spacing: 0.1em;
}
h3 {
    font-size: inherit;
    margin: 2% 0;
}
hr {
    border-top: 1px solid #888;
    width: 100%;
    display: block;
}
hr.smd {
    border-top: 1px solid #888;
    width: 300px;
    margin: 20px auto;
}
input {
    font-family: Verdana, Geneva, sans-serif;
    border: 1px solid #000;
    padding: 2px;
}
button, input[type='button'] {
    border: 1px solid #888;
}
button:active, input[type='button']:active {
    border: 1px solid #000;
}
span.spacer {
    display: inline-block;
    width: 50px;
}

/* SPECIAL CLASSES */

.slim {
    width: 100%;
    max-width: 610px;
    margin: 20px auto !important;
}
.c {
    text-align: center;
}
.fl {
    float: left;
    margin-right: 20px;
}
.r {
    text-align: right;
}
.fr {
    float: right;
    margin-left: 20px;
}
.clear {
    clear: both;
}
.inline {
    display: inline-block;
    vertical-align: top;
}
.mobile {
    display: none;
}

/* mobile and tablet styles */

@media only screen and (max-width: 767px) {
    #sidebar {
        z-index: 1;
        position: fixed;
        top: 40px;
        left: -180px;
        width: 180px !important;
        margin-top: 0 !important;
        height: 100%;
        border: none !important;
    }
    
    #sb1, #sb2, #sb3, #sb4, #sb5, #sb6, #sb7, #sb8, #sb9, #sb10 {
        margin: auto;
    }
    
    .menu-open {
        left: 0 !important;
        transition: left .4s;
    }
    
    .menu-closed {
        left: -180px !important;
        transition: left .4s;
    }
    
    #wrapper {
        margin-top: 40px;
    }
    
    #menu {
        float: left;
        background-image: url(../../img/sidebar/menu.gif);
        background-repeat: none;
        width: 30px;
        height: 30px;
        margin-left: 10px;
    }
    
    #top {
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 0 !important;
        border: none !important;
    }
    
    #home {
        margin-left: 50px;
    }
    
    #main {
        width: 100%; 
        margin: 0;
    }
    
    .mobile {
        display: block;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .fl, .fr {
        float: none;
        margin: auto;
    }
    
    .linklist a {
        display: block;
        padding: 0.2em;
        font-family: "Brady Bunch", sans-serif;
        font-size: 2em;
        font-weight: normal;
        color: #000;
        border: 1px solid #000;
        border-radius: 2em;
        background-color: #ffce00;
        background-image:url(../../img/sidebar/yellow/stars.gif);
    }
}