:root {
    --primary-color: #ff0000;
    --secondary-color: #444;
    --text-color: #333;
    --background-color: #f4f4f4;
    --border-color: #ddd;
    --button-color: #333;
    --button-hover-color: #555;
    --random-color: #51da79;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 4.5em;
    margin: 0;
    color: #ff0000;
    animation: randomBlink 1s infinite;
}

@keyframes randomBlink {
    0% {
        color: #ff0000;
    }
    20% {
        color: #00ff00;
    }
    40% {
        color: #0000ff;
    }
    60% {
        color: #ffff00;
    }
    80% {
        color: #ff00ff;
    }
    100% {
        color: #ff0000;
    }
}

header h2 {
    font-size: 3em;
    margin: 0;
    color: var(--secondary-color);
}

header h3 {
    font-size: 2em;
    margin: 10px 0;
    color: #555;
}

header h4 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #dcc200;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    animation: glow-gold 2s infinite alternate;
}

@keyframes glow-gold {
    from {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

header h5 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #d80000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5), 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3);
    animation: glow-red 2s infinite alternate;
}

@keyframes glow-red {
    from {
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5), 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3);
    }
    to {
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.5), 0 0 30px rgba(255, 0, 0, 0.4);
    }
}

header p {
    font-size: 1.2em;
    color: #777;
}

.tribute, .gallery {
    text-align: center;
    margin-bottom: 30px;
}

.tribute p, .gallery h4 {
    font-size: 1.1em;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.gallery h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.images img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transition: transform 1s ease-in-out;
    border: 10px solid var(--random-color, #51da79);
    margin-bottom: 30px;
}

.rotate-clockwise {
    animation: spin-clockwise linear infinite;
}

.rotate-counterclockwise {
    animation: spin-counterclockwise linear infinite;
}

@keyframes spin-clockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-counterclockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: var(--button-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: var(--button-hover-color);
}

.info-section {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-section p {
    margin: 10px 0;
}

.champagne-button {
    margin-top: 20px;
    margin-bottom: 50px;
}

.center-container {
    text-align: center;
    margin-top: 50px;
}

.messages {
    text-align: center;
}

.gallery {
    margin-bottom: 30px;
}

.profile-images {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.profile-images img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
}

.face-pop {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: pop 0.3s ease-out forwards;
}

@keyframes pop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}