Spaces:
Sleeping
Sleeping
File size: 2,280 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 | /* Estilos globales */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body,
html {
background: url("../img/index.webp") var(--blanco-pagina) no-repeat center center/cover;
min-height: 100vh;
transition: all 0.5s ease;
}
/* Contenedor principal */
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Contenido principal */
.main-div {
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
flex: 1;
text-align: center;
}
.title-h1 {
color: rgb(248, 248, 248);
font-size: 3rem;
text-shadow: -2px -2px 0 var(--verde-800), -2px 2px 0 var(--verde-800), 2px -2px 0 var(--verde-800),
2px 2px 0 var(--verde-800);
}
.text-p {
color: var(--verde-50);
font-size: 1rem;
margin: 15px 10px 10px 0px;
padding: 5px 0px 5px 0px;
font-weight: bold;
background: rgba(0, 0,0, 0.45);
}
a.btn {
background: linear-gradient(to right, var(--verde-600), var(--verde-500), var(--verde-600));
color: #f1fdf0;
padding: 15px 25px;
margin-top: 20px;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
font-size: 1rem;
border: 1px solid var(--verde-900);
border-bottom: 2px solid var(--verde-900);
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
transition: 0.3s ease-in-out;
display: inline-block;
}
a.btn:hover {
background: linear-gradient(to right, var(--verde-500), var(--verde-400), var(--verde-500));
scale: 1.02;
}
/* Media queries */
@media (max-width: 768px) {
.title-h1 {
font-size: 1.8rem;
}
.text-p,
.btn {
font-size: 0.9rem;
}
.btn {
padding: 8px 16px;
}
}
@media (max-width: 400px) {
.title-h1 {
font-size: 1.5rem;
}
.text-p,
.btn {
font-size: 0.8rem;
}
.btn {
padding: 6px 12px;
}
}
@media (max-width: 300px) {
.title-h1 {
font-size: 1.2rem;
}
.text-p,
.btn {
font-size: 0.7rem;
}
.btn {
padding: 5px 10px;
}
}
/* MODO OSCURO */
body.dark-mode .main-div .title-h1 {
color: #f1fdf0;
text-shadow: -2px -2px 0 var(--verde-800), -2px 2px 0 var(--verde-800), 2px -2px 0 var(--verde-800),
2px 2px 0 var(--verde-800);
}
|