.person-carousel {
    max-width: 60%;
    margin: auto;
}

.person-carousel h3 {
    text-align: center;
    margin-bottom: 20px;
}

.carousel-caption h5 {
    font-size: 1.25rem;
    color: #fff;
}

.carousel-caption .btn {
    margin-top: 10px;
}

.carousel-item {
    min-height: 300px;
}

.carousel-control-prev, 
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 40px;
}


.carousel-control-prev {
    left: -1em;
}

.carousel-control-next {
    right: -1em;
}

@media (max-width: 1348px) {
    .carousel-control-prev {
        left: -2em;
    }

    .carousel-control-next {
        right: -3.5em;
    }
}

@media (max-width: 768px) {
    .carousel-control-prev {
        left: -2em;
    }

    .carousel-control-next {
        right: -2em;
    }
}

.carousel .card {
    width: 80%;
}

.card-img-small {
    max-height: 200px;
    object-fit: cover;
}

.carousel .card-title {
    font-size: 1.1rem;
}

.carousel .card-text {
    font-size: 1rem;
}

.carousel .card-body {
    padding: 10px;
}

.carousel .carousel-item {
    margin-left: 2em;
}

#personCarousel {
    width: 80%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #personCarousel {
        width: 100%;
    }
}

.badge-purple {
    background-color: #6f42c1;
    color: #fff;
}

.alert.personAlert {
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    max-width: 400px;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.alert-found-alive {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    border: 2px solid #218838;
}

.alert-found-dead {
    background-color: #800000; 
    color: white;
    font-weight: bold;
    border: 2px solid #5c0000;
}

.alert-found-unknown {
    background-color: #6c757d;
    color: white;
    font-weight: bold;
    border: 2px solid #495057;
}

.alert-hidden-person {
    background-color: #ffc107;
    color: black;
    font-weight: bold;
    border: 2px solid #e0a800;
    text-align: center;
}

.container.personCarouselContainer {
    background-color: #f8f9fa;
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tip-form-animate {
    animation: slideFadeIn 0.5s ease-in-out;
}

.tip-form-animate .btn-primary {
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 123, 255, 1);
    }
}

#checkmark {
    display: none;
    color: white;
    background-color: green;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    position: absolute;
    top: -5px;
    right: -25px;
    font-weight: bold;
    animation: pop 0.5s ease-out;
}

@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    80% { transform: scale(0.9); }
    100% { transform: scale(1); }
}