* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #e8f5ee);
}

.container {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.logo {
  width: 120px;
  margin-bottom: 40px;
}

h1 {
  color: #1f7a4c;
  margin-bottom: 10px;
}

.question {
  margin-bottom: 20px;
  color: #1f7a4c;
}

.questionp {
  margin-bottom: 15px;
  color: gray;
}

.emojis {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.emoji-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100px; /* Give each item a fixed width to ensure centering */
}

.emoji-item span {
  font-size: 16px;
  font-weight: 700;
  color: #1f7a4c;
  text-align: center;
  white-space: nowrap;
}

.emojis button {
  font-size: 50px;
  background: #f1f1f1;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: 0.3s;
}

.emojis button:hover {
  transform: scale(1.2);
  background: #d9f2e4;
}

.emojis button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
}

.lang-switch button {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: #1f7a4c;
  color: #fff;
  cursor: pointer;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width:600px) {
  .card {
    padding: 20px;
  }

  .emojis {
    gap: 8px;
  }

  .emojis button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.new-btn {
  padding: 7px 14px;
  border-radius: 8px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1f7a4c;
  border: none;
  margin: 20px auto;
  cursor: pointer;
}

.toaster {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f7a4c;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    font-weight: 600;
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}