﻿.error {
    animation: shake 0.2s ease-in-out 0s 2;
    box-shadow: 0 0 0.5em red;
}
@keyframes shake {
    0% {
        margin-left: 0rem;
    }

    25% {
        margin-left: 0.5rem;
    }

    75% {
        margin-left: -0.5rem;
    }

    100% {
        margin-left: 0rem;
    }
}
.tooltip-container {
    position: relative;
    display: inline-block; /* Or block, depending on layout */
}

.tooltip-text {
    display: none;
    /*opacity: 0;*/
    background-color: #7ea6de;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    z-index: 1; /* Ensure it appears above other elements */
    bottom: 105%; /* Position above the input */
    left: 84%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease; /* Smooth transition for appearance */
    /*white-space: nowrap;*/ /* Prevent text wrapping */
    width:250px;
}
@media only screen and (max-width: 600px) {
    .tooltip-mobile {
        left: 64%;
    }
        .tooltip-mobile::after {
            content: "";
            position: absolute;
            top: 100%; /* Position below the tooltip text */
            left: 80%;
            margin-left: -10px; /* Center the arrow */
            border-width: 5px;
            border-style: solid;
            border-color: #7ea6de transparent transparent transparent;
        }
}


/* Optional: Add an arrow to the tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;  /*Position below the tooltip text */
    left: 50%;
    margin-left: -15px;  /*Center the arrow */
    border-width: 5px;
    border-style: solid;
    border-color: #7ea6de transparent transparent transparent;
}


.info-icon {
    background-image: url(../../app-assets/img/info/info-icon.png);
    background-repeat: no-repeat;
    background-size: cover;
    /*background: none;*/
    /*border:1px solid white;*/
    cursor: pointer;
    /*font-size: 12px;*/ /**/ /* Adjust size as needed */
    width: 15px;
    height: 15px;
    background-color: white;
    color: blue;
    font-style: italic;
    display: inline-block;
    padding-top:5px;
}

@font-face {
    font-family: IRANSans;
    src: url('../../app-assets/fonts/IRANSansWeb.ttf')
}
div#tooltip-content p {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    position: absolute;
    color: red;
    font-size: 14px;
    width: 300px;
    z-index: 1;
    top: -45%; /* Position above the input */
    right: 50%;
    background-color: #7ea6de;
    color: white;
    text-align: right;
    font-family: IRANSans !important;
}
@media only screen and (max-width: 600px) {
    .tooltipcontent-mobile {
        right: 40px !important;
    }
}
    div#tooltip-content p::after {
        content: "";
        position: absolute;
        top: 30%; /*Position below the tooltip text */
        right: -10px;
        /*margin-left: -15px;*/ /*Center the arrow */
        border-width: 15px;
        border:10px solid ;
        border-color: #7ea6de transparent transparent transparent;
    }
div#tooltip-content a {
    position: fixed;
}

.tooltip-wrapper {
    position: relative;
}

.hidden {
    /*display:none;*/
    /*transition: opacity 3s ease-in-out;*/
    opacity: 0;
    -webkit-animation: fadeOut 10s;
    animation: fadeOut 10s;
}
@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        display: none !important;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        display: none !important;
    }
}