/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

em{
    font-style: italic;
}

strong{
    font-weight: bold;
}

/* FONTS & COLORS ***************************************************** */
body {
    background: black;
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    color:#222;
}

a {
    color:#fff;
    text-decoration:none;
}

i, em {
    font-style:italic;
}

/* LAYOUT ************************************************************* */

html, body {
    width:100%;
}

#main-content {
    min-height:700px;
    width: 960px;
    margin: 0 auto;
}

footer {
    width:100%;
}

section {
    position:relative;
    width:960px;
    clear:both;
}

#home-teasers {
    height:300px;
    margin:0 0 100px 0;
}

#menu {
    clear:both;
} 

/* HEADER ************************************************************* */

h1 {
    width: 129px;
    height: 26px;
    position: relative;
    margin:32px 0 52px 32px;
    float:left;
}

h1 span {
    background: url(../../shared/_img/newhome/logo-nespresso.gif) no-repeat top left;
    position: absolute;
    width: 100%;
    height: 100%;
}

header {
    position:relative;
}

/* COUNTRY SELECTOR *************************************************** */

#country-selector {
    float:right;
    width:200px;
    position:absolute;
    z-index:15;
    top:32px;
    right:0;
}

#country {
    float:right;
    width:30px;
    height:20px;
    background:#fff;
}

.js #country {
    background:transparent;
}

#country-selector.active #country {
    background:#fff !important;
}

#country a {
    background: url(../../shared/_img/newhome/flags/france.gif) no-repeat top left;
    width:16px;
    height:11px;
    overflow:hidden;
    text-indent:-999px;
    display:block;
    margin:3px 0 0 7px;
    border: 1px solid #333;
}

#available-languages {
    padding:18px 0 2px 0;
    width:100%;
    clear:both;
    background: #fff; /* Old browsers */
    background: -moz-linear-gradient(top, #fff 0%, #bcbbbb 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(100%,#bcbbbb)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #fff 0%,#bcbbbb 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #fff 0%,#bcbbbb 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #fff 0%,#bcbbbb 100%); /* IE10+ */
    background: linear-gradient(to bottom, #fff 0%,#bcbbbb 100%); /* W3C */
    /*filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff', endColorstr='#bcbbbb',GradientType=0 );  IE6-9 */
}

.js #available-languages {
    display:none;
}

#country-selector.active div {
    display:block !important;
}

#available-languages ul {
    margin:6px auto 0 auto;
    text-align: center;
}

#available-languages ul a {
    display:inline-block;
    min-width:70px;
    padding:4px 10px;
    font-size:12px;
    font-weight: bold;
    background: #484848; /* Old browsers */
    background: -moz-linear-gradient(top, #484848 0%, #000 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#484848), color-stop(100%,#000)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #484848 0%,#000 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #484848 0%,#000 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #484848 0%,#000 100%); /* IE10+ */
    background: linear-gradient(to bottom, #484848 0%,#000 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#484848', endColorstr='#000',GradientType=0 ); /* IE6-9 */   
}

#available-languages li {
    min-width:70px;
    margin:0 0 5px 0;
    display: inline-block;
    text-align:center;
}

#another-country {
    font-size:11px;
    width:194px;
    text-align:center;
    background:#929292;
    padding:2px 0;
    margin:24px 3px 0 3px;
}

#available-languages ul a:hover, #another-country a:hover {
    color:#484848;
}

#country-list {
    display:none;
    background:#000;
    left: 32px;
    position: absolute;
    top: 66px;
    width: 860px;
    padding:20px;
    z-index: 20;
}

.rgba #country-list {
    background:transparent repeat scroll 0 0 rgba(0, 0, 0, 0.95);
}

.csscolumns #country-list {
    -moz-columns:5;
    -webkit-columns:5;
    -o-columns:5;
    -ms-columns:5;
    columns:5 auto;
}

.fake-columns ul {
    float:left;
    width:165px;
}

#country-list li {
    font-size:11px;
    margin:0 0 5px 0;
}

#country-list li a {
    color:#777;
}

#country-list li a:hover {
    color:#fff;
}

#close-country-list {
    display:none;
    position: absolute;
    right: 45px;
    top: 75px;
    z-index: 30;
}

#close-country-list a {
    font-size:12px;
}

#country-list.active, #close-country-list.active {
    display:block;
}

/* HOME TEASERS ******************************************************* */
#carousel-wrapper {
    overflow: hidden;
    position: absolute;
    top:0;
    left:37px;
    width:890px;
    height:300px;
}

#carousel-wrapper>div {
    width:8000px;
    position: absolute;
    top:0;
}

.js .home-teaser {
    float:left;
    height:300px;
    width:295px;
    margin:0 2px 0 0;
    position:relative;
}

#prev-home-teaser, #next-home-teaser {
    outline:none;
    top:0;
    left:0;
    position:absolute;
    width:32px;
    height:221px;
    background:url(../../shared/_img/newhome/home-teaser-arrow-left.gif) no-repeat center left;
    overflow:hidden;
    text-indent:-999px;
}

#next-home-teaser {
    left:auto;
    right:0;
    background:url(../../shared/_img/newhome/home-teaser-arrow-right.gif) no-repeat center right;
}

h2 {
    margin:17px 0 0 3px;
    font-size:13px;
    font-weight:bold;
    text-transform:uppercase;
}

.home-teaser img {
    position: absolute;
}

.home-teaser .thumb {
    height:221px;
}

.home-teaser .cta {
   margin:4px 0 0 3px; 
}

.home-teaser .cta a {
    padding:1px 5px;
    font-size:11px;
    color:#8f8f8f;
    border:1px solid #8f8f8f;
}

.csstransitions #carousel-wrapper:hover .home-teaser {
    opacity:0.3;
}

.csstransitions #carousel-wrapper:hover .home-teaser:hover {
    opacity:1;
}

.csstransitions #carousel-wrapper .home-teaser {
    -webkit-transition: opacity 1s ease; 
    -moz-transition: opacity 1s ease;  
    -o-transition: opacity 1s ease;  
    -ms-transition: opacity 1s ease;  
    transition: opacity 1s ease;
}

/* MENU *************************************************************** */

#menu {
    position:relative;
    height:20px;
    background:transparent;
    margin:0 0 0 29px;
    padding:3px;
    color:#fff;
}

#menu>h3 {
    text-transform: uppercase;
    font-weight: bold;
    font-size:12px;
    position: absolute;
    top:25px;
    left:0;
    background:transparent url(../../shared/_img/newhome/capsule.png) no-repeat 2px center;
    padding:8px 5px 8px 22px;
    cursor:pointer;
}

#menu>ul {
    clear:both;
    float:right;
    width:auto;
    height:100%;
    margin:4px 0 0 0;
}

#menu>ul>li {
    float:left;
    width:auto;
    height:100%;
    font-size:12px;
    text-transform: uppercase;
    font-weight: bold;
}

#menu li {
    text-align:center;
}

#menu ul h3 {
    padding:7px 15px 7px 15px;
}

#menu ul h3:hover, #menu ul h3.active {
    background:#f2f2f2;
}

#menu ul ul {
    display:none;
    position: absolute;
    bottom:0;
    width:auto;
    background:#f2f2f2;
    margin:0 0 -1px 0; /* looks dumb, but weird Chrome bug... */
    min-width: 140px;
}

#menu ul>li:hover ul {
    display:block;
}

#menu ul ul li {
    font-size:11px;
    margin:0;
    padding:8px;
    border-bottom:1px solid #e6e6e6;
    cursor:pointer;
}

#menu ul ul li:hover {
    background:#fff;
}

#menu ul ul a {
    color:#989898;
}

#menu ul ul li:hover a, #menu ul h3:hover a, #menu ul h3.active a {
    color:#000;
}

#menu ul li:hover ul {
    display:block;
}

#login-form {
    visibility:hidden;
    padding:0 0 0 2px;
}

#login-form p {
    float:left;
    width: auto
}

#email, #password, #submit {
    vertical-align: middle;
    padding:0;
    border:0;
    height:18px;
    font-size:12px;
}

#submit {
    cursor:pointer;
    font-size:11px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    padding:0 10px;
    width:90px;
    margin:0 10px 0 0;
    background: #a8a8a8; /* Old browsers */
    background: -moz-linear-gradient(top, #a8a8a8 0%, #fff 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a8a8a8), color-stop(100%,#fff)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #a8a8a8 0%,#fff 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #a8a8a8 0%,#fff 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #a8a8a8 0%,#fff 100%); /* IE10+ */
    background: linear-gradient(to bottom, #a8a8a8 0%,#fff 100%); /* W3C */
    /*filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a8a8a8', endColorstr='#fff',GradientType=0 );  IE6-9 */
}

#lost-password a {
    font-size:11px;
    color:#989898;
}

#lost-password a:hover {
    color:#fff;
}

#login-form #first-order {
    font-weight:bold;
    font-size:12px;
    float:right;
    width:auto;
    margin:3px 12px 0 0;
}

#login-form #first-order span {
    text-transform: uppercase;
}

#login-form #first-order a:hover {
    color:#989898;
}

#menu.active {
    background-color:#222;
}

#menu.active>h3 {
    background-color:#222;
}

#menu.active #login-form {
    visibility:visible;
}




/* FOOTER ************************************************************* */

footer {
    background: #fafafa; /* Old browsers */
    background: -moz-linear-gradient(top, #fafafa 0%, #c0bfbf 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fafafa), color-stop(100%,#c0bfbf)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #fafafa 0%,#c0bfbf 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #fafafa 0%,#c0bfbf 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #fafafa 0%,#c0bfbf 100%); /* IE10+ */
    background: linear-gradient(to bottom, #fafafa 0%,#c0bfbf 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fafafa', endColorstr='#c0bfbf',GradientType=0 ); /* IE6-9 */
}

#nespresso-everywhere {
    height: 148px;
    width:960px;
    margin: 0 auto;
    border-bottom:1px solid #bbbaba;
}

#nespresso-everywhere>div {
    float:left;
    width:185px;
    height:100%;
    border-right:1px solid #bbbaba;
    border-left:2px solid #fff;
}

#nespresso-everywhere div.first {
    border-left: none;
}

#nespresso-everywhere div.last {
    border-right: none;
}

#nespresso-everywhere #in-the-world {
    width:370px;
    height:100%;
    background: url("../../shared/_img/newhome/world-map.png") no-repeat center right;
}

#nespresso-everywhere h4 {
    font-weight: bold;
    font-size:13px;
    color:#222;
    margin:15px 0 12px 15px;
}

#nespresso-everywhere p {
    font-size:12px;
    margin:0 0 0 5px;
    line-height:1.3;
}

#in-the-world h4 {
    margin:15px 0 12px 5px;
}

#in-the-world .cta a {
    display:inline-block;
    font-size:12px;
    color:#bbbaba;
    font-weight: bold;
    text-decoration: none;
    border:#bbbaba 1px solid;
    padding: 3px;
    margin:5px 0 0 0;
}

#in-the-world .cta a:hover {
    color:#000;
    border-color:#000;
}

#social {
    padding:0 50px 0 0;
}

#social li {
    position:relative;
}

#social a.icon {
    width:21px;
    height:21px;
    display:block;
    text-indent: -999px;
    overflow:hidden;
    background: url("../../shared/_img/newhome/social-sprites.png") no-repeat top left;
    margin:0 0 10px 15px;
}

.fb-like {
    float:none !important;
    position:absolute !important;
    top:0;
    left:42px;
}

#social #twitter a.icon {
    background-position: 0px -32px;
}

.twitter-follow-button {
    left: 44px;
    position: absolute;
    top: 0;
}

#social #youtube a.icon {
    background-position: 0px -66px;
}

.youtube-follow-button {
    position:absolute;
    top:0;
    left:42px;
    background: url("../../shared/_img/newhome/follow-button-right.png") no-repeat scroll right bottom;
    color: #000000;
    display: inline-block;
    font-size: 12px;
    height: 20px;
    padding:0;
    text-align: center;
}

.youtube-follow-button span {
    background: url("../../shared/_img/newhome/follow-button-left.png") no-repeat scroll left bottom transparent;
    height: 20px;
    padding: 0 20px;
    display: block;
    line-height: 1.6;
}

#nespresso-everywhere #apps {
    width:320px;
    background: url("../../shared/_img/newhome/applications.png") no-repeat bottom left;    
}

#apps li {
    font-size:12px;
    margin:0 0 10px 150px;
}

#apps li a {
    color:#000;
}

#apps li a:hover {
    color:#8F8F8F;
}

#footer-nav {
    color:#222;
    width:960px;
    margin:0 auto 35px auto;
    display: table;
    border-top:2px solid #fff;
}

#footer-nav div {
    display: table-cell;
    padding:5px 5px 0 0;
    min-width:130px;
}

#footer-nav h5 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 11px;
    margin:15px 0 10px 0;
}

#footer-nav h5 a {
    color:#000;
}

#footer-nav li a {
    font-size:10px;
    color:#000;
}

#footer-nav li a:hover, #footer-nav h5 a:hover {
    color:#8F8F8F;
}

#bottom-nav {
    width:100%;
    background: #000;
}

#bottom-nav ul {
    width:960px;
    margin:0 auto;
    display:table;
}

#bottom-nav li {
    display:table-cell;
    padding:10px 0;
    text-align: center;
}

#bottom-nav li a {
    font-weight: bold;
    font-size: 10px;
}

#bottom-nav li a:hover {
    color:#8F8F8F;
}

/* RTL-SPECIFIC RULES ************************************************************* */

html[dir="rtl"] h1 {
    float:right;
    margin:32px 32px 52px 0;
}

html[dir="rtl"] #country-selector {
    float: left;
    position: absolute;
    right: auto;
    left:32px;
    width:auto;
}

html[dir="rtl"] #country {
    float:left;
}

html[dir="rtl"] #country a {
    margin: 3px 7px 0 0;
}

html[dir="rtl"] .fake-columns ul {
    float:right;
}

html[dir="rtl"].js .home-teaser {
    float:right;
}

html[dir="rtl"] #menu>ul>li {
    float:right;
}

html[dir="rtl"] #login-form p {
    float:right;
}

html[dir="rtl"] #login-form #first-order {
    float: left;
}

html[dir="rtl"] #submit {
    margin: 0 0 0 10px;
}

html[dir="rtl"] #nespresso-everywhere #in-the-world {
    background-position:center left;
}

html[dir="rtl"] #in-the-world h4 {
    margin: 15px 15px 12px 0;
}

html[dir="rtl"] #nespresso-everywhere p {
    margin: 0 15px 0 0;
}

html[dir="rtl"] #social {
    padding: 0 15px 0 0;
    width: 234px;
}

html[dir="rtl"] .fb-like {
    left:auto;
    right: 34px;
}

html[dir="rtl"] .youtube-follow-button {
    left:auto;
    right: 33px;
}

html[dir="rtl"] #menu > ul {
    float:left;
}

html[dir="rtl"] #menu > h3 {
    left:auto;
    right: 0;
}

/* LANGUAGE/COUNTRY-SPECIFIC RULES ************************************************************* */

body[data-language="ar"] h1 {
    width: 260px;
}

body[data-language="ar"] h1 span {
    background-image: url(../../shared/_img/newhome/logo-nespresso-ar.gif);
}

body[data-country="ae"] #country a {
    background-image:url(../../shared/_img/newhome/flags/ae.png);
}

body[data-language="ar"] h2 {
    font-size: 15px;
}

body[data-language="ar"] .home-teaser .cta a {
    font-size:12px;
}

body[data-language="ar"] #menu ul ul li {
    font-size:12px;
}

body[data-language="ar"] #footer-nav h5 {
    font-size: 12px;
}

body[data-language="ar"] #footer-nav li a {
    font-size:12px;
}
body[data-language="ar"] #bottom-nav li a {
    font-size: 12px;
}

body[data-language="ar"] .home-teaser .cta {
    margin: 8px 0 0 3px;
}