html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
:root {
  --font-size: 1.6rem;
  --font-size-mobile: 1.1rem;
  --background-color: #5752ff;
}
body {
  padding: 0;
  margin: 0;
  background-color: #eee;
  font-size: var(--font-size);
}
.merath-image {
  width: 23rem;
  height: 10rem;
  margin-top: 0;
}

[data-tab-content] {
  display: none;
  background-color: rgb(252, 250, 250);
}
.activated[data-tab-content] {
  display: block;
}
.tabs {
  display: grid;
  justify-content: space-around;
  align-content: space-around;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  margin: 0 auto;
   max-width: 65rem;
}

.tab {
  cursor: pointer;
  padding: 15px;
}
.tab.activated {
  background-color: var(--background-color);
  color: #fff;
}
.tab:hover {
  background-color: var(--background-color);
  color: white;
}
.tab-content {
  margin-left: 0px;
  margin-right: 0px;
  background-color: white;
}
.warith-table,
.merathtable {
  display: grid;
  justify-content: center;
  align-content: center;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(auto-fill, 1fr);
  margin: 0 auto;
  border-radius: 5px;
  max-width: 65rem;
  padding-left: 1px;
  padding-right: 1px;
  width: max-content;
}
.merathtable1 {
  display: grid;
  justify-content: center;
  align-content: center;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(auto-fill, 1fr);
  margin: 0 auto;
  border-radius: 5px;
  max-width: 65rem;
  padding-left: 1px;
  padding-right: 1px;
  width: max-content;
}
.merathtable3{
  display: grid;
  justify-content: center;
  align-content: center;
  /*   min-height: 100vh; */
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(auto-fill, 1fr);
  margin: 0 auto;
  border-radius: 5px;
  max-width: 65rem;
  padding-left: 1px;
  padding-right: 1px;
}
.warith-cell {
  min-width: max-content;
}
.currency {
  margin: 0 auto;
  width: calc(65rem);
}
div.box1:nth-child(4) {
  color: red;
}

.alert {
  cursor: pointer;
  color: white;
  border: none;
  outline: none;
  border-radius: 0.1em;
  font-weight: bold;
  height: 3rem;
  text-align: center;
  max-width: 65rem;
  margin: 0 auto;
  /*         display: grid;
        justify-content: center;
        align-content: center;
        margin: 0 auto;
        border-radius: 5px;
        max-width: 65rem;
        padding-left: 1px;
        padding-right: 1px; */
}
.warith-table:first-child,.merathtable3:first-child {
  box-shadow: 0 0 10px 2px;
}

.warith-table > div,
.merathtable > div,
.merathtable3>div
 {
  border: 1px solid #ddd;
  outline: none;
  justify-content: space-around;
  color: #000000;
  align-items: center;
}

.secondGrade {
  border: 1px solid #ddd;
}
.legacy {
  grid-row-start: 1;
  grid-row-end: 3;
}
.legacy2 {
  grid-row-start: 1;
  grid-row-end: 4;
}
.legacyInput {
  height: 70px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
}
.merathInput {
  border: none;
  width: 100%;
  height: 100%;
}

/*     #mainLegInput:focus, #mainLeg2Input:focus, #mainLeg3Input:focus, .land:focus{
        background-color: #000000;
        color: #fff;
    }

    ::placeholder{
        color:#fff;
    }
    ::placeholder:focus{
        color: #f6f6f6;
    } */
.layer {
  max-width: 65rem;
  background-color: var(--background-color);
  color: #fff;
  padding-left: 1px;
  padding-right: 1px;
  margin: 0 auto;
}
.btn-primary,
.resuEar {
  cursor: pointer;
  color: white;
  background-color: #297261;
  border: none;
  outline: none;
  border-radius: 0.1em;
  /*   font-weight: bold; */
  margin: 0 1%;
}
.btni {
  cursor: pointer;
  background-color: #008cba;
  outline: none;
  font-weight: bold;
  border: none;
}
#n6,
#result,
.result {
  cursor: pointer;
  color: #fff !important ;
  background-color: var(--background-color);
  border: none;
  outline: none;
  border-radius: 0.1em;
  font-weight: bold;
  height: 3rem;
  margin-top: 2rem;
  /*    position:absolute; */
  /*   margin: auto; */
  /*  margin-top: 35rem; */
  text-align: center;
}
.banar {
  color: #fff !important ;
  background-color: var(--background-color);
  border: none;
  outline: none;
  border-radius: 0.1em;
  font-weight: bold;
  text-align: center;
}
.btn-primary:hover,
.resuEar:hover {
  background-color: #297261;
}

.warith-table label,
select {
  display: block;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.warith-table,
select {
  width: 100%;
  outline: none;
  border: none;
  padding-right: 29px;
  padding: 0;
}
.warith-table input,
.warith-table select {
  width: 100%;
  border: none;
  outline: none;
  margin-top: 2rem;
}
.instruction {
  background-color: #d8e6ee;
  display: inline;
  outline: none;
}
.instruction > span {
  display: inline-block;
  animation: slide 1s ease-in-out infinite;
  margin-left: 1rem;
}
#fsClass {
  padding-top: 3rem;
  pointer-events: none;
}
#fsClass span,
.broClass span {
  width: 100%;
  cursor: pointer;
  color: white;
  background-color: var(--background-color);
  border: none;
  outline: none;
  border-radius: 0.1rem;
  margin: 0 auto;
  pointer-events: all;
  float: right;
  font-size: var(--font-size);
}
#n6:hover,
#result:hover,
.result:hover,
#fsClass span:hover {
  background-color: var(--background-color);
  font-size: var(--font-size);
}

.tooltipMerath {
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}

.tooltipMerath::before,
.tooltipMerath::after {
  --scale: 0;
  --arrow-size: 16px;
  --tooltip-color: rgba(61, 61, 61, 0.7);
  position: absolute;
  top: -0.16rem;
  left: 50%;
  transform: translateX(-50%) translateY(var(--translate-y, 0))
    scale(var(--scale));
  transition: 200ms transform;
  transform-origin: bottom center;
  /*   border: 1.2rem solid transparent; */
}
.tooltipMerath::before {
  --translate-y: calc(-100% - var(--arrow-size));
  content: attr(data-tooltip);
  color: white;
  padding: 0.3rem;
  border-radius: 0.3rem;
  text-align: center;
  width: 100%;
  width: max-content;
  width: 740px;
  background-color: var(--tooltip-color);
}
.tooltipMerath:hover::before,
.tooltipMerath:hover::after {
  --scale: 1;
}
.tooltipMerath::after {
  --translate-y: calc(-1 * var(--arrow-size));
  content: '';
  border: var(--arrow-size) solid transparent;
  border-top-color: var(--tooltip-color);
  transform-origin: top center;
}

[data-tooltip] {
  font-weight: normal;
  color: #01034d;
}

.alert-danger {
  color: #721c24;
  background: #f8d7da;
}
.alert-success {
  color: #155724;
  background: #d4edda;
}
.layer3_plus span,
#uncleScondClass {
  color: blue;
}
@keyframes slide {
  0%,
  100% {
    transform: translate(-1rem, 0);
    color: rgb(226, 214, 214);
  }

  50% {
    transform: translate(0.4rem, 0);
    color: #000;
  }
}
.span {
  grid-column: 1 / 3;
}

.span2 {
  grid-column: span 2;
}
.span3 {
  grid-column: span 3;
}
.span4 {
  grid-column: span 4;
}
.span5 {
  grid-column: span 5;
}
.span6 {
  grid-column: span 6;
}
.span7 {
  grid-column: span 7;
}
.span8 {
  grid-column: span 8;
}
.hide {
  display: none;
}

.span5 {
  background-color: rgb(251, 253, 255);
}

/* .layer2ChildTitle{
    background-color:rgba(61, 61, 61, .60);
    color: white !important;
    padding: 10px;
} */
.resuEar {
  cursor: pointer;
}
.rcol,
.rcol2 {
  /*       background-color: rgba(0, 0, 0, .60); */
  background-color: var(--background-color);
  font-weight: bold;
  color: white !important;
  min-width: fit-content;
}

.bold {
  font-weight: bold;
}

.source {
  margin: auto;
  max-width: 65rem;
  text-align: justify;
  padding: 1rem;

}
.source-span {
  text-align: justify;
}
.input {
  transition: all 1s ease-in-out;
}
.zero {
  text-decoration: line-through;
  opacity: 0.6;
}

.select {
  position: relative;
  overflow: hidden;
}
select {
  cursor: pointer;
}

/*         .select:hover::after{
            content: "اختر حياة الأب أو وفاته";
            position: absolute;
            top: 0;
            right: 30px;
            pointer-events: none;
        } */
.mon {
  outline: none;
  border: none;
  padding: 0;
  margin: 0 auto;
  box-shadow: none;
  background-color: rgb(0, 0, 0, 0.02);
  border-color: #ccc;
  border-style: none none solid none;
  transition: all 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
}

@media (max-width: 650px) {
  body {
    font-size: var(--font-size-mobile);
  }
  .warith-table,
  .merathtable,
  .tabs,
  .layer,
  .source,
  .currency {
    max-width: 38rem;
    font-size: var(--font-size-mobile);
  }
  .warith-table,
  .merathtable,
  .tabs,
  .warith-table label,
  select .tab,
  .layer,
  .source {
    font-size: var(--font-size-mobile);
  }
  .tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .rcol,
  .rcol2 {
    font-size: var(--font-size-mobile);
  }
}
@media (max-width: 375px) {
  .warith-table,
  .merathtable,
  .tabs,
  .layer,
  .source,
  .currency {
    max-width: 32rem;
    font-size: var(--font-size-mobile);
  }
  .warith-table,
  .merathtable,
  .tabs,
  .warith-table label,
  select .tab,
  .layer,
  .source {
    font-size: var(--font-size-mobile);
  }
  @media (max-width: 320px) {
    .warith-table,
    .merathtable,
    .tabs,
    .layer,
    .source {
      max-width: 30rem;
      font-size: var(--font-size-mobile) !important;
    }
    .warith-table,
    .merathtable,
    .tabs,
    .warith-table label,
    select .tab,
    .layer,
    .source {
      font-size: var(--font-size-mobile) !important;
    }
    .tabs {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media print {
    .topnav,
    .footers,
    #myBtn,
    #btn,
    .whatsapp,
    .btn-primary,
    #dot {
      display: none;
    }

    .warith-table,
    .merathtable,
    .source,
    .layer,
    .tabs {
      margin: 0;
      border-radius: 5px;
      max-width: 100%;
    }
  }
  #alawiweb {
    font-size: 85%;
    color: blue;
  }

  @media screen {
    #alawiweb {
      display: none;
    }
  }
}

/* valadation style */

input.valid {
  border-color: #36cc36;
}
input.invalid {
  border-color: orange;
}

input + p {
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 0;
  color: orange;
  opacity: 0;
  height: 0;
}

input.invalid + p {
  opacity: 1;
  height: auto;
  margin-bottom: 20px;
}
