body { background-color: lightgreen; /* Smoothly transition the background color */ transition: background-color .5s; } .content { display: flex; } .left-content { flex: 1; padding: 20px; font-size: 1.5em; font-weight: bold; } .perfect-size { width: 200px; height: 40px; } .typing-effect-1 { animation: typing-1 3s steps(40, end) forwards; } .typing-effect-2 { animation: typing-2 4s steps(40, end) forwards; } .typing-effect-1, .typing-effect-2 { white-space: nowrap; overflow: hidden; border-right: 2px solid; } @keyframes typing-1 { 0% { width: 0; } 99.9% { width: 100%; } 100% { width: 100%; border-right: none; } } @keyframes typing-2 { 0% { width: 0; } 99.9% { width: 100%; } 100% { width: 100%; border-right: none; } } .right-content { flex: 1; display: flex; flex-direction: column; /* Stack elements vertically */ align-items: flex-start; /* Align content to top left */ /* Remove center alignment */ } .typing-animation { overflow: hidden; white-space: nowrap; animation: typing 3.5s steps(40, end) forwards; } .middle-content { flex: 1; /* Removed most styles, they are redundant with right-content */ margin-top: 5vh; /* Adjusted margin from top */ } .player { height: 80vh; display: flex; align-items: center; flex-direction: column; justify-content: center; } .details { display: flex; align-items: center; flex-direction: column; justify-content: center; margin-top: 25px; } .track-art { margin: 25px; height: 250px; width: 250px; background-image: url("https://images.pexels.com/photos/262034/pexels-photo-262034.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260"); background-size: cover; border-radius: 15%; } .now-playing { font-size: 1rem; } .track-name { overflow: hidden; border-right: 2px solid; animation: typing 3.5s steps(40, end) forwards; font-size: 1.5rem; } .track-artist{ white-space: nowrap; overflow: hidden; border-right: 2px solid; animation: typing 3.5s steps(40, end) forwards; font-size: 3rem; } @keyframes typing { 0% { width: 0; } 99.9% { width: 100%; } 100% { width: 100%; border-right: none; } } .buttons { display: flex; flex-direction: row; align-items: center; } .playpause-track, .prev-track, .next-track { padding: 25px; opacity: 0.8; /* Smoothly transition the opacity */ transition: opacity .2s; } .playpause-track:hover, .prev-track:hover, .next-track:hover { opacity: 1.0; } .slider_container { width: 75%; max-width: 400px; display: flex; justify-content: center; align-items: center; } /* Modify the appearance of the slider */ .seek_slider, .volume_slider { -webkit-appearance: none; -moz-appearance: none; appearance: none; height: 5px; background: black; opacity: 0.7; -webkit-transition: .2s; transition: opacity .2s; } /* Modify the appearance of the slider thumb */ .seek_slider::-webkit-slider-thumb, .volume_slider::-webkit-slider-thumb { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 15px; height: 15px; background: white; cursor: pointer; border-radius: 50%; } .seek_slider:hover, .volume_slider:hover { opacity: 1.0; } .seek_slider { width: 60%; } .volume_slider { width: 30%; } .current-time, .total-duration { padding: 10px; } i.fa-volume-down, i.fa-volume-up { padding: 10px; } i.fa-play-circle, i.fa-pause-circle, i.fa-step-forward, i.fa-step-backward { cursor: pointer; } .predicted-info { margin-top: 1em; /* Adjust margin for spacing */ text-align: left; /* Align text to the left */ }