body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: #fafafa;
    margin: 0;
    position: relative;
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5vh; /* отступ сверху */
    position: relative;
}

/* Картинка строго под размер и с глубокой тенью */
.image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

#animal-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 30vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); /* глубокая тень */
}

/* Кнопка — фиксирована по центру страницы */
#refresh-btn {
    position: fixed;
    bottom: 50%;
    transform: translateY(50%);
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 10;
}

#refresh-btn:hover {
    transform: translateY(50%) translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

#refresh-btn:active {
    transform: translateY(50%) scale(0.98);
}

/* Лоадер */
.loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
