Files
SAE-BUT2/src/components/background/background.module.css
T
Giovanni 6da4880f0d Merge branch 'dev' into features/notifications
# Conflicts:
#	package-lock.json
#	package.json
#	src/components/Header/Header.jsx
2026-01-12 00:15:16 +01:00

123 lines
1.6 KiB
CSS

.backgroundContainer {
z-index: 0;
margin: 0;
padding: 0;
min-height: 100vh;
overflow: hidden;
position: relative;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
.backgroundLight {
background: #00F0FF;
}
.backgroundDark {
background: #001C83;
}
.circle {
position: absolute;
border-radius: 50%;
opacity: 0.8;
z-index: 1;
}
.circle-1 {
width: 600px;
height: 600px;
background-color: #019AFF;
top: -10%;
left: -10%;
}
.circle-2 {
width: 250px;
height: 250px;
background-color: #91FCFF;
top: 51%;
left: 10%;
}
.circle-3 {
width: 280px;
height: 280px;
background-color: #91FCFF;
top: 28%;
right: 9%;
}
.circle-4 {
width: 500px;
height: 500px;
background-color: #019AFF;
bottom: 0;
right: 0;
}
.circle-5 {
width: 240px;
height: 240px;
background-color: #015AFF;
top: 2%;
right: 2%;
}
.circle-1,.circle-2, .circle-3, .circle-4, .circle-5 {
animation: float 6s ease-in-out infinite;
}
.circle {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% {
transform: translate(0, 0);
}
50% {
transform: translate(var(--random-x), var(--random-y));
}
}
@media (max-width:600px) {
.circle-1 {
width: 300px;
height: 300px;
top: -5%;
left: -5%;
}
.circle-2 {
width: 175px;
height: 175px;
top: 58%;
left: 10%;
}
.circle-3 {
width: 140px;
height: 140px;
top: 29%;
right: 9%;
}
.circle-4 {
width: 250px;
height: 250px;
bottom: 0;
right: 0;
}
.circle-5 {
width: 240px;
height: 240px;
top: 2%;
right: 10%;
}
}