@font-face {
    font-family: 'Vazir-Bold';
    src: url('../fonts/Vazir-Bold.eot') format("eot"), url('../fonts/Vazir-Bold.ttf') format("truetype"), url('../fonts/Vazir-Bold.woff') format("woff"), url('../fonts/Vazir-Bold.woff2') format("woff2");
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    word-wrap: 'break-word';
    word-break: 'break-all';
    -webkit-transition: all 1s;
    transition: all 1s;
}

body {
    width: auto;
    background-color: white !important;
    background: url('../img/wall.jpg');
    color: black;
    direction: rtl;
    font-family: 'Vazir-Bold' !important;
    font-size: 14px !important;
}

.animated-textbox {
    margin-left: auto;
    margin-right: auto;
    width: 85%;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

.animated-textbox:focus {
    width: 100%;
}

.animated-button {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    line-height: 1.85rem;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

.animated-button:hover {
    width: 100%;
}

.animated-navitem {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

.animated-navitem:hover {
    width: 100%;
}

.animated-navitem:focus {
    width: 100%;
}

.animated-form {
    opacity: 0.85;
    -webkit-transition: opacity 0.25s ease-in-out;
    transition: opacity 0.25s ease-in-out;
}

.animated-form:hover {
    opacity: 1.0;
}

:invalid {
    border-color: red !important;
}

.btn-shaking {
    margin: auto;
    width: 100%;
}

.btn-shaking:hover {
    animation: shake-anim 0.5s linear infinite;
}

.txt-shaking {
    margin: auto;
    transition: background-color 2s;
}

.txt-shaking:hover {
    background: royalblue;
    color: white;
}

.txt-shaking:focus {
    animation: shake-anim 0.5s linear infinite;
}

@keyframes shake-anim {
    0% {
        width: 100%;
    }
    50% {
        width: 90%;
    }
    100% {
        width: 100%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


/* TODO: Keep this or what? */

@media (max-width: 1400px) and (min-width: 800px) {
    * {
        zoom: 0.98;
        /* -moz-transform: scale(0.98);
        -moz-transform-origin: 0 0; */
    }
}

.pulsing-item {
    border-radius: 50%;
    background-color: transparent;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 1s infinite;
}