While attempting to create a Google search replica, I encountered an issue wherein the contents ended up superimposed rather than arranged at the center. Is there a method to organize them in a dropwise format?
<!DOCTYPE html>
<html lang="en">
<head>
<title>Search Engine</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<style>
.center {
height: 100vh;
position: relative;
}
.center > div {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%)
}
</style>
</head>
<body>
<div class="container">
<div class="links">
<a href="googleImageSearch.html">Google Image Search</a>
<a href="googleAdvancedSearch.html">Google Advanced Search</a>
</div>
<br>
<div class="center">
<div class="logo">
<img src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" alt="Google Logo" width="272" height="92">
</div>
<br>
<div>
<form action="https://google.com/search">
<input type="text" name="q">
<div class="buttons">
<input type="submit" value="Google Search">
<input type="button" value="I'm Feeling Lucky">
</div>
</form>
</div>
</div>
</div>
</body>
</html>