-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
162 lines (136 loc) · 2.85 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
:root {
--main-font: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
--secondary-font: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
main {
height: calc(100vh - 6.1rem);
}
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 5rem;
height: auto;
padding: 0.6rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar h1, span {
padding: 0.4rem;
}
.title {
font-size: 3.5rem;
font-family: var(--main-font);
letter-spacing: 2px;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}
.nav-span {
font-size: 1.4rem;
font-family: Arial, sans-serif;
font-weight: bold;
}
.nav-span a {
color: #333;
transition: color 0.3s;
}
.nav-span a:hover {
color: #0056b3;
}
.container {
display: flex;
align-items: center;
justify-content: space-evenly;
flex-direction: column;
height: 100%;
}
.search-section {
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
}
#card-input {
border: none;
outline: none;
border-bottom: 2px solid black;
font-size: 2rem;
padding: 0.5rem;
background-color: transparent;
transition: border-color 0.3s;
}
#card-input:focus {
border-bottom-color: gray;
}
.input-container select {
width: 100%;
padding: 0.5rem;
border: none;
border-radius: 5px;
background-color: #f8f8ff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
min-height: 9.394rem;
font-size: 1rem;
}
.input-container select:focus {
border-color: gray;
outline: none;
}
.error-text {
color: red;
font-size: 1rem;
font-weight: bold;
font-family: var(--secondary-font);
min-height: 20px;
display: block;
}
.search-button {
background-color: transparent;
padding: 0.5rem 1rem;
font-size: 2rem;
border: none;
outline: none;
border-bottom: 2px solid black;
border-left: 2px solid black;
border-top: 1px solid black;
border-right: 1px solid black;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
margin: 0;
}
.search-button:hover {
box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}
.info-section {
background-color: #f8f8ff;
padding: 1rem;
margin: 0 1rem;
border-radius: 1rem;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
min-width: 27rem;
max-width: 65rem;
}
.card-name {
font-family: var(--secondary-font);
margin-bottom: 0.8rem;
text-decoration: underline;
}
.img-desc-container {
display: flex;
gap: 1rem;
}
.card-img {
width: auto;
min-width: 15rem;
max-height: 15rem;
border-radius: 1rem;
}
.card-desc {
min-width: 10rem;
font-family: var(--main-font);
font-size: 1.4rem;
line-height: 1.3;
}