body{
    font-family: "Cascadia Code", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700px;
    font-style: normal;
    
  }


  .Titulo {
    text-align: center;
    font-size: 30px;
    color: #b96767;
    margin-top: 20px;
    position: relative; /* Establece el contexto de posicionamiento */
}

nav {
    width: 100%;
    height: 50px;

    background-color: #b96767;
    color: white;
    padding: 10px;
}
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center; /* Alinea los elementos a la derecha */
    margin-right: 32px;
}

nav ul li {
    margin-right: 10px;
}

nav ul li a {
    text-decoration: none; /* Elimina el subrayado de los enlaces */
    color: white; /* Asegura que el color del texto sea blanco */
}
.main{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
h2 , p {
    display: block;
    margin-top: 60px;
    font-size: 20px;
}
.pie{text-align: center;}
a{
    text-decoration: none;
    color: #b96767;
    font-style: bold;
}
a:hover{
    color:blue
}
.menu:hover{
    color: blue;
}
.logo{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute; /* Posiciona la imagen absolutamente */
    top: 10px;          /* Ajusta la distancia desde la parte superior */
    left: 10px;         /* Ajusta la distancia desde la izquierda */
}
.container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
    border: 8px solid #b96767;
    padding: 10px;
    border-radius: 10px;
    border-style: ridge;
}
/*Pagina Game1*/  
.juego {
    display: flex;
    flex-wrap: wrap; /* Permite que las imágenes se ajusten a múltiples líneas */
    gap: 5px; /* Espacio entre las imágenes */
    margin-top: 20px;
    border: 8px solid #b96767;
    padding: 10px;
    border-radius: 10px;
    border-style: ridge;
    width: 75%;
    height: 1500px;
}

.juego img {
    width: 15%;
    height: 15%;
    object-fit: cover;
    border-radius: 10px; /* Bordes redondeados para las imágenes */
    padding: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para las imágenes */
}
.F1{
    display: flex;
    justify-content: space-around;
}
.Random{
    border: 8px solid #b96767;
    padding: 10px;
    border-radius: 10px;
    border-style: ridge;
    margin-top: 20px;
}
.Random h2{
    font-size: 30px;
    text-align: center;
}
.Random img {
    display: block;
    margin: 0 auto;
    text-align: center;
    /* Puedes agregar un tamaño si lo deseas */
    max-width: 200px;
}
.chat-box {
    margin: 20px auto 0 auto;
    max-width: 300px;
    border: 2px solid #b96767;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}
.chat-mensajes {
    height: 120px;
    overflow-y: auto;
    border: 1px solid #eee;
    margin-bottom: 8px;
    padding: 5px;
    font-size: 14px;
    background: #fafafa;
}
#chat-input {
    width: 70%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #b96767;
}
#chat-form button {
    width: 25%;
    padding: 5px;
    border-radius: 5px;
    border: none;
    background: #b96767;
    color: #fff;
    font-weight: bold;
}
#img-aleatoria{
    max-width:200px;
    display:block;
    margin:auto;
}
.overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Imagen superpuesta */
.overlay img {
    max-width: 80%;
    max-height: 80%;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 0 20px black;
}