@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');
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; 
}
p{
    font-family: 'Open Sans', sans-serif;
}
.header{
    width: 100%;
    height: 40vh;
    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: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: calc(100% - 20px);
    top: -90px;
}

.list {
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    min-height: 2rem;
    margin-right: 2rem;
    margin-top: -9rem; 
}

.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;
}

.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;
}

.header_name {
    position: relative;
    top: -10rem;
    width: auto;
    height: auto;
    margin-left: 45rem;
}

.header_name h2{
    font-size: 3em;
    font-weight: 100;
    color: white;
}

.header_name p{
    font-size: 1.3em;
    font-weight: 95;
    color: white;
    margin-left: 3rem;
    
}



.header_description{
    position: relative;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.header_description img {
    position: absolute; 
    top: 66px;
    left: 20%; 
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.header_name2 {
    text-align: center; 
    position: relative; 
}

.header_name2 h1  {
    display: inline-block; 
    margin-left: auto; 
    margin-right: 0; 
    position: relative; 
    left: 20%; 
    top: 70px; 
    font-size: 30px;
}

.header_name2 h2  {
    display: inline-block;
    margin-left: auto; 
    margin-right: 0; 
    position: relative; 
    right: 9rem; 
    top: 8rem; 
    font-size: 25;
}



.header_name2 p {
    display: block;              
    left: 64rem;
    font-size: 1rem;             
    max-width: 600px;            
    position: relative;          
    top: 9rem;                  
    text-align: left;           
}

.header_name2 input {
    width: 1%;                       
    background-color: #f3f3f4;       
    border: none;                   
    padding: 10px 20px;              
    border-radius: 50px;             
    outline: none;                   
    font-size: 14pt;                 
    transition: background-color 0.2s, border 0.2s, box-shadow 0.2s;  
    margin-left: 64rem;  
    margin-top: 10rem;             
    display: block;                 
}


.header_name2 input:hover{
    background-color: white;
    border: solid 1px #f3f3f4;
    box-shadow: 0 0 4px #000000;
}

.header_name2 input:focus{
    background-color: white;
    border: solid 1px #f3f3f4;
    box-shadow: 0 0 4px #000000;
}

.header_name2 button {
    background-color: rgb(247, 77, 77); 
    color: white;                      
    font-weight: 500;                   
    font-size: 14pt;                    
    text-align: center;                 
    padding: 15px;                      
    border: none;                       
    border-radius: 50px;               
    cursor: pointer;                    
    margin-left: 69rem;                 
    margin-top: -45px;                  
    display: block;                  
}

.header_name2 button:hover{
    background-color: black;
}

.header_name2 .game{
    top: 8px;                   
    cursor: pointer;
}

hr {
    flex-grow: 1;
    border: none;
    border-top: 1px solid #ccc;
    width: 69%; 
    height: 1px; 
    margin-top: 220px; 

}


.description{
    background-color: whitesmoke;
    padding: 40px 20px;
    margin-top: 99px;
    margin-left: 21rem;
    width: 65%;
    height: 15vh;
    border-radius: 40px;
} 

.description h2 {
    position: relative;
    top: 10px; 
    left: 40px; 
    font-size: 25px;
}

.description p{
    display: block;              
    left: 40px;
    font-size: 1rem;             
    max-width: 600px;            
    position: relative;   
    top: 10px;
}

.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; 
}

.games h2{
    margin-left: 20rem;
    color: rgb(247, 77, 77);
    font-size: 20px;
}

.games h1{
    margin-left: 20rem;
}

.games button{
    background-color: rgb(247, 77, 77); 
    color: white;                      
    font-weight: 500;                   
    font-size: 14pt;                    
    text-align: center;                 
    padding: 15px;                      
    border: none;                       
    border-radius: 50px;               
    cursor: pointer;                    
    margin-left: 100rem;                 
    margin-top: -65px;                  
    display: block;    
}

.games button:hover{
    background-color: black;
}

.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;
}
