/* styles.css */

/* Importar fuente */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
}

.game-info p {
    font-size: 14px; 
    color: #ccc;
    line-height: 1.5; 
}

body {
    background-color: black;
}

.header {
    background-color: #292727;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 85px;
    padding: 5px 10%;
}

.marca {
    border-radius: 14em;
}

.header .logo {
    cursor: pointer;
    margin-right: auto;
}

.header .logo img {
    height: 70px;
    width: auto;
    transition: all 0.3s;
}

.header .logo img:hover {
    transform: scale(1.2);
}

.header .nav-links {
    list-style: none;
}

.header .nav-links li {
    display: inline-block;
    padding: 0 20px;
}

.header .nav-links li:hover {
    transform: scale(1.1);
}

.header .nav-links a {
    font-size: 700;
    color: #eceff1;
    text-decoration: none;
}

.header .nav-links li a:hover {
    color: #ffbc0e;
}

.header .btn button {
    margin-left: 20px;
    font-weight: 700;
    color: #6e0d0d;
    padding: 9px 25px;
    background: #eceff1;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

.header .btn button:hover {
    background-color: #e2f1f8;
    color: #ffbc0e;
    transform: scale(1.1);
}

/* Filtro de búsqueda */
/* Estilo de la barra de búsqu{seda */
.search-container {
    display: flex;
    justify-content: flex-end; /* Esto alinea el contenido (barra de búsqueda) a la derecha */
    margin: 20px;
    width: 100%; /* Hace que ocupe todo el ancho del contenedor principal */
}

#searchInput {
    width: 25%; /* Ajusta el tamaño de la barra de búsqueda */
    padding: 8px;
    font-size: 14px; /* Tamaño de la fuente más pequeño */
    background-color: #333;
    color: #eceff1;
    border: 2px solid #444;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Efecto cuando el usuario selecciona la barra de búsqueda */
#searchInput:focus {
    background-color: #555;
    outline: none;
}

/* Ajusta el tamaño de la barra de búsqueda */
#searchInput {
    width: 15%;  /* Reduce el ancho a un 15% del contenedor */
    padding: 8px;
    font-size: 14px; /* Tamaño de la fuente más pequeño */
    background-color: #333;
    color: #eceff1;
    border: 2px solid #444;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Efecto cuando el usuario selecciona la barra de búsqueda */
#searchInput:focus {
    background-color: #555;
    outline: none;
}

/* Estilos de las tarjetas de juegos */
.game-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

.game-card {
    position: relative;
    width: 250px;
    height: 350px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Esto asegura que la imagen se acople bien al contenedor */
}

.game-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transition: bottom 0.5s ease;
}

.game-card:hover .game-info {
    bottom: 0;
}

.game-info h3 {
    margin: 0;
    font-size: 18px;
}

.game-info p {
    margin: 5px 0;
}

.price {
    font-size: 16px;
    font-weight: bold;
}

/* Estilo del nombre de usuario (cuando está logueado) */
.header .user-name {
    color: #eceff1;
    font-weight: bold;
    margin-left: 20px;
    background-color: transparent;
    border: none;
    cursor: default;
    font-size: 18px;
}

/* Botón de cerrar sesión */
.logout-btn {
    font-weight: 700;
    color: #6e0d0d;
    padding: 8px 20px;
    background: #eceff1;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #e2f1f8;
    color: #ffbc0e;
    transform: scale(1.1);
}
