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

536 lines
9.2 KiB
CSS

/*======Reset y estilos generales======*/
*
{
padding: 0;
margin: 0;
box-sizing: border-box;
list-style: none;
text-decoration: none;
}
body
{
font-family: 'Manjari', sans-serif;
background: linear-gradient(135deg, #0f172a, #1e293b);
color: white;
min-height: 100vh;
}
.content
{
padding-top: 8rem;
padding-bottom: 12rem;
max-width: 1400px;
margin: 0 auto;
width: 100%;
}
.sectionTitle
{
text-align: center;
font-size: 2rem;
margin-bottom: 3rem;
color: #00c3ff;
text-transform: uppercase;
letter-spacing: 2px;
text-shadow: 0 0 15px rgba(0, 195, 255, 0.6);
}
/*=======NAVBAR======*/
.navbar
{
position: fixed;
top: 1rem;
left: 1rem;
right: 1rem;
width: calc(100% - 2rem);
padding: 1rem 1.5rem;
border-radius: 20px;
z-index: 100;
/*Efecto glassmorphism*/
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);
display: flex;
justify-content: space-between;
align-items: center;
}
.logoContainer a
{
color: white;
font-size: 1.125rem;
font-weight: bold;
margin-right: 1rem
}
@media (min-width: 768px){
.logoContainer a { font-size: 1.25rem; }
.navbarLinks{
display: flex;
justify-content: flex-end;
align-items: center;
margin-right: 1rem;
}
.navbarLinks li {
margin-left: 1.5rem;
}
}
.navbarLinks a
{
color: white;
transition: color 0.3s ease;
}
.navbarLinks a:hover{
color: #00c3ff;
}
/*=======Menu movil========*/
#menu-toggle {display: none;}
.hamburger-label
{
display: none;
font-size: 1.5rem;
color: white;
cursor: pointer;
}
@media (max-width: 768px){
.hamburger-label { display: block; }
.navbarLinks
{
position:absolute;
top: 80px;
left: 0;
right: 0;
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
{
bottom: 1rem;
left: 1rem;
right: 1rem;
padding: 1rem;
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;
}
.sectionTitle
{
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: #1e239b;
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: 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);
}
.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;
}
.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;}
}