hacklab_web/copia_styles.css
2025-11-04 15:07:37 +01:00

345 lines
7.3 KiB
CSS
Executable file

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');
body {
background-color: #000000;
color: #00ff00;
font-family: 'Special Elite', 'Courier New', Courier, monospace;
display: flex;
justify-content: center;
align-items: flex-start;
height: 100vh;
margin: 0;
padding: 0;
overflow-x: hidden;
}
.vertical-marquee {
position: fixed;
top: 0;
bottom: 0;
width: 20px;
background-color: #000;
color: #00ff40;
font-family: 'Press Start 2P', sans-serif;
font-size: 0.8em;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
.vertical-marquee.left {
left: 0;
}
.vertical-marquee.right {
right: 0;
}
.scrolling-text {
writing-mode: vertical-rl;
text-orientation: mixed;
text-align: center;
animation: scrollUp 10s linear infinite;
}
@keyframes scrollUp {
0% {
transform: translateY(100%);
}
100% {
transform: translateY(-100%);
}
}
.container {
text-align: center;
max-width: 95%;
width: calc(100% - 40px); /* Reduce the width by the width of both marquees */
border: 2px solid #00ff00;
padding: 20px;
background-color: #000;
box-shadow: 0 0 20px #00ff00;
position: relative;
z-index: 10;
overflow-y: auto;
max-height: 90vh;
}
header {
text-align: center;
}
header marquee {
font-size: 1.2em;
color: #ff0080;
}
h1 {
font-family: 'Press Start 2P', sans-serif;
margin: 20px 0;
font-size: 3.5em; /* Aumentar el tamaño del título */
text-transform: uppercase;
color: #ff69b4;
text-shadow: 3px 3px 0 #ff0000, -1px -1px 0 #ff0000, 1px -1px 0 #ff0000, -1px 1px 0 #ff0000, 1px 1px 0 #ff0000;
}
main {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.content {
display: flex;
justify-content: center;
width: 100%;
gap: 20px;
}
.column-left, .column-right {
width: 48%;
text-align: left;
}
h2 {
margin: 30px 0 10px;
font-size: 1.8em;
text-decoration: underline;
color: #ff0080;
}
p, li {
margin: 10px 0;
line-height: 1.6;
}
.datetime {
color: #ff0080;
}
.title {
color: #00ff00;
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin: 10px 0;
}
a {
color: #00ff00;
text-decoration: none;
position: relative;
z-index: 0;
}
a:hover {
color: #000000; /* Cambiar el color de la letra a negro en hover */
text-decoration: none;
}
a::before {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -3px;
top: -3px;
background: #ff0080;
z-index: -1;
transition: transform 0.3s;
transform: scaleX(0);
transform-origin: left;
}
a:hover::before {
transform: scaleX(1);
}
.top-left-buttons {
display: flex;
justify-content: center; /* Centra los botones horizontalmente */
gap: 2em; /* Mantiene la separación entre los botones */
margin-bottom: 20px; /* Espacio entre los botones y el contenido debajo */
}
.top-left-buttons .button {
background-color: #00ff00;
color: #000000;
padding: 15px 30px; /* Aumentar el padding para hacer los botones más grandes */
text-decoration: none;
font-family: 'Special Elite', 'Courier New', Courier, monospace;
font-size: 2em; /* Aumentar el tamaño de la fuente en los botones */
border-radius: 5px;
border: 2px solid #00ff00;
box-shadow: 0 4px #008000;
transition: all 0.3s ease;
}
.top-left-buttons .button:hover {
background-color: #ff69b4; /* Fondo rosa al hacer hover */
color: #00ff00; /* Letra verde al hacer hover */
box-shadow: 0 6px #00ff00, 0 0 10px #ff69b4; /* Sombra verde y resplandor */
transform: translateY(-2px); /* Levemente hacia arriba para el efecto de "sobresalir" */
}
.icons img {
width: 50px;
margin: 0 10px;
}
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
text-align: center;
margin-top: 20px;
font-size: 0.8em;
padding: 10px 0;
}
.footer-left, .footer-right {
flex: 1;
}
.footer-center {
flex: 2;
}
.footer-img {
width: 400px;
height: auto;
}
footer a {
color: #00ff00;
}
footer a:hover {
color: #000000; /* Cambiar el color de la letra a negro en hover */
}
/* ASCII art styles */
.ascii {
font-family: 'Courier New', Courier, monospace;
white-space: pre;
color: #00ff00;
margin: 20px 0;
line-height: 1.2;
}
/* Media Query para móviles (pantallas menores de 768px) */
@media only screen and (max-width: 768px) {
/* Ajusta el cuerpo para móviles */
body {
overflow-x: hidden;
font-size: 0.9em; /* Reduce el tamaño general de la fuente */
}
.container {
max-width: 100%;
padding: 10px;
overflow-x: hidden;
}
/* Títulos más pequeños en móviles */
h1 {
font-size: 1.8em; /* Reduce el tamaño del título */
}
h2 {
font-size: 1.5em; /* Reduce el tamaño de los subtítulos */
}
p, li {
font-size: 0.85em; /* Ajusta el tamaño de texto para mejor legibilidad */
line-height: 1.4;
}
/* Coloca las columnas una debajo de la otra en móviles */
.content {
flex-direction: column;
gap: 10px; /* Espacio entre las columnas al pasar a vertical */
}
.column-left, .column-right {
width: 100%; /* Hacer que cada columna ocupe todo el ancho */
}
/* Ajusta el tamaño de los botones para móviles */
.top-left-buttons {
flex-direction: column; /* Coloca los botones en vertical */
gap: 10px; /* Añade espacio entre los botones */
width: 100%;
}
.top-left-buttons .button {
font-size: 1em; /* Ajusta el tamaño de la fuente en los botones */
padding: 10px 15px; /* Ajuste del padding en móviles */
width: 100%; /* Hacer que el botón ocupe todo el ancho disponible */
}
/* Ajuste de ASCII art (las líneas ===) */
.ascii {
font-size: 0.7em; /* Reduce el tamaño del arte ASCII */
line-height: 0.9; /* Ajusta el espaciado de las líneas */
margin: 10px 0; /* Reduce el margen para móviles */
}
/* Ocultar los marcos laterales en móviles */
.vertical-marquee {
display: none;
}
footer {
font-size: 0.75em; /* Reduce el tamaño del pie de página */
}
/* Ajuste de imágenes en el footer */
.footer-img {
width: 150px; /* Ajustar las imágenes en el pie de página para móviles */
}
}
/* Media Query para pantallas muy pequeñas (menores de 400px) */
@media only screen and (max-width: 400px) {
h1 {
font-size: 1.5em; /* Reduce aún más el tamaño del título */
}
h2 {
font-size: 1.3em; /* Ajusta el subtítulo */
}
p, li {
font-size: 0.75em; /* Texto más pequeño */
}
.ascii {
font-size: 0.6em; /* Ajusta el tamaño de las líneas ASCII */
line-height: 0.8; /* Reduce el espaciado entre las líneas */
}
.top-left-buttons .button {
font-size: 0.8em; /* Botones aún más pequeños */
padding: 8px 12px;
}
footer {
font-size: 0.6em;
}
}