/* testimonial.css */

* {
    box-sizing: border-box;
}

/* Center the main heading and tagline */
main h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1em;
    color: #555;
    text-align: center;
    margin-top: 0;
}

body, html {
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
}

.testimonial-page {
    background-color: #ffffff;
}

.testimonial-container {
    width: 90%;
    max-width: 800px;
    height: 450px;
    margin: 30px auto;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: scrollTestimonials 120s linear infinite;
}

/* Pause animation on hover or click */
.testimonial-container:hover .testimonial-content,
.testimonial-container:active .testimonial-content {
    animation-play-state: paused;
}

/* Keyframes for scrolling animation */
@keyframes scrollTestimonials {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.testimonial {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 768px) {
    .testimonial-container {
        height: auto;
    }
    .testimonial {
        font-size: 0.9rem;
    }
}