|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap'); |
|
|
|
* { |
|
margin: 0; |
|
padding: 0; |
|
box-sizing: border-box; |
|
} |
|
|
|
body { |
|
font-family: 'Roboto', sans-serif; |
|
background: linear-gradient(135deg, #667eea, #764ba2); |
|
height: 100vh; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
.container { |
|
background-color: rgba(255, 255, 255, 0.9); |
|
border-radius: 20px; |
|
padding: 40px; |
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); |
|
max-width: 600px; |
|
width: 100%; |
|
} |
|
|
|
.title { |
|
text-align: center; |
|
color: #333; |
|
margin-bottom: 30px; |
|
font-size: 36px; |
|
font-weight: 700; |
|
animation: fadeIn 1s ease-in-out; |
|
} |
|
|
|
.search-box { |
|
display: flex; |
|
margin-bottom: 30px; |
|
} |
|
|
|
#search-input { |
|
flex-grow: 1; |
|
padding: 15px; |
|
font-size: 18px; |
|
border: none; |
|
border-radius: 30px 0 0 30px; |
|
outline: none; |
|
transition: all 0.3s ease; |
|
} |
|
|
|
#search-button { |
|
background-color: #4CAF50; |
|
color: white; |
|
border: none; |
|
padding: 15px 25px; |
|
font-size: 18px; |
|
cursor: pointer; |
|
border-radius: 0 30px 30px 0; |
|
transition: all 0.3s ease; |
|
} |
|
|
|
#search-button:hover { |
|
background-color: #45a049; |
|
} |
|
|
|
.results { |
|
max-height: 400px; |
|
overflow-y: auto; |
|
} |
|
|
|
.result-item { |
|
background-color: white; |
|
border-radius: 10px; |
|
padding: 20px; |
|
margin-bottom: 20px; |
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); |
|
animation: slideIn 0.5s ease-in-out; |
|
} |
|
|
|
.result-item h2 { |
|
color: #1a73e8; |
|
margin-bottom: 10px; |
|
} |
|
|
|
.result-item p { |
|
color: #545454; |
|
font-size: 14px; |
|
} |
|
|
|
@keyframes fadeIn { |
|
from { opacity: 0; } |
|
to { opacity: 1; } |
|
} |
|
|
|
@keyframes slideIn { |
|
from { transform: translateY(50px); opacity: 0; } |
|
to { transform: translateY(0); opacity: 1; } |
|
} |