﻿@font-face {
    font-family: 'AbadiMT Bold';
    src: url('../fonts/AbadiMTCondensedExtraBold.ttf');
}

@font-face {
    font-family: 'AbadiMT Light';
    src: url('../fonts/Abadi MTCondensedlight.TTF');
}

@font-face {
    font-family: 'Aller Regular';
    src: url('../fonts/Aller Regular.ttf');
}

@font-face {
    font-family: 'Font Awesome';
    src: url(../fonts/fontawesome-webfont.ttf);
}

@font-face {
    font-family: 'Haettenschweiler';
    src: url(../fonts/ufonts.com_haettenschweiler.ttf);
}

@font-face {
    font-family: 'twcenmt';
    src: url(../fonts/twcenmt.ttf);
}

h1 {
    text-align: center;
    font-family: Montserrat, sans-serif;
    color: #333;
    margin-top: 150px;
}

.accordion {
    width: 100%;
    height: auto;
    overflow: hidden;
    /*margin: 50px auto;*/
}

    .accordion ul {
        width: 100%;
        display: table;
        table-layout: fixed;
        margin: 0;
        padding: 0;
    }

        .accordion ul li {
            display: table-cell;
            vertical-align: bottom;
            position: relative;
            width: 16.666%;
            height: auto;
            background-repeat: no-repeat;
            background-position: center center;
            transition: all 500ms ease;
            /*background-color: rgba(0, 0, 0, 0.1);*/
        }


            .accordion ul li div {
                display: block;
                overflow: hidden;
                width: 100%;
            }


                .accordion ul li div a {
                    display: block;
                    height: 570px;
                    width: 100%;
                    position: relative;
                    z-index: 3;
                    vertical-align: bottom;
                    padding: 15px 20px;
                    box-sizing: border-box;
                    color: #fff;
                    text-decoration: none;
                    /*font-family: Open Sans, sans-serif;*/
                    transition: all 200ms ease;
                }

                    .accordion ul li div a .default {
                        display: block;
                        height: 570px;
                        width: 100%;
                        position: relative;
                        font-family: 'AbadiMT Bold';
                        color: white;
                        text-align: center;
                        top: 180px;
                        font-size: 22px;
                        text-transform: uppercase;                        
                    text-shadow:3px 2px 2px rgba(0, 0, 0, 0.4);
                    }


                    .accordion ul li div a h2 {
                        opacity: 0;
                        margin: 0;
                        width: 80%;
                        text-overflow: ellipsis;
                        word-wrap: normal;
                        position: relative;
                        z-index: 5;
                        white-space: normal;
                        overflow: hidden;
                        -webkit-transform: translateX(-20px);
                        transform: translateX(-20px);
                        -webkit-transition: all 400ms ease;
                        transition: all 400ms ease;
                        color: #fecb0a;
                        font-family: 'AbadiMT Bold';
                        text-overflow: clip;
                        word-wrap: normal;
                        font-size: 24px;
                        text-transform: uppercase;
                        margin-bottom: 2px;
                        top: 180px;
                    }

                    .accordion ul li div a p {
                        top: 180px;
                        font-size: 20px;
                        font-family: twcenmt;
                        opacity: 0;
                        margin: 0;
                        width: 80%;
                        text-overflow: ellipsis;
                        word-wrap: normal;
                        position: relative;
                        z-index: 5;
                        white-space: normal;
                        overflow: hidden;
                        -webkit-transform: translateX(-20px);
                        transform: translateX(-20px);
                        -webkit-transition: all 400ms ease;
                        transition: all 400ms ease;
                    }

            .accordion ul li:nth-child(1) {
                background-image: url('../img/Market/Background for one page.jpg');
                background-size: cover;
            }

            .accordion ul li:nth-child(2) {
                background-image: url('../img/Market/FIlms and Tapes.jpg');
                background-size: cover;
            }

            .accordion ul li:nth-child(3) {
                background-image: url('../img/Market/masterbatch.jpg');
                background-size: cover;
            }

            .accordion ul li:nth-child(4) {
                background-image: url('../img/Market/Paper Industry.png');
                background-size: cover;
            }

            .accordion ul li:nth-child(5) {
                background-image: url('../img/Market/Paint and Pigment Industry.jpg');
                background-size: cover;
            }

            .accordion ul li:nth-child(6) {
                background-image: url('../img/Market/Cosmetic industry.jpg');
                background-size: cover;
            }

        .accordion ul:hover li {
            width: 15%;
        }

            .accordion ul:hover li:hover {
                width: 60%;
            }

                .accordion ul:hover li:hover a {
                    background: rgba(0, 0, 0, 0.4);
                }

                .accordion ul:hover li:hover .default {
                    display: none;
                    -webkit-transform: translateX(-20px);
                    transform: translateX(-20px);
                    -webkit-transition: all 400ms ease;
                    transition: all 400ms ease;
                }

                .accordion ul:hover li:hover a * {
                    opacity: 1;
                    -webkit-transform: translateX(0);
                    transform: translateX(0);
                }

@media screen and (max-width: 600px) {

    .accordion {
        height: auto;
    }

        .accordion ul li,
        .accordion ul li:hover,
        .accordion ul:hover li,
        .accordion ul:hover li:hover {
            position: relative;
            display: table;
            table-layout: fixed;
            width: 100%;
            -webkit-transition: none;
            transition: none;
        }

            .accordion ul li div a h2 {
                color: #fecb0a;
                font-family: 'AbadiMT Bold';
                text-overflow: clip;
                word-wrap: normal;
                font-size: 24px;
                text-transform: uppercase;
                margin-bottom: 2px;
                top: 150px;
            }

            .accordion ul li div a p {
                top: 150px;
                font-size: 20px;
                font-family: twcenmt;
            }
}
