<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 Not Found</title>
<style>
body {
font-family: 'Arial', sans-serif;
color: #333;
text-align: center;
padding: 20px;
background-color: #f4f4f4;
}
h1 {
font-size: 2em;
}
p {
font-size: 1em;
}
a {
color: #007bff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.search-container {
margin-top: 20px;
}
.search-container input[type="text"],
.search-container input[type="submit"] {
padding: 10px;
margin: 5px 0;
width: calc(100% - 22px);
}
/* Адаптация для больших экранов */
@media (min-width: 600px) {
body {
padding: 50px;
}
h1 {
font-size: 50px;
}
p {
font-size: 20px;
}
.search-container input[type="text"] {
width: 200px; /* Фиксированная ширина для десктопов */
}
.search-container input[type="submit"] {
width: auto;
}
}
</style>
</head>
<body>
<h1>404 Error</h1>
<p>Sorry, the page you are looking for cannot be found!</p>
<p><a href="/">Go back to the Homepage</a></p>
<div class="search-container">
<input type="text" placeholder="Search...">
<input type="submit" value="Search">
</div>
</body>
</html>