/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

/*hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}*/

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


body {
  background-color: rgba(255,255,255,1); /* gray: #f0f0f0; */
  font-size: 1em;
  font-family: 'Droid Sans', helvetica, arial, sans-serif;
  font-weight: 400;
  line-height: 1.525em; /* 1.525 = 24.407px , 1.45, 1.333 = 21.328  */
  color: #222; /* dark gray: 222;  8a5a01 */
  padding: 0;
  margin: 0;
}

p {margin-bottom: 1.525em; padding-left: 1px;}

h1, h2, h3, h4 {
  margin: 1.414em 0 0.5em;
  font-weight: inherit;
  line-height: 1.2;
}

h1 {
    margin-top: 12.003px; /* 4.351; 9.005  */
    margin-bottom: 24.407px; 
    font-size: 1.144em;
    width:432.324px;
    float:left;
    padding-left: 1px;
    color:#333;
}

h2.top {
    margin-top: 12.003px; 
    margin-left: 24.407px;
    margin-bottom: 24.407px;  
    font-size: 1.144em;
    width:432.324px;
    float:left;
    color:#333;
}

h3 {font-size: 1.144em;}

h4 {font-size: 1em;}

small, .font_small {font-size: 0.75em;}

/* content  */
#grid { 

        border-top:4.351px solid #333;
        /*width: 894.826px; */
        width: 1024px; 
        margin-top: 12.003px; /* 4.351; 9.005 */
        margin-left: 16px;  
        float:left;

    }

.wrapper-link {
    display:block;
    float:right;
    width:503.591px;
    margin:0;
    padding:0;
}

.wrapper-link span {
    font-size: 0.75em;
    color:rgba(5,5,5,.5);
    margin-left: 283.412px;
}

.lg-img {
    width:503.591px; 
    margin-left: 28.430px;
    margin-right: 57.809px;
    margin-top:12.003px; /* 10.305 */
    margin-bottom: 1.605px;
    float:right;
}
/* 12.003px, 24.407  */

.video-frame {
    width:503.591px; 
    margin-left: 37.897px;
    margin-right: 32.534px;
    margin-top:12.003px;
    margin-bottom: 1.605px;
    float:right;
}

.sound-frame {
    width:503.591px; 
    margin-left: 37.897px;
    margin-right: 32.534px;
    margin-top:12.003px;
    margin-bottom: 7.731px;
    float:right;
    /* width="100%" height="166"   */
}

.shadow {
-moz-box-shadow: 5px 5px 5px #888;
-webkit-box-shadow: 5px 5px 5px #888;
box-shadow: 5px 5px 5px #888;
}



/* 12.003px, 24.407  width: 530*/


section {

    width:432.324px; /* 432.324px;  */
    float:left; 
    border-bottom:4.351px solid #333;
}

#img-grid {
    width:562.324px; /* 562.324px  */
}

#img-grid img {
    float:left;
    width:265px;
    max-height: 160px;
    overflow: hidden;
    margin:0 12.003px 12.003px 0;
    border:1px solid rgba(1,1,1,0.2);
}

#img-grid .top-row  {
    margin-top: 12.003px;
}


#img-grid img:hover {
    border:1px solid rgb(0,0,100);
 }

 #img-grid img:active {
    border:1px solid rgba(0,0,100, 0.8);
 }

.lg-img:hover {
    background-color: rgba(0,0,100, .03);
}

.clear {
    
    float:none; 
    clear:both;
    display:block;

} /* float:none; clear:both; */

section.clear {

    margin-left: 0;
}

.clear ul {

        margin-top:24.407px;
/*        margin-bottom:24.407px;*/
        border:1px solid rgba(240,240,240,.0);
}
    
.clear ul li {  
        margin:0; 
        padding:0; 
        list-style-type:none; 
        list-style-position: outside;
}

.clear ul li:first-child {
     margin-top:24.407px;
}
.clear ul li:last-child {
    margin-bottom:24.407px;
}    

/*section p {font-family: times, serif;}*/

section+section {
    margin-left: 24.407px; 
    border-bottom: none;
} /* 24.407; 21.328 */

#bottom-left {
    position:absolute;
    bottom:5.800px;
    left:5.800px;
}
#bottom-right {
    position:absolute;
    bottom:5.800px;
    right:5.800px;
}

hr { 
    height: 1px; 
    width:20px; 
    color:#000; 
    border: 0;
    /*
        background: #333;
        background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc); 
        background-image:    -moz-linear-gradient(left, #ccc, #333, #ccc); 
        background-image:     -ms-linear-gradient(left, #ccc, #333, #ccc); 
        background-image:      -o-linear-gradient(left, #ccc, #333, #ccc); 
    */
}

hr+hr { 
    height: 1px; 
    width:18px; 
    color:#000;
    border: 0;
    -webkit-transform: rotate(90deg) translate(-10px);
       -moz-transform: rotate(90deg) translate(-10px);
        -ms-transform: rotate(90deg) translate(-10px);
         -o-transform: rotate(90deg) translate(-10px);
}

/* navigation */
nav {width:432.324px; float:left; margin-left: 24.407px; margin-top:4.351px;} /* 24.407; 21.328 */
nav ul {margin:102.721px  0 0 0; padding:0;}
nav ul li {margin:0; padding:0; list-style-position: outside;}

section ul {
        margin:16px 0 0 0; 
        padding:0;
    }

section ul li {
    margin:0; 
    padding:0; 
    list-style-type:none; 
    list-style-position: outside;
}

footer {
    margin-left:16px;
} /* clear:both; */

a:link, a:visited {color:rgba(5,5,5,.9); text-decoration:none;}
a:hover, a:active {color:rgba(0,0,255,1); text-decoration:none;}
li a:hover:after, li a:active:after,  a.proj:hover:after, a.proj:active:after {
    content:  " \2192 ";
}

.here {color:rgba(5,5,5,.2)}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/* screens below 35em have white bg */

/* ipad: 1024px, smartphones:; landscape: 480px, portrait: 320px; */

@media only screen and (max-width: 480px) {
    /* Style adjustments for viewports that meet the condition */
    /* 472 */
    #container {
        width:472px;
    }
    #grid {
        border-top:3.264px solid #333;
        width:472px;
    }

    section {
        margin-bottom:24.407px;
        margin-left: 0;
        margin-right: 0;
        border-bottom:3.264px solid #333;
    }

    section+section {

        margin-bottom:24.407px;
        margin-left: 0;
    }

    #img-grid img {
    width:182px;
    max-height: 100px;
    overflow: hidden;
    margin:0 12.003px 12.003px 0;
}

    ul {

        margin-top:24.407px;
    }
    
    ul li {  
        margin:0; 
        padding:0; 
        list-style-type:none; 
        list-style-position: outside;
    }

    h1 {
        width:212.612px;
    }

    h2.top {
        width:212.612px;
        margin-left: 12.003px;
    }

    .lg-img {
        width:324.324px; 
        margin-left: 9.005px; /* 9.005px  */
    }

    .clear {
/*        margin-top: 24.407px;*/
        border-top:3.264px solid #333;
    }
}

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

    /* Style adjustments for viewports that meet the condition */
    #container {
            width:912px;
    } 
    section {
        /*margin-bottom:24.407px;*/
    }
    nav {   
            float:none; 
            margin: 0 0 0 16px;
        }
    ul {
            margin-top:24.407px;
        }
    ul li {  
            margin:0; 
            padding:0; 
            list-style-type:none; 
            list-style-position: outside;
        }
    
}


@media only screen and (max-width: 1536px) {
    /* Style adjustments for viewports that meet the condition */
    #container {min-width:1388px;} /* height:1000px; max width */ 

}




@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
