body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;               
    height: 100vh;  
    background: url("https://c4.wallpaperflare.com/wallpaper/556/382/458/fantasy-art-artwork-fan-art-science-fiction-wallpaper-preview.jpg");     
    

}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#game {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #444;
    border-radius: 8px;
   background: url("https://c4.wallpaperflare.com/wallpaper/780/165/226/digital-art-artwork-video-games-bloodborne-wallpaper-preview.jpg");
}
.room {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    margin-bottom: 20px;
    display: none;
}

.room h2 {
    margin-top: 0;
}

#room1 {
    background-image: url('https://media.istockphoto.com/id/1283022900/photo/open-door-with-key.jpg?s=612x612&w=0&k=20&c=TazUzQSI-vN13ccK1qgTjuXgIy-vRDx-hZPPGnP7nkw=');
}

#room2 {
    background-image: url('https://c0.wallpaperflare.com/preview/420/125/157/book-float-library-bookstore.jpg');
}

.object {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
}

#inventory {
    text-align: left;
}

#inventoryList {
    list-style-type: none;
    padding: 0;
}

.navButton {
    padding: 10px;
    margin: 10px;
    background-color: #555;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

#dialogue {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #555;
    padding: 20px;
    border-radius: 10px;
}

#dialogueText {
    margin-bottom: 20px;
}

#controls {
    margin-top: 20px;
}

#controls button {
    padding: 10px;
    margin: 5px;
    background-color: #555;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}
