File size: 2,642 Bytes
f34a8a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
* {
  box-sizing: border-box; /* Asegura que el padding no expanda el ancho de los elementos */
}

body {
  margin: 0;
  width: 100%;
  background-color: var(--blanco-pagina);
}

.main-div h1 {
  color: var(--verde-500);
  font-size: 500%;
  text-shadow: -2px -2px 0 var(--verde-900), -2px 2px 0 var(--verde-900), 2px -2px 0 var(--verde-900),
    2px 2px 0 var(--verde-900);
  margin-bottom: 25px;
}

.main-div span {
  color: #383838;
  font-weight: 600;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-div {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 90vw;
}

/* Item styling */
.item-grid {
  position: relative; /* Para posicionar correctamente el overlay */
  width: 100%;
  aspect-ratio: 1; /* Cuadrado */
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  color: white;
  max-height: 150px;
  border: 1px solid black;
}

.item-grid:hover{
  transform: translateY(-3px);
  transition: ease-out 0.3s;
}

/* Overlay styling */
.item-grid .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay-intensidad);
  z-index: 1;
  border-radius: 4px;
}

/* Title and paragraph */
.item-title,
.item-paragraph {
  position: relative;
  z-index: 2;
  margin: 5px 0;
}

.item-title {
  font-size: xx-large;
  font-weight: bold;
  color: #00fc69;
  text-decoration: none;
  transition: 0.3s ease-out;
}

.item-title:hover {
  color: #00c569;
}

.item-paragraph {
  color: white;
}

/* Responsive adjustments */
@media (max-width: 950px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* MODO OSCURO */

body.dark-mode {
  background-color: var(--dark-blue);
  color: white;
}

body.dark-mode h1 {
  text-shadow: -2px -2px 0 var(--verde-900), -2px 2px 0 var(--verde-900), 2px -2px 0 var(--verde-900),
    2px 2px 0 var(--verde-900);
}

body.dark-mode span {
  color: white;
}

body.dark-mode .item-grid{
  border: 1px solid rgb(136, 136, 136);
}