:root { --bg-color: #d7f8e5; --border-color: #7c9b89; --subtitle-color: #35a363; --link-color: #18bc5a; } html, body { width: 50%; margin: auto; padding: 0; background-color:#a7efb8; } body a { color: var(--link-color); } header { width: 400px; height: 400px; background-size: 103%; background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTIfDYSAyBMCBr8Fx0tBZu1ey6I5hn-YDHSoCoCWIQiOIcmtxbV2l0D3F8&s=10'); } .bg-image { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-image: url('https://ip.index.hr/remote/bucket.index.hr/b/index/4970d8cc-7019-421a-85ee-149b4a231826.jpg?width=1220&height=660&mode=max'); filter: blur(8px); -webkit-filter: blur(4px); background-size: cover; background-repeat: no-repeat; background-position: center center; } .flex { display: flex; } .side-gif { position: fixed; top: 50%; width: 260px; z-index: 0; pointer-events: none; } .gif-left { left: 12.5%; transform: translate(-50%, -50%); } .gif-right { left: 87.5%; transform: translate(-50%, -50%); } .video-wrap { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; margin: 10px 0; } .video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; } .sidebar { background-color: var(--bg-color); max-width: 250px; width: 200px; height: 100vh; border: 1px solid var(--border-color); position: fixed; } article { background-color: var(--bg-color); border: 1px solid var(--border-color); margin-top: 20px; max-width: 370px; margin-left: 10px; margin-right: 10px; } .subtitle { color: var(--subtitle-color); font-size: 18px; font-weight: bold; border-bottom: 2px solid var(--subtitle-color); margin-left: 10px; margin-right: 10px; text-align: right; padding-top: 20px; } article>p { padding: 10px; padding-left: 20px; } .links { list-style-type: '+'; font-size: 16px; } .links li a { color: var(--link-color); letter-spacing: 1px; text-decoration: none; } main { margin-top: -21px; } section>p { padding: 10px; } footer { margin-left: 20px; max-width: 30%; font-size: 12px; } @media only screen and (max-width: 900px) { .side-gif { width: 150px; } } @media only screen and (max-width: 630px) { .side-gif { display: none; } .sidebar { position: relative; max-width: 100%; width: 100%; height: 150px; display: flex; flex-direction: row; flex-wrap: wrap; overflow: hidden; } .flex { flex-wrap: wrap; flex-direction: row; } .right { order: 1; width: 100%; } .left { order: 2; } section { display: flex; flex-wrap: wrap; width: 120px; } }