100-project-100-days-website/100_projects/51-disney-movies-landing-page/css/style.css
2023-04-13 01:55:27 +03:00
Ask

165 lines
2.8 KiB
CSS

{284ed1ad5eff95bc5c28c1317ea8687f38608a37 true 2820 style.css 0xc00c1a0d20}

*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
*,*::before, *::after{
box-sizing: border-box;
font-weight: 400;
color: #fff;
}
body{
background: linear-gradient(90deg, rgba(13,22,46, .7) 23%, rgba(13,22,46, .1) 96%), url(../img/bg.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
margin: 0;
min-height: 100vh;
}
a{
display: inline-block;
text-decoration: none;
transition: .3s ease-in-out;
-moz-transition: .3s ease-in-out;
-o-transition: .3s ease-in-out;
-webkit-transition: .3s ease-in-out;
}
ul{
list-style: none;
}
img{
max-width: 100%;
}
.imdb{
width: 50px;
}
.logo{
width: 120px;
}
.row{
display: flex;
}
.container{
max-width: 90%;
margin: 0 auto;
}
/*Navigation*/
header{
align-items: center;
justify-content: space-between;
gap: 2em;
}
nav ul{
gap: 2em;
flex-direction: column;
text-align: center;
}
nav a{
font-size: 18px;
text-transform: uppercase;
}
nav a:hover,
.hero-btn:hover{
transform: scale(1.1);
}
.toggleMenu ion-icon{
width: 30px;
height: 30px;
z-index: 1000;
transition: .3s;
cursor: pointer;
position: relative;
z-index: 9999;
}
.toggleMenu.active ion-icon{
width: 25px;
height: 25px;
}
.navigation{
justify-content: center;
align-items: center;
position: absolute;
inset: 0;
margin: auto;
background: rgba(14,138,177, .85);
max-height: 0;
opacity: 0;
transform: scale(0);
}
.navigation.active{
position: fixed;
max-height: 100%;
opacity: 1;
z-index: 99;
transform: scale(1);
}
/*Navigation*/
.hero{
flex-wrap: wrap;
justify-content: space-between;
gap: 2em;
padding: 2em 0;
}
.hero-content{
max-width: 400px;
gap: 1em;
}
.rate{
align-items: center;
gap: 1em;
}
.hero h6{
font-weight: 500;
font-size: 20px;
}
.hero p{
font-size: 16px;
padding: 1em 0;
color: rgba(255,255,255, .8);
}
.hero-btn{
font-weight: 500;
font-size: 20px;
text-transform: capitalize;
justify-content: center;
align-items: center;
gap: .5em;
fill:#fff;
background: #0e8ab1;
padding: .5em 0;
max-width: 200px;
box-shadow: 0 3px 5px rgba(0,0,0, .15);
margin-top: 1em;
border-radius: 100px;
}
.hero-video{
max-width: 310px;
}
.hero h1{
font-weight: 700;
font-size: 28px;
padding-bottom: .5em;
}
.hero-scroll{
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 1em;
max-height: 500px;
overflow: scroll;
scrollbar-width: thin;
-moz-scrollbar-width: thin;
-webkit-scrollbar-width: thin;
}
.hero-video iframe{
width: 100%;
}
@media screen and (max-width:850px) {
.hero-content{
max-width: unset;
}
}