Serg4451D commited on
Commit
be3de4e
·
verified ·
1 Parent(s): c183e7a

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +88 -18
style.css CHANGED
@@ -1,28 +1,98 @@
 
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
 
 
 
 
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
2
+
3
+ * {
4
+ margin: 0;
5
+ padding: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
  body {
10
+ font-family: 'Roboto', sans-serif;
11
+ background: linear-gradient(135deg, #667eea, #764ba2);
12
+ height: 100vh;
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
16
+ }
17
+
18
+ .container {
19
+ background-color: rgba(255, 255, 255, 0.9);
20
+ border-radius: 20px;
21
+ padding: 40px;
22
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
23
+ max-width: 600px;
24
+ width: 100%;
25
+ }
26
+
27
+ .title {
28
+ text-align: center;
29
+ color: #333;
30
+ margin-bottom: 30px;
31
+ font-size: 36px;
32
+ font-weight: 700;
33
+ animation: fadeIn 1s ease-in-out;
34
+ }
35
+
36
+ .search-box {
37
+ display: flex;
38
+ margin-bottom: 30px;
39
  }
40
 
41
+ #search-input {
42
+ flex-grow: 1;
43
+ padding: 15px;
44
+ font-size: 18px;
45
+ border: none;
46
+ border-radius: 30px 0 0 30px;
47
+ outline: none;
48
+ transition: all 0.3s ease;
49
  }
50
 
51
+ #search-button {
52
+ background-color: #4CAF50;
53
+ color: white;
54
+ border: none;
55
+ padding: 15px 25px;
56
+ font-size: 18px;
57
+ cursor: pointer;
58
+ border-radius: 0 30px 30px 0;
59
+ transition: all 0.3s ease;
60
  }
61
 
62
+ #search-button:hover {
63
+ background-color: #45a049;
 
 
 
 
64
  }
65
 
66
+ .results {
67
+ max-height: 400px;
68
+ overflow-y: auto;
69
  }
70
+
71
+ .result-item {
72
+ background-color: white;
73
+ border-radius: 10px;
74
+ padding: 20px;
75
+ margin-bottom: 20px;
76
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
77
+ animation: slideIn 0.5s ease-in-out;
78
+ }
79
+
80
+ .result-item h2 {
81
+ color: #1a73e8;
82
+ margin-bottom: 10px;
83
+ }
84
+
85
+ .result-item p {
86
+ color: #545454;
87
+ font-size: 14px;
88
+ }
89
+
90
+ @keyframes fadeIn {
91
+ from { opacity: 0; }
92
+ to { opacity: 1; }
93
+ }
94
+
95
+ @keyframes slideIn {
96
+ from { transform: translateY(50px); opacity: 0; }
97
+ to { transform: translateY(0); opacity: 1; }
98
+ }