@font-face {
  font-family: "rubik";
  src: url("/wp-includes/fonts/Rubik-VariableFont_wght.ttf");
}

body {
  font-family: "rubik", arial;
}

.result {
  height: 250px;
  overflow-x: none;
  direction: ltr;
}
/* // */
.search {
  text-align: -webkit-center; 
  padding: 50px;
}

#results {
  list-style-type: none;
  padding-inline-start: 0px;
  direction: rtl;
}

#results > li {
  padding: 20px;
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 5px 5px 5px grey;
  max-width: 70%;
  margin: 20px auto;
  background-color: #f4eedb;
}

.title {
  color: #00367c;
  margin: auto;
  margin-bottom: 10px;
  font-family: Rubik;
  font-weight: 700;
  font-style: Bold;
  font-size: 20px;
  line-height: 100%;
  text-align: center;
}

.hebrew-buttons-container,
.english-buttons-container {
  display: flex;
  /* grid-template-columns: repeat(12, 1fr); */
  grid-gap: 5px;
  justify-content: center;
}

.Search-buttons-container {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
  flex-direction: column;
  gap: 4px;
  width: 85%;
  justify-self: center;
}

.Search-buttons-container button {
  border: 1px solid #bfb5b5;
  background: white;
  color: #00367c;

  line-height: 20px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  vertical-align: middle;
  cursor: pointer;
  padding: 4px 8px;
  transition: 0.5s;
  width: 38px;
  height: 35px;
  border: 2px solid #c9cfe0;
  border-radius: 10px;
  font-family: "Rubik";
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
}

#results li > h3 {
  font-size: 16px;
}

.Search-buttons-container button:hover {
  cursor: pointer;
  background: #c9cfe0;
}

.Search-buttons-container button.active {
  background: #c9cfe0;
}

#term-search:focus {
  border-color: rgba(82, 168, 236, 0.8);
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 8px rgba(82, 168, 236, 0.6);
}

#term-search {
  font-family: "rubik", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #000000;

  border: 1px solid #00367c;
  border-radius: 3px;
  padding: 6px 10px 6px 36px;
  /* leave space for icon */
  background-color: #ffffff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z' fill='%23000000'/></svg>");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: 10px center;
  /* adjust icon position */
  transition: border 0.2s linear, box-shadow 0.2s linear;
  text-align: center;
  width: 170px;
  height: 19px;
  /* optional: set width */
  outline: none;
}

#term-search:focus {
  border-color: rgba(82, 168, 236, 0.8);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 8px rgba(82, 168, 236, 0.6);
}

.search-icon {
  vertical-align: middle;
  cursor: pointer;
}

.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-right: 35px;
}

/* Accordion container */
#results {
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

/* Accordion item */
.accordion-item {
  border: 1px solid #f5f5f5;
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  box-shadow: 3px 1px 6px 0px #c9cfe0;
}

/* Accordion header */
.accordion-header {
  width: 100%;
  text-align: right;
  /* for RTL */
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  background-color: white;

  border: none;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background-color: white;
}

/* Accordion body */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  background-color: #ffffff;
}

.accordion-body p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.4;
}

.accordion-arrow {
  transition: transform 0.3s;
  margin-left: 8px;
}

.accordion-header.active .accordion-arrow {
  transform: rotate(180deg);
}

#pagination-container {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}

#pagination-container button {
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 400;
  font-family: "rubik";
}

.accordion-header.active .letter {
  background: #c9cfe0;
}

.letter {
  border: 2px solid #c9cfe0;

  border-radius: 7px;
  border-width: 2px;
  padding: 5px 10px;
}
.sad-message {
  display: flex;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
}

@media screen and (max-width: 600px) {
  .hebrew-buttons-contianer,
  .english-buttons-contianer {
    grid-template-columns: repeat(3, 1fr);
  }

  .search {
    padding: 5px;
  }
}
