/* CSS Document */
@charset "UTF-8";

@font-face {
    font-family: 'Koodk';
    src: url('../fonts/Vazir.eot');
    src: local('../fonts/Koodk'), url('../fonts/Koodk.woff') format('woff'), url('../fonts/Koodk.ttf') format('truetype'), url('../fonts/Koodk.svg') format('svg');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    background: #22222A;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    color: #bdbdd5;
    font-family: "Koodk";
    direction: rtl;
}

.content-width {
    width: 90%;
    margin: 0 auto;
}

.slideshow {
    margin-top: 0px;
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.slideshow-items {
    position: relative;
    width: 100%;
    height: 600px;
}

@media screen and (max-width: 80%) {
    .slideshow-items {
        height: 20%;
    }
}

.item {
    position: absolute;
    width: 100%;
    height: auto;
}

.item-image-container {
    position: relative;
    width: 100%;
}

    .item-image-container::before {
        content: '';
        position: absolute;
        top: -1px;
        right: 0;
        width: 101%;
        height: 101%;
        background: #22222A;
        opacity: 0;
        z-index: 1;
    }

.item-image {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 50%;
    opacity: 0;
    display: block;
    /* transition: property name | duration | timing-function | delay  */
    transition: opacity .3s ease-out .45s;
}

.item.active .item-image {
    opacity: 1;
}

.item.active .item-image-container::before {
    opacity: 0;
}

.item-description {
    position:center;
    top: 100%;
    right:0;
    width: 100%;
    text-align: justify;
    padding-left: 10px;
    line-height: 1.8;
}

@media screen and (max-width: 80%) {
    .item-description {
        top: 5px;
        font-size: 12px;
        width: 55%;
    }
}
/* Staggered Vertical Items ------------------------------------------------------*/
.vertical-part {
    overflow: hidden;
    display: inline-block;
}

    .vertical-part b {
        display: inline-block;
        transform: translateY(100%);
    }

.item-header .vertical-part b {
    transition: .5s;
}

.item-description .vertical-part b {
    transition: .21s;
}

.item.active .item-header .vertical-part b {
    transform: translateY(0);
}

.item.active .item-description .vertical-part b {
    transform: translateY(0);
}

/* Controls ----------------------------------------------------------------------*/
.controls {
    position: relative;
    text-align: left;
    z-index: 1000;
}

    .controls ul {
        list-style: none;
    }

        .controls ul li {
            display: inline-block;
            width: 10px;
            height: 10px;
            margin: 3px;
            background: #bdbdd5;
            ;
            cursor: pointer;
        }

            .controls ul li.active {
                background: #6a6a77;
                ;
            }

