.content-layer { position: absolute; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; } .card { display: inline-block; box-shadow: 0 1px 2px 0 rgba(0,0,0,.15); position: relative; padding: 20px; display: flex; flex-direction: column; align-items: center; background-color: rgba(5, 220, 227, 0.95); width: 50vw; min-height: 25vh; border-radius: 25px; overflow-y: auto; margin-bottom: 20px; } .card h1, .card p { opacity: 1; } .video-container { width: 85%; overflow-y: auto; } .portfoliobackground { background-color:black; width:100%; height:100%; padding:20px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; overflow: auto; } html, body { height: 100%; width: 100%; margin: 0; padding: 0; font-family: 'Orbitron', sans-serif; line-height: 1.5; color: #08F7FE; }