100-project-100-days-website/100_projects/92-video-movie-popup/style.css
2023-05-24 12:23:47 +03:00
Ask

124 lines
2.2 KiB
CSS

{b03ce735b157177d18e442ce533d4446b18b5423 true 2278 style.css 0xc00af4e0e0}

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 0;
box-sizing: border-box;
font-family: sans-serif;
display: flex;
justify-content: center;
height: 100vh;
align-items: center;
background-image: linear-gradient(to bottom, #000000, #2A272A, #4B4A54, #677381, #82A0AA, #A3CFCD);
}
body::before {
content: '';
position: absolute;
top: 60px;
left: 10%;
width: 300px;
height: 300px;
background: linear-gradient(#dadde2, #fff5ff);
filter: blur(20px);
}
body::after {
content: '';
position: absolute;
bottom: 60px;
right: 10%;
width: 300px;
height: 300px;
background: linear-gradient(#dadde2, #dadde2);
filter: blur(20px);
}
.main-container {
max-width: 550px;
padding: 10px;
text-align: center;
position: relative;
z-index: 9;
}
.main-container{
position: absolute;
padding: 20px;
background: rgba(255, 255, 255,0.05);
box-shadow: 0 5px 15px rgba(0, 0, 0,0.1);
border-radius: 8px;
backdrop-filter: blur(10px);
z-index: 1;
transition: 0.5s;
color: #fff;
}
.main-container img {
max-width: 100%;
margin-bottom: 15px;
border-radius: 10px;
}
.main-container h1 {
color: #fff;
font-weight: 500;
}
.main-container p {
color: #fff;
margin: 15px 0;
}
.btn {
color: #fff;
background: rgba(255, 255, 255,0.05);
box-shadow: 0 5px 15px rgba(0, 0, 0,0.1);
border-radius: 8px;
backdrop-filter: blur(10px);
border: none;
font-size: 16px;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
transition: .3s;
}
.btn:hover {
background-color: #fff;
color: #000;
}
.trailer-container {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: black;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
opacity: 1;
transition: opacity 0.7s;
z-index: 99;
}
.active.trailer-container {
visibility: hidden;
opacity: 0;
}
.trailer-container video {
position: relative;
max-width: 900px;
outline: none;
z-index: 999;
}
@media (max-width: 991px) {
.trailer-container video {
max-width: 90%;
}
}
.close-icon {
position: absolute;
top: 30px;
right: 30px;
color: white;
cursor: pointer;
transition: .3s;
}
.close-icon:hover{
color: #f00;
}