/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.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
   ========================================================================== */

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

html {
    color: #222;
    font-family: 'proxima-nova', sans-serif;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * 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.
 */

::-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 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: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

body, html {
    background-color: #f9f1e3;
    height: 100%;
}

h1 {
    font-size: 3em;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 900;
    color: #000;
    line-height: 90%;
    margin: 0px;
}

h2 {
    font-size: 2em;
    letter-spacing: .07em;
    text-align: center;
    text-transform: none;
    font-weight: 700;
    color: #000;
    line-height: 125%;
    margin: 0px;
    margin-bottom: 50px;
}

h3 {
    font-size: 2em;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #446730;
    line-height: 100%;
    margin: 3px 0px 0px;
}

h4 {
    font-size: .9em;
    text-transform: uppercase;
    line-height: 150%;
    letter-spacing: .2em;
    font-weight: 700;
    color: #446730;
    text-decoration: none;
}

p {
    font-size: 1em;
    line-height: 160%;
    letter-spacing: .05em;
    font-weight: 500;
    color: #000;
    margin: 0px;
}

li {
    font-size: .9em;
    text-transform: uppercase;
    line-height: 150%;
    letter-spacing: .2em;
    font-weight: 500;
    color: #446730;
    margin: 5px 0px 0px;
}

a {
    font-size: .9em;
    text-transform: uppercase;
    line-height: 150%;
    letter-spacing: .2em;
    font-weight: 700;
    color: #446730;
    margin: 0px;
    text-decoration: none;
}

a:hover {
    color: #889068;
}

a.greenlink:hover {
    color: #f9f1e3;
}

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

.green {
    color: #446730;
}

.tan {
    color: #f9f1e3;
}

.underline {
    border-bottom: 2px solid #f9f1e3;
    margin-bottom: 20px;
    padding-bottom: 6px;
}

#topbar {
    height: 15px;
    background-color: #446730;
}

.lefty {
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: .2em;
    position: absolute;
    top: 42%;
    left: 20px;
}

.righty {
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: .2em;
    position: absolute;
    top: 42%;
    right: 20px;
}

.lefty-contact {
    font-weight: 500;
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: .2em;
    position: absolute;
    top: 37%;
    left: 20px;
}

a span.lefty-contact:hover {
    color: #889068 !important;
}

.righty-contact {
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: .2em;
    position: absolute;
    top: 37%;
    right: 20px;
}

header {
    background-image: url('../img/triplecurl_mark.png');
    background-position: 50% 0%;
    background-repeat: no-repeat;
}

.logo {
    display: block;
    width: 100%;
    max-width: 550px; 
    margin: 160px auto 130px;
}

.logo-small {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 5px auto 20px;
}

nav.navigation  {
    display: block;
    border-top: 2px solid #446730;
    border-bottom: 2px solid #446730;
    margin-bottom: 35px;
}

nav.navigation ul {
    text-align: center;
}

nav.navigation ul li {
    margin: 5px 0px;
    padding: 0px 40px;
    display: inline-block;
}
 
nav.navigation ul li + li {
    background: url('../img/seperater.png') no-repeat center left;
    padding-left: 40px;
}

.heading {
    text-align: center;
    display: block;
    border-top: 2px solid #446730;
    border-bottom: 2px solid #446730;
    margin-bottom: 25px;
    margin-right: 20px;
}

.intro {
    -webkit-column-count: 2; /* Chrome, Safari, Opera */
    -moz-column-count: 2; /* Firefox */
    column-count: 2;
    -webkit-column-gap: 30px; /* Chrome, Safari, Opera */
    -moz-column-gap: 30px; /* Firefox */
    column-gap: 30px;
    text-align: justify;
    text-justify: inter-word;
}

.services {
    text-align: center;
}


.boxes {
  background-color: #889068;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.boxes:after{
    content:"";
    position:absolute;
    right:0;
    top:0;
    width: 100%;
    height: 255px;
    background-color: #f9f1e3;
    z-index: 1;
}

.tabs {
    width: 100%;
    max-width: 1140px;
    margin: 30px auto 0px;
    float: none;
    list-style: none;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.tabs:after {
    content: '';
    display: table;
    clear: both;
}

.tabs input[type=radio] {
    display:none;
}

.tabs label {
    display: block;
    float: left;
    width: 20%;
    cursor: pointer;
    text-align: center;
    margin-top; 200px;
}

.tabs label h4 {
    margin-top: 85%;
}

.tabs label h4:hover {
    color: #889068;
}


label.advertising {
    width: 20%;
    height: 0;
    padding-bottom: 16%;
    background-image:url(../img/advertising.png);
    background-position: 0 0;
    background-size: 200%;
    display: block;
}

label.advertising:hover {
    background-position: 100% 0;
}

label.advertising:active {
    background-position: 100% 0;
}

label.public-relations {
    width: 20%;
    height: 0;
    padding-bottom: 16%;
    background-image:url(../img/public-relations.png);
    background-position: 0 0;
    background-size: 200%;
    display: block;
}

label.public-relations:hover {
    background-position: 100% 0;
}

label.product-manuals {
    width: 20%;
    height: 0;
    padding-bottom: 16%;
    background-image:url(../img/product-manuals.png);
    background-position: 0 0;
    background-size: 200%;
    display: block;
}

label.product-manuals:hover {
    background-position: 100% 0;
}

label.photography {
    width: 20%;
    height: 0;
    padding-bottom: 16%;
    background-image:url(../img/photography.png);
    background-position: 0 0;
    background-size: 200%;
    display: block;
}

label.photography:hover {
    background-position: 100% 0;
}

label.shotshow {
    width: 20%;
    height: 0;
    padding-bottom: 16%;
    background-image:url(../img/shot-show.png);
    background-position: 0 0;
    background-size: 200%;
    display: block;
}

label.shotshow:hover {
    background-position: 100% 0;
}

.tab-content {
    width: 100%;
    display: none;
    float: left;
    margin-top: 80px; 
    padding: 15px 0px;
    box-sizing: border-box;
}

.tab-description {
    width: 50%;
    padding-right: 15px;
    float: left;
    text-align: justify;
    text-justify: inter-word;
}

.tab-content img{
  width: 50%;
  padding-left: 15px;
  float: left;
}

.tab-content img.wide{
    width: 100%;
    padding-top: 20px;
    padding-left: 0px;
}

.tab-content * {
    -webkit-animation: scale 0.7s ease-in-out;
    -moz-animation: scale 0.7s ease-in-out;
    animation: scale 0.7s ease-in-out;
}
@keyframes scale {
  0% {
    transform: scale(0.9);
    opacity: 0;
    }
  50% {
    transform: scale(1.01);
    opacity: 0.5;
    }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.tabs [id^="tab"]:checked + label h4{
    color: #889068;
}

.tabs [id^="tab"]:checked + label.advertising:active {
    background-position: 100% 0;
}

#tab1:checked ~ #tab-content1,
#tab2:checked ~ #tab-content2,
#tab3:checked ~ #tab-content3,
#tab4:checked ~ #tab-content4,
#tab5:checked ~ #tab-content5 {
  display: block;
}



/* ==========================================================================
   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 print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

@media handheld, only screen and (max-width: 1048px) {
    .boxes:after{
        height: 240px;
    }
}

@media handheld, only screen and (max-width: 940px) {
    .boxes:after{
        height: 225px;
    }
}

@media handheld, only screen and (max-width: 825px) {
    .lefty {
        top: 36%;
    }

    .righty {
        top: 36%;
    }

    .lefty-contact {
        display: block;
        position: relative;
        left: 0;
        margin: 0px auto;
        text-align: center;

    }

    .righty-contact {
        display: block;
        position: relative;
        left: 0;
        margin: 5px auto 20px;
        text-align: center;
    }

    nav.navigation  {
        display: block;
        border-top: 2px solid #446730;
        border-bottom: 2px solid #446730;
        margin-bottom: 30px;
        margin-right: 0px;
    }

    nav.navigation ul {
        text-align: center;
    }

    nav.navigation ul li {
        margin: 5px auto;
        padding: 0px;
        display: block;
    }
     
    nav.navigation ul li + li {
        background: none;
        padding: 0px;
    }

    .intro {
        -webkit-column-count: 1; /* Chrome, Safari, Opera */
        -moz-column-count: 1; /* Firefox */
        column-count: 1;
        -webkit-column-gap: 0px; /* Chrome, Safari, Opera */
        -moz-column-gap: 0px; /* Firefox */
        column-gap: 0px;
        text-align: justify;
        text-justify: inter-word;
    }

    .boxes:after{
        height: 210px;
    }

    .tab-description {
        display: block;
        width: 100%;
        padding-right: 0px;
        float: none;
        text-align: justify;
        text-justify: inter-word;
    }

    .tab-content img{
        display: block;
        margin-top: 20px;
        width: 100%;
        padding-left: 0px;
        float: none;
    }

    .tab-content {
        margin-top: 90px; 
    }

}

@media handheld, only screen and (max-width: 700px) {
    .boxes:after{
        height: 120px;
    }

    .tabs label h4 {
        display: none;
    }

    .tab-content {
        margin-top: 30px; 
    }
}

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