.opinions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}

.student-opinion-container {
    width: 80vw;
    max-width: 300px;
    height: 50vh;
    max-height: 300px;
    overflow: hidden;
    position: relative;
}


.student-opinion {
    /* width: 90%;
    height: 90%; */
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: black;
    border: 2px solid deeppink;
    color: white;
    font-size: 16px;
    font-family: Arial, sans-serif;
    font-style: italic;
    border-radius: 8px;
    opacity: 0;
    animation: boxFade 24s infinite;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.5;
}


@keyframes boxFade {
    0% { opacity: 0; transform: translateX(100%); }
    5% { opacity: 1; transform: translateX(0); }
    45% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0; transform: translateX(-100%); }
    100% { opacity: 0; transform: translateX(-100%); }
}


.student-opinion:nth-child(1) {
    animation-delay: 0s;
}

.student-opinion:nth-child(2) {
    animation-delay: 12s;
}


@media (max-width: 376px) {
.student-opinion {
        font-size: 11px;
    }

    .student-opinion-container {
        width: 50vw;
        max-width: 270px;
}
}