/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #121212 no-repeat center center fixed;
    background-size: cover;
    color: #FFFFFF;
    overflow-x: hidden;
}

header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(45deg, #003366, #e8dfec);
    border-bottom: 5px solid #004080;
}

header img {
    max-width: 50%;
    height: auto;
}

@media screen and (max-width: 600px) {
    header img {
        max-width: 100%;
    }
}

.ai-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem 0;
    background: linear-gradient(45deg, #000000, #121212);
}

.ai-image-section img {
    width: 70%;
    max-width: 500px;
    border: 5px solid #004080;
    box-shadow: 0px 0px 20px #1900ff;
    margin-bottom: 1rem;
}

.phrases-section {
    padding: 2rem;
}

.phrase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 1rem 0;
    border: 2px solid #004080;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 20px #1900ff;
    z-index: 3;
    position: relative;
}

.phrase:hover {
    background-color: rgba(17, 0, 255, 0.2);
}

.hebrew {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004080;
    text-shadow: 1px 1px 3px #1900ff;
}

.transliteration {
    font-size: 1.2rem;
    margin: 0 1rem;
}

footer {
    padding: 1rem;
    text-align: center;
    background: linear-gradient(45deg, #003366, #f9ecff);
    border-top: 5px solid #004080;
}

#particles-js {
    position: fixed;   /* This keeps the particles in the background even during scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;  /* This ensures the particles are behind the content */
}

/* Base styles for Matrix-style flying Hebrew phrases */
.flying-phrase {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1900ff;
    opacity: 0.9;
    white-space: nowrap;
    z-index: 2;
}

/* Matrix-style falling animation */
@keyframes matrixFall {
    from { transform: translateY(-100%); }
    to { transform: translateY(calc(100vh)); }  /* Move beyond the height of the viewport */
}

/* Image animation on page load */
#rebbe-image, p {
    animation: fadeInScaleUp 1.5s ease-out forwards;
}

@keyframes fadeInScaleUp {
    from {
        opacity: 0;
        transform: scale(0.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
