.bgbg { background-image: url("images/DOORBG.png"); background-position: center; /* Center the image */ background-repeat: no-repeat; /* Do not repeat the image */ background-size: cover; /* Resize the background image to cover the entire container */ height: 45rem; display: flex; flex-wrap: wrap; align-items: end; } .transpLayer { color: #DEDEDE; background-image: linear-gradient(to right, rgba(30, 30, 30, 0.9), rgba(255, 255, 255, 0.1)); width: 100%; height: 5rem; display: flex; flex-wrap: wrap; align-items: end; }