@font-face {
  font-family: "IRANSansWeb";
  src: url("fonts/IRANSansWeb(FaNum).eot") format("eot"), url("fonts/IRANSansWeb(FaNum).woff") format("woff"), url("fonts/IRANSansWeb(FaNum).ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  /*hack*/
  -ms-text-size-adjust: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #eee;
  direction: rtl;
  font-family: IRANSansWeb, Tahoma;
  font-size: 1.5rem;
  margin: 0;
  overflow-x: hidden;
  padding: 0;
  text-align: right;
}

img {
    max-width: 100%;
}

.mj-container {
  background:#fff;
  border-radius:5px;
  border:1px solid #ccc;
  margin:1rem auto;
  padding: 1.5rem;
  width:60rem;
}

a, i {
    display: inline-block;
}

.mb-20 {
    margin-bottom: 2rem;
}

input[type="number"],select {
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 4rem;
    padding-right: 1rem;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    width: 100%;
}

select {
    background-color: #fff;
    width: 20rem;
}

input:focus, select:focus {
    border-color: #f60;
    outline: none;
}

table td {
    vertical-align: middle !important;
}

.btn-primary {
    color: #fff !important;
}

.copyright {
    border-top: 3px solid red;
    font-size: 1.1rem;
    font-weight: bold;
    padding-top: 1rem;
}

.copyright p {
    margin-bottom: 5px;
}

.title-cell {
    font-size: 1.7rem;
}

.social-links a {
    color: blue;
    padding: 5px;
    font-size: 2.2rem;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
}

.social-links a:hover {
    color: #f60;
}

.small-text {
    font-size: 8px;
}

.red-border {
    border-bottom: 3px solid red;
}

.bold-text {
    font-weight: bold;
}

.header {
    padding-bottom: 5px;
}

.header .row > div:first-child {
    padding-left: 0;
}

.header .row > div:first-child p:last-child {
    font-size: 1.4rem;
}

.header h2 {
    margin-top: 20px;
}

.header .row > div:last-child {
    padding-right: 0;
}

.under-header-links {
    margin-bottom: 1rem;
}

.under-header-links a {
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
}

.under-header-links a:hover {
    color: #f60;
}

@media screen and (max-width: 650px) {
    body {
        padding: 1rem;
    }
    .mj-container {
        margin: 0;
        padding: 1rem;
        width: 100%;
    }
    .header .row > div:first-child {
        padding-left: 15px;
    }

    .header .row > div:first-child p:last-child {
        margin-bottom: 0;
    }

    .header h2 {
        margin-top: 5px;
    }

    .header .row > div:last-child {
        padding-right: 15px;
    }

    .header {
        text-align: center;
    }

    .header img {
        max-width: 18rem;
    }

    .small-text {
        font-size: 7px;
        padding-bottom: 5px;
    }
    .btn-primary {
      margin-bottom: 1rem;
    }
}

@media screen and (max-width: 576px) {
    select {
        width: 17rem;
    }
    table td {
        font-size: 1.3rem;
    }
    table td:first-child {
        width: 48%;
    }
}
