moviee / static /style.css
hpratapsingh's picture
Update static/style.css
1d0f787
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
/* ----------------#### Global Declarations ####----------------------- */
/* ?-------------------Body layout -s ---------------- */
html {
scroll-behavior: smooth;
}
:root {
--main-grad: linear-gradient(-45deg, #ee7752, #d6b11b, #23a6d5, #23d5ab);
--box-grad: linear-gradient(109.6deg, rgba(156, 252, 248, 1) 11.2%, rgba(110, 123, 251, 1) 91.1%);
--act-icon: rgb(193, 246, 3);
--act-click: rgba(193, 246, 3, 0.753);
--shadow-black-100: 0 5px 15px rgba(0, 0, 0, 0.2);
--black-900: #000000;
--black-400: #656f87;
--black-200: rgba(93, 72, 72, 0.166);
--black-100: #f7f7f7;
--white: #fff;
--black-alpha-100: rgba(0, 0, 0, 0.5);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
}
body {
background-color: var(--black-900);
overflow-x: hidden;
font-family: 'Poppins', sans-serif;
color: var(--white);
z-index: 11;
}
.backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('media/bg1.webp');
background-size: 130% 130%;
animation: gradient 18s ease infinite;
background-repeat: no-repeat;
background-attachment: fixed;
opacity: 0.5;
filter: blur(5px);
}
/*? -------------------Body -e----------------------- */
/*? ------------------- Adjustments -s-------------------- */
ul {
list-style: none;
}
.section_padding {
padding: 30px 80px;
}
.container {
max-width: 1140px;
margin: auto;
}
.row {
display: flex;
flex-wrap: wrap;
}
.justify_content_cntr {
justify-content: center;
}
.justify_content_end {
justify-content: end;
}
.space_btw {
justify-content: space-between;
}
.align_cntr {
align-items: center;
}
.txt_align {
text-align: center;
}
/*? ------------------- Adjustments -e -------------------- */
/*? ------------------- Section Title -s -------------------- */
.section_title {
/* margin: 40px; */
margin-bottom: 20px;
z-index: 1;
padding-left: 20px;
/* background-color: #aeaeae; */
}
.section_title .main_title {
font-size: 25px;
font-weight: 600;
margin-top: 5px;
}
.section_title .sub_title {
font-size: 15px;
font-weight: 600;
/* color: ; */
}
/*? ------------------- Section Title -e -------------------- */
/*! ----------------#### Global Declarations ####----------------------- */
/*! ------------------------Navbar -s------------------------ */
.nav {
position: fixed;
top: 50%;
transform: translateY(-50%);
left: 5px;
display: flex;
flex-direction: column;
row-gap: 2rem;
z-index: 20;
}
.nav_link {
display: flex;
flex-direction: column;
align-items: center;
color: var(--white);
transition: all 0.3s ease;
}
.nav_link:hover,
.nav_active {
color: var(--act-icon);
transform: scale(1.1);
}
.nav_link:active {
color: var(--act-click);
transform: scale(0.9);
}
.nav_link i {
font-size: 1.5rem;
}
.nav_link_title {
font-size: 0.5rem;
}
.nav a span {
opacity: 0;
}
.nav a:hover span {
opacity: 1;
}
/*! ------------------------Navbar -e------------------------ */
/* !------------------------home -s------------------------ */
.home {
position: relative;
z-index: 1;
overflow-x: hidden;
padding-top: 90px;
padding-bottom: 150px;
overflow-y: hidden;
}
.home .row {
justify-content: center;
text-align: center;
}
.home_txt {
line-height: 45px;
}
.home_txt h3 {
font-size: 1.2rem;
font-weight: 900;
}
.home_txt .greetings {
font-weight: 700;
font-size: 2rem;
text-shadow: -1px 5px 20px #ced0d3;
letter-spacing: 0.02em;
text-align: center;
color: #ffffff;
}
.home_txt .moving_txt {
padding: 10px;
font-weight: 600;
margin: 10px;
transition: all 0.5s ease-in-out;
}
.typed-cursor {
display: none;
opacity: 0;
}
/* -------------------------- */
.title h1 {
color: #fff;
font-size: 3rem;
text-transform: uppercase;
font-weight: 900;
font-family: "Josefin Sans", sans-serif;
background: linear-gradient(to right, #ffffff 40%, #dad608 60%);
background-size: auto auto;
background-clip: border-box;
background-size: 200% auto;
color: #fff;
background-clip: text;
text-fill-color: fill;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: textclip 5s linear infinite;
}
@keyframes textclip {
to {
background-position: 200% center;
}
}
/* -------------------------- */
#text {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.home_txt p {
font-size: 16px;
font-weight: 500;
}
.home_txt .srch_bar {
position: absolute;
background-color: #921313;
padding: 50px;
display: inline-block;
margin-top: 20px;
line-height: 15px;
}
/* ------------------ */
/*? ------------ search Bar ------------------ */
#search-form {
display: flex;
align-items: center;
justify-content: center;
margin: 20px 10px;
padding: 10px;
border-radius: 20px;
border: none;
width: 390px;
font-size: 15px;
text-align: left;
background-color: #ffffff;
box-shadow: 0px 12px 16px rgba(0, 0, 0, 0.5);
transition: all 0.3s ease-in-out;
}
#search-form:active {
transform: scale(1.1);
}
#search-input {
flex: 1;
border: none;
outline: none;
transition: all 0.3s ease-in-out;
}
#search-input:focus {
border: 1px solid #007bff;
border-radius: 10px;
padding: 10px;
background-color: rgba(244, 235, 235, 0.412);
/* outline: none; */
transition: all 0.3s ease-in-out;
}
#search-button {
margin-left: 10px;
padding: 10px 15px;
border-radius: 50px;
border: none;
background-color: #007bff;
color: #ffffff;
font-size: 15px;
cursor: pointer;
transition: all 0.3s ease-in-out;
}
#search-button:hover {
background-color: #0554a9;
}
#search-button i {
transition: all 0.3s ease-in-out;
padding: 2px;
}
#search-button:hover i {
transform: scale(1.3);
}
#search-button:active {
background-color: #04376dd7;
transform: scale(0.8);
}
#search-button:active i {
transform: rotate(90deg);
}
/* ?------------ search Bar ------------------ */
/* ---------------- auto complete -------------- */
.ui-autocomplete {
position: absolute;
top: 10px;
left: 110px;
z-index: -1;
border-radius: 10px;
max-height: 200px;
overflow-y: auto;
font-size: 14px;
background-color: #fff;
border: 1px solid #ccc;
padding: 15px;
}
.ui-autocomplete li {
border-radius: 10px;
list-style-type: none;
padding: 5px;
cursor: pointer;
outline: none;
}
/* ---------------- auto-complete ------------- */
/* !------------------------home -e------------------------ */
/*!------------------------Movie -s------------------------ */
.movie {
z-index: 1;
}
.movie .row:nth-child(1) {
justify-content: end;
}
.movie .sec_title {
background-color: #03a9f4;
justify-content: end;
text-align: end;
}
/*?-------------- movie poster card ----------------- */
.movie_card {
position: relative;
display: flex;
flex-wrap: wrap;
width: 800px;
height: auto;
margin: 10px;
overflow: hidden;
border-radius: 10px;
transition: all 0.4s;
}
.movie_card:hover {
transform: scale(1.04);
transition: all 0.4s;
}
.movie_card .info_section {
position: relative;
width: 100%;
height: 100%;
background-blend-mode: multiply;
z-index: 2;
border-radius: 10px;
}
.movie_card .info_section .movie_header {
position: relative;
padding: 15px;
height: auto;
margin-bottom: 10px;
}
.movie_card .info_section .movie_header h1 {
color: var(--white);
font-weight: 400;
}
.movie_card .info_section .movie_header h4 {
color: #9ac7fa;
font-weight: 400;
}
.movie_card .info_section .movie_header h5 {
color: #9ac7fa;
font-weight: 400;
}
.movie_card .info_section .movie_header .minutes {
display: inline-block;
font-size: 13px;
margin-top: 10px;
margin-right: 10px;
color: var(--white);
padding: 3px;
border-radius: 5px;
border: 1px solid rgba(205, 205, 205, 0.567);
}
.movie_card .info_section .movie_header .rating i {
font-size: 13px;
color: yellow;
}
.movie_card .info_section .movie_header .genre {
color: var(--white);
font-size: 14px;
}
.movie_card .info_section .movie_header .poster_img {
position: relative;
float: left;
margin-right: 20px;
height: 150px;
box-shadow: 0 0 20px -10px rgba(0, 0, 0, 0.5);
color: #03a9f4;
font-size: 10px;
}
.movie_card .info_section .movie_desc {
padding: 15px;
height: auto;
}
.movie_card .info_section .movie_desc .text {
color: #cfd6e1;
font-size: 14px;
}
.movie_card .info_section .know_more {
padding: 10px;
font-size: 14px;
font-weight: 600;
text-align: left;
margin-top: 10px;
transition: all 0.4s;
}
.movie_card .info_section .know_more a {
color: white;
}
.movie_card .info_section .know_more a:hover {
transform: scale(1.1);
color: red;
}
.movie_card .blur_back {
position: absolute;
top: 0;
z-index: 1;
height: 100%;
right: 0;
background-size: cover;
border-radius: 11px;
}
@media screen and (min-width: 768px) {
.movie_header {
width: 60%;
}
.movie_desc {
width: 50%;
}
.info_section {
background: linear-gradient(to right, #0d0d0c 50%, transparent 100%);
}
.blur_back {
width: 80%;
background-position: -100% 10% !important;
}
}
@media screen and (max-width: 768px) {
.movie_card {
width: 95%;
margin: 10px auto;
min-height: 350px;
height: auto;
}
.blur_back {
width: 100%;
background-position: 50% 50% !important;
}
.movie_header {
width: 100%;
margin-top: 85px;
}
.movie_desc {
width: 100%;
}
.info_section {
background: linear-gradient(to top, #141413 50%, transparent 100%);
display: inline-grid;
}
}
#glow {
box-shadow: 0px 0px 150px -45px rgba(255, 51, 0, 0.5);
}
#glow:hover {
box-shadow: 0px 0px 120px -55px rgba(255, 51, 0, 0.5);
}
.poster_back {
background: url("https://occ-0-2433-448.1.nflxso.net/art/cd5c9/3e192edf2027c536e25bb5d3b6ac93ced77cd5c9.jpg");
background-repeat: no-repeat;
}
/*?-------------- movie poster card ----------------- */
/*! ------------------------Movie -e------------------------ */
/*! ------------------------Recommender -s------------------------ */
.recmndr {
position: relative;
z-index: 1;
min-height: 100vh;
}
.recmndr .sub_title span {
color: var(--white);
font-size: 18px;
}
.rec_items {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
z-index: 11;
gap: 15px;
}
/* ------------------ */
.rec_card {
position: relative;
width: 230px;
height: 280px;
overflow: hidden;
background-color: white;
border-radius: 10px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
transform: scale(0.1);
transition: all .5s ease;
}
.rec_card .poster {
position: relative;
overflow: hidden;
}
.rec_card .poster::before {
content: '';
position: absolute;
bottom: -130px;
width: 100%;
height: 100%;
background: linear-gradient(0deg, #000000 20%, transparent);
transition: 0.5s;
z-index: 1;
}
.rec_card:hover .poster::before {
bottom: 0px;
}
.rec_card .poster img {
width: 100%;
height: 280px;
transition: 0.5s;
}
.rec_card:hover .poster img {
transform: translateY(-50px);
filter: blur(5px);
}
.details {
position: absolute;
bottom: -95px;
left: 0;
width: 100%;
padding: 20px;
box-sizing: border-box;
text-align: center;
color: var(--white);
z-index: 2;
transition: 0.5s;
}
.rec_card:hover .details {
bottom: 10px;
}
.details .rec_mv_name {
font-size: 20px;
font-weight: 600;
margin-bottom: 10px;
}
.details .mv_year {
font-size: 14px;
color: var(--white);
}
.details .rating {
font-size: 14px;
color: yellow;
margin-bottom: 5px;
}
.details .tags {
font-size: 10px;
position: absolute;
position: relative;
display: flex;
flex-wrap: wrap;
justify-content: center;
/* margin: 10px; */
gap: 5px;
}
.details .tags span {
padding: 2px 5px;
color: var(--white);
background-color: rgba(0, 225, 255, 0.856);
border-radius: 5px;
}
.details .tags span:not(:last-child) {
background-color: rgba(255, 0, 0, 0.713);
}
.details .extra_info {
margin-top: 15px;
/* background-color: #0062cc; */
}
.details button {
font-size: 10px;
cursor: pointer;
background-color: var(--act-icon);
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
border: 1px solid rgb(255, 255, 255);
padding: 2px 5px;
border-radius: 10px;
transition: all .3s ease;
border-style: outset;
}
.details .btn:hover {
transform: scale(1.04);
}
.details .btn:active {
background-color: var(--act-click);
transform: scale(0.9);
}
/* !------------------------Recommender -e------------------------ */
/*!------------------------About -s------------------------ */
.about {
position: relative;
background-image: linear-gradient(rgba(255, 0, 0, 0), hsla(0, 0%, 0%, 0.767), rgb(0, 0, 0));
z-index: 1;
}
.about .row {
margin-bottom: 40px;
}
.about_box {
padding: 10px;
margin: 10px;
margin-bottom: 30px;
font-size: 12px;
}
.about_box p {
font-weight: 600;
color: white;
}
.about_box p a
{
color: rgb(255, 0, 0);
margin-right: 100px;
}
.about_box p a:hover
{
color: rgb(199, 15, 15);
margin-right: 100px;
}
.about_box p a:active
{
color: rgba(0, 94, 255, 0.559);
margin-right: 100px;
}
.about_box span {
font-weight: 900;
color: var(--act-icon);
}
.gradient_design {
margin: 20px;
border-radius: 10px;
background: var(--box-grad);
box-shadow: var(--shadow-black-100);
}
.about_box {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
}
.about_box_title {
justify-content: center;
text-align: center;
color: black;
font-weight: 900;
}
.about_box_title h3 {
display: block;
font-size: 1.17em;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
font-weight: bold;
}
/* -----------------AboutUS Cards ------------------------ */
.cardx {
display: flex;
flex-wrap: wrap;
flex: 0 0 80%;
max-width: 80%;
margin: 10px;
height: 220px;
width: 350px;
border-radius: 10px;
transition: background 0.8s;
overflow: hidden;
box-shadow: 10px 80px 83px -60px #000;
justify-content: center;
align-items: center;
position: relative;
}
.border {
height: calc(100% - 7px);
width: calc(100% - 7px);
background: transparent;
border-radius: 10px;
transition: border 1s;
position: relative;
}
.cardx .border:hover {
border: 1px solid #fff;
}
.cardx h3 {
margin: 5px;
color: var(--white);
}
.cardx h4 {
margin: 5px;
font-size: 13px;
color: var(--white);
}
.cardx p {
opacity: 0;
transition: opacity 1s;
margin: 5px;
font-size: 12px;
color: var(--white);
}
.cardx:hover p {
opacity: 1;
transition: opacity 1s;
}
.cardx .fa {
opacity: 0;
transition: opacity 1s;
}
.cardx:hover .fa {
opacity: 1;
}
.cardx .icons a i {
color: var(--white);
font-size: 18px;
transition: all 0.2s ease;
}
.cardx .icons a i:hover {
color: var(--act-icon);
transform: scale(1.1);
}
.cardx .icons a i:active {
color: var(--act-click);
transform: scale(0.9);
}
.cardx .icons {
position: absolute;
height: 30px;
top: 110px;
gap:5px;
width: 50px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
}
/* ------------------- first card -------- */
.card0 {
background: url("media/hem2.jpg") left center no-repeat;
background-size: 350px;
}
.card0:hover {
background: url("media/hem2.jpg") left center no-repeat;
background-size: 600px;
}
.card1 {
background: url("media/raj1.jpg") left center no-repeat;
background-size: 350px;
}
.card1:hover {
background: url("media/raj1.jpg") left center no-repeat;
background-size: 600px;
}
/* -----------------About Cards ------------------------ */
.about .git_link a i {
color: var(--white);
font-size: 20px;
margin-left: 5px;
transition: all 0.3s ease;
}
.about .git_link a i:hover {
color: var(--act-icon);
transform: scale(1.05);
}
.about .git_link a i:active {
color: var(--act-click);
transform: scale(0.9);
}
/*! ------------------------About -e------------------------ */
/*! ----------------------- An1:Animations ------------------------------------------ */
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.ani1 {
opacity: 0;
transform: translateY(100px);
transition: all 1s ease-in-out;
}
.active {
opacity: 1;
transform: scale(1);
}
/*! ----------------------- An1:Animations ------------------------------------------ */
/* TODO------------------------- Scroll down arrow ani ---------------------------------- */
.container2 {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 10px;
}
.container2 h6 {
opacity: 0.5;
}
.arrow {
position: absolute;
width: 2.1rem;
height: 0.48rem;
opacity: 0;
transform: scale(0.3);
animation: move-arrow 3s ease-out infinite;
}
.arrow:first-child {
animation: move-arrow 3s ease-out 1s infinite;
}
.arrow:nth-child(2) {
animation: move-arrow 3s ease-out 2s infinite;
}
.arrow:before,
.arrow:after {
content: '';
position: absolute;
top: 0;
height: 100%;
width: 50%;
background: #415b75;
}
.arrow:before {
left: 0;
transform: skewY(30deg);
}
.arrow:after {
right: 0;
width: 50%;
transform: skewY(-30deg);
}
@keyframes move-arrow {
25% {
opacity: 1;
}
33.3% {
opacity: 1;
transform: translateY(2.28rem);
}
66.6% {
opacity: 1;
transform: translateY(3.12rem);
}
100% {
opacity: 0;
transform: translateY(4.8rem) scale(0.5);
}
}
/* TODO------------------------- Scroll down arrow ani---------------------------------- */
/*! --------------------------Re1: Responsive ------------------------- */
@media (max-width: 900px) {
.nav {
bottom: 0;
left: 0;
right: 0;
top: auto;
transform: translateY(0);
flex-direction: row;
justify-content: space-evenly;
row-gap: 1px;
padding: 10px;
border-top: 1 px solid hsl(200 100% 99% / 5%);
background: linear-gradient(8deg, hsl(240 17% 14% / 100%) 5%, hsl(240 17% 14% / 90%) 100%);
}
.nav a span {
opacity: 1;
}
.nav_link .bx {
font-size: 1.7rem;
}
.nav_link_title {
font-size: 0.5rem;
}
.section_padding {
padding: 40px 30px;
}
}
@media (max-width: 460px) {
.cardx {
flex: 0 0 80%;
max-width: 80%;
width: 300px;
}
}
@media (max-width: 425px) {
#search-form {
margin: 10px 10px;
padding: 10px;
border-radius: 20px;
border: none;
width: 350px;
font-size: 15px;
}
}
@media (max-width: 500px) {
.section_padding {
padding: 80px 10px;
}
.title h1 {
color: #fff;
font-size: 2.5rem;
font-weight: 900;
}
}
/*!-----------------preloader------------------ */
#preloader {
background: #151515;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
background-size: 100%;
height: 100vh;
width: 100%;
position: fixed;
z-index: 90;
}
/* -------------------------- */
#preloader img {
width: 200px;
height: 200px;
z-index: 99;
}
/* ?--------------- Scroll Bar -s ------------------- */
::-webkit-scrollbar {
width: 0.8rem;
}
::-webkit-scrollbar-track {
background: rgba(82, 82, 82, 0);
}
::-webkit-scrollbar-thumb {
background-color: var(--act-click);
border-radius: 0.6rem;
border: 0.2rem solid transparent;
background-clip: content-box;
}
::-webkit-scrollbar-track:hover {
background-color: var(--black-400);
}
/*? ---------------- Scroll Bar -e------------------- */