isthebidenatordead.com/styles.css
2025-02-27 18:11:47 -07:00

137 lines
No EOL
3.2 KiB
CSS

body, html {
height: 100%;
margin: 0;
display: flex;
flex-direction: column; /* Allow vertical stacking of elements */
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
/* Use a gradient to represent the USA flag colors */
background: linear-gradient(180deg, #B22234 20%, #FFFFFF 20%, #FFFFFF 40%, #B22234 40%, #B22234 60%, #FFFFFF 60%, #FFFFFF 80%, #B22234 80%);
background-size: 100% 100%;
position: relative;
overflow: hidden;
}
body {
width: 100%;
}
.container {
display: flex;
/*balls*/
align-items: center;
justify-content: center;
text-align: center;
/* Add a slight shadow to make the text stand out */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
position: relative;
z-index: 1;
}
h1 {
font-size: 5rem;
margin: 0;
color: #FFFFFF; /* White text for contrast */
margin-right: 20px; /* Space between text and image */
/* Add animation properties */
animation-duration: 1s;
animation-fill-mode: both;
}
img {
max-height: 400px;
width: auto;
cursor: pointer;
}
#explosion-container {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.particle {
position: absolute;
width: 30px;
height: 30px;
background-size: cover;
transition: transform 1s ease-out, opacity 1s ease-out;
opacity: 1;
border: 1px solid red; /* Temporary border for visibility */
background-color: yellow; /* Temporary background color for visibility */
}
.mini-biden {
position: absolute;
width: 30px; /* Size of mini images */
height: 30px;
transition: transform 1s ease-out, opacity 1s ease-out;
pointer-events: none; /* Prevent interaction with mini images */
}
footer {
margin-top: auto; /* Push footer to the bottom */
padding: 10px;
text-align: center;
color: black;
font-size: 1rem;
z-index: 1;
}
#mini-photos-container {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.mini-photo {
position: absolute;
width: 50px; /* Size of mini photos */
height: 50px;
transition: transform 1s ease-out, opacity 1s ease-out;
opacity: 1;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0) scale(1);
}
40% {
transform: translateY(-30px) scale(1.2);
}
60% {
transform: translateY(-15px) scale(1.1);
}
}
.bounce {
animation-name: bounce;
}
/* Add stars to the background */
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 40%; /* Adjust width to cover the desired area */
height: 40%; /* Adjust height to cover the upper left corner */
background-color: #3C3B6E;
z-index: 0;
}
body::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 40%; /* Match the width of the blue background */
height: 40%; /* Match the height of the blue background */
background-image: radial-gradient(circle, #FFFFFF 10%, transparent 11%), radial-gradient(circle, #FFFFFF 10%, transparent 11%);
background-size: 20px 20px;
background-position: 0 0, 10px 10px;
opacity: 0.8;
z-index: 1;
}