.med-map-container img,.med-map-container canvas {
    border-radius: 18px;
    margin: 2rem 0;
  }

  .position-relative {
    position: relative;
  }

  .selected-services-row {
    margin-left: 1%;
  }

  #dgaServicesTabs {
    border-bottom: 1px solid #D2D6DB33;
    margin-top: 40px;
    padding: 0 !important;
    font-size: 12px !important;
  }

  #dgaServicesTabs .nav-link {
    background: transparent;
    color: var(--main-color);
    opacity: 0.8;
  }
  #dgaServicesTabs .nav-link:hover {
    border-top:0;
    border-right:0;
    border-left:0;
    border-bottom: 2px solid #BB9661;
  }
  
  #dgaServicesTabs .nav-link.active {
  background: transparent;
    color: var(--main-color);
    font-weight: 500;
    border-bottom: 2px solid #BB9661;
    border-top:0;
    border-right:0;
    border-left:0;
}

.main-toggle-mka {
  background-color: #484f57; border-radius: 0.25rem;border-radius: 25px;
}
.main-tab-mka {
  cursor: pointer; color: #fff; 
}

.main-tab-mka-active {
  background-color: #bb9566;
}

.tab-mataf {
  font-size: 12px;
  border-radius: 10px 0 0 10px;
}

.tab-masa {
  font-size: 12px;
  border-radius: 0 10px 10px  0;
}

/* Animation for tab content */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade {
  animation: fadeIn 0.5s ease-in-out;
}

.main-mka-legend {
  background-color: #484f57; border-radius: 0.25rem;border-radius: 10px;min-height:109px ;padding: 10px 0;
}
.main-mka-legend h6 {
  color: white;
  font-size: 14px;
}
.legend-box {
  width: 30px;
  height: 26px;
  border-radius: 5px;
}
.legend-text {
  color: #aaa;
  font-size: 10px !important;
  font-weight: 400;
  line-height: 160%;
  margin-bottom: 0;
  padding-top: 0 !important;
  padding-right: 10px;
  padding-left: 10px;
}
.legend-img {
  margin: 0 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}
.legend-hr {  
  border: 1px solid rgba(94, 87, 70, 1);background-color: rgba(94, 87, 70, 1); height: 80px;width: 1px;
}

.mataf-img {
background-image: linear-gradient(to top right, rgba(0, 0, 0, 0.3), transparent);
background-size: cover;
background-repeat: no-repeat;
}
.mt-20 {
margin-top: 12rem;
}

.right-card-mk {
background-color: rgb(72 79 87);
padding: 16px;
padding-left: 10px;
position: absolute;
width: 250px !important;
border-left: 3px solid rgb(63 69 76);
z-index: 50;
border-top-right-radius: 16px;
border-bottom-right-radius: 16px;
display: flex;
flex-direction: column;
align-items: start;
justify-content: center;
}

.left-card-mk {
background-color: rgb(72 79 87 / 80%);
padding: 16px;
position: absolute;
width: 240px !important;
border-left: 3px solid rgb(63 69 76);
z-index: 50;
border-top-left-radius: 16px;
border-bottom-left-radius: 16px;
}

.card-mk-title {
color: white !important;
font-size: 13px !important;
line-height: 0 !important;
padding: 10px 0 !important;
text-align: center;
}

.card-mk-desc {
color: rgba(153, 153, 153, 1);
line-height: 0 !important;
display: flex;
align-items: center;
}
.card-mk-desc p {
padding: 0 !important;
font-size: 12px !important;
}
.card-mk-desc span {
color: rgb(255, 255, 255);
font-size: 11px !important;
}
#first-card-mk {
bottom: 112%;right:-50%;
}
#second-card-mk{
bottom: 83%;left:-50%;
}
#third-card-mk{
bottom: 48%;right:-50%;
}
#four-card-mk{
bottom: 28%;left:-50%;
}

#first-card-mk-line {
position: absolute; bottom: 125%;right:5%;z-index: 60;
}
#second-card-mk-line{
position: absolute; bottom: 95%;left:5%;z-index: 60;
}
#third-card-mk-line{
position: absolute; bottom: 60%;right:5%;z-index: 60;
}
#four-card-mk-line{
position: absolute; bottom: 40%;left:5%;z-index: 60;
}

#first-card-mk-masa {
bottom: 90%;right:-50%;
}
#second-card-mk-masa{
bottom: 85%;left:-50%;
}
#third-card-mk-masa{
bottom: 30%;right:-50%;
}

#first-card-mk-masa-line {
position: absolute; bottom: 102%;right:5%;z-index: 60;
}
#second-card-mk-masa-line{
position: absolute; bottom: 98%;left:5%;z-index: 60;
}
#third-card-mk-masa-line{
position: absolute; bottom: 40%;right:5%;z-index: 60;
}


#mataf-four-circle {
position: absolute; bottom: 100%; left: 48%; transform: translateX(-50%);z-index:40
}


#mataf-third-circle {
position: absolute; bottom: 75%; left: 48%; transform: translateX(-50%);z-index:30
}


#mataf-second-circle {
position: absolute; bottom: 50%; left: 48%; transform: translateX(-50%);z-index:20
}

#mataf-first-circle {
position: absolute; bottom: 31%; left: 48%; transform: translateX(-50%);
}


#masa-third-sqaure {
position: absolute; bottom: 83%; left: 53%; transform: rotate(8deg) translateX(-50%);
}

#masa-second-sqaure {
position: absolute; bottom: 53%; left: 53%; transform: rotate(8deg) translateX(-50%);
}

#masa-first-sqaure {
position: absolute; bottom: 23%; left: 53%; transform: rotate(8deg) translateX(-50%);
}

@media screen and (max-width: 768px) {
  .legend-hr {
    height: 1px;
    width: 80%;
  }
  .mt-20 {
    margin-top: 18rem;
  }
  .right-card-mk {
    padding: 8px;
  }
  #first-card-mk {
      bottom: 140%;left:0;backdrop-filter: blur(44px);
  }
  #second-card-mk{
      bottom: 106%;left:0;backdrop-filter: blur(44px);
  }
  #third-card-mk{
      bottom: 73%;left:0;backdrop-filter: blur(44px);
  }
  #four-card-mk{
      bottom: 39%;left:0;backdrop-filter: blur(44px);
  }

  #mataf-four-circle {
    bottom: 133%;
    width: 30%;
        right: 15%;
  }
  #mataf-third-circle {
    bottom: 100%;
    width: 30%;
        right: 15%;
  }
  #mataf-second-circle {
    bottom: 65%;
    width: 30%;
        right: 15%;
  }
  #mataf-first-circle {
    bottom: 31%;
            width: 30%;
        right: 15%;
        z-index: 50;
  }

  .outer-container {
    overflow-x: hidden;   /* This prevents scrolling */
    position: relative;
    min-width: 100vw;
  }

  #mataf-img {
    position: relative;
    right: -45%;
    overflow: hidden;
  }

  #mataf-img img {
    width: auto;
    max-width: none;      /* Allow image to extend beyond normal limits */
    display: block;
  }


  #first-card-mk-masa {
      bottom: 170%;left:0;backdrop-filter: blur(44px);
  }
  #second-card-mk-masa{
      bottom: 115%;left:0;backdrop-filter: blur(44px);
  }
  #third-card-mk-masa{
      bottom: 55%;left:0;backdrop-filter: blur(44px);
  }

  #masa-third-sqaure {
    bottom: 138%;
  }

  #masa-second-sqaure {
    bottom: 78%;
  }

  #masa-first-sqaure {
    bottom: 20%;
  }

  #first-card-mk-line,
  #second-card-mk-line,
  #third-card-mk-line,
  #four-card-mk-line,
  #first-card-mk-masa-line ,
  #second-card-mk-masa-line,
  #third-card-mk-masa-line {
     display: none;
  }

}

.card-mk-floor {
  font-size: 1.8rem !important;
  font-weight: 600 !important;
  color: rgb(255, 255, 255) !important;
  position: absolute !important;
  top: 1px !important;
  right: 10px !important;
  font-family: Arial, sans-serif;
}
  
  
.selectable-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px 16px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 0 2px;
  height: 40px;
  text-decoration: none;
  color: var(--main-color) !important;
}

.selectable-btn.selected {
  background: #BB9661;
}






.slider{
  position: relative;
  margin-top: 50px;
  width: 100%;
  height: 470px;
  overflow: hidden;
}
.item{
  /* Card */

/* Auto layout */
display: flex;
flex-direction: column;
padding: 16px;
gap: 10px;

position: absolute;
width: 60%;
min-height: 320px;
left: 152.42px;
top: 44px;

/* Gradient/Gray/800 -> 700 (26.5deg) */
background: var(--bg-question);
box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
border-radius: 16px;

}
#next{
  position: absolute;
  right: 50px;
  top: 40%;
}
#prev{
  position: absolute;
  left: 50px;
  top: 40%;
}
#prev, #next{
  color: #fff;
  background: none;
  border: none;
  font-size: xxx-large;
  font-family: monospace;
  font-weight: bold;
  opacity: 0.5;
  transition: opacity 0.5s;
}
#prev:hover,
#next:hover{
  opacity: 1;
}
.pattren-img {
  position: absolute;
  top: 0;
  right: 0;
  
}
@media screen and (max-width: 1023px) {
  .item{
    width:  100%;
    left: 0;

  }
  
}

.counter-questions{
color: #BB9661;
}

.answers{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answers .form-check {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 0.5em;
  padding: 5px;
}

.answers .form-check .form-check-input{
  background-color: transparent;
  width: 24px;
  height: 24px;
  margin-left: 15px;
}

      .answers .form-check .form-check-input:checked {
    background-color: #b1975f54;
    border-color: #b1975f36;
  }

  .answers .form-check .form-check-label  {
    cursor: pointer;
    color: var(--main-color);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
  }

  .btn-outline-light{
    border-color: #b1975f36;
    color: var(--main-color);
  }



  .form-check-correct {
    background: #1b835431 !important;
    border-radius: 4px;
    border: 1px solid #1B8354;
    transition: background 0.3s;
}
.form-check-wrong {
    background: #E4514F31  !important;
    border-radius: 4px;
    border: 1px solid #E4514F;
    transition: background 0.3s;
}
.form-check-input:disabled + .form-check-label {
    opacity: 0.7;
}
.score-title{
  color: #BB9661 !important;
}

.learn-more{
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px 8px;
  gap: 4px;
  background: #505a66;
  border-radius: 4px;
  color: white;
  text-decoration: none;
}

.result-subjects{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.result-subject {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  gap: 4px;
  background: #505a66;
  border-radius: 15px;
  color: white;
  text-decoration: none;
}

