/*
[//]: # (Body and font sizes)
*/


@media (max-width:991px) {
    html { font-size: 46%; }
}

@media (min-width:992px) and (max-width:1199px) {
    html { font-size: 56%; }
}

body { font-size: 1.4rem; line-height:1.6rem; }

/*
# Heading Examples
 ```
    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <h3>Heading 3</h3>    
```
*/
h1, h2, h3, h4, h5 { margin:0; padding:0; }
h1 { font-size: 2.0rem; line-height: 2.1rem; margin-bottom: 2.0rem; font-weight: normal; }
h2 { font-size: 1.8rem; line-height: 1.9rem; margin-bottom: 2.0rem; }
h3 { font-size: 1.6rem; line-height: 1.3rem; margin-bottom: 1.5rem; }
  

/*
# Paragraph text
```
    <p class="fixie"></p>
```
*/
p { font-size: 1.4rem; margin: 0 0 1.0rem 0; line-height: 2rem; }


/*
# Responsive Image
   This will be 100% to fill the grid column;
```
    <img src="/img/logo.jpg" alt="image" />
```
# Original Image Width
   This is will be original size. Either set it with a class, or add your image into a 'p' for original width;
```   
    <p><img src="/img/logo.jpg" alt="image" /></p>
    
    <img src="/img/logo.jpg" alt="image" class="width-initial" />

    <div class="width-initial">
        <img src="/img/logo.jpg" alt="image" />
    </div>
```
*/
picture, img { display: block; }

.row-fluid p img,
.row-fluid .width-initial,
.row-fluid .width-initial img { width: initial; }

figure { margin:0; }


/*
# Unordered List
```
    <ul>
        <li>List item 1</li>
        <lh>A list heading</lh>
        <li>List item 2</li>
    </ul>
```
# Ordered List
```
    <ol>
        <li>List item 1</li>
        <li>List item 2</li>
    </ol>
```
*/

/*ul, ol { font-size: 1.4rem; padding:0; margin: 0 0 2.0rem 0; overflow: hidden; }
ul lh, ol, lh { font-weight:bold; }

ul li { list-style: outside; margin-left: 16px; }

ol > li { list-style: decimal; list-style-position: inside; }
ol.alpha > li { list-style:upper-alpha; }*/

/*
# Links
```
    <a href="javascript:void(0);">Link</a>
```
*/

a { font-size: 1.4rem; text-decoration: none; cursor: pointer; display: inline-block; color: #2d499d; }
a:hover, a.active { text-decoration:underline; }

/*
# Other
```
    <time>Jan 01 0001</time>
    <hr/>
```
*/
time { font-size:inherit; margin: 0 0 2.0rem 0; }

hr { margin:1rem 0;}


/*
[//]: # (Page Structure)
[//]: # (**************)
*/

header { padding: 0; }

main { margin-top: 1em; }

@media (min-width:992px) {
    header .logo { margin-top: 10px; }
}

/*
[//]: # (Navigation)
[//]: # (**********)
*/
@media(min-width:992px) {
    .nav-wrapper { display: block !important; overflow: auto; width: 100%; }
}

nav ul { background-color:#fff; }
nav ul li { list-style: none; padding: 1rem; }
nav ul li:first-child { padding-left:0; }
nav ul li:last-child { padding-right:0; }

nav ul li a { font-size: 1.4rem; padding: .4rem 0; color: #222; }
nav ul li a:hover { text-decoration: none; }
nav ul li a:first-child { padding-left: 0; }


/*
[//]: # (One Level Navigation)
*/
nav ul.level-one { float:right; }

@media (min-width: 992px) {
    
    nav ul.level-one { display: block; }
    nav ul.level-one li { float: left; list-style: none; margin: 0; }

    nav ul.level-one.hover > li:hover ul.level-two { display: block; }
}

/*
[//]: # (Two Level Navigation)
*/
nav ul.level-two { display: none; position: absolute; z-index: 2; width: 8rem; }

@media (min-width: 992px) {
    nav ul.level-two.hover li:hover ul.level-three { display: block; }
}

/*
[//]: # (Three Level Navigation)
*/
nav ul.level-three { display: none; }

@media (min-width: 992px) {
    nav ul.level-three.hover li:hover ul { display: block; }
}

/*
[//]: # (Hamburger)
*/
nav .hamburger { position: absolute; top:1.5rem; right:1.5rem; }
nav .hamburger img { width: 56%; max-width: 44px; }
nav .hamburger a { cursor: pointer; padding: 10px 36px 16px 0; z-index: 999; position: absolute; right: 3.5rem; }

@media (min-width: 992px) {

    nav .hamburger { display: none; }
    nav.fly-out .hamburger { display: block; }     
}


.hamburger span,
.hamburger span:before,
.hamburger span:after { cursor: pointer; border-radius: 3px; height: 5px; width: 35px; background: #2d499d; position: absolute; display: block; content: ''; }
.hamburger span:before { top: -10px; }
.hamburger span:after { bottom: -10px; }


.hamburger-animate span,
.hamburger-animate span:before,
.hamburger-animate span:after { transition: all 100ms ease-in-out; }
.hamburger-animate.active span { background-color: transparent; }
.hamburger-animate.active span:before, #nav-toggle.active span:after { top: 0; }
.hamburger-animate.active span:before { transform: rotate(45deg); top: 0px; }
.hamburger-animate.active span:after { transform: rotate(-45deg); bottom: 0px; }

/*
[//]: # (Flyout)
*/
nav.fly-out .wrapper { position: fixed; top: 0; right: 0; width: 100%; z-index: 2; overflow: hidden; overflow-y: auto; background-color: #fff; -webkit-box-shadow: 0 5px 12px 0 rgba(0, 0, 0, .2); -moz-box-shadow: 0 5px 12px 0 rgba(0, 0, 0, .2); box-shadow: 0 5px 12px 0 rgba(0, 0, 0, .2); }

nav.fly-out .wrapper.menu { background-repeat: no-repeat; background-position: top; background-size: cover; }

nav.fly-out nav .hamburger { display: none; }     

@media (max-width:767px) {
    nav.fly-out .wrapper.menu { height: 75vh; }
}
@media (min-width: 768px) {
   
}

/*
[//]: # (Footer Navigation)
*/

@media (min-width: 768px) {
    
}




/*
[//]: # (Common styles for responsive and layout)
[//]: # (***************************************)
*/

.collapse { display: none; }
.expand { display: block !important; }

.desktop-only { display: none; }
.mobile-only { display: block; }

@media (min-width: 992px) {
    .desktop-only { display: block; }
    .mobile-only { display: none; }
}

.relative { position: relative; }
.absolute { position: absolute; }


.no-padding { padding: 0 !important; }
.no-margin { margin: 0 !important; }

@media (min-width: 768px) {
    .no-padding-sm { padding: 0; }
    .no-margin-sm { margin: 0; }
}


.center-text { text-align: center; }
.strong { font-weight: 900; }

.no-border { border: none !important; }

.right { float: right; right: 0; }
.bottom { 
    /*position: absolute; bottom: 0; */
}

@media (min-width: 768px) {
    .right-sm { float: right; right: 0; }
}


.full-width { position: relative; width: calc(100vw); left: 0; margin-left: calc(-50vw + 50%) !important; }

.full-container { width: 100% !important; }
.half-container { width: 50% !important; }


/*
[//]: # (Screen Read AODA)
[//]: # (****************)
*/
.off-screen { position:absolute; left:-99999px }


.accessible { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; color: #fff; }
.accessible:focus { position: static; width: auto; height: auto; }


/*
[//]: # (TypeKit fix for FOUT on firefox)
[//]: # (*******************************)
*/
.wf-loading { visibility: hidden; /* Hide elements while web fonts are loading */ }

/*
[//]: # (Handle Flash of Unstyled Content)
[//]: # (********************************)
*/
.fouc { display: none; }


/*
[//]: # (Magnific popup Overrides)
[//]: # (************************)
*/
.mfp-inline-holder .mfp-content { width:initial !important; }


/*
[//]: # (responsive video)
[//]: # (****************)
*/    
.video-wrapper { position: relative; padding-bottom: 56.25%; /* 16:9 */ padding-top: 25px; height: 0; }
.video-wrapper iframe {  position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/*
[//]: # (Content Card in Grid)

# Content Card in Grid
```
    <div class="row-fluid equal-height-js grey-bg">
        <div class="span-4 col-sm-4">
            <div class="inner">
                <p>inner stuff</p>
            </div>
        </div>
    </div>
```
*/
[class*=span] .inner { height: 100%; }
.grey-bg [class*=span] .inner { padding: 1rem; background-color: #cccccc; }


/*
[//]: # (Form.css Override) 
*/
.form-row label, .form-row span.validation, .form-row .tip, .form-row .tool-tip, .form-row input, .form-row textarea, .form-row keygen, .form-row select, .form-row button { font-size: 1.4rem; }


/*
# Input's
    Most forms will be laid out as per /StyleGuide/#/style/SpeakUpOntario/css/advantage.2.0.css 
    Overrides here for border and colors;
```
    <input type="text" /><br/>
    <select>
		<option value="Please Select">Please Select</option>
	</select><br/>
    <textarea rows="2" cols="20"></textarea><br/>
```
*/
input[type=text],
input[type=password],
select,
textarea { padding:12px 10px; border: 1px solid #999; border-radius: 0.35rem; -moz-box-shadow: inset 0 0 5px #DDDDDD; -webkit-box-shadow: inset 0 0 5px #DDDDDD; box-shadow: inset 0 0 5px #DDDDDD; /*Inner Shadow*/ color: rgb(68, 68, 68); }


input[type=text]:hover,
input[type=password]:hover,
select:hover,
.list-control:hover,
textarea:hover { border-color: #555; }

input[type=text]:focus,
input[type=password]:focus,
select:focus,
textarea:focus { border-color: #2d499d; }


/*
# Button 
```
    <a href="" class="button">Button</a>
    <input type="submit" value="Button" />
```
*/


/*
[//]: # (Tabbed Content)
[//]: # (**************)
[//]: # (*Tabbed Content styles not needed with bootstrap)
*/
.tabbed .tabbed-nav { text-align: center; margin-bottom: 0;}

    .tabbed .tabbed-nav li {
        float: left;
        list-style: none;
        margin: 0;
        z-index: 1;
        /*width: 20%;*/
        border-right: 1px solid #cccccc;
        border-bottom: 0;
        background-color: var(--color-blue);
        background-color: transparent
    }
.tabbed .tabbed-nav li a {color:#fff}
    .tabbed .tabbed-nav li.active {
        color: #fff;
        border-bottom-color: #fff;
        /*background-color: var(--color-blue);*/
        border: 0
    }
.tabbed .tabbed-nav li:last-child { border-right: 1px solid #cccccc; }

        .tabbed .tabbed-nav li a {
            text-align: center;
            width: 100%;
            white-space: nowrap;
            font-size: 18px
        }
.tabbed-content.tab-content {padding:2em; border:1px solid #ccc; background:#efefef}
.tabbed .tabbed-content .tab-pane { display: none; }
