@font-face {
    font-family: "bhoma";
    src: url(../fonts/BHoma.ttf);
}

* {
    text-decoration: none;
    box-sizing: border-box;
}

body {
    font-family: "bhoma",system-ui,'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #ccc;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.container {
    width: 960px;
    margin: 0 auto;
}
header {
    background-color: #fff;
    font-size: 20px;
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    z-index: 2;
    animation: header .5s 0s linear;
}
header .menu,.menu>ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
}


.menu ul li {
    list-style: none;
    padding: 10px;
    margin-left: 60px;
}

.menu ul a {
    color: #0a0a0a;
}

.menu ul li a.sign {
    background-color: rgb(9, 165, 9);
}

.menu ul li a {
    border-radius: 10px;
    padding: 3px;
    font-size: 20px;
    transition: all .5s 0s linear;
}

.menu ul li a.sign:hover {
    background-color: rgb(255, 183, 0);
    color: black;
}

.menu ul li a.gray {
    background-color: gray;
}

.menu h2 {
    font-size: 30px;
    margin: 10px;
    color: rgb(207, 37, 37);
}

.menu ul li.menu-down ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    transition: all .5s 0s linear;
    z-index: 2;
}

.menu ul li.menu-down:hover ul {
    opacity: 1;
    visibility: visible;
    background-color: #fff;
    transform: translateY(-30px);
    z-index: 2;
}

.background {
    background-image: url(../image/call-of-duty-modern-warfare-2-3840x2160-8580.jpg);
    margin-top: 94px;
    height: 500px;
    width: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: background forwards 1s .5s linear;
}

.background h1,.background p {
    margin-top: 10px;
    color: rgb(100, 100, 100);
    padding-top: 53px;
    text-align: center;
}

.background h1 {
    font-size: 48px;
}

.background p {
    color: #fff;
}

.row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.boxes .box img {
    width: 210px;
    height: 216px;
}

.boxes .box {
    width: 30%;
    min-height: 545px;
    box-shadow: -1px 20px 15px 2px black;
    border-top: 20px solid #0a0a0a;
    border-radius: 20px;
    animation: boxs alternate 1s 0s ease-out;
}

.boxes .box a {
    border: none;
    background-color: #0a0a0a;
    color: #fff;
    font-size: 15px;
    padding: 4px;
    transition: all 1s 0s linear;
}

.boxes .box a:hover {
    background-color: rgb(255, 183, 0);
    color: #0a0a0a;
}

.des-sim {
    font-size: 20px;
}

.boxes a .box-new-game {
    box-shadow: 0px 0px 20px 8px black;
    color: #0a0a0a;
}

.boxes .box-new-game {
    transition: all .5s 0s ease-in-out;
    background-color: #5a5a5a;
    height: 100%;
    animation: box-new forwards 1s 3s ease;
}

.boxes .box-new-game:hover {
    transform: rotateY(360deg);
}

.boxes .box-new-game img {
    width: 206px;
}

.button-up i {
    font-size: 48px;
    background-color: darkcyan;
    border-radius: 30px;
    text-align: center;
    padding: 5px;
    bottom: 10px;
    left: 20px;
    position: fixed;
    transition: all .5s 0s ease-in;
}

.button-up i:hover {
    transform: rotate(720deg);
}

div.background {
    background-image: url(../image/forza\ horizen.jpg);
    margin-top: 97px;
    height: 84.5vh;
    position: relative;
}

form {
    text-align: center;
    margin: 0 200px;
    position: absolute;
    top: 150px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(180deg, rgba(255,0,0,1) 0%, rgba(93,87,87,1) 100%);
}

form .text-type input {
    width: 50%;
    height: 20px;
    padding: 10px;
    background: #ccc;
    font-size: 20px;
}

form input {
    padding: 10px;
    margin-top: 10px;
    transition: all .5s 0s ease;
}

form input:hover {
    transform: rotateY(360deg);
    cursor: pointer;
    background-color: #0a0a0a;
    color: #fff;
}
footer{
    background-color: #0a0a0a;
    height: 100%;
    color: #fff;
    margin: 0 auto;
}
.social-media i{
    font-size: 30px;
    padding: 10px;
    background-color: #fff;
    border-radius: 100px;
    margin-top: 30px;
    margin-left: 10px;
    transition: all .5s 0s linear;
}
.social-media i:hover{
    transform: translateY(-10px) rotateY(-360deg); 
}
.social-media{
    text-align: left;
}
footer .list ul li{
    list-style: none;
    color: #fff;
    transition: all .5s 0s ease-in-out;
    width: 100px;
}
footer p{
    text-align: center;
}
footer .list ul li:hover{
    transform: translateX(-20px);
    cursor: pointer;
}
@keyframes header{
    from{
        visibility: hidden;
        opacity: 0;
    }
    to{
        visibility: visible;
        opacity: 1;
    }
}
@keyframes background{
    0%{
        visibility: hidden;
        transform: scale(0,0);
        opacity: 0;
    }
    100%{
        visibility: visible;
        opacity: 1;
    }
}
@keyframes boxs{
    0%{
        visibility: hidden;
        opacity: 0;
    }
    100%{
        visibility: visible;
        opacity: 1;
        transform: rotateY(360deg);
    }
}
@media only screen and (max-width: 768px) {
    header {
        display: none;
    }
}

@media only screen and (min-width: 320px) and (max-width:575px) {
    .container {
        width: 100%;
    }
    .background{
        margin-top: 0;
    }
    .background h1{
        margin-top: 0;
    }
    .boxes .box img{
        width: 100%;
    }
    .boxes .box{
        width: 50%;
    }
}

@media only screen and (min-width: 576px) and (max-width:767px) {
    .container {
        width: 540px;
    }
    .background{
        margin-top: 0;
    }
    .background h1{
        margin-top: 0;
    }
    .boxes .box img{
        width: 100%;
    }
    .boxes .box{
        width: 50%;
    }
}

@media only screen and (min-width: 768px) and (max-width:991px) {
    .menu ul li,.menu a li{
        font-size: 17px;
        padding: 0;
        margin-left: 10px;
    }
    .container {
        width: 720px;
    }
    .background{
        margin-top: 0;
    }
    .background h1{
        margin-top: 0;
    }
    .boxes .box img{
        width: 100%;
    }
    .boxes .box{
        width: 33.3333%;
    }

}

@media only screen and (min-width: 992px) and (max-width:1199px) {
    .container {
        width: 960px;
    }
}

@media only screen and (min-width: 1200px) and (max-width:1399px) {
    .container {
        width: 1140px;
    }
}

@media only screen and (min-width: 1400px) {
    .container {
        width: 1320px;
    }
}
