/* Random Animal Generator Styles */
.rag-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rag-container h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

.rag-container > p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.rag-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rag-controls label {
    font-weight: 600;
    color: #333;
}

#animalCount {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

#animalCount:hover,
#animalCount:focus {
    border-color: #4CAF50;
    outline: none;
}

#generateAnimals {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#generateAnimals:hover {
    background: #45a049;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

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

.rag-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.animal-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.animal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.animal-name {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.animal-card img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.animal-emoji {
    font-size: 80px;
    line-height: 1;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 2px solid #e9ecef;
}

/* Responsive design */
@media (max-width: 768px) {
    .rag-container {
        padding: 15px;
    }
    
    .rag-container h2 {
        font-size: 1.5em;
    }
    
    .rag-results {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .animal-card {
        padding: 15px;
    }
    
    .animal-name {
        font-size: 1.1em;
    }
    
    .animal-card img {
        max-width: 150px;
    }
    
    .animal-emoji {
        font-size: 60px;
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .rag-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #animalCount,
    #generateAnimals {
        width: 100%;
    }
    
    .rag-results {
        grid-template-columns: 1fr;
    }
}