@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
html{
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-size: 16px;
    
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; 
}

p, li {
    font-family: 'Open Sans', sans-serif; 
    color: #CCCCCC; 
}

*{
    box-sizing: inherit;
}

body{
    width: 100%;
    height: 100%;
}

.header{
    width: 100%;
    height: 99vh;
    background-color: #000000;
    position: relative;
    border-bottom-left-radius: 12vh;
    border-bottom-right-radius: 12vh;
}

.header_title{
    color: #FFFFFF;
    font-size: 2em;
    position: absolute;
    left: 2rem;
    top: 2rem;
}

.container_nav{
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header_nav{
    display: flex;
    align-items: flex-start;
    margin-left: auto;
    margin-top: -10px;
}

/* Barra de navegaciòn */
.list{
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    min-height: 50rem;
}

.list li{
    display: flex;
    align-items: flex-start;
    margin-top: 0;
}

.list li a{
    color: rgb(184, 184, 184);
    text-decoration: none;
    font-size: 1.2em;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.3s ease-in-out;
}

.list li a:hover{
    color: white;
}

/* Button */

.list button{
    background-color: #FF0000;
    color: white;
    font-weight: 500;
    font-size: 14pt;
    text-align: center;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    margin-left: auto;
    margin-top: -5px;
}

.list button:hover{
    background-color: #FF0000; 
    color: #FFFFFF; 
    box-shadow: 0 4px 8px rgba(184, 134, 11, 0.5); 
    cursor: pointer;
}


/* Imagen Principal */
.header_description{
    position: relative;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.header_description img{
    position: absolute;
    top: -45rem;
    left: 63%;
    max-width: 30%;
    height: auto;
    border-radius: 20px;
}

.header_description img{
    border: 10px solid #FFFFFF;
    border-radius: 10px;
    margin: 10px; 
}

/* Texto principal */
.header_name{
    position: relative;
    top: -25rem;
    width: auto;
    float: left;
    height: auto;
    margin-left: 80px;
}

.header_name h2{
    font-size: 3em;
    font-weight: 100;
    color: #CCCCCC;
}

.header_name h2::first-letter{
    background-color: rgb(70, 70, 70);
    padding: 0.5px;
    border-radius: 10px;
}

.header_name p{
    font-size: 1.3em;
    font-weight: 95;
    color: #FFFFFF;
}

.container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
}

.feature {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    width: 190px;
    text-align: center;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateY(-55px);
    transform-origin: top center;
    right: 12rem;
    font-family: 'Montserrat', sans-serif; 
}

.feature img {
    width: 45%;
    border-radius: 50%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.feature img:hover {
    filter: brightness(150%) saturate(200%); /* Aumentar brillo y saturación */
}

/** TREDING **/
.treding {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.treding h5 {
    color: #ff6b6b;
    margin-bottom: 10px;
}
.treding h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.game-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.game-info {
    padding: 15px;
}
.game-category {
    color: #777;
    font-size: 14px;
}
.game-title {
    font-weight: bold;
    margin-top: 5px;
}
.game-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.treding button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    float: right;
    position: relative;
    top: -40px; /* Subir ligeramente */
    right: 7rem
}

.treding button:hover{
    background-color: black;
}

/** TOP GAMES **/

.most-played{
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 20px;
}

.most-played-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.most-played h5{
    color: #ff6b6b;
    margin-bottom: 5px;
}

.most-played h2{
    font-size: 28px;
    margin: 0;
}

.view-all-btn{
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
}

.game-grid-horizontal{
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
}

.game-card-small{
    flex:  0 0 auto;
    width: 180px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.game-image-small{
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-info-small {
    padding: 10px;
}

.game-category-small{
    color: #777;
    font-size: 12px;
}

.game-title-small {
    font-weight: bold;
    margin-top: 5px;
    font-size: 14px;
}
.explore-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
}

.top-categories{
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.top-categories h5{
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 5px;
}

.top-categories h2{
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
}

.category-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.category-card{
    flex: 1 1 calc(20% - 20px);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.category-image{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-name{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

/** FINAL **/

.cta-section{
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    background-color: #f1f1f1;
    border-radius: 20px;
    overflow: hidden;
}

.cta-column{
    flex: 1;
    padding: 40px;
}

.cta-title{
    color: #ff6b6b;
    font-size: 14px;
    line-height: 1.2;
}

.cta-text{
    color: #666;
    color: #7a7772;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
}

.cta-button{
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
}

.cta-button:hover{
    background-color: #000000;
}


.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-input{
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px 0 0  25px;
}

.newsletter-button{
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

.newsletter-button:hover{
    background-color: #000000;
}

.blue-text{
    color: #007bff;
}

.header2 {
    width: 100%;
    height: 20vh;
    background-color: #000000;
    position: relative;
    border-top-left-radius: 12vh; 
    border-top-right-radius: 12vh; 
}

.header2 p {
    text-align: center;
    margin: 0; 
    font-size: 14px;
    color: white; 
}