*{
  margin: 0;
  padding: 0;
}
html{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  text-align: center;
}
body{
  padding: min(50px, 7%);
  background-color: rgb(13, 13, 20);
}
h1{
  margin: 30px 0;
}
.card{
  padding: 2em;
  border: 1px solid rgb(75, 82, 92);
  border-radius: 10px;
  background-color: #222429;
  text-align: center;
}
.grid-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  justify-content: center;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}

th, td {
  border: 1px solid #ccc;
  padding: 8px;
}

th {
  background-color: #f4f4f4;
}

.hover-word {
  position: relative;
  cursor: pointer;
  color: #007bff;
}

.hover-word:hover .tooltip {
  display: block;
}

.tooltip {
  display: none;
  position: absolute;
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
}

/* Added for the modal */
/* Styling for modal and layout */
body {
  font-family: Arial, sans-serif;
}

button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px 5px;
}

button:hover {
  background-color: #0056b3;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 95%;
  max-width: 800px;
  /* max-height: 90%; */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* border-radius: 10px; */
  z-index: 1000;
  overflow-y: initial !important;
}

.modal-header {
  background-color: #007bff;
  color: white;
  padding: 15px;
  text-align: center;
  position: relative;
  font-size: 22px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  position: absolute;
  top: -5px;
  right: 2px;
  cursor: pointer;
  color: white;
}

.modal-close:hover {
  color: #ddd;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  height: 85vh;
}

/* Verse layout */
.verse-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid #d5dfff;
  padding-bottom: 20px;
}

.verse-number {
  font-size: 20px;
  font-weight: bold;
  color: #007bff;
  margin-right: 10px;
  text-align: left
}

.verse-text {
  font-size: 25px;
  line-height: 1.8;
  text-align: right;
}

.verse-translation {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
  text-align: left;
}

.hover-word {
  position: relative;
  cursor: pointer;
  color: #000; /* 007bff */
}

.hover-word:hover .tooltip {
  display: block;
}

.tooltip {
  display: none;
  position: absolute;
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
}

.highlight {
  background-color: #0f0;
  font-weight: bold;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.show {
  display: block;
}