I really need help with padding not applied for modal top up as well as hidden. The problem is in the end of the code. This pop up div is not in the centre. It is also very small, the padding is not applied and visible by default, even though, I used hidden tag. I suspect it is because I used flex, however I can not fix it, no matter what I do. I add a screenshot how does it look. Any help would be highly appreciated!
padding is not applied, as well as hidden
<!doctype html>
<html>
<!-- Tutorials followed:
https://www.youtube.com/watch?v=wTuu30kyk4c - add custom fonts
https://www.youtube.com/watch?v=Kh3xj-5nMqw - initiate the project
https://dev.to/dailydevtips1/tailwind-css-full-screen-video-header-5539 - background video
-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./output.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap"
rel="stylesheet">
<script type="module" src="./scripts/signInPopUp.js"></script>
<title>Price Sentinel</title>
</head>
<body class="relative min-h-screen overflow-hidden flex flex-col items-center justify-center space-y-24">
<!-- Background video -->
<video autoplay muted loop playsinline class="fixed top-0 left-0 w-full h-full object-cover z-0">
<source src="./videos/main-abstract.mp4" type="video/mp4">
</video>
<!-- Header-->
<div class="absolute top-0 left-0 w-full p-6 flex justify-end">
<button id="openSignInButton" class="text-white backdrop-blur-xl px-7 py-3 font-bodoni italic text-3xl hover:opacity-70 rounded-xl">
Sign In
</button>
</div>
<!-- Centre logo and text-->
<h1 class="relative text-[8rem] font-bodoni text-white italic text-center z-10">
Price Sentinel
</h1>
<h2 class="relative text-2xl text-white font-bodoni italic text-center -mt-16 z-10">
Track prices of desired products
</h2>
<!-- Centered input field -->
<div class="text-3xl italic backdrop-blur-xl max-w-4xl p-4 rounded-full z-10">
<div class="flex items-center w-full bg-white/80 rounded-full">
<button href="main.html" class="flex items-center justify-center w-16 h-16 rounded-full bg-white m-5 hover:bg-gray-100 shrink-0">
<img src="./icons/search-icon.svg" alt="Search icon" class="w-7 h-7">
</button>
<input
class="flex-grow font-bodoni text-black h-16 px-7 bg-white rounded-full placeholder:italic placeholder:text-black focus:outline-none focus:ring-2 focus:ring-[#001352]/50 hover:bg-gray-50"
type="text" placeholder="Link to the product...">
<div class="rounded-full p-4">
</div>
</div>
</div>
<!-- Sign In Blur -->
<div id="signInBlur" class="fixed top-0 left-0 w-full h-full -z-10 backdrop-blur-xl">
</div>
<!-- Sign In Pop Up -->
<div id="signInPopUp" class="absolute top-1/2 bg-white p-20 hidden">
<h1>Sign In</h1>
</div>
</body>
</html>```
I tried applying hidden on header and it worked. Anywhere else it doesn't work.
./output.cssand./scripts/signInPopUp.js, so we don't know what those contain / do.)