/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    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 and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

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

* {
    margin: 0;
}

html {
    font-size: 62.5%;
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    height: 100%;

    background-image: url('../img/bg.png');
    background-repeat: repeat-y;
    background-position: center top;
    min-width: 1200px;
}

body.no-bg,
body.no-bg #main,
body.no-bg #pageheader,
body.no-bg #pagefooter {
    background-image: none;
}

#pageheader {
    position: relative;
    z-index: 2;
    height: 6.8rem;
    
    background-image: url('../img/bg.png');
    background-repeat: repeat-y;
    background-position: center top;
    min-width: 1200px;
}

#main {
    position: relative;
    z-index: 1;

    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: -6.8rem 0 -6.8rem 0;

    background-image: url('../img/bg.png');
    background-repeat: repeat-y;
    background-position: center top;
    min-width: 1200px;
}

#main .container {
    padding: 6.8rem 0 6.8rem 0;
}

#pagefooter {
    width: 100%;
    height: 6.8rem;
    position: relative;
    z-index: 2;

    background-image: url('../img/bg.png');
    background-repeat: repeat-y;
    background-position: center top;
    min-width: 1200px;
}

#left-content {
    height: 100%;
    padding-top: 4.4rem;
    position: relative;
}

#right-content {
    height: 100%;
    padding-top: 4.4rem;
    padding-bottom: 4.4rem;
    position: relative;
}

#full-content {
    padding: 4.4rem 0 0;
    position: relative;
}

#right-content.faded-gloebit:before {
    background-image: url('../img/gloebit-tilt.png');
    background-repeat: no-repeat;
    content: '';
    display: block;
    height: 28.5rem;
    position: absolute;
    right: 2rem;
    top: 12rem;
    width: 18.5rem;
}

.right-wrapper {
    margin-top: 7.4rem;
}

.page-heading {
    padding-bottom: 3.4rem;
    position: relative;
}

.return {
    float: right;
    line-height: 4rem;
    vertical-align: middle;
}

.return strong {
    font-weight: 600;
}

.icon-link {
    font-size: 1.5rem;
    font-weight: 300;
    margin-right: 1.6rem;
    padding-left: 0.4rem;

    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.icon-link:last-child {
    margin-right: 0;
}

.icon-link:before {
    font-size: 1.3em;
    position: relative;
    right: 0.8rem;
    vertical-align: -0.2rem;
}

.icon-link:hover {
    color: #4ba9ea;
}

header .heading-b {
    display: inline-block;
}

header .icon-link {
    float: right;
}

.white-box {
    background-color: #fff;
    border: 1px solid #dedede;
    border-radius: 3px;
    margin-bottom: 5.4rem;
    padding: 0.9rem;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.white-box .description {
    width: 324px;
    float: left;
    padding: 0 1.8rem;
}

.white-box.padded {
    padding: 1.8rem;
}

.white-box .heading-b {
    margin-bottom: 1.2rem;
}

.white-box .app-thumb {
    float: right;

    -webkit-box-shadow: 2px 2px 4px rgba(0,0,0,0.16);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.16);
}

.gray-box {
    background-color: #f4f4f4;
    color: #696969;
    display: block;
    padding: 1.2rem;
    text-align: center;
    width: 100%;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.associated {
    bottom: 4.6rem;
    float: right;
    margin-top: 1.6rem;
}

.associated.btn-group {
    margin-top: 0;
}


/* Tiles */

.account-tile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-tile {
    display: inline-block;
    margin-left: 0.8rem;
}

.account-tile:first-child {
    margin-left: 0;
}

.account-tile a {
    background-color: #696969;
    border-radius: 3px;
    color: #fff;
    display: block;
    font-size: 2rem;
    height: 3.5rem;
    line-height: 3.5rem;
    text-align: center;
    width: 3.5rem;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    -webkit-transition: all 0.15s ease;
    -moz-transition: all 0.15s ease;
    transition: all 0.15s ease;
}

.account-tile a:hover {
    background-color: #7f7f7f;

    -webkit-transition: all 0.15s ease;
    -moz-transition: all 0.15s ease;
    transition: all 0.15s ease;
}


/* Collapse */

.collapse {
    height: 0;
    overflow: hidden;
    position: relative;

    -webkit-transition: height 0.35s ease;
    -moz-transition: height 0.35s ease;
    transition: height 0.35s ease;
}

.in {
    display: block;
}

.collapsing {
    position: relative;
    height: 0;
    overflow: hidden;

    -webkit-transition: height 0.35s ease;
    -moz-transition: height 0.35s ease;
    transition: height 0.35s ease;
}


.margin-left-0 {
  margin-left: 0rem;
}


.margin-left-1 {
  margin-left: 1rem;
}


.margin-left-2 {
  margin-left: 2rem;
}


/* Tabs */

.nav-tabs {
    border-bottom: 1px solid #ddd;
    display: table;
    padding: 0;
}

.nav {
    margin-bottom: 3.4rem;
    margin-left: 0;
    list-style: none;
    width: 100%;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.nav-tabs > li {
    margin-bottom: -1px;
}

.nav-tabs > li {
    float: left;
}

.nav-tabs > li > a {
    color: #696969;
    display: block;
    font-size: 1.4rem;
    margin-right: 0.2rem;
    padding: 0.8rem 1.2rem;
    line-height: 2rem;
    border: 1px solid transparent;

    -webkit-transition: color 0.35s ease;
    -moz-transition: color 0.35s ease;
    transition: color 0.35s ease;
}

.nav-tabs > li > a:hover {
    color: #3f96d3;
}

.nav-tabs > .active > a,
.nav-tabs > .active > a:hover,
.nav-tabs > .active > a:focus {
    color: #696969;
    cursor: default;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
}

.tab-content {
    overflow: auto;
}

.tab-content > .tab-pane, .pill-content > .pill-pane {
    display: none;
}

.fade {
    opacity: 0;

    -webkit-transition: opacity 0.15s linear;
    -moz-transition: opacity 0.15s linear;
    transition: opacity 0.15s linear;
}

.tab-content > .active, .pill-content > .active {
    display: block;
}

.fade.in {
    opacity: 1;
}


/* Tally */

.tally {
    border-color: transparent;
    border-style: solid;
    border-width: 1px;
    margin-bottom: 3.4rem;
    width: 100%;
}

.tally tr {

}

.tally td {
    font-size: 1.6rem;
    font-weight: 300;
    padding: 0.4rem 0;
}

.tally .value {
    text-align: right;
}

.tally .purchase-value td {
    font-weight: 400;
    padding-bottom: 1.6rem;
}

.tally .purchase-value .bonus {
    color: #7bb200;
    display: inline-block;
    font-weight: 300;
    font-size: 1.2rem;
    margin-right: 1.3rem;
    margin-left: 6.4rem;
    text-transform: uppercase;
    width: 90px;
}

.tally .new-balance td {
    border-top-color: #dedede;
    border-top-style: solid;
    border-top-width: 1px;
    color: #3f96d3;
    font-size: 1.8rem;
    padding-top: 1.6rem;
}


/* Rating */

.rating {
    unicode-bidi: bidi-override;
    direction: rtl;
}

.rating[data-ratings]:before {
    color: #a8a8a8;
    content: "(" attr(data-ratings) ")";
    float: right;
    font-size: 1.4rem;
    font-weight: 400;
    margin-left: 1rem;
    position: relative;
    top: 0.1rem;
}

.rating > .star {
    color: #c1c1c1;
    display: inline-block;
    position: relative;
    width: 1.1em;
}

.rating > .filled:before {
    content: "\2605";
    position: absolute;
}


/* Footer */

#footer-container {
    height: 6.8rem;
}

.footer-links {
    background-color: #fff;
    border-top: 1px solid #e8e8e8;
    bottom: 0;
    display: block;
    font-size: 1.5rem;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 2rem 0 0;
    text-align: center;
    width: 100%;
    z-index: 1;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.footer-links li {
    display: inline-block;
    margin-right: 1.2rem;
}

.footer-links li:last-child {
    margin-right: 0;
}



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

/*
 * Floats
 */

.fl { float: left; }

.fr { float: right; }

.no-float {
    display: block;
    float: none;
}

.no-wrap {
    display: block;
    overflow: hidden;
}

/*
 * Margins
 */

.no-mar {
    margin: 0;
}

.mar-8 {
    margin-bottom: 0.8rem;
}

.mar-16 {
    margin-bottom: 1.6rem;
}

.mar-24 {
    margin-bottom: 2.4rem;
}

.mar-28 {
    margin-bottom: 2.8rem;
}

.mar-34 {
    margin-bottom: 3.4rem;
}

.mar-44 {
    margin-bottom: 4.4rem;
}

.mar-58 {
    margin-bottom: 5.8rem;
}


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

/*
 * When something needs a little z-index boost
 */

.elevated {
    position: relative;
    z-index: 10;
}

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

/* ==========================================================================
   Media queries
   ========================================================================== */

@media only screen and (max-width: 719px) {
    /* html, body { overflow-x: hidden; } */

/*    body,         */
/*    #pageheader, */
/*    #main, */
    #pagefooter {
        background-position: left top;
        z-index: initial;
    }
    body {
        font-size: 1.2rem;
        background-position: left top;
    }
    
    #pageheader {
        height: 4.8rem;
        background-position: left top;
    }
    
    #main {
        margin: 0;
        background-position: left top;
        min-height: initial;
    }

    .not_desktop {
        display: block !important;
    }

    #main .container {
        padding: 0rem 0 0;    /* 10rem 0 0; */
    }

    #left-content,
    #right-content {
        padding: 0 0 2rem;  /* 0 0 4rem; */
    }

    #left-content {
        background-image: url('../img/bg.png');
        padding: 0 0 2rem;  /* 0 0 4rem; */
    }

    .right-wrapper {
        margin-top: 0rem;       /* 3.4rem; */
    }

    #full-content {
        padding: 0 0 4rem;
    }

    .icon-link {
        font-size: 2.2rem;
    }

    .white-box {
        border: 0;
        margin-bottom: 1.2rem;  /* 3.4rem; */

        -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.16);
        box-shadow: 0px 0px 8px rgba(0,0,0,0.16);
    }

    .white-box.padded {
        padding: 1rem 2rem;     /* 3rem 4rem; */
    }

    .white-box .description,
    .white-box.padded .description {
        width: 100%;
        text-align: center;
        display: block;
        padding: 0;
        float: none;
    }

    .white-box img,
    .white-box p {
        display: none;
    }

    .white-box .heading-b {
        color: #949494;
        font-size: 1.4rem;  /* 2.8rem; */
        font-style: italic;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .page-heading {
        padding-bottom: 5rem;
    }

    .page-heading .return {
        background-color: #fff;
        color: #696969;
        display: block;
        float: none;
        font-size: 3rem;
        font-style: italic;
        font-weight: 400;
        line-height: 1.2em;
        padding: 2.4rem 4rem;
        vertical-align: middle;
        width: 100%;

        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;

        -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.16);
        box-shadow: 0px 0px 8px rgba(0,0,0,0.16);
    }

    .page-heading .return:before {
        color: #86c200;
        content: "\f100";
        font-size: 3rem;
        line-height: 1.2em;
        margin-right: 4rem;
        vertical-align: 1px;

        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    .associated {
        bottom: 0;
        display: block;
        float: none;
        font-size: 2.8rem;
        margin: 2rem 0 0;
        padding: 0 4rem;
    }

    .btn-group.associated {
        text-align: center;
    }

    #main header {
        padding: 0 4rem;
        width: auto;
    }

    header .heading-b {
        padding: 0;
    }

    header .icon-link {
        float: right;
        font-size: 2.2rem;
        margin: 4.2rem 0 0;
    }
    .nav {
        margin-bottom: 1.7rem;      /* 3.4rem; */
    }

    .nav-tabs li a {
        font-size: 1.4rem;          /* 2.2rem; */
        padding: 0.8rem 1.4rem;     /* 1.6rem 2.8rem; */
    }

    .nav-tabs li.active a {
        /* background-image: url('../img/bg.png'); /*
    }

    .ac-textfield {
        font-size: 2.0rem;
    }
}