/* Fonts Sizes */

h1, .h1 {
    color: white;
}

h2, .h2,
h3, .h3 {
    color: white;
    font-size: 1.875rem;
    line-height: 1 !important;
    font-weight: 500;
}

@media screen and (min-width: 1536px) {
    h2, .h2,
    h3, .h3 {
        font-size: 3.5rem;
    }
}

h4, .h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
}

@media screen and (min-width: 1536px) {
    h4, .h4 {
        font-size: 1.875rem;
    }
}

.page-template-wp-custom-template-game-buyme h4,
.page-template-wp-custom-template-game-buyme .h4 {
    color: var(--game--color--cta);
}

h5, .h5 {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
}

h6, .h6 {
    color: var(--game--color--cta);
    font-size: 1.25rem;
    font-weight: 500;
}

/* Fonts Styles */

strong {
    /* remove stroke */
    color: var(--game--color--cta);
    font-weight: 500;
}

p {
    color: #c4c8cb;
    letter-spacing: 0;
}

.white {
    color: white !important;
}

.white strong {
    color: white !important;
}


/* CTA */

.cta {
    width: 100%;
    min-width: 250px;
    padding: 20px 30px;
    text-align: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.cta a {
    z-index: 1;
}

@media screen and (min-width: 768px) {
    .cta {
        width: auto;
    }
}

@media screen and (min-width: 1024px) {
    .cta {
        padding: 27px 30px;
    }
}

.cta span {
    font-size: 1rem;
    font-family: "MGP Text" !important;
    font-weight: 700;
    text-transform: uppercase;
}

@media screen and (min-width: 1024px) {
    .cta span {
        font-size: 1.125rem;
    }
}

.cta-buy {
    position: relative;
    background: #1F2228;
    /* background-image: url('/wp-content/themes/milestone/assets/images/motogp25-cta-trama.webp'); */
    background-position: 50%;
    text-transform: uppercase;
    transition: all 2s;
}

.cta-buy:hover {
    background-position: 100%;
}

.cta-buy::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--game--color--cta);
    transition: all 0.3s;
}

.cta-buy:hover::after {
    background: #A60000;
}

.cta-buy span {
    color: white;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.cta-buy:hover span,
.cta-trailer:hover span {
    scale: 0.9;
}

.cta-trailer {
    color: white;
    border: 2px solid white;
    transition: all 0.3s;
}

.cta-trailer:hover {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.155);
}

.cta-trailer span {
    transition: all 0.3s;
}

.cta-trailer:hover .iconbox {
    transform: translateX(-8px);
}

.cta .iconbox {
    transition: all 0.3s;
}

.cta .iconbox i {
    font-size: 24px !important;
}

.milestone_game_button::after,
.store_cta_click::after {
    background: #A60000;
}

.banner_section {
    position: relative;
    background: rgb(31, 34, 40);
}

.banner_section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 500px;
    left: 0;
    top: -500px;
    background: linear-gradient(0deg, rgb(31, 34, 40), transparent);
    z-index: 0;
}

.banner_section::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 500px;
    left: 0;
    bottom: -500px;
    background: linear-gradient(180deg, rgb(31, 34, 40), transparent);
    z-index: 0;
}

.championship_section img {
    object-position: 70% !important;
}

@media screen and (min-width: 1024px) {
    .championship_section img {
        object-position: center center !important;
    }
}

/* Custom intro animations */

@keyframes fromBlur {
    from {
        opacity: 0;
        filter: blur(100px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.hero video {
    animation: fromBlur 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero figure,
.hero .wp-block-riot-button {
    opacity: 0;
    animation: fadeInUp 0.5s ease-in-out forwards;
}

.wp-block-riot-platforms img {
    opacity: 0;
    animation: fadeInUp 0.5s ease-in-out forwards;
}

.crossplay {
    opacity: 0;
    animation: fadeInUp 0.55s ease-in-out forwards;
}

/* Stagger the fade-in-up animation */

.hero .wp-block-riot-button:nth-child(1) {
    animation-delay: 0.1s;
}

.hero .wp-block-riot-button:nth-child(2) {
    animation-delay: 0.25s;
}

.wp-block-riot-two-panels figure {
    border-radius: 4px;
    overflow: hidden;
}
