﻿/**
 * Tabs
 */
.tabs {
    display: flex;
    flex-wrap: wrap;
}

    .tabs label {
        order: 1;
        display: block;
        padding: 1rem 2rem;
        margin-right: 0.2rem;
        cursor: pointer;
        background: #f7d8d8;
        font-weight: bold;
        transition: background ease 0.2s;
    }

    .tabs .tab {
        order: 99;
        flex-grow: 1;
        width: 100%;
        display: none;
        padding: 1rem;
        background: #fff;
        padding-top: 20px;
    }

    .tabs input[type=radio] {
        display: none;
    }

        .tabs input[type=radio]:checked + label {
            background: #222;
            color: #f7d8d8 !important;
        }

            .tabs input[type=radio]:checked + label + .tab {
                display: block;
            }

@media (max-width: 45em) {
    .tabs .tab,
    .tabs label {
        order: initial;
    }

    .tabs label {
        width: 100%;
        margin-right: 0;
        margin-top: 0.2rem;
    }
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: right;
    border: none;
    outline: none;
    transition: 0.4s;
    direction:rtl;
}

    /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
    .active, .accordion:hover {
        /*background-color: #ccc;*/
    }

/* Style the accordion panel. Note: hidden by default */
.panel {
    padding: 0 18px;
    background-color: white;
    display: none;
    overflow: hidden;
    direction:rtl;
}


/*Acco*/
.ac-container {
    max-width: 100%;
}

    .ac-container label {
        height: 30px !important;
        line-height: 21px !important;
        
        padding: 5px 20px;
        position: relative;
        z-index: 20;
        display: block;
        height: 30px;
        cursor: pointer;
        color: #777;
        text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
        line-height: 33px;
        font-size: 19px;
        background: #fff;
        background: -moz-linear-gradient(top,#fff 1%,#eaeaea 100%);
        background: -webkit-gradient(linear,left top,left bottom,color-stop(1%,#fff),color-stop(100%,#eaeaea));
        background: -webkit-linear-gradient(top,#fff 1%,#eaeaea 100%);
        background: -o-linear-gradient(top,#fff 1%,#eaeaea 100%);
        background: -ms-linear-gradient(top,#fff 1%,#eaeaea 100%);
        background: linear-gradient(top,#fff 1%,#eaeaea 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff',endColorstr='#eaeaea',GradientType=0 );
        box-shadow: 0 0 0 1px rgba(155,155,155,0.3),1px 0 0 rgba(255,255,255,0.9) inset,0 2px 2px rgba(0,0,0,0.1);
        font-size: 12px;
        height: 30px;
        line-height: 20px;
    }

.ac-container {
    width: 100% !important;
    margin: 10px auto 30px auto;
    text-align: right;
    direction:rtl;
    
}

    .ac-container div {
        width: 100% !important;
        direction: rtl;
        text-align:right;
    }

    .ac-container label:hover {
        background: #fff;
    }

    .ac-container input:checked + label, .ac-container input:checked + label:hover {
        background: #f1f2f3;
        color: #666;
        text-shadow: 0 1px 1px rgba(255,255,255,0.6);
        box-shadow: 0 0 0 1px rgba(155,155,155,0.3),0 2px 2px rgba(0,0,0,0.1);
        height: 30px;
        line-height: 21px;
        font-size: 13px;
    }

        .ac-container label:hover:after, .ac-container input:checked + label:hover:after {
            content: '';
            position: absolute;
            width: 24px;
            height: 24px;
            right: 13px;
            top: 7px;
            background: transparent url(../images/arrow_down.png) no-repeat center center;
        }

        .ac-container input:checked + label:hover:after {
            background-image: url(../images/arrow_up.png);
        }

    .ac-container input {
        display: none;
    }

    .ac-container article {
        background: rgba(255,255,255,0.5);
        margin-top: -1px;
        overflow: hidden;
        height: 0;
        position: relative;
        z-index: 10;
        -webkit-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
        -moz-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
        -o-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
        -ms-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
        transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
    }

        .ac-container article p {
            font-style: normal;
            color: #777;
            line-height: 23px;
            /*            font-size: 10px;*/
            padding: 20px;
            text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
        }

    .ac-container input:checked ~ article {
        -webkit-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
        -moz-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
        -o-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
        -ms-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
        transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
        box-shadow: 0 0 0 1px rgba(155,155,155,0.3);
    }

        .ac-container input:checked ~ article.ac-small {
            height: 140px;
        }

        .ac-container input:checked ~ article.ac-medium {
            height: 180px;
        }

        .ac-container input:checked ~ article.ac-large {
            height: 500px;
        }