|
|
|
|
|
.movie-card { |
|
position: relative; |
|
width: 150px; |
|
height: 250px; |
|
margin: 10px; |
|
border-radius: 8px; |
|
overflow: hidden; |
|
background-color: #202232; |
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); |
|
cursor: pointer; |
|
transition: transform 0.3s ease; |
|
display: flex; |
|
flex-direction: column; |
|
opacity: 0; |
|
animation: fadeIn 0.5s forwards; |
|
} |
|
|
|
.image-container { |
|
position: relative; |
|
width: 100%; |
|
height: 80%; |
|
} |
|
|
|
.poster { |
|
object-fit: cover; |
|
object-position: top; |
|
border-radius: 8px 8px 0 0; |
|
animation: fade-in 2s forwards; |
|
opacity: 0; |
|
} |
|
|
|
@keyframes fade-in{ |
|
0%{opacity: 0;} |
|
100%{opacity: 1;} |
|
} |
|
|
|
.movie-info { |
|
position: relative; |
|
width: 100%; |
|
height: 28%; |
|
padding: 10px; |
|
background: #1b1c24; |
|
color: #fff; |
|
text-align: center; |
|
box-sizing: border-box; |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: center; |
|
text-decoration: none; |
|
} |
|
|
|
.movie-title { |
|
margin: 0; |
|
font-size: 16px; |
|
font-weight: bold; |
|
overflow: hidden; |
|
text-overflow: ellipsis; |
|
white-space: nowrap; |
|
} |
|
|
|
.movie-year { |
|
margin: 5px 0 0; |
|
font-size: 14px; |
|
overflow: hidden; |
|
text-overflow: ellipsis; |
|
white-space: nowrap; |
|
} |
|
|
|
.error { |
|
color: #e74c3c; |
|
} |
|
|
|
@keyframes fadeIn { |
|
from { |
|
opacity: 0; |
|
} |
|
to { |
|
opacity: 1; |
|
} |
|
} |
|
|