:root {
    --p-color: #7188DA;
}

body {
    color: #fff;
    background-color: #2d3035;
    font-family: "Raleway", sans-serif;
}

a {
    text-decoration: none !important;
}

/* Bootstrap */

.btn {
    border-radius: 50rem !important;
    padding: 0.375rem 2rem;
}

.bg-dark {
    background-color: #2d3035 !important;
}

.card {
    background-color: #2d3035;
}

[class^="ri-"],
[class*=" ri-"] {
    vertical-align: middle;
}

/* Main Menu */

.main_menu {
    /* position: absolute; */
    width: 100%;
    z-index: 999 !important;
}

.main_menu.scrolled {
    position: fixed;
    background: var(--blue) !important;
    box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.1);
    margin-top: -100px;
}

.main_menu.scrolled.sleep {
    transition: margin-top 1s ease-out;
}

.main_menu.scrolled.awake {
    margin-top: 0;
    transition: margin-top 1s ease-in;
}

.main_menu.scrolled .navbar-nav {
    padding: 15px !important;
}

.main_menu .collapse-icon {
    margin-top: 27px;
    margin-bottom: 23px;
}

.main_menu.scrolled .collapse-icon {
    margin-top: 17px;
    margin-bottom: 13px;
}

@media only screen and (min-width: 1024px) {
    .main_menu.navbar {
        padding: 0;
    }
    .main_menu.navbar ul.navbar-nav {
        margin-left: 1rem;
        padding: 20px;
    }
}

@media (max-width: 991px) {
    .main_menu {
        position: relative;
        background: var(--blue) !important;
        box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.1);
    }
    .heroswiper .swiper-slide .swiper-info {
        padding: 0 1rem !important;
    }
}

@media (max-width: 500px) {
    #about .avatar-img::after,
    #download .avatar-img::after {
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.navbar-brand img {
    max-height: 40px;
    margin-top: 10px;
    object-fit: cover;
    /* max-width: 50px; */
    /* width: 100%; */
    /* margin-left: 10px; */
    /* object-fit: cover; */
}

.navbar .navbar-nav .nav-item .active {
    font-weight: bold;
}

.navbar .navbar-nav .nav-item {
    font-weight: 400;
}

.navbar .navbar-nav .nav-item {
    position: relative;
}

.navbar .navbar-nav .nav-item>a.active::before,
.navbar .navbar-nav .nav-item>a:not(.active)::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    height: 2px;
    margin: 0 auto;
    background-color: var(--p-color);
    transition: all 0.3s;
}

.navbar .navbar-nav .nav-item>a.active::before {
    width: 80%;
}

.navbar .navbar-nav .nav-item>a:hover::before {
    width: 100%;
}

.navbar .social a {
    color: #fff;
}

.navbar .social a:hover {
    color: var(--p-color);
}

@media (max-width: 768px) {
    .navbar .navbar-collapse.collapse .navbar-nav .nav-item>a.active::before {
        width: 20% !important;
        margin: 0 !important;
    }
    .navbar .navbar-collapse.collapse .navbar-nav .nav-item>a:hover::before {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    .statistics .card:hover,
    #download .card:hover,
    #download :nth-child(2)>.card {
        transform: scale(1.05);
    }
    #download :nth-child(2)>.card:hover {
        transform: scale(1.1);
    }
}

.main_menu.navbar .social {
    font-size: 25px;
}

/* SWIPER */

.swiper-container {
    width: 100%;
    height: 100%;
}

.heroswiper .swiper-slide {
    position: relative;
    font-size: 18px;
    height: auto;
    height: 800px;
    /* max-height: 600px; */
}

.heroswiper .swiper-slide>img,
.heroswiper .swiper-slide>video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    color: #2d3035;
}

.swiper-pagination-bullet-active {
    background-color: #2d3035;
}

.heroswiper .swiper-slide .swiper-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #f1f1f1;
    padding: 0 5rem;
}

.heroswiper .swiper-slide .swiper-info .avatar {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    /* max-height: 600px; */
}

.heroswiper .swiper-slide .swiper-info .avatar>img {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* width: 100%; */
    /* height: 100%; */
    height: 650px;
    margin: 0 auto;
    opacity: 0;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
}

.heroswiper .swiper-slide .swiper-info .avatar>img.show {
    opacity: 1;
}

.heroswiper .swiper-slide .swiper-info .card {
    z-index: 2;
    width: 450px;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.heroswiper .swiper-slide .swiper-info .card:hover {
    background-color: rgb(44 62 80 / 75%) !important;
    backdrop-filter: blur(10px);
}

.heroswiper .swiper-slide .swiper-info .card .icon,
.statistics .card .icon {
    max-width: 50px;
    max-height: 50px;
    background-color: var(--p-color);
    border-radius: 61% 39% 59% 41%/51% 74% 26% 49%;
}

.heroswiper .swiper-slide .swiper-info .card .icon>img,
.statistics .card .icon>img {
    width: 100%;
    height: 100%;
}

.statistics .card,
#download .card {
    box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s;
}

.statistics .card .icon {
    max-width: 70px;
    max-height: 70px;
}

/* Staff Team */

.staff .swiper-slide {
    color: #fff;
    text-align: center;
    transition: transform 1s;
}

.staff .swiper-slide .avatar {
    border-style: solid;
    width: 200px;
    height: 200px;
    display: inline-block;
    /* background-color: var(--p-color); */
    /* border-radius: 61% 39% 59% 41%/51% 74% 26% 49%; */
    /* transform-style: preserve-3d; */
    border-width: 5px;
    border-color: var(--p-color);
}

.staff .swiper-slide .avatar>img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(5px 10px 20px rgba(0, 0, 0, 0.8));
    transform: translateZ(20px);
}

.social .icon {
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    display: inline-block;
    background-color: var(--p-color);
    border-radius: 61% 39% 59% 41%/51% 74% 26% 49%;
    transition: all 0.4s;
    margin: 0 2px;
    font-size: 20px;
}

.social .icon:hover {
    background-color: #f1f1f1;
    color: var(--p-color) !important;
}

.staff .swiper-button-prev,
.staff .swiper-button-next {
    color: var(--p-color) !important;
}

.staff .swiper-slide-next {
    transform: scale(1.1);
}

/* ABOUT */

#staff,
#about,
#download {
    overflow: hidden;
}

#about .about_item {
    display: flex;
    justify-content: center;
    align-items: center;
}

#about .about_item:not(:last-child) {
    margin-bottom: 1rem;
}

#about .avatar-img,
#download .avatar-img {
    background-color: var(--p-color);
    border-radius: 61% 39% 59% 41%/51% 74% 26% 49%;
    width: 300px;
    height: 300px;
    position: relative;
    margin: 4rem 0;
    transform-style: preserve-3d;
}

#download .avatar-img {
    width: 120px;
    height: 120px;
    margin: 2rem auto;
}

#about .avatar-img::after,
#download .avatar-img::after {
    content: "";
    position: relative;
    top: -60px;
    left: 0;
    width: 335px;
    height: 410px;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    transform: translateZ(60px);
    border-radius: 0% 0% 59% 41%/51% 74% 26% 49%;
    filter: drop-shadow(10px 10px 20px rgba(0, 0, 0, 0.8));
}

#about .avatar-img.i-1::after {
    background-image: url(../img/character/7.png);
}

#about .avatar-img.i-2::after {
    background-image: url(../img/character/4.png);
}

#download .avatar-img::after {
    background-image: url(../img/gtasa.png);
    width: 100px;
    height: 150px;
    top: -20px;
    background-size: cover;
}

#download .avatar-img.i-3::after {
    background-image: url(../img/samp.png);
    width: 100px;
    height: 150px;
    top: -20px;
    background-size: cover;
}

#download .avatar-img.i-4::after {
    background-image: url(../img/forum.png);
    width: 100px;
    height: 150px;
    top: -20px;
    background-size: cover;
}

.loading {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #2a3846;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 2s, z-index 2.2s, filter 3s;
    opacity: 0.95;
    flex-direction: column;
    filter: grayscale(1);
}

.loading.hide {
    opacity: 0;
    z-index: -1;
}

.loading .logo {
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(1px 1px 15px black);
    /* animation: pulse 1.5s infinite; */
}

.loading small:after {
    content: ".";
    animation: dots 1s steps(5, end) infinite;
}

.loading .social {
    margin-top: 4rem !important;
}

/* .loading .social > .icon {
  animation: dots 1s steps(4) infinite;
}
.loading .social > .icon:nth-child(1) {
  animation-delay: 0.1s;
}
.loading .social > .icon:nth-child(2) {
  animation-delay: 0.2s;
}
.loading .social > .icon:nth-child(3) {
  animation-delay: 0.3s;
} */

@keyframes dots {
    0%,
    20% {
        opacity: 0;
    }
    40% {
        opacity: 0.5;
    }
    60% {
        opacity: 0.7;
    }
    80%,
    100% {
        opacity: 1;
    }
}

/* FOOTER */

.b-up {
    position: absolute;
    right: 2rem;
}

.b-up>a {
    color: #f1f1f1;
    width: 30px;
    height: 30px;
    line-height: 30px;
    display: inline-block;
    background-color: var(--p-color);
    border-radius: 61% 39% 59% 41%/51% 74% 26% 49%;
    transition: all 0.4s;
    margin: 0 2px;
    font-size: 20px;
}

.b-up>a:hover {
    background-color: #f1f1f1;
    color: var(--p-color) !important;
}

/* PULSE */

.heart-pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1.2);
    }
    10% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.3);
    }
    25% {
        transform: scale(1);
    }
}