 /* ==================================== Global Styles ============================*/

body{
    background-color: #121212;
    font-family: Arial, Verdana;
    margin: 0;
    box-sizing: border-box;
    color: #f0f0f0;
}

*{
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
    color: inherit;
    font-weight: bolder;
}

main a:hover{
   color: burlywood;
}

p{
    color: rgb(170, 156, 156);
    line-height: 1.6;
    width: 100%;
}

 /* ============================= Header style section ===========================*/

header h1{
    text-align: center;
    padding: 20px;
}

.head-info{
    text-align: center;
    color: plum;
    padding: 16px;
}

 
 /*================================= Middle section style============================ */
 
 main{
    padding: 15px;
 }

 .game-list h2{
    border-bottom: 1px solid plum;
    margin-bottom: 40px;
 }

 main h1{
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 20px;
    padding: 40px 20px;
    color: #f0f0f0;
 }
 


#welcome-section p{
    font-size: 1.1rem;
    line-height: 1.6;
    color: #a0a0a0;
    justify-content: justify;
}

#Welcome-section a{
    text-decoration: none;
}

#Action, #Adventure, #Multiplayer, #Horror{
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
}




span{
    display: inline-block;
    border: 1px solid black;
    padding: 3px 8px;
    border-radius: 8px;
    background-color: #333;
}

        
img{
     width: 100%;
    align-items: center;
    height: auto;
    max-height: 250px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(212, 17, 203, 0.521);
}


img:hover{
    transform: scale(1.05);
    transition: transform 0.9s;
}

time{
    color: #cdcccc;
}

.game-info{
    padding: 8px;
}

.game_card{
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    color: #ffffff;
}

.game_card:hover{
    transform: translateY(-10px);
    transition: transform 0.3s ease-in-out;
    background-color: rgb(75, 70, 70);
    border: 1px solid white;
    border-radius: 20px;
}


@media (max-width: 480px) {
   .contents{
            display: grid;
            gap: 30px;
            grid-template-columns: 1fr;
        }
}

@media (min-width: 481px) and (max-width: 768px) {
   .contents{
            display: grid;
            gap: 30px;
            grid-template-columns: repeat(2, 1fr);
        }
}

@media (min-width: 769px) {
   .contents{
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }
}

