Files
LDM-ASIR/projecte-final/main/assets/css/style.css

755 lines
13 KiB
CSS
Raw Normal View History

2025-11-25 22:36:06 +01:00
/*======Reset y estilos generales======*/
*
{
padding: 0;
margin: 0;
box-sizing: border-box;
list-style: none;
text-decoration: none;
}
body
{
font-family: 'Manjari', sans-serif;
2025-11-25 23:24:48 +01:00
background: linear-gradient(135deg, #0f172a, #1e293b);
color: white;
min-height: 100vh;
width: 100%;
overflow-x: hidden;
}
2025-11-25 22:36:06 +01:00
/*=======NAVBAR======*/
.navbar
{
position: fixed;
top: 1rem;
left: 1rem;
right: 1rem;
/*width: calc(100% - 2rem);*/
2025-11-25 22:36:06 +01:00
padding: 1rem 1.5rem;
border-radius: 20px;
z-index: 100;
/*Efecto glassmorphism*/
2025-11-25 23:24:48 +01:00
background: rgba(255, 255, 255, 0.05);
2025-11-25 22:36:06 +01:00
backdrop-filter: blur(12px) saturate(180%);
2025-11-25 23:24:48 +01:00
-webkit-backdrop-filter: blur(12px) saturate(180%);
2025-11-25 22:36:06 +01:00
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
display: flex;
justify-content: space-between;
align-items: center;
}
.logoContainer a
{
color: white;
font-size: 1.125rem;
font-weight: bold;
margin-right: 0;
2025-11-25 22:36:06 +01:00
}
2025-11-25 23:24:48 +01:00
@media (min-width: 768px){
2025-11-25 22:36:06 +01:00
.logoContainer a { font-size: 1.25rem; }
2025-11-25 23:24:48 +01:00
.navbarLinks{
2025-11-25 22:36:06 +01:00
display: flex;
justify-content: flex-end;
align-items: center;
margin-right: 1rem;
}
2025-11-25 23:24:48 +01:00
.navbarLinks li {
2025-11-25 22:36:06 +01:00
margin-left: 1.5rem;
}
}
.navbarLinks a
{
color: white;
transition: color 0.3s ease;
}
.navbarLinks a:hover{
color: #00c3ff;
2025-11-25 23:24:48 +01:00
}
/*=======Menu movil========*/
#menu-toggle {display: none;}
.hamburger-label
{
display: none;
font-size: 1.5rem;
color: white;
cursor: pointer;
}
@media (max-width: 767px){
2025-11-25 23:24:48 +01:00
.hamburger-label { display: block; }
.navbarLinks
{
position: absolute;
top: 6rem;
left: 1rem;
right: 1rem;
2025-11-25 23:24:48 +01:00
display: none;
flex-direction: column;
align-items: center;
gap: 1.5rem;
padding: 2rem;
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#menu-toggle:checked ~ .navbarLinks {
display: flex;
animation: fadeIn 0.4s ease forwards;
}
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
/*======Footer======*/
.footer
{
padding: 1rem;
padding-top: 3rem;
2025-11-25 23:24:48 +01:00
color: white;
z-index: 50;
border-radius: 20px;
position:static;
margin-top: 3em;
/*Efecto cristal difuminado*/
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
display: flex;
justify-content: center;
align-items: center;
}
/*Fila principal del footer (flex)*/
.footerRow
{
display: flex;
flex-wrap: wrap;
justify-content: center;
}
/*Cada columna del footer*/
.footerLinks
{
flex: 1 1 200px;
max-width: 300px;
}
/*Titulos de los bloques del footer*/
.footerLinks h4
{
font-size: 20px;
color: #FFFFFF;
margin-bottom: 25px;
font-weight: 500;
border-bottom: 2px solid #00c3ff;
padding-bottom: 10px;
display: inline-block;
}
/*Enlaces dentro de las columnas del footer*/
.footerLinks ul li a
{
font-size: 18px;
text-decoration: none;
color: #bbbbbb;
display: block;
margin-bottom: 15px;
transition: all .3s ease;
}
/*Hover del footer*/
.footerLinks ul li a:hover
{
color:#ffffff;
padding-left: 6px;
}
/*Iconos redondos de redes sociales*/
.socialLinks a
{
display: inline-block;
min-height: 40px;
width: 40px;
background-color: rgba(255, 255, 255, 0.2);
margin: 0 10px 10px 0;
text-align: center;
line-height: 40px;
border-radius: 50%;
color: #ffffff;
transition: all .5s ease;
}
.socialLinks a:hover
{
background-color: #41eb60;
}
/*Footer responsive para moviles*/
@media(max-width: 991px) {
.footerRow
{
text-align:center;
}
.footerLinks
{
width: 100%;
margin-bottom: 30px;
}
}
/*Zona de Creative Commons*/
.creativeCommons
{
width: 100%;
text-align: center;
margin-top: 2rem;
font-size: 0.875rem;
color: #bbbbbb;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 0.2em;
}
.creativeCommons a
{
color: #bbbbbb;
text-decoration: none;
margin: 0 0.2em;
transition: color 0.3s ease;
}
.creativeCommons a:hover
{
color: #ffffff;
}
.creativeCommons img
{
vertical-align: middle;
max-width: 1em;
max-height: 1em;
margin-left: 0.2em;
}
/*Espacio para que el contenido no quede oculto por el navbar y el footer*/
.content
{
padding-top: 7rem;
padding-bottom: 10rem;
max-width: 1200px;
margin: 0 auto;
}
.section-title
{
font-size: 2.5rem;
margin-bottom:3rem;
text-align: center;
text-transform: uppercase;
letter-spacing: 1px;
}
.highlight-neon
{
color: #fff;
text-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff;
font-style: italic;
margin-left: 10px;
}
/*=======Layout grid========*/
.ranking-grid
{
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
margin-bottom: 5rem;
}
.rank-card
{
position: relative;
height: 500px;
border-radius: 20px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.1);
background: linear-gradient(to bottom, #1e293b, #0f172a);
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
display: flex;
flex-direction: column;
}
.card-img
{
width: 100%;
height: 60%;
object-fit: cover;
transition: transform 0.5s ease;
filter: brightness(0.8);
}
.card-content
{
height: 40%;
padding: 1.5rem;
background: linear-gradient(to bottom, #1e239b, #0f172a);
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
justify-content: flex-start;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.rank-badge
{
position: absolute;
top: 15px;
left: 15px;
width: 45px;
height: 45px;
background: rgba(15, 23, 42, 0.9);
color: #00c3ff;
border: 2px solid #00c3ff;
border-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.2rem;
font-weight: bold;
z-index: 10;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.rank-1 .rank-badge
{
color: #ffd700;
border-color: #ffd700;
box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.rank-2 .rank-badge
{
color: #c0c0c0;
border-color: #c0c0c0;
box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}
.rank-3 .rank-badge
{
color: #cd7f32;
border-color: #cd7f32;
box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
}
.card-content h3
{
font-size: 1.8rem;
color: #fff;
margin-bottom: 0.5rem;
text-transform: uppercase;
}
.genre-tag
{
display: inline;
font-size: 1rem;
color: #00c3ff;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 1rem;
font-weight: 700;
}
.description
{
font-size: 0.95rem;
color: #94a3b8;
line-height: 1.5;
}
.rank-card:hover
{
transform: translateY(-10px);
/*Mantener box shadow. Al ser css reutilizable, se ha de dejar para el videojocsSAD.html*/
border-color: #00c3ff;
box-shadow: 0 20px 40px -5px rgba(0, 192, 255, 0.15);
}
2025-11-25 23:24:48 +01:00
.rank-card:hover .card-img
{
transform: scale(1.05);
filter: brightness(1.1);
}
.rank-1:hover
{
border-color: #ffd700;
box-shadow: 0 20px 40px -5px rgba(255, 215, 0, 0.15);
}
.rank-2:hover
{
border-color: #c0c0c0;
box-shadow: 0 20px 40px -5px rgba(192, 192, 192, 0.15);
}
.rank-3:hover
{
border-color: #cd7f32;
box-shadow: 0 20px 40px -5px rgba(205, 127, 50, 0.15);
}
/*======SECCION Call To Action (CTA)======*/
.cta-section
{
display: flex;
justify-content: center;
margin-top: 2rem;
}
.cta-card
{
width: 100%;
background: linear-gradient(135deg, rgba(15, 23, 42, 0.8));
border: 1px solid rgba(0, 195, 255, 0.3);
border-radius: 20px;
padding: 3rem;
text-align: center;
position: relative;
overflow: hidden;
}
.cta-card::before
{
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 2px;
background: linear-gradient(90deg, transparent, #00c3ff, transparent);
opacity: 0.7;
}
@keyframes float
{
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.cta-icon
{
font-size: 3rem;
color: #00c3ff;
margin-bottom: 1.5rem;
animation: float 3s ease-in-out infinite;
}
.cta-card h3
{
font-size: 2rem;
margin-bottom: 1rem;
color: #fff;
}
.cta-card p
{
color: #cbd5e1;
margin-bottom: 2rem;
font-size: 1.1rem;
}
.btn-neon
{
padding: 12px 35px;
background: transparent;
color: #00c3ff;
border: 2px solid #00c3ff;
font-weight: bold;
font-size: 1rem;
border-radius: 15px;
text-transform: uppercase;
cursor: pointer;
transition: all 0.5s;
position: relative;
overflow: hidden;
display: inline-block;
}
.btn-neon:hover
{
background: #00c3ff;
color: #0f172a;
box-shadow: 0 0 20px rgba(0, 195, 255, 0.6);
}
@media (max-width: 900px) {
.ranking-grid {
grid-template-columns: 1fr;
gap: 2rem;
}
.rank-card {height: auto;}
.card-img { height: 250px;}
.card-content { height: auto; flex: 1;}
}
/*Nueva media query para la navbar.
Tenia el siguiente problema:
- A partir de ~400px de ancho, esta comenzaba a irse a la derecha,
ocultando el desplegador de menu y moviendo la navbar fuera
de la pantalla.
Ocurria por el section-title y el highlight-neon, que hacia que
la barra no pudiera achicarse mas debido a que este estaba limitando
el movimiento por no bajar y separar las palabras como debia.
Es decir:
Antes:
Quedaba "Top 3" arriba
Y quedaba "vendes Setmanals" abajo, sin romperse y ponerse
uno encima de otro o haciendose mas pequeño.
Lo siguiente soluciona el problema:
*/
@media (max-width: 450px) {
.section-title {
font-size: 1.7rem;
line-height: 1.3;
margin-bottom: 2rem;
padding: 0 10px;
}
.highlight-neon {
display:block;
margin-left: 0;
margin-top: 5px;
}
.navbar{
width: auto;
padding: 0.8rem 0.8rem;
/*width: calc(100% - 1rem); */
left: 0.5rem;
right: 0.5rem;
}
.logoContainer a {
font-size: 1rem;
margin-right: 0.5rem;
}
.logoContainer a:last-child {
margin-right: 0;
}
}
2025-11-28 00:05:08 +01:00
/*========Formularios========*/
.register-wrapper
{
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}
.glass-form-card
{
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
padding: 3rem;
border-radius: 20px;
width: 100%;
max-width: 500px;
position: relative;
overflow: hidden;
}
.glass-form-card::before
{
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 2px;
background: linear-gradient(90deg, transparent, #00c3ff, transparent);
opacity: 0.7;
}
.form-group
{
margin-bottom: 1.5rem;
position: relative;
}
.form-label
{
display: block;
margin-bottom: 0.5rem;
color: #00c3ff;
font-size: 0.9rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
}
.form-input
{
width: 100%;
padding: 12px 15px;
background: rgba(15, 23, 42, 0.6);
border: 1ox solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
color: white;
font-family: 'Manjari', sans-serif;
font-size: 1rem;
outline: none;
transition: all 0.3s ease;
}
.form-input::placeholder
{
color: rgba(255, 255, 255, 0.3)
}
.form-input:focus
{
border-color: #00c3ff;
box-shadow: 0 0 15px rgba(0, 195, 255, 0.2);
background: rgba(15, 23, 42, 0.9);
2025-12-02 23:25:38 +01:00
}
/*==============Pagina cercar============*/
.options-grid
{
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
margin-top: 0.5rem;
}
.option-label
{
display: flex;
align-items: center;
color: #cbd5e1;
font-size: 0.9rem;
cursor: pointer;
}
.option-label input
{
margin-right: 8px;
accent-color: #00c3ff;
}
.buttons-container
{
display: flex;
gap:1rem;
margin-top: 2rem;
}
.btn-reset
{
border-color: #ff4757;
color: #ff4757;
}
.btn-reset:hover
{
background: #ff4757;
color: white;
box-shadow: 0 0 20px rgba(255, 71, 87, 0.6);
}
output
{
display: block;
text-align: center;
color: #00c3ff;
font-weight: bold;
margin-top: 0.5rem;
}
/*================Politica de privacitat==============*/
.policy-container
{
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
padding: 3rem;
border-radius: 20px;
width: 100%;
max-width: 1000px; /* Más ancho para lectura cómoda */
position: relative;
overflow: hidden;
margin: 0 auto;
}
.policy-container::before
{
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 2px;
background: linear-gradient(90deg, transparent, #00c3ff, transparent);
opacity: 0.7;
}
.policy-content h3
{
color: #00c3ff;
margin-top: 2rem;
margin-bottom: 1rem;
font-size: 1.4rem;
border-bottom: 1px solid rgba(255,255,255,0.1);
padding-bottom: 5px;
display: inline-block;
}
.policy-content p
{
color: #cbd5e1;
line-height: 1.8;
margin-bottom: 1.2rem;
text-align: justify;
}
/* Ajustes para móviles en la política */
@media (max-width: 768px) {
.policy-container {
padding: 1.5rem;
}
.policy-content h3 {
font-size: 1.2rem;
}
.policy-content p {
font-size: 0.95rem;
}
}