/* styles.css */

body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background-color: #f9f9f9;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
    background-color: #333;
    color: #fff;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

label {
    font-weight: bold;
    margin-right: 10px;
}

button {
    background-color: #292929;
    color: #dedede;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

select {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s, transform 0.3s;
}

select:focus {
    border-color: #007BFF;
    transform: scale(1.05);
}

.elephant-display {
    position: relative;
    width: 500px; /* Increased width */
    height: 500px; /* Increased height */
    margin: 20px auto;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.elephant-display img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease-in-out; /* Smooth transition for opacity */
}

.temp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0; /* Start with opacity set to 0 for fade-in effect */
    transition: opacity 0.3s ease-in-out; /* Smooth transition for opacity */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .controls div {
        width: 100%;
        text-align: left;
    }

    .controls label,
    .controls select {
        display: block;
        width: 100%;
    }

    .controls select {
        margin-top: 5px;
        padding: 8px;
        font-size: 0.9em;
    }

    .elephant-display {
        width: 100%;
        height: auto;
        padding-bottom: 100%; /* Maintain aspect ratio */
    }

    .elephant-display img {
        width: 100%;
        height: auto;
    }
}

/* Dark mode styles */
.dark-mode body {
    background-color: #333;
    color: #fff;
}

.dark-mode .elephant-display {
    background-color: #444;
    border-color: #666;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .elephant-display img {
    opacity: 0.9;
}

.dark-mode button {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode button:hover {
    background-color: #777;
}
