next-pgan-raffle/pgan_raffle/index-styles.css

114 lines
2.1 KiB
CSS
Raw Normal View History

2024-12-04 07:59:49 +00:00
/* Reset for clean styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
h2 {
text-align: center;
margin-bottom: 10px;
font-size: 1.5rem;
color: #333;
}
.boxes {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 20px;
justify-content: center;
}
.box {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
height: 100px;
background-color: #4caf50;
color: white;
font-weight: bold;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
}
.box:hover {
background-color: #45a049;
transform: scale(1.05);
transition: all 0.3s ease-in-out;
}
@media (max-width: 768px) {
.box {
width: 80px;
height: 80px;
}
}
@media (max-width: 480px) {
.box {
width: 60px;
height: 60px;
font-size: 0.8rem;
}
}
.container {
max-width: 99%; /* Increase container width */
margin: 10px auto;
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
/* Logo Santa hat */
.logo-container {
display: inline-block;
position: relative;
}
.santa-hat {
position: absolute;
top: -45px;
left: 50%;
transform: translateX(-50%) rotate(0deg);
width: 50px;
height: 50px;
background: red;
border-radius: 50%;
border-bottom: 10px solid white;
animation: hatDrop 2s ease-out infinite alternate;
}
.santa-hat:before {
content: "";
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 15px;
height: 15px;
background: white;
border-radius: 50%;
}
@keyframes hatDrop {
0% {
transform: translateX(-50%) rotate(-20deg);
}
100% {
transform: translateX(-50%) rotate(20deg);
}
}