* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  overflow-x: hidden;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.container {
  background-color: #fff;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 60%;
  margin-bottom: 40px;
}

h1 {
  text-align: center;
  color: #1f6eae;
  margin-bottom: 0.5rem;
}

h3 {
  text-align: center;
  color: #1f6eae;
  margin-bottom: 1.5rem;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.search-box input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  color: #1f6eae;
  transition: border-color 0.3s;
}

.search-box input:focus {
  border-color: #1f6eae;
  outline: none;
}

.search-box button {
  padding: 0.75rem 1.2rem;
  background-color: #1f6eae;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.search-box button:hover {
  background-color: #155a96;
}

.result {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #1f6eae;
  font-size: 0.95rem;
  min-height: 150px;

  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.result a {
  word-break: break-all;
  color: #1f6eae;
  text-decoration: underline;
}

.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 90%;
  max-width: 1000px;
}

.category {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  height: 120px;
  transition: transform 0.2s ease;
}

.category:hover {
  transform: translateY(-10px);
}

.category img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.category span {
  font-size: 14px;
  color: #333;
  text-align: center;
}

.category.selected {
  background-color: #A6B7FF;
  color: white;
  box-shadow: 0 4px 12px rgba(31, 110, 174, 0.7);
}

.category.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}