body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: linear-gradient(to right, #e0f7fa, #f1f8e9);
    margin: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 1100px; /* increased from 700px */
    width: 100%;
    animation: fadeIn 0.8s ease-in-out;
}


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

h1 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 2.2em;
}

.intro-text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-box {
    background-color: #f0f4c3;
    border-left: 6px solid #afb42b;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    text-align: left;
}

.info-box h3 {
    margin-top: 0;
    color: #33691e;
}

.info-box ul {
    padding-left: 20px;
    margin-top: 10px;
}

.info-box li {
    margin-bottom: 5px;
    color: #444;
}

.note {
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

input[type="file"] {
    margin-bottom: 20px;
    border: 2px dashed #90caf9;
    padding: 12px;
    border-radius: 6px;
    width: calc(100% - 26px);
    background-color: #e3f2fd;
    cursor: pointer;
}

button {
    background-color: #00796b;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #004d40;
}

.hidden {
    display: none;
}

#imagePreviewContainer,
#results,
#noObjectDetected {
    margin-top: 20px;
    padding: 18px;
    border: 1px dashed #bbb;
    border-radius: 8px;
    background-color: #f9fbe7;
    animation: fadeIn 0.5s ease-in-out;
}

#detectionOutput p {
    font-size: 1.15em;
    margin: 8px 0;
    color: #333;
}

#detectionOutput strong {
    color: #1b5e20;
    font-size: 1.2em;
}







.snake-cards-section {
    margin-top: 40px;
    text-align: center;
}

.snake-cards-section h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #2e7d32;
}

.snake-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* changed from 250px */
    gap: 20px;
    margin-top: 20px;
}


.snake-card {
    background-color: #fff;
    border: 1px solid #c5e1a5;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.snake-card:hover {
    transform: scale(1.03);
}

.snake-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.snake-card h3 {
    color: #1b5e20;
    margin: 10px 0 5px;
    font-size: 1.2em;
}

.snake-card p {
    margin: 4px 0;
    color: #555;
    font-size: 0.95em;
}
