/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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;
}

html {
    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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles: SHOULD BE MOBILE FIRST!
   ========================================================================== */

   /*  scale: .667, .975, 1, 1.46, 1.5, 2.195, 2.25, 3.292, 3.375, 4.938, 5.063, 7.407  */

        body {
            font: normal 100% 'PT Sans', sans-serif; 
            color:#1F1000;
            background-color: rgb(255,255,255);
            margin:0;
             -webkit-transition: all 20ms ease-in;
            -moz-transition: all 20ms ease-in;
            -ms-transition: all 20ms ease-in;
            -o-transition: all 20ms ease-in;
            transition: all 20ms ease-in;
        }

        header {
            background-color: #0dd202; /* #1CB014, 0067b4 */
            padding: 6em 0 1em 4em;
            margin:0;
        }

        #page {
            margin:0;
            padding:0;
            /*background-color: #0067b4;*/
        }

        #taxhavens, 
        #antiface,
        #revolutionteleporter,
        #walkinla, 
        #fivethesesforathesis, 
        #grotesqueplatform {padding-top: 1em; padding-bottom:2em;} /* background-color: rgba(0,103,180,0.1); */ 

        #taxhavens:hover, 
        #antiface:hover,
        #revolutionteleporter:hover,
        #walkinla:hover, 
        #fivethesesforathesis:hover, 
        #grotesqueplatform:hover {
        -webkit-box-shadow: 0 0 5px 2px rgba(0,0,0,.25);
        box-shadow: 0 0 5px 2px rgba(0,0,0,.25);
    }

        section, footer {
             padding:4em 0 0 4em;
             clear:both;
        }

        footer {
            background-color: rgba(13,210,2,0.9); /* #eee, #0dd202 */
        }

        footer p {
            padding-bottom: 2em;
        }

        ul li, ol li {
            margin: 0  0 .2em 0;
        } 

        /* 997F3D */

        nav {
            margin:0 0 1em 4em;
            height: 10em;
            padding: 0;
        }

        nav ul {
            list-style: none;
            list-style-position: inside;
            margin:0;
            padding: 0;
        }

        nav ul li {
            margin: 0;

        }

        h1 {
            font-size:  5.063em;
            font-weight: normal;
            margin-bottom: 0;
            letter-spacing: -0.01em;
            /*font-size: 1.5em; */
            /* 24px / 16px = 1.5 */
        }

        .myname {
            margin-top: 0;
            padding-top: 0;
            letter-spacing: 0.01em;
        }

        h2, h3 {
            font-size: 1.5em;
            font-weight: normal;
        }

        section h1 {
            font-size: 2.25em;
            margin: .75em 0 -0.75em 0;
        }

        p, li, blockquote {
            font-size: 1.25em; /* 18px / 16px = 1.125 */
            line-height: 1.42em; /*  28px */
        }

        nav li a:link {
          font-size: 0.975em;
        }

        small, h4, h5 {
            font-size:1em; /*  since body copy size is over 1 em, let's make small be 1 em and let's make sure our remaining hs wrangled  */
        }

        code {
            font-family:  'Source Code Pro', monaco, monospace;
            font-size: 0.97em; /* balancing value for pairing source code pro with PT Sans */
            /*font-size: 0.912em;*/
        }

        img {
            max-width: 100%;
        }

        .lg-img, iframe {
            /*float:right;*/
            margin-top:2em;
            margin-bottom: 1em;
        }

        .cdc {
            margin-top:8em;
        }

        .cdc + span {
            display:block;
            text-align: center;
        }

        a:link, a:visited {
            color:#1CB014;
            text-decoration: none;
        }

        a:hover, a:active {
            color:#FF8300;
            padding-bottom: .025em;
            border-bottom: .2em solid #FF8300;
        }

        nav a:hover, nav a:active {
/*            border:none;*/
        } 

        section:hover {
            color:#000;
           /* background-color: ;*/
            -webkit-transition: all 200ms ease-in;
            -moz-transition: all 200ms ease-in;
            -ms-transition: all 200ms ease-in;
            -o-transition: all 200ms ease-in;
            transition: all 200ms ease-in;

        }

    img a:hover {border:none;}


/* ==========================================================================
   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.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */

        body {
            margin:0;
            color:#1F1000;
             -webkit-transition: all 100ms ease-in;
            -moz-transition: all 100ms ease-in;
            -ms-transition: all 100ms ease-in;
            -o-transition: all 100ms ease-in;
            transition: all 100ms ease-in;
        }

        #page {

            font-size:118%; 
            
            /*width:88%;  
            padding: .5em 1em .5em 1.5em;
            margin:0 auto; 
            background:rgb(248,248,248); 
            -webkit-border-radius: 0.16em;
            -moz-border-radius: 0.16em;
            border-radius: 0.16em;  */
        }

        #page:after {
            content:"";
            display:table;
            clear:both;
        }

        header {
            padding: 8em 0 2em 6em;
        }

        ul li, ol li {
            margin-bottom:.8em;
        }

        nav {
            
            margin:2em 0 2em 6em;
            height: 1em;
            padding: 0;
        }

        nav ul {
            list-style: none;
            list-style-position: inside;
            margin:0;
            padding: 0;
        }

        nav ul li {
            float:left;
            margin: 0 1em 0 0;
        }

        section, footer {
            padding:4em 0 0 6em;
            clear:left;
        }

        section#vocabulary {
            margin-top: 7.5em;
        }

        section#vocabulary h1 {
            margin-left:1.5em;
        }

        section#vocabulary h2 {
            margin:2em 0 0 2em;
        }

        section:hover {
            color:#000;
            background-color: rgba(255,255,255);
            -webkit-transition: all 200ms ease-in;
            -moz-transition: all 200ms ease-in;
            -ms-transition: all 200ms ease-in;
            -o-transition: all 200ms ease-in;
            transition: all 200ms ease-in;
            -webkit-border-radius: 0.2em;
            -moz-border-radius: 0.2em;
            border-radius: 0.2em; 

        }

        section h1 {
            margin: 1.25em 0 -0.5em 0;
        }

        #right-column, #left-column {
            float:left;
        } 

        #right-column {
            width:36.7778%; 
            /*   / 900 = 36.7778 */
        }

        .lg-img {
            width:36.7778%;
            margin-left:2em; 
            float:right;
        }

        iframe {
            float:right;
            width:34%; 
            height: 300px;
            margin-right: .8em;
            -webkit-box-shadow: 1px 8px 13px 2px rgba(0,0,0,0.5);
           /* -moz-box-shadow: 4px 8px 13px 2px rgba(0,0,0,0.75);
            box-shadow: 4px 8px 13px 2px rgba(0,0,0,0.75);*/
        }

        #left-column p {
            width:62.8889%; 
            /*  62.8889% 566 / 900 =  */
        }

        a:link, a:visited {

            color:#1CB014;
            text-decoration: none;

        }

        a:hover, a:active {
            color:#FF8300;
            padding-bottom: .025em;
            border-bottom: .29em solid #FF8300;
        }

} /* end of @media only screen and (min-width: 35em)   */

@media only screen and (min-width: 75em) {

    #page {
       font-size:120%;
            -webkit-transition: all 100ms ease-in;
            -moz-transition: all 100ms ease-in;
            -ms-transition: all 100ms ease-in;
            -o-transition: all 100ms ease-in;
            transition: all 100ms ease-in; 
    }

}

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

/* ==========================================================================
   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;
    }
}
