Files
WOL-LY/app/ui/static/css/style.css
2024-12-13 18:08:44 +02:00

420 lines
7.5 KiB
CSS

@import url("./fonts/oswald.css");
body {
overflow: hidden;
font-family: "Oswald", sans-serif;
background-color: #212121;
}
body section {
width: 90%;
max-width: 1200px;
margin: 0 auto;
}
body section .row {
align-items: center;
height: 100vh;
}
.card {
position: relative;
height: 400px;
width: 100%;
margin: 10px 0;
transition: ease all 2.3s;
perspective: 1200px;
}
.card:hover .cover {
transform: rotateX(0deg) rotateY(-180deg);
}
.card:hover .cover:before {
transform: translateZ(30px);
}
.card:hover .cover:after {
background-color: black;
}
.card:hover .cover h1 {
transform: translateZ(100px);
}
.card:hover .cover .price {
transform: translateZ(60px);
}
.card:hover .cover a {
transform: translateZ(-60px) rotatey(-180deg);
}
.card .cover {
position: absolute;
height: 100%;
width: 100%;
transform-style: preserve-3d;
transition: ease all 2.3s;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}
.card .cover:before {
content: "";
position: absolute;
border: 5px solid rgba(255, 255, 255, 0.5);
box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
top: 20px;
left: 20px;
right: 20px;
bottom: 20px;
z-index: 2;
transition: ease all 2.3s;
transform-style: preserve-3d;
transform: translateZ(0px);
}
.card .cover:after {
content: "";
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
z-index: 2;
transition: ease all 1.3s;
background: rgba(0, 0, 0, 0.4);
}
.card .cover.item-a {
background-image: url("./images/img1.jpeg");
}
.card .cover.item-b {
background-image: url("./images/img2.jpeg");
}
.card .cover.item-c {
background-image: url("./images/img3.jpeg");
}
.card .cover h1 {
font-weight: 600;
position: absolute;
bottom: 55px;
left: 50px;
color: white;
transform-style: preserve-3d;
transition: ease all 2.3s;
z-index: 3;
font-size: 3em;
transform: translateZ(0px);
}
.card .cover .price {
font-weight: 200;
position: absolute;
top: 55px;
right: 50px;
color: white;
transform-style: preserve-3d;
transition: ease all 2.3s;
z-index: 4;
font-size: 2em;
transform: translateZ(0px);
}
.card .card-back {
position: absolute;
height: 100%;
width: 100%;
background: #0b0f08;
transform-style: preserve-3d;
transition: ease all 2.3s;
transform: translateZ(-1px);
display: flex;
align-items: center;
justify-content: center;
}
.card .card-back a {
transform-style: preserve-3d;
transition: ease transform 2.3s, ease background 0.5s;
transform: translateZ(-1px) rotatey(-180deg);
background: transparent;
border: 1px solid white;
font-weight: 200;
font-size: 1.3em;
color: white;
padding: 14px 32px;
outline: none;
text-decoration: none;
}
.card .card-back a:hover {
background-color: white;
color: #0b0f08;
}
h3 {
color: #62f5c8;
}
.modal-wrapper {
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
background: rgba(0, 0, 0, 0); /* Start with transparent background */
box-sizing: border-box;
cursor: auto;
opacity: 1;
overflow-y: auto;
transition: 0.5s background ease, 0.5s opacity ease;
z-index: 100;
align-items: center;
display: flex;
justify-content: center;
padding: 15px;
display:none;
opacity:0;
}
.modal-container {
background-color: #001020;
border-radius: 5px;
margin: auto;
max-width: 700px;
min-width: 200px;
position: relative;
padding: 20px;
color: #fff;
transform: scale(0);
transition: transform 0.5s ease;
}
.modal-wrapper.show .modal-container {
transform: scale(1);
}
.modal-wrapper.show {
background: #254642d9;
}
.modal-close {
background: none;
border: none;
color: #62f5c8;
cursor: pointer;
outline: none;
padding: 0;
position: absolute;
right: 20px;
top: 20px;
z-index: 10;
}
.modal-heading {
text-align: center; /* Center align the heading */
}
.modal-timer {
width: 0%;
height: 4px;
background: #42C0F2; /* Change color as needed */
position: absolute;
bottom: 0;
left: 0;
border-top-right-radius: 5px;
box-shadow: 0 0 8px #42C0F2;
}
.timer-animation {
animation: countdown 5s linear forwards;
}
@keyframes countdown {
from {
width: 100%;
}
to {
width: 0%;
}
}
.spinner {
color: #45d6b5;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 280px;
height: 280px;
display: flex;
align-items: center;
justify-content: center;
}
.semi-circle {
position: absolute;
border-radius: 50%;
border: 10px solid transparent;
border-top-color: transparent; /* Color for the first semi-circle */
transform-origin: center;
}
.semi-circle-1 {
width: 300px; /* Smaller radius */ height: 300px; top: 50%; left: 50%; transform: translate(-50%, -50%);
border-top-color: #45d6b5;
animation: rotate-circle-1 2s linear infinite;
}
.semi-circle-2 {
width: 350px; /* Medium radius */ height: 350px; top: 50%; left: 50%; transform: translate(-50%, -50%);
border-top-color: #ff5733;
animation: rotate-circle-2 3s linear infinite;
}
.semi-circle-3 {
width: 400px; /* Larger radius */ height: 400px; top: 50%; left: 50%; transform: translate(-50%, -50%);
border-top-color: #42f58d;
animation: rotate-circle-3 4s linear infinite;
}
@keyframes rotate-circle-1 {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes rotate-circle-2 {
0% { transform: translate(-50%, -50%) rotate(120deg); }
100% { transform: translate(-50%, -50%) rotate(480deg); }
}
@keyframes rotate-circle-3 {
0% { transform: translate(-50%, -50%) rotate(240deg); }
100% { transform: translate(-50%, -50%) rotate(600deg); }
}
.preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
display: none;
justify-content: center;
align-items: center;
flex-direction: column;
z-index: 1000;
}
.progress-container {
width: 300px;
height: 2px;
background: rgba(255, 255, 255, 0.1);
margin-bottom: 20px;
position: relative;
z-index: 2;
}
.progress-bar {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 0%;
}
.percentage {
position: fixed;
bottom: 32px;
right: 32px;
font-weight: 300;
font-size: 15rem;
line-height: 0.8;
opacity: 0.1;
}
.text-container {
height: 3em;
position: relative;
overflow: hidden;
margin: 20px 0;
width: 200px;
}
.loading-text {
font-weight: 300;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: -0.02em;
position: absolute;
width: 100%;
text-align: center;
}
.loading-text.initial {
transform: translateY(0);
}
.loading-text.complete {
transform: translateY(100%);
}
.loading-text .char {
display: inline-block;
}
.content {
margin: auto;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
visibility: hidden;
z-index: 1;
overflow: auto;
}
.content h1 {
font-size: 3rem;
margin-bottom: 1rem;
overflow: hidden;
}
.content p {
font-size: 1.2rem;
overflow: hidden;
}
.content .char {
display: inline-block;
transform: translateY(100%);
opacity: 0;
}
/* Add these classes for the stagger animation */
.preloader-item {
opacity: 1;
transform: translateY(0);
}
/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
.spinner {
width: 140px;
height: 140px;
}
.semi-circle-1 {
width: 150px;
height: 150px;
}
.semi-circle-2 {
width: 175px;
height: 175px;
}
.semi-circle-3 {
width: 200px;
height: 200px;
}
.percentage {
font-size: 10rem;
}
.content {
max-height: calc(100vh - 7vh);
}
body section .row{
padding-top: 3.5vh; /* Adjust this value as needed */
padding-bottom: 3.5vh; /* Adjust this value as needed */
box-sizing: border-box;
}
}