/*
 * Layout/global.
 */

html {
    color: #2d2d2d;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    /*letter-spacing: 1.0px;*/
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
    
}

body {
    min-height:101%;
    overflow:auto;
    background: #fff;
    color: #2d2d2d;
    margin: 50px; /* > 550px */
    margin-top:35px;
}

@media (max-width: 550px) { /* > 480 && < 550 */
    body { 
        margin: 25px; 
        margin-top:15px; 
    }
}
@media (max-width: 480px) { /* < 480*/
    body {
        margin: 5px; 
        margin-top:0px;
    } 
}

.main {
    min-height: 100%;
    height:100%;
    position:relative;
    width:100%;
    max-width:640px;
    margin:0;
    overflow: hidden;
    z-index: 1;
}

/*
 * Fonts.
 */

 h6{
    margin-top:2.5rem;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 1.2rem; /* <- applies to larger window size */
    line-height: 1.4;
    display:block;
    color:#2d2d2d;
    padding: 2px 0 0 2px;
    margin-top:0;
	margin-bottom:0;
}

p {
	max-width:640px;
    font-size: 1.0rem;
}

@media (max-width: 550px) { /* > 480 && < 550 */
    h6 { 
        font-size: 1.0rem; 
        font-weight: bold; 
    }
    p {
        font-size: 10px;
    }
}
@media (max-width: 480px) { /* < 480 */
    p {
        font-size: 8px;
    }
}

.subcat p{
    margin-top:6px;
}

hr {
    border: none;
    height: 1px;
    color: #2d2d2d; /* old IE */
    background-color: #2d2d2d; /* Modern Browsers */
    max-width:640px;
    margin: 0px;
}

/*
 * Links.
 */

a, .hiddenTxt {
    text-decoration:none;
    color:#2d2d2d;
    /*background-color: #2d2d2d;*/
 }

 a:active {
    text-decoration: underline;
    color:#2d2d2d;
 }

 a:visited {
    color:#2d2d2d;
 }

 a:hover, .hiddenTxt:hover {
    text-decoration: none;
    color:#2d2d2d;
    background-color: rgba(0,0,0,0);
 }

 .Link:hover {
    padding-top: 1px;
    border-bottom: #2d2d2d 1px solid;
}

/*
 * Divs.
 */

.cat, .subcat {
	margin-left:20px;
}

.subItem1 {
	color:#a1a1a1;
}

#portrait {
    position:relative;
    float:right;
    margin-top:0.5rem;
    height:4rem;
    padding:5px;
}

@media (max-width: 550px) { /* > 480 && < 550 */
    #portrait {
        height:3rem;
    }
}
@media (max-width: 480px) { /* < 480 */
    #portrait {
        height:2rem;
    }
}

.shadowed {
    filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=0,Color='#444')";
    filter: url(#drop-shadow);
    -webkit-filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.5));
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.5));
}

.disableSmoothing {
    image-rendering: optimizeSpeed;             /* STOP SMOOTHING, GIVE ME SPEED  */
    image-rendering: -moz-crisp-edges;          /* Firefox                        */
    image-rendering: -o-crisp-edges;            /* Opera                          */
    image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
    image-rendering: pixelated; /* Chrome */
    image-rendering: optimize-contrast;         /* CSS3 Proposed                  */
    -ms-interpolation-mode: nearest-neighbor; 
}

/* headModel overay stuff */

#overlayImg, #overlaySvg{
    position:fixed;
    overflow: auto;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    z-index:-1;
}

#overlaySvg{
    z-index:2;
}

#threejs_canvas canvas{
    position:fixed;
    /* overflow: auto; */
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    z-index:0;

    /*-webkit-filter: blur(1px);
-moz-filter: blur(1px);
-o-filter: blur(1px);
-ms-filter: blur(1px);
filter: blur(1px);*/
}

@media (max-width: 480px) { /* < 480px */
    #threejs_canvas, #overlayImg, #overlaySvg {
        display:none;
    }
}

/* tables */

table, table tr td {
    /*border-color:#a1a1a1;*/
    border-color:rgba(0,0,0,0.1);
}


@media (max-width: 640px) { /* > 480 && < 550 */
    table {
        font-size: 10px;
    }
}
@media (max-width: 550px) { /* > 480 && < 550 */
    table {
        font-size: 8px;
    }
}
@media (max-width: 480px) { /* < 480 */
    table {
        font-size: 6px;
    }
}

/* buttons */
button {
    margin:5px 0 5px 0;
    padding:0px;
    border:none;
    border-bottom: solid 1px rgba(0,0,0,0);
    background:none;
}
button:hover{
    padding-top:0px !important;
}
button:active{
    background-color:rgb(214,255,0);
}


/* footer */

footer{
    position:relative;
    overflow:visible;
    margin-bottom:10px;
    width:100%;
    max-width:640px;
    height:40px;
}
#imgContainer{
    display:inline-block;
    width:40px;
    height:40px;
    overflow:visible;
}
#imgContainer img{
    max-height: 35px;
}
#imgContainer2{
    position:relative;
    padding-left:10px;
    display:inline-block;
    height:40px;
    overflow:visible;
}
footer p{
    font-size:8px;
}
footer img{
    margin: 0;
    max-height: 50px;
}
#left img{
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}
#left, #right {
    display:inline-block;
}
#right{
    position: relative;
    float: right;
}
#rightText{
    display:inline-block;
    float:left;
    text-align: right;
}
#rightText p{
    margin:5px;
}
#rightPic{
    display:inline-block;
}

@media (max-width: 550px) { /* > 480 && < 550 */
    #imgContainer img, #imgContainer2 img {
        max-height:30px;
    }
    #imgContainer{
        width:30px;
    }
}
@media (max-width: 480px) { /* < 480 */
    #imgContainer img, #imgContainer2 img {
        max-height:20px;
    }
    #imgContainer{
        width:20px;
    }
}

.disableSmoothing{
    image-rendering: optimizeSpeed;             /* STOP SMOOTHING, GIVE ME SPEED  */
    image-rendering: -moz-crisp-edges;          /* Firefox                        */
    image-rendering: -o-crisp-edges;            /* Opera                          */
    image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
    image-rendering: pixelated; /* Chrome */
    image-rendering: optimize-contrast;         /* CSS3 Proposed                  */
    -ms-interpolation-mode: nearest-neighbor;
}
