I'm trying to create a circle at the top of the screen on mobile, similar to the image below.
The circle should take up a percentage of space, with the rest of the content appearing against a blue background as shown in the image. However, I'm having trouble getting the circle just right.
How can I adjust the size and position of the circle to achieve the desired effect?
https://i.sstatic.net/KNTnc.png
.semi-circle {
aspect-ratio: 1/1; /* Maintains a 1:1 aspect ratio for equal height and width */
background: #3D4A6D;
border-radius: 0 80% 80% 0;
box-shadow: inset -3.5rem 1px 0 #364363,
3.5rem 1px 0 #26324C;
}
<div class="semi-circle">
</div>
Thank you in advance for any help provided, and apologies for what may seem like a trivial question.