body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 30px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.upload-area {
    margin: 30px 0;
}

.drop-zone {
    border: 2px dashed #3498db;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.drop-zone:hover {
    background-color: #f0f8ff;
    border-color: #2980b9;
}

.drop-zone.highlight {
    background-color: #e1f0fa;
    border-color: #1abc9c;
}
.drop-zone p {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 8px;
}
#uploadBtn {
    cursor: pointer;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
    transition: background-color 0.3s;
}
.drop-zone label {
    display: block;
    cursor: pointer;
}
#uploadBtn:hover {
    background-color: #2980b9;
}

.result-area {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.image-preview {
    text-align: center;
    margin-bottom: 20px;
}

#previewImage {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
}

.prediction-result {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

#tryAgainBtn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

#tryAgainBtn:hover {
    background-color: #27ae60;
}

.loading {
    text-align: center;
    margin: 30px 0;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.examples {
    margin-top: 40px;
    margin-left: 50px;
}


.example-images {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 15px;
}

.example-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 5px;
}

.example-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.drop-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s;
  }
  .drop-zone.highlight {
    border-color: #4CAF50;
    background-color: #f8f8f8;
  }
  .spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
