@font-face {
    font-family: 'TheSans-Plain';
    src: url('../fonts/the_sans_plain/TheSans-Plain.eot');
    src: url('../fonts/the_sans_plain/TheSans-Plain.eot?#iefix') format('embedded-opentype'),
        url('../fonts/the_sans_plain/TheSans-Plain.woff2') format('woff2'),
        url('../fonts/the_sans_plain/TheSans-Plain.woff') format('woff'),
        url('../fonts/the_sans_plain/TheSans-Plain.ttf') format('truetype'),
        url('../fonts/the_sans_plain/TheSans-Plain.svg#TheSansArab-Bold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TheSans-Bold';
    src: url('../fonts/theSans-bold/TheSans-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/theSans-bold/TheSans-Bold.otf') format('opentype'),
        url('../fonts/theSans-bold/TheSans-Bold.woff') format('woff'),
        url('../fonts/theSans-bold/TheSans-Bold.ttf') format('truetype'),
        url('../fonts/theSans-bold/TheSans-Bold.svg#TheSans-Bold') format('svg');
    font-weight: normal;
    font-style: normal;
}

html {
    direction: rtl
}

body {
    font-family: 'TheSans-Plain';
    font-size: 16px;
    background: url('../images/bg.jpg') no-repeat;
    background-size: cover;
}

ul {
    list-style-type: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

a,
button,
img {
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

p,
ul {
    margin: 0;
}

a:hover,
a:active,
a:focus,
a:visited {
    text-decoration: none !important;
}

input,
textarea,
a,
button {
    outline: none !important;
    text-decoration: none;
}

.site {
    display: flex;
    flex-flow: column;
    height: 750px;
    justify-content: flex-end;
    overflow: hidden;
}

.site .logo {
    position: relative;
    top: -110px;
    -webkit-animation: rotation 4s infinite linear;
}

.logo a img {
    max-width: 170px;
    display: block;
    margin: 40px 0 0;
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 130px;
    position: relative;
    right: 130px;
}

.links a {
    background-color: white;
    padding: 20px;
    display: block;
    max-width: 33.333%;
    flex: 0 0 33.33%;
    text-align: center;
    margin: 0 10px 20px;
    color: #24a676;
    border-radius: 10px;
    position: relative;
    font-size: 18px;
    overflow: hidden;
}

.links a:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 8px;
    background-color: #28875f;
    top: 0;
    transition: .5s;
    right: 0;
}

.links a span {
    position: relative;
    z-index: 9;
}

.links a:hover:before {
    width: 100%;
}

.links a:hover {
    color: #fff
}

footer {
    background-color: #1f1f1f;
    color: white;
    text-align: center;
    padding: 20px;
}

@keyframes rotation {
  0% {
    transform: rotate3d(0, 1, 0, 0deg);
  }
  50% {
    transform: rotate3d(0, 1, 0, 180deg);
  }
  100% {
    transform: rotate3d(0, 1, 0, 360deg);
  }
}

@media only screen and (max-width : 480px) {

    .site {
        height: 510px;
        display: block;
        overflow: visible;
    }

    .site .logo {
        position: static;
        margin: 120px 0 30px;
    }

    .links {
        position: static;
    }

    .links a {
        max-width: 100%;
        flex: 0 0 100%;
    }

    body {
        height: 750px;
    }

}
