/*
 * 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;
}
section{
    width:100%;
}
body {
    background-color: #FFF;
    background: url(../images/paper_bg.jpg) repeat;    
    font-size: 100%;
    line-height: 1.4;
    font-family: Verdana, Helvetica, sans-serif;
    color: #FFF;
}
p{
    font-size: 0.9375em;
    line-height: 1.5;
    color: #282320;
}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/*a.wines_anchor{
    margin-top: 50px;
    display: block;
}*/
a{
    color: #B59963;
    text-decoration: underline;
}
h1, h2, h3{
    color: #282320;
}
.fancy_titles{
    font-family: 'Satisfy', cursive;
    font-weight: 400;
}
.page_title{
    padding: 25px 0;
}
h1{
    text-align: center;
    font-size: 2.25em;
}
h2{ 
    font-size: 1.8em;
}
h3{
    font-size: 0.8125em;
    text-transform: uppercase;
}
.anchor_tag{
    height:0;
    display: block;
    font-size: 0;
    line-height: 0;
}
.fblock{
    float: left;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */    
}
.golden{
    color: #B59963;
    text-align: center;
}
.bordered_pic{
    border: 0.6875em solid #FFF; /*11 / 16*/
}
.fixer{
    clear: both;
}
.dashed{
    border-top: 1px dashed #979797;
    border-bottom: 1px dashed #979797;
}
.separator{
    margin: 20px 0;
    height: 1px;
}
.header_bg{
    height: 24px;
    width: 89px;
    background: url(../images/header_bg.png);
    display: inline-block;
    margin: 0 15px;
}
.wrapper{
    width: 90%; 
    max-width: 990px;
    margin: 0 auto;
    overflow: hidden;
}
header{
    width: 100%;
    background: #282320;
    height: 80px;
    -webkit-box-shadow:  0 5px 5px 5px rgba(0, 0, 0, 0.3);
    box-shadow:  0 5px 15px 5px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;    
}
a.close{
    display:none;
    margin:0px;
    padding:0px;
    width:44px;
    height:44px;
    position:fixed;
    color:#B5954C;
    font-size:1.4em;
    text-align:center;
    text-decoration:none;
    background-color:#201C1A;
    right:10px;
    top: 8px;
    line-height:42px;
    z-index:2000;
    cursor:pointer;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, .4);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, .4);
}
#content.hide{
    display:none;
}
.top_bar.opened{
    display:block;
    background: url(../images/wooden_bg.jpg);
}
.open{
    padding: 0 15px;
}
/* ==========================================================================
   Language classes
   ========================================================================== */

.languages_bar{
    height: 25px;
    overflow: visible;
    background-color: rgba(00,00,00,0.2);
}
.languages {
    overflow: hidden;
    width: 200px;
    float: right;
    overflow: hidden;
    margin: 0 2.5% 0 0;
}
.languages li{
    float: right;
    color: #ffffff;
    list-style: none;
    height: 20px;
    margin-right: 10px;
    font-size: 0.7em;
    padding-top: 5px;
}
.languages a{
    text-transform: uppercase;
    color: #C3AA75;
}
.languages a.active{
    color: #666;
}
.garrafeira {
    position: fixed;
    bottom: 0;

    width: 100%;
    display: block;

    text-align: center;
    
    background-color: #282320;
    padding: 10px 0;

    z-index: 400;

    box-shadow: 0 -5px 15px 5px rgba(0, 0, 0, 0.3);
}
.logo{
    float: left;
    min-width: 100px;
    margin-top: 0px;
    text-align: center;
}
.logo img{
    max-width: 100%;
}
nav{
    width: 71%; /* 846 / 960*/
    /*float: right;*/
    float: right;
}
.navigation{
    width: 100%;
    height: 25px;
    display: table;
    margin: 7px 0 0 0;
    padding: 0;
}
.navigation li{
    height: 25px;
    text-align: center;
    display: table-cell;
}
.navigation .last{
    margin-right: 0;
}
.nav_entry{
    text-decoration: none;
    text-transform: uppercase;
    color: #FFF;
    font-size: 0.625em;
    font-weight: bold;
    display: block;
    text-shadow: 1px 2px 2px #0a0401;
    filter: dropshadow(color=#0a0401, offx=1, offy=2);   
    padding: 15px 0; 
}
.nav_entry:hover, .selected .nav_entry{
    color: #c0a46c;
    text-decoration: none;
}
#small_navigation{
    display: none;
}
.mobile_logo{
    display: none;
}
/*
 * FOOD
 */
.food, .wines_header_wrapper{
    background: url(../images/wooden_bg.jpg) repeat;
    margin-top: 80px;
    position: relative;
}
.food_wrapper{
    position: absolute;
    top: 40%;
    left: 0;
    /*width: 66.666666667%;*/
    width: 100%;
    margin-top: -185px;
   /* margin-left: -33.333333333%;*/
}
.flexslider{
    height: 370px;
}
.slide_wrap{
    width: 66.666666667%;
    margin: 0 auto;
}
/*
 * FOOD MENU
 */
.food_menu{
    padding: 2px 0;
}
.dish{
    width: 33.333333333%; /*320 / 960*/
    float: left;
    padding-right: 9.375%; /*30 / 320*/
    margin-bottom: 30px;
    padding: 0 2%;    
}
.dish-pic{
    display: block;
    float: left;
    padding: 7px;
    margin-top: 45px;
}
.dish-text{
    width: 85%;
    float: right;
}
.right
{    padding-right: 0;
}
/*
 * WINES
 */
.wines{
    margin-top: 0;
    width: 100%;
    position: relative;
}
.shelf{
    height: 66px;
    background: url(../images/shelf.png);
    -webkit-box-shadow:  0px -3px 4px 3px rgba(0, 0, 0, 0);
    box-shadow:  0px -6px 4px 3px rgba(0, 0, 0, 0.4);
    position: absolute;
    z-index: 100;    
    top: 0;
    width: 100%;
    left: 0;
}
.wines_header_wrapper{
    height: 261px;
    margin: 0;
}
.wines_header_wrapper h1{
    margin: 0;
    padding-top: 150px;
}
.wines .fancy_titles .header_bg{
    background: url(../images/header_bg_golden.png) no-repeat;
}
.wines .wine_wrapper{
    overflow: hidden;
    position: static;
}
.wines .wine_wrapper .wrapper{
    overflow: visible;
}
.wine_wrapper{
    background: url(../images/wooden_wshelf.jpg);

}
.wine{
   /* width: 10.416666667%;*/ /*100 / 960*/
    /*margin: 0 7.5% 0 0;*/ /*95/960*/
    width: 16.666666667%;
    vertical-align: bottom;
    position: relative;
    text-align: center;
    overflow: visible;
    margin: 0px;
    height: 314px;
}
.wine:hover{
    background: url(../images/light.png);
    background-repeat: no-repeat;
    background-position: center 64%;
}
.wine img{
    max-width: 100%;
    vertical-align: bottom;
    padding-top: 9px;
    position: relative;
    bottom: 0;
}
.tooltip{
    width: 400px;
    display: none;
    position: absolute;
    bottom: 5px;
    left: 50%; 
    margin-left: -200px; 
    text-align: center;  
    z-index: 300;    
}
.tooltip span{
    display: inline-block;
    padding: 10px;
    color: #B59963;
    text-shadow: 1px 2px 0 #000;
    height: 12px;
    line-height: 12px;
    background-color: rgba(0,0,0,0.5);
    -webkit-box-shadow: inset 0px 1px 2px 1px rgba(0, 0, 0, 0.6); 
    box-shadow: inset 0px 1px 2px 1px rgba(0, 0, 0, 0.7);    
}


/*
 * EVENTS
 */
.event, .textbox{
    width: 26.666666667%; /*330 / 990*/
    margin: 0 10% 0 0; /*45 / 960*/
}
.event img{
    width: 100%;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.event time{
    color: #B59963;
    font-size: 0.875em; /*14 / 16*/
}
.event_text{
    font-size: 0.9375em; /*15 / 16*/
}
.event_text span{
    color: #B59963;
}
.event.last{
    margin-right: 0;
}
/*
 * GALLERY
 */
.gallery{
    position: relative;
}
.gallery .flexslider{
    overflow: hidden;
}
.gallery h1{
    position: absolute;
    top: 10px;
    width: 100%;
    text-align: center;
    z-index: 100;
}
.gallery_slides .slide_wrap, .gallery_slides .slide_wrap .slide_img{
    width: 100%;
 }
 /*
 * ABOUT US
 */
 .about{
    padding-bottom: 50px;
 }
.quotebox p{
    font-size: 3em;
 }
 .aboutpic{
    width: 48.697916667%;
    border: 0.6875em solid #FFF;
 }
/*
* CONTACT US
*/
#map{ 
    -webkit-box-shadow:  0px 2px 5px 5px rgba(00, 00, 00, 0.3);
    box-shadow:  0px 1px 5px 5px rgba(00, 00, 00, 0.2);    
}
.contact_us{
    overflow: hidden;
    margin-bottom: 15px;
}
.contacts_bar{
    width: 44.791666667%; /*430/960*/
    position: absolute;
    left: 0;
    top: 0;
    z-index: 50;
    background-color: #FFF;
    background: url(../images/paper_bg.jpg) repeat;   
    padding: 0 20px 70px 20px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}
.contacts_form{
    padding: 0 40px;
}
.contacts_form input[type=text]:focus,.contacts_form input[type=email]:focus,
.contacts_form input[type=number]:focus, .contacts_form textarea:focus{
    border: 1px solid #B59963;
}

.form_errors{
    display:none;
}
.form_errors li{
    color: red;
}
.form_done{
    display:none;
}

/* hoNEYPOT */
.contacts_form label[for="id_address"]{
    display: none;
}
.contacts_bar p{
    padding: 5px 13.953488372%;
}
.notice{
    font-size: 0.75em;
}
.contacts{
    list-style: none;
    margin-bottom: 50px;
}
.contacts li{
    font-size: 0.75em;
    color: #282320;
    margin-bottom: 10px;
    height: 21px;
    line-height: 24px;
}
.contacts li span{
    display: inline-block;
    height: 21px;
    width: 13px;
    background-image: url(../images/c_icons2.png);
    background-repeat: no-repeat;
    padding-left: 15px;
    margin-right: 5px;  
}
.c_twitter span{
background-position: 0 2px;
}
.c_tripadvisor span{
background-position: -131px 4px;
}
.c_facebook span{
background-position: -27px 2px;
}
.c_email span{
background-position: -56px 2px;
}
.c_phone span{
background-position: -83px 2px;
}
.c_address span{
background-position: -108px 2px;
}
.input{
    position: relative;
    height: 30px;
    margin-bottom: 15px;
}
.input label, .input input{
    position: absolute;
    left: 0;
    top: 0;
}
.input label{
    color: #b0b0b0;
    z-index: 100;
    line-height: 30px;
    left: 10px;
}
.input_msg{
    height: 120px;
}
input[type=text], input[type=email], input[type=number], .contacts_form textarea{
    color: #7a7a7a;
    border: 1px solid #d0d0d0;
    height: 30px;
    line-height: 30px;
    background-color: #fFF;
    background-color: rgba(242, 242, 242, 0.6);
    margin-bottom: 15px;
    width: 100%;
    -webkit-box-sizing: border-box;    
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-left: 10px;
}
.contacts_form textarea{
    height: 120px;
}
.contacts_form input[type="submit"]{
    float: right;
    height: 30px;
    line-height: 30px;
    -webkit-border-radius: 15px;    
    border-radius: 15px;
    background: url(../images/btn.png);
    background-repeat: no-repeat;
    border: 0;
    padding: 0 15px;
    color: #C1A66F;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.75em;    
}
.contacts_form input[type="submit"]:hover{
    text-decoration: underline;
}
.contacts_form input[type="submit"]:active{
    -webkit-box-shadow: inset 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0px 0px 2px 2px rgba(0, 0, 0, 0.2);       
}
.errorlist li{
    color: red!important;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
.last{
    margin-right: 0;
}
/* ==========================================================================
   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: 100%;
}

/*
 * 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.
   Theses 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 only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* 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;
    }
}
/* ==========================================================================
   Phones & Tablets styles.
   ========================================================================== */

/*@media only screen and (min--moz-device-pixel-ratio : 2) and (-webkit-min-device-pixel-ratio : 2) and (min-resolution : 2dppx){
    body{
        background: red;
    }
}*/

/* ############## Tablets ##################### */
@media only screen and (max-width: 767px){
    .flex-control-thumbs{
        display: none;
    }   
}
@media only screen and (max-width: 1024px){
    .languages li{
        font-size: 0.85em;
        width: 20px;
    }
   .languages li a{
        display: block;
    }
    .flex-prev{
        left: 2%!important;
    }
    .flex-next{
        right: 2%!important;
    }
    .input{
        height: 45px;
    }
    .input_msg{
        height: 120px;
    }
    .input label{
        line-height: 45px;
    }
    input[type=text],input[type=email], input[type=number]{
        height: 45px;
        line-height: 45px;
    }
    .contacts_bar h1{
        font-size: 1.9em;
    }
    .contacts_bar h1 span{
        margin: 0;
    } 
}
@media only screen and (max-width: 480px){
    .food, .wines_header_wrapper{
        margin-top: 0;
    }
    header{
        height: 30px;
    }
    header .wrapper{
        width: 100%;
    }
    .languages_bar{
        border-bottom: 1px solid #FFF;
    }
    .languages{
        float: right;
        width: 70%;
        padding: 0;
        margin: 0;
    }
    #small_navigation{
        display:block;
        float: left;
        width: 30%;
    }
    .top_bar{
        left:0px;
        right:0px;
        position:absolute;
        top:26px;
        bottom: 0;
        display:none;
        z-index:1000;
    }    
    nav{
        width: 100%;
        float: none;
    }    
    .navigation{
/*        width:100% !important;
        height:auto !important;
        margin: 0;
        float:none !important;
        background: rgba(40, 35, 32, 0.5);*/
        display:block;
        padding: 10px;
        color: #B59963;
        width: 90%;
        margin: 0 auto;
        height:auto !important;
        text-shadow: 1px 2px 0 #000;
        float:none !important;
        background-color: rgba(0,0,0,0.3);
        -webkit-box-shadow: inset 0px 1px 2px 2px rgba(00, 00, 00, 0.7);
        box-shadow: inset 0px 0px 5px 2px rgba(00, 00, 00, 0.7);           
    }
    .navigation li{
        width: 100%;
        height: 44px;
        display: block;
        border-bottom:1px #333 dashed;
        margin:0px !important;
        text-align:center;
        font-size:1.2em;
        padding: 0 10px;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -o-box-sizing: border-box;
        box-sizing: border-box;
    }
    .nav_entry{
        height: 44px;
        line-height: 44px;
        display: block;  
        padding: 0;
    }
    .mobile_logo{
        width: 221px;
        height: 105px;
        margin: 10px auto;
    }
    .event{
        padding: 0 2%;
    }
    .fblock{
        float: none;
        width: 100%;
    }
    .wrapper{
        width: 98%;
    }
    .food_wrapper{
        top: 0;
        margin-top: 20px;
    }
    .logo{
        display: none!important;
    }
    .foodslider{
        margin-top: 40px;
    }
    .foodslider .slides img{
        width: 50%;
        float: none;
        margin: 0 auto;
    }
    .foodslider .slides .caption{
        width: 100%;

    }
    .flex-direction-nav a{
        top: 15%;
    }

    .slide_wrap{
        text-align: center;
        width: 95%;
    }
   .caption h2{
        font-size: 1.3em;
        text-align: center;
        margin: 5px 0;
    }
   .caption{
        padding: 0;
   }
   .caption p{
        padding: 0;
        font-size: 0.75em;
        text-align: left;    
   }
   .header_bg{
        display: none;
   }
   .quotebox p{
        font-size: 1.3em;
   }
   .contacts_bar{
        width: 100%;
        position: static;
   }
   .contacts{
        padding: 0;
   }
   .contacts_form{
    padding: 0;
   }
   #map{
    display: none;
   }
}
@media only screen and (min-width: 769px) and (max-width: 1024px){
    nav{
        width: 70%;
    }
    .nav_entry{
        font-size: 0.75em;

    }
    .food_wrapper{
        margin-top: -250px;
        top: 45%;
    }
    .food_wrapper .slides .caption p{
        font-size: 1em;
    }     
    .slide_wrap{
        width: 85%;
    }
    .food_wrapper .slides{
        margin-top: 125px;
    }  
    .flexslider .slides img{
        margin-top: -20px;
    }
    .flexslider{
        height: 500px;
    }
    .wine{
        width: 25%;
    }
    .flex-control-thumbs{
        margin-top: 5px;
        width: 80%;
        display: none;
    }
}
@media only screen and (min-width: 481px) and (max-width: 768px){
    nav{
        width: 65%;
    }   
    .food_wrapper{
        top: 5%;
        margin-top: 0;
    }
    .food_wrapper.flexslider{
        height: auto;
    }
    .flexslider .slides img, .flexslider .slides .caption{
        width: 100%;
        float: none;
    }
    .flex-control-thumbs{
        margin-top: 20px;
    }
    .flex-control-thumbs li{
        margin: 0 12px;
    }
    .wine{
        width: 25%;
    }
    .event, .textbox{
        width: 100%;
        float: none;
    }
    .event{
        margin-bottom: 50px;
    }
    .gallery, .flexslider.galleryslider{
        height: 541px!important;
        /*margin-top: 120px;*/
    }  
}

