* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
html,
body {
    height: 100%;
    width: 100%;
}

body {
    background-image: url(newbg.png);
}



#navbar {
    background-color: #ba7743;
}

#navContent {
    display: flex;
    justify-content: space-evenly;
    align-self: center;
    padding: 30px 20px;
    color: azure;
    font-family: 'poppins';


}


#buffalo {
    height: 80px;
    position: absolute;
    left: 600px;
    top: 8px;
}

#uploadSection {
    height: 850px;
    width: 100%;
    display: flex;
    
}

#innerSection {
    margin-top: 40px;
    margin-bottom: 0rem;
    padding: 50px 20px;
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    border: 4px solid #8c4107;
}

#addPhoto {
    position: absolute;
    height: 600px;
    width: 500px;
    top: 4rem;
    left: 4rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 50px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    cursor: pointer;
    border: 12px dashed #ccc;
    
}

#addPhoto:hover {
    border-color: #8c4107;   /* darker when hovered */
    background: #fafafa;
}




#gallery {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#analyzeBtn {
    position: absolute;
    font-size: 30px;
    padding: 10px 10px;
    border-radius: 45px;
    top: 42.3rem;
    left: 12rem; /* adjust as needed */
    background-color: rgb(17, 177, 17);
    font-family: "poppins";
}



#analyzeBtn:hover {
    cursor: pointer;
    background: linear-gradient(135deg, #8c4107, #ba7743);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 119, 67, 0.4);
}

#analyzeBtn:active {
    transform: translateY(0);
}

#loadingIndicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ba7743;
    z-index: 10;
}

#loadingIndicator p {
    margin-top: 15px;
    font-family: 'Poppins', poppins;
    font-size: 14px;
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ba7743;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#similaritySection {
    position: absolute;
    height: 200px;
    width: 700px;
    top: 4rem;
    left: 37rem;
    box-shadow: 0 8px 50px rgba(0,0,0,0.1);
    border: 3px solid green;

}

#descriptionSection {
    position: relative;
    height: 380px;
    width: 700px;
    top: 14.5rem;
    left: 36rem;
    box-shadow: 0 8px 50px rgba(0,0,0,0.1);
    border: 3px solid green;


}

#similaritySection, #descriptionSection {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

#similaritySection h2 {
    font-family: 'poppins', poppins;
    font-size: 24px;
    color: #333;
}

#descriptionSection h3 {
    font-family: 'poppins', poppins;
    font-size: 20px;
    margin-bottom: 10px;
    color: #444;
}

#breedDescription {
    font-family: 'poppins', poppins;
    font-size: 15px;
    color: #555;
}

/* Styles for all breeds section */
#allBreedsSection {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

#allBreedsSection h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

/* Breed item styles - clickable buttons */
.breed-item {
    position: relative;
    display: inline-block;
    margin: 5px;
    animation: fadeIn 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breed-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.breed-item:active {
    transform: scale(0.98) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#footer {
    height: 220px;
    width: 100%;
    background-color: #8c4107;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-family: 'poppins';
    color: #fdf7e6;
}

#box1 {
    height: 200px;
    width: 300px;
    
    position: absolute;
    left: 25px;
    

}

#box1 a {
    text-decoration: none;
    color: #fdf7e6;
}

#box1 h2{
    padding-top:1rem ;
    padding-bottom: 3rem;
    left: 10px;
}

#box2 {
    height: 200px;
    width: 300px;
   
    position: absolute;
    left: 25rem;
    

}

#imgFooter {
    position: absolute;
    left: 4rem;
}

#box2 img {
    height: 40px;
    margin-top: 5rem; 
}

#box2 p {
    top: 8rem;
    left: 6rem;
    position: absolute;
}


#box3 {
    height: 200px;
    width: 300px;
    
    position: absolute;
    left: 48rem;
    
}

#box3 h2 {
    top: 1rem;
    left: 5rem;
    position: absolute;
    padding-bottom: 3rem;
}



#box3 a{
    text-decoration: none;
    color: #fdf7e6;
    
    
}

#box3 h3 {
    position: absolute;
    font-size: 18px;
    top: 5rem;
    left: 5.5rem;


}

#box3 p {
    position: absolute;
    font-size: 18px;
    top: 8rem;
    left: 7rem;
}

#box4 {
    height: 200px;
    width: 350px;
    
    position: absolute;
    left: 72rem;
    
}

#box4 img {
    position: absolute;
    height: 5.8rem;
}

#box4 h2 {
    position: absolute;
    left: 5.8rem;
    top: 1.4rem;
}

#box4 h3 {
    position: absolute;
    top: 5rem;
    font-weight: 100;
}

#box4 p {
    position: absolute;
    top: 9rem;
    font-weight: 100;
}