/*   
Theme Name: Terry 2K15
Theme URI: http://terrychay.com/
Description: The theme for the Woodwork. As usual, I always start with a default
  theme of WordPress, in this case, TwentyFifteen (Skipped TwentyFourteen and
  TwentyThirteen as being too busy for a simple blog)
Author: terry chay
Author URI: http://terrychay.com/
Template: twentyfifteen
Version: 0.6
Tags: black, blue, white, two-columns, fixed-width, custom-header, theme-options
, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-
support
Text Domain: terry-2k15
*/

/* Not sure why TwentyFifteen doesn't wrap the more link */
.entry-content .more-link {
	white-space: normal;
}

/* position attribution caption on post-thumbnails in article */
.fml-post-thumbnail-caption {
    position: relative;
}
.fml-post-thumbnail-caption figcaption.wp-caption-text {
    position: absolute;
    z-index: 5; /* in case we have picturefill and it re-injects the image */
    bottom: 0;
    right: 0;
    padding: 5px 2px;
    color: #fff;
    background: rgba(0,0,0,.4);
}
.fml-post-thumbnail-caption a {
    color: #fff;
    text-decoration: none;
    border: 0;
}
.fml-post-thumbnail-caption a:hover, .fml-post-thumbnail-caption a:focus{
    color: #ccc;
    color: rgba( 255, 255, 255, 0.7);
    border-bottom: 1px solid #ccc;
    border-bottom: 1px solid rgba( 255, 255, 255, 0.7);
}
/* flickr should be in flickr font (or as close as possible) */
.trademark.flickr  {
    font-family: Frutiger, 'Frutiger Linotype', Istok, Univers, Calibri, 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', Myriad, 'DejaVu Sans Condensed', 'Liberation Sans', 'Nimbus Sans L', Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 800;
}

/* Fix GistPress Spacing in TwentyFifteen */
.gist .line-numbers {
	/* width: 4em;  */
}
.gist .file-data {
	overflow: auto;
}
.file-data table {
	table-layout: auto;
}

/* Debugging console has too much space */
#debug-menu-targets p {
	margin-bottom: .4em;
}

/* Tooltip styling */
[rel~="tooltip"] {
    cursor: pointer;
    border-bottom: 1px dashed #ccc;
}
/* This is in honor of my designer friends and for my friends who say they
  actually like reading my commentary */
a.commentary {
	/* hyperlinks have a very strong underline border already */
    background-color:rgba(83,162,137,0.15);
}
.commentary, [rel="tooltip commentary"] {
	/* background: #e0ffea; /* minty! 
	background: #f0fffa; /* minty! */
    /* minty = f0fffa  = 240, 255, 250 ~ avg(248) -9, +7 +2  (oscillate around 125*2 */
    /* background-color:rgba(83,162,137,0.15); */
    cursor: pointer;
    border-bottom: 1px dashed rgba(83,162,137,0.8);
}
#tooltip {
    font-size: 0.875em;
    text-shadow: 0 1px rgba( 0, 0, 0, .5 );
    line-height: 1.5;
    color: #fff;
    background: #333;
    background: -webkit-gradient( linear, left top, left bottom, from( rgba( 0, 0, 0, .6 ) ), to( rgba( 0, 0, 0, .8 ) ) );
    background: -webkit-linear-gradient( top, rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) );
    background: -moz-linear-gradient( top, rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) );
    background: -ms-radial-gradient( top, rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) );
    background: -o-linear-gradient( top, rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) );
    background: linear-gradient( top, rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) );
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border-top: 1px solid #fff;
    -webkit-box-shadow: 0 3px 5px rgba( 0, 0, 0, .3 );
    -moz-box-shadow: 0 3px 5px rgba( 0, 0, 0, .3 );
    box-shadow: 0 3px 5px rgba( 0, 0, 0, .3 );
    position: absolute;
    z-index: 100;
    padding: 15px;
}
    #tooltip:after
    {
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #333;
        border-top-color: rgba( 0, 0, 0, .7 );
        content: '';
        position: absolute;
        left: 50%;
        bottom: -10px;
        margin-left: -10px;
    }
    #tooltip.top:after
    {
        border-top-color: transparent;
        border-bottom: 10px solid #333;
        border-bottom-color: rgba( 0, 0, 0, .6 );
        top: -20px;
        bottom: auto;
    }
    #tooltip.left:after
    {
        left: 10px;
        margin: 0;
    }
    #tooltip.right:after
    {
        right: 10px;
        left: auto;
        margin: 0;
    }

/* OUTDATED CONTROLS */

.thought {
font-style: italic;
}

blockquote.thought {
font-style: italic;
}

/* Flickr image. To do some offsetting.

- add a css3 box shadow http://css.flepstudio.org/en/css3/box-shadow.html in the style seen in http://rolandlim.wordpress.com/ @done(2010-02-01)
- fix the float rule
- structure is too much work, fix that
- You have to specify width (currently) using an internal style rule, change it to a plugin or something
*/
.flimg,.flimg_left,.flimg_right {
display:block; 
border: 1px solid #bbb;
box-shadow: 2px 2px 2px #bbb;
-webkit-box-shadow: 2px 2px 2px #bbb;
-moz-box-shadow: 2px 2px 2px #bbb;
padding: 2px;
max-width: 100%;
}
.flimg img,.flimg_left img,.flimg_right img {
display: block;
margin: 0 auto;
}
#content .flimg .caption p { /*kirby has strange padding*/
margin-bottom: 5px;
}
.flimg .caption img { /*for things like smileys */
display: inline-block;
}
.flimg {
margin: 0 auto 5px auto;
}
.flimg_left {
float:left;
margin: 0 10px 2px 0;
}
.flimg_right {
float:right;
margin: 0 0 2px 10px;
}
.flimg .caption, .flimg_left .caption, .flimg_right .caption, .flimg_caption {
font-size: 0.7em;
line-height: 1.3em;
margin-top: 0px;
padding: 0 2ex;
clear: both;
}

/* mouseover controllers */
#content ul.controller {
	margin: 0;
	display: block;
	font-size: 0.7em;
	line-height: 1.3em;
	margin-top: 0px;
}
#content ul.controller li {
	display: inline;
}
#content ul.controller li a {
	display: block;
	float: left;
	padding: 2px 5px;
	border: 1px solid #999;
}
#content ul.controller li .selected {
	color: #fff;
	background: #000;
}

/* Changed san-serif used to Optima.

Also changed titling of entry content and serif font to Baskerville. Because Jon Tan is the bomb*/

.entry-content > p:first-child:first-line {
font-variant:small-caps;
text-indent:0;
}
/* I don't use H2 (seems illogical) so I need to resort H3 and H4 */
.entry-content h3 {
font-family: Optima, Futura, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 18px;
font-weight: bold;
font-style: normal;
}
.entry-content h4 {
font-style: italic;
margin: 0 0 12px;
font-size: 110%;
}

.Obama { background: #66f; }
.McCain { background: #f66; }
