:root {
  --primary-gradient: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
  --hover-gradient: linear-gradient(135deg, #0052d9 0%, #50dfff 100%);
  --background-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --card-gradient: linear-gradient(to right bottom, #ffffff 0%, #f8f9fa 100%);
  --background-overlay: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
}

body {
  font-family: 'Poppins';
  min-height: 100vh;
  background-image: var(--background-overlay), url('linus.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  background: var(--primary-gradient);
  padding: 1rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffeb3b;
}

.logo {
  display: block;
  margin: 0 auto;
  max-width: 500px; /* Adjust the size as needed */
}

.slogan {
  font-size: 1.2rem;
  color: white; /* Change text color to white */
  margin-bottom: 2rem;
  text-align: center;
}

main {
  width: 80%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#dropArea {
  width: 100%;
  padding: 2rem;
  border: 2px dashed #0061ff;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#dropArea:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 97, 255, 0.1);
}

#dropArea.drag-over {
  background: linear-gradient(45deg, rgba(0, 97, 255, 0.1), rgba(96, 239, 255, 0.1));
}

button {
  background: var(--primary-gradient);
  color: white;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 97, 255, 0.2);
}

button:hover {
  background: var(--hover-gradient);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 97, 255, 0.3);
}

.prediction-box {
  background: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold; /* Make the text bold */
  color: #0061ff; /* Change text color to match the theme */
}

.score-item:hover {
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.class-icon {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  border-radius: 50%;
}

.class-name {
  flex-grow: 1;
  font-size: 1.1rem;
  color: #333;
}

.percentage {
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background-color: #e3f2fd;
  min-width: 80px;
  text-align: center;
}

.image-preview-container {
  margin: 1rem 0;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
}

.image-preview-container img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-preview-container img:hover {
  transform: scale(1.02);
}

.history-log {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.log-date {
  font-size: 0.9rem;
  color: #666;
}

.log-details {
  display: flex;
  align-items: center;
}

.uploaded-image {
  width: 50px;
  height: 50px;
  margin-right: 1rem;
  border-radius: 8px;
  object-fit: cover;
}

.anime-girl {
  position: fixed;
  bottom: 0;
  width: 200px; /* Adjust the size as needed */
}

.anime-girl.left {
  left: 0;
}

.anime-girl.right {
  right: 0;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .score-item {
    flex-direction: column;
    text-align: center;
  }
  
  .class-icon {
    margin: 0 0 0.5rem 0;
  }
  
  .percentage {
    margin-top: 0.5rem;
  }
}
