-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathestilos.css
More file actions
148 lines (133 loc) · 3.04 KB
/
estilos.css
File metadata and controls
148 lines (133 loc) · 3.04 KB
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html{
height: 100%;
}
body{
min-height: 100vh;
background: url("https://cdn.pixabay.com/photo/2018/06/09/21/37/summer-thunder-storm-3465247_1280.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
/* CONTENEDOR DE BÚSQUEDA */
.search-container {
margin: 20px 0;
width: 90%;
max-width: 450px;
padding: 15px;
background-color: rgba(255, 255, 255, 0.95);
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
/* TARJETA PRINCIPAL (CARD) */
.card{
border: none;
border-radius: 15px;
margin: 15px 0 30px 0;
width: 90%;
max-width: 385px;
padding: 20px;
background-color: #333;
color: white;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
/* TITULOS Y TEXTO */
.titulo{
font-size: 2.0rem;
text-align: center;
color: #ffde00;
text-shadow: 1px 1px 3px #000;
margin-bottom: 8px;
}
.pokemon-name{
color: #007bff;
font-size: 1.6rem;
text-transform: capitalize;
margin: 8px 0;
}
/* IMAGEN DEL POKEMON */
.pokemon-display {
width: 100%;
}
.pokemon-img{
width: 80%;
height: auto;
max-height: 180px;
object-fit: contain;
margin: 10px auto;
display: block;
filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.7));
}
.message-box {
margin-top: 10px;
padding: 10px;
border-radius: 5px;
font-weight: bold;
text-align: center;
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
/* Estilos del buscador */
.search-actions{
display: flex;
gap: 10px;
margin-top: 10px;
}
/* --- MEJORAS DEL INPUT --- */
.search-input{
padding: 12px;
border: 2px solid #ccc;
border-radius: 8px;
flex-grow: 1;
font-size: 1rem;
transition: border-color 0.3s, box-shadow 0.3s;
}
/* Efecto al hacer foco en el input (Mejora visual) */
.search-input:focus {
border-color: #ffde00;
box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
outline: none;
}
/* --- MEJORAS DEL BOTÓN --- */
.search-button{
padding: 9px 12px;
background-color: #dc0000;
color: white;
border: 2px solid #de0000;
border-radius: 20px;
font-weight: bold;
font-size: 1rem;
transition: background-color 0.2s, transform 0.1s;
}
/* Efecto al pasar el mouse (hover) y presionar (active) */
.search-button:hover {
background-color: #ff0000; /* Rojo más brillante al pasar el mouse */
}
.search-button:active {
transform: scale(0.98); /* Pequeño "click" al presionar */
}
/* Estilos específicos del título del buscador (para sobrescribir .titulo) */
.search-container .titulo {
font-size: 1.5rem;
color: #333;
text-shadow: none;
}
/* Estilos para el título principal de la tarjeta */
#cardTitle {
font-size: 2.5rem;
color: #d0d0d0;
text-shadow: 2px 2px 4px #000000;
}