.modal-ships { background-image: url("/assets/spaceships/blueprint.png"); background-size: cover; font-size: 25px; width: 1000px; /* Set the width to the image width */ height: 560px; /* Set the height to the image height */ position: relative; margin: auto; padding: 40px; color: rgb(255, 255, 255); } .infos-ships { padding: 20px; margin-bottom: 20px; /* Space below the info box */ } .ship-info { background-color: rgba(0, 0, 0, 0.363); border-radius: 5px; width: fit-content; padding: 5px; } .btn-close-ships { position: absolute; font-size:x-large; bottom: 20px; left: 20px; background-color: rgba(255, 255, 255, 0.8); border: none; color: rgb(252, 252, 252); padding: 10px 20px; cursor: pointer; border-radius: 5px; transition: background-color 0.3s ease; } .btn-close-ships:hover { background-color: rgba(255, 255, 255, 1); }