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

body {
    font-size: 0.9em;
    line-height: 1.4;
    font-family: Helvetica, Arial, sans-serif;
}

a {
    text-decoration: none;
    outline: none;
}

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

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

body {
    background: #fff;
    padding: 12px;
}

a:active, a:selected, a:visited {
    outline: none;
}

.main-wrapper {
    width: 940px;
    margin: 0 auto;
}
.site-wrapper {
    background: #ececec;
}
.logo {
    float: left;
    width: 223px;
    height: 110px;
    background: url("../img/cag-logo.png") no-repeat left top;
}
.top-nav, .left-nav {
    font-size: 78%;
}
.top-nav {
    float: right;
    width: 453px;
    height: 110px;
    position: relative;
    top: 13px;
}
.top-nav ul {
    height: 50px;
    list-style-type: none;
}
.top-nav ul li {
    float: left;
    display: block;
}
.top-nav ul {
    float: left;
}
.top-nav ul.language {
    float: right;
    padding-right: 12px;
}
.top-nav ul li a {
    color: #7b7c7f;
    padding: 4px 0px;
    margin-right: 12px;
    border-bottom: 12px solid #ececec;
}
.top-nav ul li a:hover {
    color: #333;
    border-bottom: 12px solid #959595;
}
.top-nav ul li.active a {
    color: #ee3f23;
    border-bottom: 12px solid #959595;
}
.top-nav ul.language li a:hover {
    border-bottom: none;
}
.top-nav ul.language li.selected a {
    color: #ee3f23;
}
.top-nav a.social {
    position: absolute;
    right: 80px;
    top: 9px;
    opacity: 0.7;
}
.top-nav a.social:hover {
    opacity: 0.8;
}

.content-wrapper {
    clear: both;
}
.left-nav {
    float: left;
    width: 137px;
    border-top: 12px solid #ee3f23;
    border-bottom: 12px solid #ee3f23;
}
.left-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0.5em 0;
}
.left-nav ul li {
    display: block;
}
.left-nav ul li a {
    color: #7b7c7f;
    display: block;
    padding: 4px 0px 4px 8px;
}
.left-nav ul li.selected a, .left-nav ul li.selected a:hover {
    color: #ee3f23;
}
.left-nav ul li a:hover {
    color: #333;
}
.left-nav ul li.active a {
    color: #ee3f23;
}

.main-content {
    float: left;
    width: 358px;
    padding-left: 5px;
    color: #666666;
}
.alt-content {
    float:left;
    padding-left: 5px;
    padding-right: 12px;
    width: 760px;
}
.alt-content .bold {
    font-weight: bold;
}
.alt-content .center {
    text-align: center;
}
.main-content p, .main-content form, .alt-content p {
    font-size: 0.8em;
}
.alt-content p {
    line-height: 1.6em;
    text-align: justify;
}
.main-content a, .alt-content a {
    color: #ee3f23;
}
.main-content a.menu-size {
    font-size: 95%;
}
.main-content a:hover, .alt-content a:hover {
    color: #ae391a;
}
.main-content p.contact a {
    color: #666666;
}
.main-content p.contact a:hover {
    color: #ee3f23;
}
.main-picture {
    float: left;
    padding-left: 12px;
}
.alt-picture {
    float: right;
    padding-left: 12px;
    padding-right: 12px;
    width: 300px;
}
.alt-picture img {
    max-width: 300px;
    border: 1px solid #ddd;
}
.main-picture img {
    max-width: 400px;
    border: 1px solid #ddd;
}
.product-picture {
    cursor: pointer;
}
.other-pictures {
    clear: both;
    padding: 12px 12px 12px 512px;
    position: relative;
}
.other-pictures-overflow {
    overflow-x: hidden;
    height: 68px;
    width: 402px;
}
.other-pictures div {
    display: inline-block;
    white-space: nowrap;
}
.slider-transform {
    display: inline-block;
    white-space: nowrap;

    -ms-transition: -ms-transform .5s ease-in-out;
    -webkit-transition: -webkit-transform .5s ease-in-out;
    -moz-transition: -moz-transform .5s ease-in-out;
    transition: transform .5s ease-in-out;
}
.other-pictures-overflow div.left {
    padding-right: 10px;
}
.other-pictures div img {
    height: 46px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    cursor: pointer;
    opacity: 1;
}
.other-pictures div.animate img {
    -webkit-transition: opacity .5s ease-in;
    -moz-transition: opacity .5s ease-in;
    transition: opacity .5s ease-in;
}
.other-pictures div.sel img {
    opacity: .5;
}
.other-pictures div.loading img {
    opacity: 0;
}
.other-pictures .arrow {
    position: absolute;
    display: none;
    top: 10px;
    width: 20px;
    height: 54px;
    background-repeat: no-repeat;
    background-position: 0px 13px;
}
.other-pictures.show-arrows .arrow {
    display: block;
}
.other-pictures .arrow.left-arrow {
    background-image: url(../img/arrow-left.png);
    left: 492px;
}
.other-pictures .arrow.right-arrow {
    right: 0;
    background-image: url(../img/arrow-right.png);
}
.thumbnails-wrapper-overflow {
    overflow-x: hidden;
    height: 100px;
    width: 1080px;
}
.thumbnails-wrapper a {
    display: inline-block;
    white-space: nowrap;
}
.thumbnails-wrapper img {
    display: inline-block;
    white-space: nowrap;
}
.disabled {
    opacity: 0.5;
}
.btn-send, .btn-cancel {
    float: left;
    width: 149px;
    margin-bottom: 20px;
}
.btn-send {
    margin-right: 12px;
}
form .btn-send input, form .btn-cancel input {
    width: 100%
}

form {

}
form label {
    display: block;
    padding-top: 12px;
}
form input, form textarea {
    width: 300px;
    display: block;
    padding: 4px;
    border: 1px solid #bbb;
    background: #fff;
    color: #666;
    margin-top: 12px;
}
.products-slider {
    position: relative;
    margin-left: 135px;
    height: 450px;
}
.product-frame {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}
.anim .product-frame {
    -ms-transition: opacity .7s linear;
    -moz-transition: opacity .7s linear;
    -webkit-transition: opacity .7s linear;
    transition: opacity .7s linear;
}
.product-frame.hide {
    opacity: 0;
}
.current-product, .next-product {

}


h1 {
    font-size: 150%;
    line-height: 1.0;
    margin: 0;
    padding: 24px 0 0 0;
    color: #999999;
}
h2 {
    font-size: 105%;
    font-weight: normal;
    line-height: 1.0;
    margin: 0;
    padding: 0;
    padding: 12px 0 0 0;
}
.main-content table {
    padding: 12px 0 0 0;
    margin-top: 12px;
    font-size: 78%;
    text-transform: uppercase;
}
.main-content table .lower-case {
    text-transform: lowercase;
}
.main-content table tr td:first-child {
    font-weight: bold;
}
.main-content table tr td:last-child {
    padding-left: 1em;
}
.main-content table tr td.material {
    vertical-align: top;
}
.thumbnails-overflow {
    position: relative;
    padding-left: 135px;
    padding-top: 12px;
    padding-bottom: 40px;
}
.thumbnails-overflow .products-page-counter {
    position: absolute;
    top: 100px;
    font-size: 90%;
    text-align: center;
    width: 775px;
    /* width: 1030px;  vzdy jako thumbnails-wrapper, pak text-align center, odsunout top, wrapperu dat padding odspoda */
}
.thumbnails-overflow .products-page-counter,
.thumbnails-overflow .arrow {
    display: none;
}
.thumbnails-overflow.show-arrows .products-page-counter,
.thumbnails-overflow.show-arrows .arrow {
    display: block;
}
.thumbnails-overflow .arrow {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 54px;
    padding-right: 0;
    background-repeat: no-repeat;
    background-position: 0px 13px;
}
.thumbnails-overflow .left-arrow {
    background-image: url(../img/arrow-left.png);
    left: 112px;
}
.thumbnails-overflow .right-arrow {
    background-image: url(../img/arrow-right.png);
    left: 920px;
}
.thumbnails-wrapper {
    white-space: nowrap;
    overflow: hidden;
    width: 784px;
}
.thumbnails-wrapper img {
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 100px;
    border: 1px solid #bbb;
    opacity: 1;
}
.thumbnails-wrapper a.animate img {
    -webkit-transition: opacity .5s ease-in;
    -moz-transition: opacity .5s ease-in;
    transition: opacity .5s ease-in;
}
.thumbnails-wrapper a.selected img {
    /*opacity: .5;*/
}
.thumbnails-wrapper a.loading img {
    opacity: 0;
}
.thumbnails-wrapper a:last-child img {
    margin-right: 0px !important;
}
.thumbnails-wrapper a {
    display: inline-block;
    position: relative;
}
.thumbnails-wrapper a.sold-en:before, .thumbnails-wrapper a.sold-cz:before,
.thumbnails-wrapper a.gallery-en:before, .thumbnails-wrapper a.gallery-cz:before {
    position: absolute;
    bottom: 10px;
    color: #fff;
    background: #ee3f23;
    padding: 2px;
    font-size: 75%;
}
.thumbnails-wrapper a.sold-en:before, .thumbnails-wrapper a.sold-cz:before {
    left: 35px;
}
.thumbnails-wrapper a.gallery-en:before, .thumbnails-wrapper a.gallery-cz:before {
    left: 45px;
}
.thumbnails-wrapper a.sold-en:before {
    content: "SOLD";
}
.thumbnails-wrapper a.sold-cz:before {
    content: "SOLD";
}
.thumbnails-wrapper a.gallery-en:before {
    content: "GALLERY";
}
.thumbnails-wrapper a.gallery-cz:before {
    content: "GALERIE";
}
.main-content .first-column {
    width: 60px;
}
.main-content .second-column {
    width: 280px;
}
input.active-button {
    border: 1px solid #ee3f23;
    color: #ee3f23;
}
input.active-button:hover {
    border: 1px solid #ae391a;
    color: #ae391a
}
[disabled=disabled] input.active-button {
    border-color: gray;
    opacity: .7;
    color: gray;
}
p.contact span {
    display: inline-block;
    width: 38px;
}
.products-page-counter a, .products-page-counter a:visited {
    color: #000;
    display: inline-block;
}
.products-page-counter .arrows {
    width: 8px;
    height: 11px;
    background-repeat: no-repeat;
    padding: 0 4px;
}
.products-page-counter .arr-first {
    background-image: url(../img/arrows-first.png);
    background-position: 4px 0;
}
.products-page-counter .arr-prev {
    background-image: url(../img/arrows-prev.png);
    background-position: 5px 0;
}
.products-page-counter .arr-next {
    background-image: url(../img/arrows-next.png);
    background-position: 5px 0;
}
.products-page-counter .arr-last {
    background-image: url(../img/arrows-last.png);
    background-position: 4px 0;
}
a.page-num + a.page-num {
    margin-left: 4px;
}
a.page-num {
    padding: 0 4px;
}
.products-page-counter a.sel {
    color: #ee3f23;
    font-weight: bold;
}
.products-slider img:hover {
    cursor: pointer;
}
.copyright {
    line-height: 20px;
    padding: 15px;
    font-size: 11px;
    text-align: center;
}
.copyright a, .copyright a:visited {
    color: #7b7c7f;
}
.copyright a:hover {
    color: #333;
}


/* popping fix */

.site-wrapper {
    min-height: 470px;
}
.other-pictures-overflow img {
    min-width: 70px;
    min-height: 46px;
}

@media all and (min-width: 1130px) {
    .main-wrapper {
        width: 1090px;
    }
    .main-picture img {
        max-width: 550px;
    }
    .other-pictures-overflow {
        width: 552px;
    }
    .top-nav {
        width: 603px;
    }
    .other-pictures-overflow div.left {
        padding-right: 13px;
    }
    .other-pictures div img {
        height: 52px;
    }
    .other-pictures .arrow {
        top: 16px;
    }
    .thumbnails-wrapper {
        width: 938px;
    }
    .thumbnails-wrapper img {
        margin-right: 12px;
        margin-bottom: 12px;
        width: 120px;
        height: 79px;
    }
    .thumbnails-overflow .products-page-counter {
        top: 118px;
        width: 925px;
    }
    .thumbnails-overflow .arrow {
        top: 28px;
    }
    .thumbnails-overflow .right-arrow {
        left: 1070px;
    }
    .site-wrapper {
        min-height: 573px;
    }
    .other-pictures-overflow img {
        min-width: 79px;
        min-height: 52px;
    }
    .thumbnails-wrapper a.sold-en:before, .thumbnails-wrapper a.sold-cz:before {
        bottom: 12px;
        left: 46px;
    }
    .alt-content {
        width: 910px;
    }
}

@media all and (min-width: 1230px) {
    .main-wrapper {
        width: 1190px;
    }
    .main-picture img {
        max-width: 650px;
    }
    .other-pictures-overflow {
        width: 653px;
        height: 80px;
    }
    .top-nav {
        width: 703px;
    }
    .other-pictures div img {
        height: 63px;
    }
    .other-pictures .arrow {
        top: 21px;
    }
    .thumbnails-wrapper {
        width: 1036px;
    }
    .thumbnails-wrapper img {
        margin-right: 10px;
        margin-bottom: 10px;
        width: 136px;
        height: 90px;
    }
    .thumbnails-overflow .products-page-counter {
        top: 125px;
        width: 1025px;
    }
    .thumbnails-overflow .arrow {
        top: 34px;
    }
    .thumbnails-overflow .right-arrow {
        left: 1170px;
    }
    .site-wrapper {
        min-height: 652px;
    }
    .other-pictures-overflow img {
        min-width: 96px;
        min-height: 63px;
    }
    .thumbnails-wrapper a.sold-en:before, .thumbnails-wrapper a.sold-cz:before {
        bottom: 10px;
        left: 54px;
    }
    .alt-content {
        width: 1010px;
    }
}



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

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

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