/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: #171717;
    font-family: Arial, sans-serif;
	overflow: hidden; /*prevents scrollbars from showing during pixel efect*/
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
	position: relative;
	z-index: 2; /*ensures the buttons are above the pixel effect*/
}

.button {
    width: 150px;
    height: 150px;
    margin: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    position: relative;
    text-align: center;
	box-shadow: 10px 10px 10px rgba(0,0,0,0.25);
}

#perso{
	background-image: url('jeann.jpeg');
}

#bpm{
	background-image: url('722logo.jpg');
}

#soon{
	background-image: url('glitch.jpg');
}

.button:hover {
    background: black;
}

.text {
    color: white;
    font-size: 20px;
    font-weight: bold;
    z-index: 3;
}

.shake-animation {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Crack effect */ 
.crack-container { 
	position: fixed; 
	top: 0; 
	left: 0; 
	width: 100%; 
	height: 100%; 
	pointer-events: none; 
	z-index: 1; 
} 

.crack {
	position: absolute; 
	width: 2px; 
	height: 1000px; 
	background-color: black; /* Choose any color for the crack */ 
	opacity: 50; 
	transition: transform 1.5s ease-out, opacity 0.5s ease-out; 
	transform-origin: top left; /* Ensures the crack grows from its origin */ 
} 

.crack-container.active .crack { 
	opacity: 1; 
	transform: scale(10) translateY(-500px); /* Moves the cracks outward */ 
}