/*
 * Index style for villa template.
 */

/* General styles (slides) */

#slides {
    width: 70%;
    margin: auto;
}

#slides a {
    display: block;
    position: relative;
    color: #575756;
}

.slides .slidesjs-pagination {
    text-align: center;
    z-index: 10;
}

.slides .slidesjs-pagination li {
    display: inline-block;
    padding: 1%;
}

.slides .slidesjs-pagination li a {
    background-image: url('/images/icons/bullet-off-on.png');
    display: block;
    width: 15px;
    height: 0px;
    padding-top: 15px;
    overflow: hidden;
}

.slides .slidesjs-pagination li a.active, .slides .slidesjs-pagination li a:hover {
    background-position: 0px -15px;
}

/* First section (slides) */

#slides > div {
    position: relative;
}

#slides img {
    position: absolute;
    z-index: -1;
    right: 0;
    width: 50%;
}

#slides h1, #slides h2, #slides div.list {
    margin-left: 10%;
}

#slides h1 {
    font-size: 4em;
}

#slides h2 {
    font-size: 3em;
    text-align: left;
}

#slides div.list {
    display: inline-block;
    width: 90%;
}

#slides div p {
    width: 48%;
    margin-bottom: inherit;
    margin-right: 1%;
    font-size: 1.5em;
    line-height: 1.5em;
    float: left;
}

/* First section (boxes) */

#boxes {
    overflow: hidden;
    text-align: center;
}

/* Second section (brands) */

#brands {
    text-align: center;
    padding-bottom: 2%;
    width: 94%;
    margin: auto;
}

#brands ul {
    padding-bottom: 4%;
    color: #A7A9AC;
}

#brands li {
    display: inline-block;
    margin: 0em 0.5em 0em 0.5em;
    padding: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
}

#brands li:hover {
    color: #575756;
}

#brands p {
    font-weight: 300;
    font-size: .8em;
    line-height: 1.3em;
    color: #A7A9AC;
}

#brands > div {
    display: inline-block;
    width: 19%;
    height: 9em;
    text-align: center;
    margin: 0em .5% 0.7em .5%;
    vertical-align: top;
    background-color: #FFFFFF;
}

/* Third section (news) */
#news > div {
    background-color: #FFFFFF;
}

#news .slidesjs-pagination {
    margin-bottom: 5em;
}

#news a {
    display: block;
    position: relative;
    color: #575756;
}

#news img {
    opacity: 0.4;
    filter: alpha(opacity=40); /* For IE8 and earlier */
}

#news h3 {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 20%;
    font-size: 3em;
}

/* Screen size adjustments */
@media screen and (max-width: 780px) {

    #slides h1, #slides h2 {
        margin: 5% 0% 0% 5%;
    }
    
    #slides > div ul {
        margin-left: 5%;
    }

    #slides h1 {
        font-size: 3em;
    }

    #slides h2 {
        font-size: 2em;
    }

    #brands > div {
        display: inline-block;
        width: 32%;
    }

    #news h3 {
        font-size: 2em;
        top: 20%;
    }

    #news .slidesjs-pagination {
        display: none;
    }
}

/* Screen size adjustments */
@media screen and (max-width: 500px) {

    #slides h1 {
        font-size: 2em;
    }

    #slides h2 {
        font-size: 1.5em;
    }

    #slides > div ul {
        font-size: 1em;
    }

    #brands > div {
        width: 90%;
        height: 12em;
    }
}