/* Root variables for undark mode */
:root {
  --background-color: #ffffff;
  --text-color: #000000;
  --link-color: #fff;
  --bg-color: #ffffff;
  --ad-color: #dedede;
  --ali-color: #c2c2c2;
  --card: #fff;
  --damaj: #333;
  --border: #ddd;
}

* {
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
  
}
body {
  font-family: "Tajawal", sans-serif !important;

  background-color: var(--background-color) !important;
  color: var(--text-color);
  font-family: "Tajawal", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow: hidden;

  -webkit-user-select: none; /* Safari/Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
}
html,
body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg-color);
  overflow-y: visible;
}

.sidepanel {
  width: 0;
  position: fixed;
  z-index: 999;
  top: 0;
  height: 100%;
  right: 0;
  background-color: var(--link-color);
  overflow-x: hidden;
  transition: 0.5s;

  box-shadow: -8px 0 6px -6px rgba(0, 0, 0, 0.5);
}

.sidepanel a {
  padding: 20px;
  text-align: right;
  text-decoration: none;
  font-size: 18px;
  background-color: var(--link-color);
  display: flex;
  transition: 0.3s;
  flex-direction: row-reverse;
  align-items: center;
}

/* Live Filter Button */
.filter-container {
  display: flex;
  justify-content: center;
  padding: 5px;
  margin: 10px auto;
  border-radius: 8px;
}

.live-toggle {
  align-items: center;
  display: flex;
  background: linear-gradient(to right, #ff0000, #dc37b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-direction: row-reverse;
  transition: all 0.3s ease;
  user-select: none;
  position: absolute;
  margin-left: 100px;
  margin-top: 15px;
  left: 0;
  top: 0;
  border-top: 3px solid transparent;
}

.live-toggle.active {
  color: crimson;
}

.live-toggle .check-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #999;
  border-radius: 50%;
  margin-left: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.live-toggle.active .check-icon {
}

.live-toggle.active .check-icon:after {
  content: "";
  position: absolute;
  top: 0px;
  left: 5px;
  width: 4px;
  height: 10px;
  border: solid #ff4136;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.live-toggle-text {
  font-weight: bold;
  font-size: 14px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h2 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.openbtn {
  position: absolute;
  margin-left: 0px;
  left: 0;
  border-top: 3px solid transparent;
  top: 0;
  border: none;
  padding: 18px;
  display: block;
  cursor: pointer;
}

.toggle {
  position: relative;
  margin-top: 10px;
  display: inline-block;
  width: 40px;
  height: 30px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: grey;
  transition: 0.4s;
  border-radius: 34px;
  height: 20px;
}

.toggle .slider:before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  right: 4px;
  bottom: 4px;
  background-color: #0a0a43;
  transition: 0.2s;
  border-radius: 6px;
}

.toggle input:checked + .slider {
  background-color: rebeccapurple !important;
}

.toggle input:checked + .slider:before {
  transform: translateX(-26px);
}
a {
  text-decoration: none;
}
a[disabled] {
  pointer-events: none;
  opacity: 0.5;
}
#settings-icon {
  position: absolute;
  margin-left: 50px;
  left: 0;
  top: 0;
  padding: 15px !important;
  border-top: 3px solid transparent;

  display: block;
  cursor: pointer;
  padding: 5px;
}

.title {
  top: 0;

  background: linear-gradient(to right, #ff0000, #dc37b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  right: 0;
  position: absolute;
  padding: 20px !important;
}

.padding {
  padding-top: 10px;
}
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--link-color);
  padding: 24px;
  border: 1px solid crimson;
  border-radius: 8px;
  width: 80%;
  direction: rtl;
}

.modal-content h2 {
  margin-top: 0;
}
.modal-content p {
  display: flex;
}
#close-modal {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
#close-bestmatchmodal {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
}
erm {
  font-size: x-small;
  margin: 5px;
}
#toggleFullscreen {
  position: absolute;
  border-top: 3px solid transparent;

  margin-left: 100px;
  left: 0;
  padding: 15px;
  top: 0;
  display: block;
  cursor: pointer;
}

.menu {
  padding: 5px;
  height: 50px;
  background-color: var(--background-color);
  margin: 0px;
  top: 0;
  right: 0;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

/* Form container */

.no-matches {
  text-align: center;
  translate: 0px 100px;
  min-height: 50vh;
}

#selected-day {
  font-size: 1rem;
  margin: 20px;
  margin-bottom: 10px;
  background: linear-gradient(to right, #ff0000, #dc37b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
