﻿/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
    /*background-color: transparent;*/
    width: auto;
    height: auto;
    min-height: 500px;
    /*border: 1px solid #f1f1f1;*/
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    /*text-align: center;*/
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-cardHover {
    transform: rotateY(180deg);
}
/*.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}*/

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
    /*background-color: #bbb;*/
    color: black;
}

/* Style the back side */
.flip-card-back {
    /*background-color: dodgerblue;*/
    /*color: white;*/
    transform: rotateY(180deg);
}

.word-split-header {
    width: 100%;
    height: 19px;
}



.word-split {
    border: 1px solid transparent;
    /*border-color: lightgray;*/
    /*border-top: 10px solid transparent;*/
}

    .word-split:hover {
        border: 1px solid lightgray;
    }

        .word-split:hover .word-split-header {
            /* background-image: url(../img/IconTranslat.png);
            background-size: 16px;
            background-repeat: no-repeat;
            background-position: left;*/
            background-color: deepskyblue;
            /*border-top-color:deepskyblue;*/
        }
#translate-Fa{

}
.translate-icon {
    /*margin-top:-10px;*/
    display: none;
    background-color: transparent;
    border: none;
}

.word-split:hover .translate-icon {
    display: block;
    cursor: pointer;
}


/* Tooltip container */
.tooltip-word {
    /*border:none;*/
    /*padding-top:-18px;*/
    position: relative;
    display: inline-block;
    
    /*border-bottom: 1px dotted black;*/ /* If you want dots under the hoverable text */
}

    /* Tooltip text */
    .tooltip-word .tooltiptext {
       
        visibility: hidden;
        padding: 0 3px;
        width: auto;
        background-color: #555;
        color: #fff;
        text-align: center;
        font-size: 0.9em;
        border-radius: 6px;
        /* Position the tooltip text */
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -125%;
        /* Fade in tooltip */
        opacity: 0;
        transition: opacity 0.3s;
    }

        /* Tooltip arrow */
        .tooltip-word .tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #555 transparent transparent transparent;
        }

    /* Show the tooltip text when you mouse over the tooltip container */
    .tooltip-word:hover .tooltiptext {
        visibility: visible;
        opacity: 0.6;
    }
