#starContainer { position: fixed; top: 10px; right: 10px; display: flex; align-items: center; visibility: hidden; z-index: 2; } .star { width: 20px; height: 20px; margin: 0 2px; background-image: url('../img/star.png'); background-size: cover; } body { width: 100vw; height: 100vh; overflow: hidden; } .container { width: 100%; height: 100vh; } section { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s ease; } .hide { display: none; } .image { width: 100%; height: 100%; } #imgleft.expanded, #imgright.expanded { transform: scale(1.5); z-index: 1; } .expanded { position: absolute; !important; top: 0; !important; left: 0; !important; width: 100%; !important; } /*#imgleft.expanded {*/ /* margin-right: -100vw;*/ /*}*/ /*#imgright.expanded {*/ /* margin-left: -100vw;*/ /*}*/ .image { object-fit: cover; } section a { display: block; height: 100%; width: 100%; background-size: cover; background-position: center; text-decoration: none; } #left { background-color: blue; /*background-image: url('');*/ } #right { background-color: red; /*background-image: url('');*/ } .text-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 24px; font-family: 'inter', sans-serif; font-weight: 400; text-align: center; padding: 10px; color: white; } .question { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background-color: #FFF1DD; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); border-radius: 10px; margin-top: 150px; padding: 30px; width: 400px; height: auto; } .question h2 { font-family: 'inter', sans-serif; font-weight: 400; font-size: 35px; color: black; margin: 0; } .question p { font-family: 'Manrope', sans-serif; font-size: 25px; color: black; } .choices { display: flex; } .choices > section { flex: 1; } button { background-color: #357266; color: white; width: 214px; height: 59px; padding: 10px 20px; margin-top: 90px; font-family: 'Manrope', sans-serif; font-size: 20px; border: none; border-radius: 10px; cursor: pointer; }