|
body { |
|
font-family: Arial, sans-serif; |
|
background-image: url('https://bing.shangzhenyang.com/api/1080p'); |
|
background-repeat: no-repeat; |
|
background-size: cover; |
|
background-attachment: fixed; |
|
background-position-x: center; |
|
margin: 0; |
|
padding: 0; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
height: 100vh; |
|
text-align: center; |
|
} |
|
|
|
.container { |
|
backdrop-filter: blur(10px); |
|
-webkit-backdrop-filter: blur(10px); |
|
-moz-backdrop-filter: blur(10px); |
|
-o-backdrop-filter: blur(10px); |
|
transition: transform 0.3s ease; |
|
background-color: rgba(255, 255, 255, 0.5); |
|
max-width: 600px; |
|
padding: 20px; |
|
border-radius: 10px; |
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); |
|
} |
|
|
|
.container:hover { |
|
transform: scale(1.05); |
|
} |
|
|
|
h2 { |
|
font-size: 18px; |
|
margin-bottom: 20px; |
|
color: #333; |
|
} |
|
|
|
p { |
|
font-size: 18px; |
|
margin-bottom: 30px; |
|
color: #777; |
|
} |
|
|
|
a { |
|
color: #007bff; |
|
text-decoration: none; |
|
font-weight: bold; |
|
} |
|
|
|
a:hover { |
|
text-decoration: underline; |
|
} |
|
|
|
h1 { |
|
font-size: 24px; |
|
} |
|
|
|
form { |
|
margin-top: 20px; |
|
} |
|
|
|
input[type=text] { |
|
border: none; |
|
backdrop-filter: blur(10px); |
|
-webkit-backdrop-filter: blur(10px); |
|
-moz-backdrop-filter: blur(10px); |
|
-o-backdrop-filter: blur(10px); |
|
width: 100%; |
|
background-color: rgba(255, 255, 255, 0.5); |
|
padding: 10px; |
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); |
|
margin-bottom: 10px; |
|
border-radius: 100px; |
|
box-sizing: border-box; |
|
} |
|
|
|
button { |
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); |
|
padding: 10px 20px; |
|
background-color: #3399ff; |
|
color: #fff; |
|
border: none; |
|
cursor: pointer; |
|
} |
|
|
|
.result, .error { |
|
margin-top: 20px; |
|
text-align: left; |
|
} |
|
|
|
.result-container, .error-container { |
|
text-align: center; |
|
} |
|
|
|
.error-container { |
|
color: red; |
|
} |
|
|
|
@media screen and (min-width: 768px) { |
|
form { |
|
display: flex; |
|
justify-content: center; |
|
} |
|
|
|
input[type=text] { |
|
width: 300px; |
|
margin-right: 10px; |
|
margin-bottom: 0; |
|
} |
|
} |
|
|
|
#overlay { |
|
display: none; |
|
position: fixed; |
|
top: 0; |
|
left: 0; |
|
width: 100%; |
|
height: 100%; |
|
background-color: rgba(255, 255, 255, 0); |
|
z-index: 99; |
|
} |
|
|
|
.modal { |
|
z-index: 999; |
|
display: none; |
|
position: fixed; |
|
top: 50%; |
|
left: 50%; |
|
transform: translate(-50%, -50%); |
|
background-color: #fff; |
|
padding: 20px; |
|
box-sizing: border-box; |
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); |
|
background-color: rgba(255, 255, 255, 0.4); |
|
backdrop-filter: blur(30px); |
|
-webkit-backdrop-filter: blur(30px); |
|
-moz-backdrop-filter: blur(30px); |
|
-o-backdrop-filter: blur(30px); |
|
border-radius: 20px; |
|
} |
|
|
|
#close { |
|
position: absolute; |
|
top: 10px; |
|
right: 10px; |
|
cursor: pointer; |
|
} |
|
|
|
.button-container { |
|
display: flex; |
|
justify-content: space-between; |
|
} |
|
|
|
.button-container button { |
|
margin-right: 10px; |
|
} |
|
|