/* Style the h2 element */
h2.display-5 {
    font-weight: bold;
    font-size: 40px; /* You can adjust the font size to your preference */
    color: #333; /* Set the text color */
    text-transform: uppercase; /* Make the text uppercase for added emphasis */
    margin-bottom: 10px; /* Add some space below the h1 */
}

/* Apply the pop-up animation to specified h2 elements */
h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

h2.text-black {
    font-size: 50px;
    font-weight: 500;
    -webkit-text-stroke: 1px white;
    animation: pop-up 1s ease forwards;
}

h2 {
    animation: pop-up 0.5s ease 0.2s forwards;
}

/* Apply the fade-in animation to the form */
.card {
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    transition: transform 0.2s ease-in-out;
}

/* Increase the scale for the hover effect */
.card:hover {
    transform: scale(1.03); 
}

/* Define the fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Define the pop-up animation */
@keyframes pop-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add other styles for the form */
.form-control {
    margin-bottom: 10px;
}

.btn-primary {
    margin-top: 10px;
    margin-bottom: 10px;
}


/* Adopt Card style */
.adopt-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 5px auto;
    width: auto;
    max-width: 100%;
}

.adopt-card{
    display:flex;
    flex-direction: column;
    width: 350px;
    /* padding:10px; */
    /* height: max-content; */
    height: auto;
    border-radius:8px;
    overflow: hidden;
    /* box-shadow: 0px 2px 4px #f1c40f; */
    /* border-bottom: 1px solid #f1c40f; */
    margin: 20px;
}

/* .adopt-card:hover{
    transform: scale(1.03); 
} */

.adopt-card h2{
    /* color:#f1c40f; */
    color: white;
}

.adopt-card-img {
    overflow: hidden;
    position: relative;
    height: 340px;
}

.adopt-card img{
    width: 100%;
    height: 350px;
    object-fit: cover;
    animation: fadeIn 1.5s ease-in-out forwards;
    transition: transform 0.2s ease-in-out;
    /* padding: 13px;
    border-radius: 30px;
    margin-top: 1px */
}

/* .adopt-card img:hover{
    transform: scale(1.03); 
} */

.card-content {
    display: flex;
    flex-direction: column;
    /* position: relative; */
    align-items: flex-start;
    border: 1px solid #f1c40f;
    border-top:none;
    border-radius: 0 0 8px 8px;
    background-color: #f1c40f;
    padding: 16px;
    padding-top: 5px;
    padding-bottom: 10px;
}

.card-content p{
    /* font-size: 15px; */
    /* line-height: ; 1.3*/
    font-weight: 500;
}


/* Custom Accordion style */
.adopt-accordion {
    background-color: #f1c40f;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}
  
.adopt-accordion .active, .adopt-accordion:hover {
    background-color: brown;
}

.adopt-accordion:after {
    content: '\002B';
    color: white;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.adopt-accordion .active:after {
    content: "\2212";
    color: white;
}
  
.adopt-panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}


/* Adopt card button style */
.adopt-container .adopt-card .learn-more-btn{
    color: white;
    background-color: white;
    color: #f1c40f;
    border: none;
    border-radius: 2px;
    margin: 10px 0;
    padding: 8px;
    font-weight: 600;
    transition: transform 0.2s ease-in-out;
}

.adopt-container .adopt-card .learn-more-btn:hover{
    transform: scale(1.03);
    /* opacity: 0.8; */
    /* background-color: #f6d243; */
    /* #f6d243 */
    /* color: white; */
}

/* Popup box style */
.adopt-container .adopt-card .learn-more-cont, .learn-more-cont-img{
    display: none;
}
  
.popup-box{
    position: fixed;
    height: 100%;
    width: 100%;
    top:0;
    left:0;
    background-color: rgba(0, 0, 0,0.5);
    z-index: 1200;
    visibility: hidden;
    opacity: 0;
    transition: all 0.1s ease-in-out;
}

.popup-box.open{
    visibility: visible;
    opacity: 1;
}

.popup-content{
    display: flex;
    background-color: white;
    width:1100px;
    height: auto;
    max-height: 800px;
    position: absolute;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
    border-radius: 3px;
    flex-direction: row;
    overflow: auto;
}

.popup-content h2{
    color:#f1c40f;
}

.popup-box .popup-header{
    padding: 15px;
    padding-bottom: 5px;
}

.popup-box .popup-header .popup-close-icon{
    position: absolute;
    height: 30px;
    width: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 28px;
    right: 5px;
    top: 5px;
    cursor: pointer;
}

.popup-box .popup-body{
    padding: 15px;
    padding-top: 5px;
}

.popup-box .popup-body p{
    font-weight: 500;
    color:#495057;
}

.popup-box .popup-img{
    display:flex;
    align-items: center;
    width: 45%;
    height: auto;
    margin: 5px 5px;
}

.popup-box .popup-description{
    display: flex;
    flex-direction: column;
    width:55%;
}

.popup-box .popup-img img {
    width: 100%;
}


/* Owl Carousel Custom style*/
.owl-carousel .owl-stage { 
    display: flex; 
    align-items: center; 
    vertical-align: middle;
    margin: 0 auto; 
}

.owl-stage-outer{ 
    border-radius: .20rem;
}

.owl-theme .owl-nav {
    margin-top: 0px !important;
}

.owl-carousel .owl-next, .owl-prev{
    position:absolute;
    top: 50%;
    background:none !important;
    color: #ffffff99 !important;
}

.owl-nav .owl-next:hover, .owl-prev:hover{
    background: none !important;
    outline: none !important;
    color: #fff !important;
}


.owl-carousel .owl-next{
    right:0
}

.owl-carousel .owl-prev{
    left:0
}

/* Bootstrap Carousel control button position*/
.control-prev-margin{
    margin-left: 22px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.control-next-margin{
    margin-right: 22px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.carousel-inner {
    border-radius: .20rem;
}


/* Responsive popup box*/
@media(max-width:1024px){
    .popup-box .popup-content{
        width: calc(100% - 30px);
        height: calc(100% - 30px);
    }
    .popup-box .popup-img img {
        width: calc(100% - 30px);
        height: calc(100% - 30px);
    }
}
