/*
 * 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    background-color: lightblue;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: white;
    color: #000;
    padding: 0.2em 0;
}

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


a {
    color: #23dbdb;
    text-decoration: none;
}

a:hover {
    color: #000;
}

ol, ul {
    list-style: none;
    padding:0px;
    margin:0px;
}

#wrap {
    margin: 0 auto;
}

iframe {
    width:calc(100vw - 30px);
    height: calc(100vh - 240px);
    border:0;
    margin:auto;
}

#htmlpage {
    margin:auto;
}

#framepage {
    margin: auto;
    horiz-align: center;
    vertical-align: center;
}

#header {
    background-image:url(../img/index2.jpg);
    background-repeat: no-repeat;
    background-position: center;

    font-size:22px;
    text-align:center;
    color:white;
    font-weight:bold;
    height:100px;
    padding-top:50px;
}

.inner {
    margin: 0 auto;
    max-width: 940px;
    padding: 0 40px;
}

.relative {
    position: relative;
}

.right {
    float: right;
}

.left {
    float: left;
}

/* HEADER */
#wrap > header {
    background-color: white;
    padding-bottom: 20px;
    margin-top: 100px;
    height:40px;
    border-color: #333333;
}

.logo {
    display: inline-block;
    font-size: 0;
    padding-top:15px;
}

#navigation {
    position: absolute;
    left:10px;
    right:40px;
    top:0px;
    padding-bottom: 10px;
    padding-top: 10px;
}

#content {
    margin: 0 200px; /* setting top and bottom margin to 0 and right and left margin to 200px */
}

/*Menu button at the top.  Hide this when window is greater than 700px*/
#menu-toggle {
    display:none;
    position:relative;
    padding-bottom: 10px;
    padding-top: 15px;
}

/* HEADER > MENU */
#main-menu {
    font-size: 0;
    margin: 10px 0;
}

#main-menu > li {
    display: inline-block;
    margin-left: 30px;
    padding: 2px 0;
}

#main-menu > li.parent {
    background-size: 7px 7px;
    background-repeat: no-repeat;
    background-position: left center;
}

#main-menu > li.parent > a {
    padding-left: 14px;
    text-transform: uppercase;
}

#main-menu > li > a {
    color: black;
    font-size: 14px;
    font-family: Helvetica, "Times New Roman";
    line-height: 14px;
    padding: 30px 0;
    text-decoration:none;
    text-transform: uppercase;

}

#main-menu > li:hover > a,
#main-menu > li.current-menu-item > a {
    color: #23dbdb;
}

/* HEADER > MENU > DROPDOWN */
#main-menu li {
    position: relative;
}

ul.sub-menu { /* level 2 */
    display: none;
    left: 0px;
    top: 30px;
    padding-top: 10px;
    position: absolute;
    width: 150px;
    z-index: 9999;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

ul.sub-menu ul.sub-menu { /* level 3+ */
    margin-top: -1px;
    padding-top: 0;
    left: 149px;
    top: 0px;
}

ul.sub-menu > li > a {
    font-family: Helvetica, "Times New Roman";
    background-color: white;
    color: black;
    display: block;
    font-size: 12px;
    line-height: 15px;
    padding: 10px 12px;
    text-transform: uppercase;
}

ul.sub-menu > li > a:hover {
    background-color: white;
    color: black;
}

ul.sub-menu > li:first-child {
    border-top: 3px solid #23dbdb;
}

ul.sub-menu ul.sub-menu > li:first-child {
}

ul.sub-menu > li:last-child > a {
}

ul.sub-menu > li > a.parent {
    background-size: 5px 9px;
    background-repeat: no-repeat;
    background-position: 95% center;
}

#main-menu li:hover > ul.sub-menu {
    display: block; /* show the submenu */
}


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media all and (max-width: 700px) {

    #navigation {
        position: static;
        margin-top: 20px;
    }

    #menu-toggle {
        display:block;
        position:fixed;
        left:20px;
        padding-bottom: 10px;
        padding-top: 15px;
    }


    #main-menu {
        float: none;
    }

    #main-menu li {
        display: block;
        margin: 0;
        padding: 0;
    }

    #main-menu > li {
        margin-top: -1px;
    }

    #main-menu > li:first-child {
        margin-top: 0;
    }

    #main-menu > li > a {
        background-color: white;
        display: block;
        font-size: 14px;
        padding: 12px !important;
        padding: 0;
    }

    #main-menu li > a:hover {
        color: white !important;
        background-color: #333 !important;
    }

    /*#main-menu > li.parent {*/
        /*background: none !important;*/
        /*padding: 0;*/
    /*}*/

    #main-menu > li:hover > a{
        color: white !important;
        background-color: #333;
    }

    ul.sub-menu ul.sub-menu {
        position: absolute;
        top: 0px;
        left: 50px;
    }

    ul.sub-menu {
        position:absolute;
        top:0px;
        left:50px;
        /*display: block;*/
        /*margin-top: -1px;*/
        /*margin-left: 0px;*/
        /*position: static;*/
        /*padding: 0;*/
        /*width: inherit;*/
    }

    /*ul.sub-menu > li:first-child {*/
    /*}*/

    /*ul.sub-menu > li > a.parent {*/
        /*background: white !important;*/
    /*}*/

    /*ul.sub-menu > li > a.parent.hover {*/
        /*color: white !important;*/
        /*background-color: #333;*/
    /*}*/
}

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

@media print,
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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