* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(to bottom, #1a237e, #000051);
    min-height: 100vh;
    overflow: hidden;
}

.memorial-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Pearly Gates Styling */
.pearly-gates {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('images/pearly-gates.jpg') center/cover no-repeat;
    cursor: pointer;
    transition: opacity 1s ease-in-out;
}

.gates {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

.gate {
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: transform 2s ease-in-out;
}

.left-gate {
    transform-origin: left;
}

.right-gate {
    transform-origin: right;
}

.gates.open .left-gate {
    transform: perspective(1000px) rotateY(60deg);
}

.gates.open .right-gate {
    transform: perspective(1000px) rotateY(-60deg);
}

.gate-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gate-text h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
}

.gate-text h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
}

.click-instruction {
    font-size: 1.2em;
    opacity: 0.8;
}

/* Profiles Container Styling */
.profiles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    place-items: center;
    background: rgba(0, 0, 0, 0.7);
}

.profile-card {
    width: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.profile-card:hover {
    transform: scale(1.05);
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid #ffffff;
    object-fit: cover;
}

.profile-name {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

.profile-years {
    color: #cccccc;
    font-size: 0.9em;
}
