html {
  scroll-behavior: smooth;
  }
body
{
    text-align: center;
    font-family: 'Amiri', serif;
}
.myStyling{
    margin: 100px 0;
}
.dropdown-menu,.card-text{
  text-align: right;
}

.df-switch {
  margin-top: 50px;
  padding: 2rem;
  text-align: center;
}
.btn-toggle {
  top: 50%;
  transform: translateY(-50%);
}
.btn-toggle {
  margin: 0 4rem;
  padding: 0;
  position: relative;
  border: none;
  height: 1.5rem;
  width: 5rem;
  border-radius: 1.5rem;
  color: #6b7381;
  background: green;
}
.btn-toggle:focus,
.btn-toggle.focus,
.btn-toggle:focus.active,
.btn-toggle.focus.active {
  outline: none;
}
.btn-toggle:before,
.btn-toggle:after {
  line-height: 1.5rem;
  width: 4rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: absolute;
  bottom: 0;
  transition: opacity 0.25s;
}
.btn-toggle:before {
  content: 'ENGLISH';
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  left: -6rem;
  color: black;
  opacity: 0.5;
}
.btn-toggle:after {
  content: 'عربي';
  font-size: 20px;
  font-family: 'Amiri', serif;
  right: -5rem;
  opacity: 1;
  color: green;
}
.btn-toggle > .inner-handle {
  border-radius: 13px;
  width: 65px;
  height: 13px;
  position: absolute;
  top: 6px;
  left: 8px;
  background-color: green;
  box-shadow: inset 1px 1px 2px -1px black;
}
.btn-toggle.active > .inner-handle {
  background-color: black;
}
.btn-toggle > .handle:before {
  content: "";
  position: absolute;
  height: 34px;
  width: 34px;
  top: 35%;
  left: 11px;
  background-image: radial-gradient(circle at center, green 5px, transparent 5px);
  background-size: 10px 10px;
  background-repeat: no-repeat;
}
.btn-toggle.active > .handle:before {
  background-image: radial-gradient(circle at center, black 5px, transparent 5px);
}
.btn-toggle > .handle {
  position: absolute;
  top: -0.2875rem;
  right: 0.3875rem;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 1.125rem;
  background: #fff;
  transition: right 0.25s;
  border: 1px solid #ccc;
}
.btn-toggle.active {
  transition: background-color 0.25s;
}
.btn-toggle.active > .handle {
  right: 2.4175rem;
  transition: right 0.25s;
}
.btn-toggle.active:before {
  opacity: 1;
}
.btn-toggle.active:after {
  opacity: 0.5;
  color: green;
}
.btn-toggle.active {
  background-color: black;
}
