/***************************
 GENERAL
 **************************/

body {
    font-family: 'Open Sans', sans-serif;
}

#wrapper { /*hashtag=anchor, corresponds to label in html*/
    max-width: 940px;
    margin: 0 auto ; /*First value represents top/bottom, second represents sides, don't need unit type when using 0*/
    padding: 0 5%; 
}

#center {
    text-align:center;
    font-weight: 700;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    
}


/***************************
 HEADING
 **************************/

header {
    float: left;
    margin: -16px 0 30px 0; 
    width: 100%;
}

#logo {
    text-align: center;
    margin: 5px; /* top, right, bottom, left OR top, left/right, bottom OR top/bottom left/right OR all */
}

h1 {
    font-family: 'Lato', sans-serif; /*"font", fall-back to generic sans-serif font*/
    margin: 0 0 12px 0;
    font-size: 2em;  /*relative unit, to the size of a letter M in current font size, default is 16px in most browsers*/
    font-weight: bold; /*instead of headline's default bold*/

}

h2 {
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    margin: -5px 0 0 0; 
    font-weight: 400;
}

h3 {
    font-family: 'Lato', sans-serif;
    font-size: 2em;
    margin: 0 0 -16px 0; 
    font-weight: 400;
}



/***************************
 NAVIGATION
 **************************/

#navbar {
    text-align: center;
    padding: 0px 0;
    margin: 0px 0;	
    float: left;
    width: 100%;
}

#navbar li {
    list-style: none;
    display: inline-block;
    margin: 0 5px;
    padding: 0;
}
    
#navbar li a {
    font-weight: 700;
    padding: 5px 8px;
    display: block;
    text-decoration: none;
}

#navbar li ul {
    display: none; 
    width: 10em; /* Width to help Opera out */
}

#navbar li ul li {
    width: 8.5em;
}

#navbar li ul li a {
    font-weight: 500;
}

#navbar li:hover ul, #navbar li.hover ul {
    display: block;
    position: absolute;
    margin: 0;
    padding: 0;
}

#navbar li:hover li, #navbar li.hover li {
    float: none;
}

#navbar li:hover li a, #navbar li.hover li a {
    background-color: #000000;
    border: 1px solid #fff;
    color: #fff;
}



/***************************
 BODY/WRAPPER
 **************************/
#wrapper img
{
    padding: 0 15px 6px 0
}


/***************************
 FOOTER
 **************************/

footer {
    font-size: 0.75em;
    text-align: center;
    clear: both;
    padding-top: 50px;
    color: #aaa;
}

footer a {
    width: 18px;
    height: 18px;
    margin: 0 5px;
}


/***************************
 PAGE: STUDIO GALLERY
 **************************/

#gallery {
    margin: 0;
    padding: 0;
    list-style: none; /* remove bullet points*/
}

#gallery li {
    float: left;
    width: 45%;
    margin: 2.5%;
    background-color: #f5f5f5;
    color: #6E8BBF;
}

#gallery li a p { /*in html going into list, then anchor, then paragraph to apply this style*/
    margin: 0;
    padding: 5%;
    font-size: 0.75em;
    color: #aaa;
}

/***************************
 COLORS
 **************************/

/* site body */
body {
    background-color: #fff;
    color: #777;
}

/*SDSU Color Palette header*/
header {
    background: #a6192e;
    border-color: #000000;
}

/*nav background on mobile*/
#navbar {
    background: #000000;
}

/*logo text*/
h1, h2, h3 { /*comma separates into separate selectors*/
    color: #fff;
}

/*links*/
a {
    color: #6E8BBF;
}

/*nav link*/
nav a, nav a:visited { /*anchor text, anchor text with sudoclass to always keep same color, even if links visited*/
    color: #fff;
}

/*selected/hovering nav link*/
nav a.selected, nav a:hover {/*use dots to select a class, in this case, "selected" and for hovering over links*/
    color: #c7c7c7;
}

#navbar li:hover li a.selected, #navbar li:hover li a:hover {
    color: #c7c7c7;
}