/* Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f4f4f4;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  margin: auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  margin-right: 10px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-link span {
  font-size: 24px;
  font-weight: bold;
  margin-left: 10px;
}

.icon {
  width: 20px;
  height: 20px;
}

.header-right button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #000000;
  cursor: pointer;
}

/* Welcome Page */
.welcome-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.welcome-popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 80%;
  max-width: 500px;
}

.welcome-popup h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.welcome-popup p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #000;
}

.welcome-popup-link {
  text-decoration: underline;
  color: #000;
  cursor: pointer;
}

.welcome-popup-link:hover {
  color: #666;
}

.welcome-continue-btn {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.welcome-continue-btn:hover {
  background-color: #666;
}

/* Search Bar */
#searchBar {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f8f8f8;
  margin-bottom: 20px;
}

#searchBar.dark-mode {
  background-color: #666;
  color: #FFF;
  border: 1px solid #000;
  border-radius: 8px;
}

/* Placeholder Style in Regular Mode */
#searchBar::placeholder {
  color: #aaa;
}

/* Placeholder Style in Dark Mode */
body.dark-mode #searchBar::placeholder {
  color: #ddd;
}

/* Word List */
.word-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
}

.word-list.dark-mode {
  background-color: #666;
  border: 1px solid #000;
  color: #FFF;
}

.word-list li {
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.word-list li:hover {
  background-color: #f0f0f0;
}

.word-list li.dark-mode:hover {
  background-color: #999999;
  color: #000;
  border: 1px solid #000;
}

.word-list li:last-child {
  border-bottom: none;
}

/* General Pop-Up Styles */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 80%;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Pop-Up Content */
.popup-content {
  width: 100%;
  text-align: center;
}

.popup h2 {
  font-size: 28px;
  margin: 10px 0;
  text-align: center;
}

.popup p {
  font-size: 18px;
  margin: 20px 0;
  text-align: center;
  line-height: 1.5;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #333;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.download-icon {
  width: 150px;
  cursor: pointer;
}

/* Style the Back to Top button with a background image */
#topBtn {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 30px;
	z-index: 99;
	width: 50px;
	height: 50px;
	border: none;
	outline: none;
	background-image: url(https://res.cloudinary.com/hazo-connect/image/upload/v1734535561/Web-UpArrow_pduwuz.png);
	background-size: cover;
	cursor: pointer;
	border-radius: 50%;
	background-color: white;
}

/* Add a hover effect for the button */
#topBtn:hover {
	background-color: #0094ff;
}

.mobile-message p {
	font-size: 18px;
	margin-bottom: 20px;
}

.mobile-message {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 20px;
	position: fixed;
	top: 50%;
	left: 50%;
	color: #000;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 1);
	z-index: 1000;
	width: 310px;
	padding: 20px;
	border-radius: 8px;
}

/* Dark Mode */
body.dark-mode {
  background-color: #000;
  color: #FFF;
}

/* Pop-Up Styles in Dark Mode */
body.dark-mode .popup {
  background-color: #333;
  color: #fff;
}