@font-face {
    font-family: 'vazir';
    src: url('/font/vazir.eot'); /* IE9 Compat Modes */
    src: url('/font/vazir.eot') format('embedded-opentype'), /* IE6-IE8 */
         url('/font/Vazir.woff2') format('woff2'), /* Super Modern Browsers */
         url('/font/vazir.woff') format('woff'), /* Pretty Modern Browsers */
         url('/font/vazir.ttf')  format('truetype'); /* Safari, Android, iOS */
        /* url('webfont.svg#svgFontName') format('svg');*/ /* Legacy iOS */
  }

  * , *::after , *::before {
      box-sizing: border-box;
      padding: 0;
      margin: 0;
}

body {
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #282750;
    font-family: vazir;
    font-size: 1.5em;
    height: 100vh;
}

button {
    position: relative;
    width: 250px;
    height: 100px;
    font-family: vazir;
    font-size: 1.5rem;
    margin: 0 50px;
    padding: 20px 30px;
    color: #fff;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    cursor: pointer;
    border: none;
    overflow: hidden;
}

#one{
    background-color: #ff3f59;
}

#two{
    background-color: #3db2ff;
}

span{
    position: absolute;
    background-color: #fff;
    transform: translate(-50% , -50%);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    animation: circle 1.2s linear infinite;
    -webkit-animation: circle 1.2s linear infinite;
    pointer-events: none;
    -webkit-transform: translate(-50% , -50%);
    -moz-transform: translate(-50% , -50%);
    -ms-transform: translate(-50% , -50%);
    -o-transform: translate(-50% , -50%);
}

@keyframes circle {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
    
}
