/* styles for tomy wind up website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    /* background-image: url(../images/bg.png); */
    background-repeat: repeat;
    background-attachment:scroll;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

#wrapper {
    width: 940px;
    margin: 20px auto;
}

header {
    padding-bottom: 16px;
    
}

#logo {
    height: 100px;
    display:inline;
    /* padding-bottom: 16px; */
}

nav {
    height: 50px;
    line-height: 50px;
    background: #eee;
}

nav a {
    text-decoration: none;
    color: #666;
    display: block;
}

nav a:hover {
    background: #0e1b4da3;
    color: white;
}

.home li:nth-child(1) a,
.big li:nth-child(2) a
{
    background: #0e1b4da3;
    font-weight: bold;
    color: white;
}

nav li {
    list-style-type: none;
    float: left;
    /* to create nav; 100 divided by menu items eg, 100/5 =20 */
    width: 50%;
    text-align: center;
}

/* wrong way to resize img */
/* hero img {
    width:940px;
} */

main {
    width: 580px;
    /* background:lightgreen; */
    float: left;
    /* margin top to help us align our headlines across containers */
    margin-top: 23px;
    margin-bottom: 50px;
}

/* padding will break, old method: double padding (eg 15x2) and minus from width in pixels (340-30) */
aside {
    width: 340px;
    padding: 15px;
    background:#eee;
    float:right;
    margin-top: 20px;
    font-size: 1.04em;
}

footer {
    height: 50px;
    line-height: 60px;
    /* background:#666; */
    border-top: 8px solid #eee;
    clear: both;
    font-size: .9em;
}

footer li {
    list-style-type: none;
    float: left;
    margin-right: 30px;
    color:#666;
}

footer a {
    color:#666;
}

figure {
    margin-bottom: 15px;
}

figcaption {
    background: #0e1b4da3;
    color: #fff;
    font-size: .875em;
    padding: 8px;
    font-style: italic;
}

/* images are in-line elements, all images have max 100% width */
img {
    max-width: 100%;
    display:block;
}

img.right {
    float: right;
    height: 90px;
    margin-left: 20px;
    margin-top: 6px;
    margin-bottom: 1px;
}

img.left {
    float: left;
    height: 80px;
    margin-right: 20px;
    margin-top: 6px;
    margin-bottom: 1px;
}

img.center {
    /* float center does not exist */
    margin: 20px auto;
    display: block;
    /* must change inline image to a block level image */
    height: 600px;
}

/* typography */

/* thinning visual of font */
h1 {
    font-weight: bolder;
    font-size:2.7em;
    letter-spacing: -1.3px;
}

h1, h2, h3 {
    margin-bottom: 8px;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    line-height: 1.2;
    color: #00549f;
}

h2 {
    color: #3e4048;
    font-size: 1.4em;
    font-weight: 200;
    padding-bottom: 5px;
    text-transform:capitalize;
    letter-spacing: 0.3px;
    border-bottom: 1px dotted #666;
}

h3 {
    color:#0e1b4da3;
    font-size: 1.6em;
    font-weight: 200;
    letter-spacing: -1.3px;
    /* text-transform: uppercase; */
}

p {
    margin-bottom: 20px;
    line-height: 1.4;
}

aside p {
    font-size: .9em;
}

span p {
    display: block;
    text-align: center;
    font-style: italic;
}

main ul {
    padding-left: 20px;
    font-style: italic;
}

main a {
    color: rgba(0, 0, 0, 0.757);
    text-shadow: 1px 1px 2px whitesmoke;
    text-decoration: none; 
    box-shadow: inset 0 -0.1em 0 0 #0e1b4da3;
    font-size: 1.2em;
}

main a:hover {
    text-decoration: none; 
    box-shadow: inset 0 -0.5em 0 0 #0e1b4d51;
}