/* Estilos para menús y elementos de UI */

/* Menú principal */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 100;
    font-family: Jersey, Arial, sans-serif;
}

.button-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.button-container button {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    font-family: Jersey, Arial, sans-serif;
}

.button-container button:hover {
    background-color: #45a049;
}

/* Menú de roles */
.role-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    width: 80%;
    max-width: 500px;
    z-index: 100;
    font-family: Jersey, Arial, sans-serif;
}

.role-menu h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-family: Jersey, Arial, sans-serif;
}

.role-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.role-buttons button {
    padding: 15px 30px;
    font-size: 18px;
    color: white;
    font-family: Jersey, Arial, sans-serif;
}

#bird-role {
    background-color: #2196F3;
}

#bird-role:hover {
    background-color: #0b7dda;
}

#stone-role {
    background-color: #795548;
}

#stone-role:hover {
    background-color: #5d4037;
}

/* Menú de salas */
.room-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    width: 80%;
    max-width: 500px;
    z-index: 100;
    font-family: Jersey, Arial, sans-serif;
}

.room-menu h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-family: Jersey, Arial, sans-serif;
}

.create-room {
    margin: 20px 0;
}

#room-name {
    padding: 10px;
    width: 60%;
    margin-right: 10px;
    border-radius: 5px;
    border: none;
    font-family: Jersey, Arial, sans-serif;
}

#create-room-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    font-family: Jersey, Arial, sans-serif;
}

#create-room-btn:hover {
    background-color: #45a049;
}

#room-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-family: Jersey, Arial, sans-serif;
}

.room-item button {
    padding: 0.3rem 1rem;
    background-color: #2196F3;
    color: white;
    font-family: Jersey, Arial, sans-serif;
}

.room-item button:hover {
    background-color: #0b7dda;
}

.room-item button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.back-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    font-family: Jersey, Arial, sans-serif;
}

.back-button:hover {
    background-color: #e53935;
}
