@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;
}
html {
    scroll-behavior: smooth; /* این استایل حرکت در صفحه رو به صورت نرم انجام میدهد*/
}

body {
    direction: rtl;
    background-color: #fff;
    font-family: vazir;
    height: 100vh;

}

section {
    height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4em;

}

#one {
    background-color: orangered;

}
#two {
    background-color: blueviolet;

}

#three {
    background-color: green;

}

#four {
    background-color: rgb(225, 240, 15);

}

.toTop {
    cursor: pointer;
    position: fixed;
    right: 25px;
    bottom: 10px;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    transition: all 0.7s ease-in-out;
    -webkit-transition: all 0.7s ease-in-out;
    -moz-transition: all 0.7s ease-in-out;
    -ms-transition: all 0.7s ease-in-out;
    -o-transition: all 0.7s ease-in-out;
    opacity: 0;
}
.toTop.show {
    opacity: 1;
    bottom: 50px;
}
