ChandimaPrabath's picture
css and player
0504ed2
raw
history blame
4.18 kB
@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");
.movie-details-page {
position: relative;
overflow: hidden;
scroll-behavior: smooth;
color: #fff;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
/* Backdrop Styling */
.movie-details-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: 250% 150%; /* Adjusted size to create a zooming effect */
background-position: center;
z-index: -1;
animation: backdrop-anim-portrait 20s ease-in-out infinite;
filter: blur(10px);
}
@keyframes backdrop-anim-portrait {
0% {
background-position: center;
background-size: 350% 150%;
}
25% {
background-position: top left;
background-size: 320% 120%;
}
50% {
background-position: bottom right;
background-size: 350% 150%;
}
75% {
background-position: top right;
background-size: 320% 120%;
}
100% {
background-position: center;
background-size: 350% 150%;
}
}
@media (orientation: landscape) {
.movie-details-backdrop {
background-size: 250% 150%; /* Adjusted size to create a zooming effect */
animation: backdrop-anim-landscape 20s ease-in-out infinite;
}
}
@keyframes backdrop-anim-landscape {
0% {
background-position: center;
background-size: 150% 150%;
}
25% {
background-position: top left;
background-size: 120% 120%;
}
50% {
background-position: bottom right;
background-size: 150% 150%;
}
75% {
background-position: top right;
background-size: 120% 120%;
}
100% {
background-position: center;
background-size: 150% 150%;
}
}
/* Container Styling */
.movie-details-page-container {
position: relative;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Header Styling */
.movie-details-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.movie-details-header h1 {
font-size: 4rem;
font-family: "Anton", sans-serif;
font-weight: 400;
font-style: normal;
margin: 0;
}
/* Action Buttons */
.movie-details-actions {
display: flex;
gap: 15px;
}
.play-button {
border: 1px solid #4339ff;
background-color: #17174a; /* Red button color */
}
.add-list-button {
background-color: #333;
}
.play-button,
.add-list-button {
color: #fff;
padding: 12px 24px;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.play-button:hover {
background-color: #27277c;
}
.add-list-button:hover {
background-color: #444;
}
.play-button:hover,
.add-list-button:hover {
transform: scale(1.05);
}
/* Poster Styling */
.movie-details-poster img {
width: 250px;
height: auto;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
margin-bottom: 20px;
}
/* Info Section Styling */
.movie-details-info {
display: flex;
flex-direction: column;
gap: 20px;
}
.movie-details-metadata,
.movie-details-overview {
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
.movie-details-metadata p,
.movie-details-overview p {
margin: 8px 0;
line-height: 1.6;
}
.movie-details-overview h2 {
margin-bottom: 15px;
font-size: 1.5rem;
border-bottom: 2px solid #4339ff;
padding-bottom: 5px;
}
/* Responsive Design */
@media (max-width: 768px) {
.movie-details-header h1 {
font-size: 3rem;
}
.movie-details-poster img {
width: 100%;
max-width: 200px;
}
.movie-details-info {
flex-direction: column;
}
}
.movie-geners-section {
display: flex;
text-align: center;
align-items: center;
}
.movie-genre-list {
list-style-type: none;
padding: 0;
display: flex;
text-align: center;
justify-content: center;
align-items: center;
}
.movie-genre-item {
margin: 5px;
}
.movie-genre-link {
text-decoration: none;
color: #0082f3; /* Next.js blue color */
font-weight: bold;
}
.movie-genre-link:hover {
text-decoration: underline;
}
.loading {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
justify-content: center;
align-items: center;
z-index: 100;
}