@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&display=swap');

* {
  /* font-family: "Abhaya Libre", serif; */
  box-sizing: border-box;
}

.sinhala-md {
  font-size: 20px;
}

.sinhala-sm {
  font-size: 16px;
}

.sinhala-regular {
  font-family: "Abhaya Libre", serif;
  font-weight: 400;
  font-style: normal;
}

.sinhala-medium {
  font-family: "Abhaya Libre", serif;
  font-weight: 500;
  font-style: normal;
}

.sinhala-semibold {
  font-family: "Abhaya Libre", serif;
  font-weight: 600;
  font-style: normal;
}

.sinhala-bold {
  font-family: "Abhaya Libre", serif;
  font-weight: 700;
  font-style: normal;
}

.sinhala-extrabold {
  font-family: "Abhaya Libre", serif;
  font-weight: 800;
  font-style: normal;
}


/* varibales */
:root {
  --imageHeight: 40px;
  --leftSideFlexBasis: 25%;
  --headerPadding: 20px;
  --sidePadding: 20px;

  --mainSectionHeight: calc(100vh - var(--imageHeight) - var(--headerPadding) * 2 - 1px);

  --mainBorder: 1px solid rgba(0, 0, 0, 0.2);
  --secondaryBorder: 1px solid rgba(0, 0, 0, 0.4);

  --errorBorder: 1px solid rgba(255, 0, 0, 0.4);
  --errorBackground: rgba(255, 0, 0, 0.1);

  --textareaBackground: rgba(0, 0, 255, 0.1);
  --textareaHeight: 120px;
  --correctTextHeight: 400px;
}

.secondary-border{
  border: var(--secondaryBorder);
}

body.no-scroll {
  overflow: hidden;
}

.header {
  border-bottom: var(--mainBorder);
  padding: var(--headerPadding);
}

.header img {
  height: var(--imageHeight);
}

.hamburger-menu {
  visibility: hidden;
  cursor: pointer;

  div {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
  }
}

#hamburger-hidden-menu.active {
  right: 0px;
  border-top: none;
}

.main-section {
  height: var(--mainSectionHeight);
  max-width: 1600px;
  margin: auto;
}

.leftSection {
  flex-basis: var(--leftSideFlexBasis);
  height: var(--mainSectionHeight);
  padding: var(--sidePadding);
  overflow-y: auto;
  overflow-x: auto;
  /* border-right: var(--mainBorder); */
  border-left: var(--mainBorder);
}

.accordion-item {
  border: none;
  border-bottom: var(--mainBorder);
}

.rightSection {
  flex-basis: calc(100% - var(--leftSideFlexBasis));
  height: var(--mainSectionHeight);
  overflow-y: auto;
  overflow-x: auto;
  padding: var(--sidePadding);
  padding-top: 40px;
  border-right: var(--mainBorder);
  border-left: var(--mainBorder);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sub-page {
  border-bottom: var(--mainBorder);
  margin-bottom: 4px;
  padding: var(--sidePadding);
}

.method-holder {
  h6 {
    padding: 0px;
    margin: 0px;
  }

  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;

  div {
    font-size: 14px;
    color: white;
    background-color: black;
    padding: 4px 8px;
    border-radius: 20px;
  }
}

.select-method {
  h6 {
    padding: 0px 12px 0px 0px;
    margin: 0px;
  }

  width: 100%;
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  align-items: center;

  div {
    user-select: none;
    font-size: 12px;
    color: black;
    background-color: white;
    padding: 4px 8px;
    border-radius: 20px;
    border: var(--mainBorder);
  }

  div.active {
    font-size: 12px;
    color: white;
    background-color: black;
    padding: 4px 8px;
    border-radius: 20px;
  }

  div:hover {
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }

  div.active:hover {
    background-color: black;
    cursor: default;
  }
}

.legend-holder {
  user-select: none;
  width: 100%;
  display: flex;
  gap: 25px;
  align-items: center;
  border-bottom: var(--secondaryBorder);
  justify-content: space-between;
  overflow-x: auto;

  div {
    font-size: 14px;
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
  }
}

.indicator-span{
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.text-area {
  width: 100%;
  height: 160px;
  /* background-color: var(--textareaBackground); */
  border: var(--secondaryBorder);
}

.text-area.error {
  border: var(--errorBorder);
  background-color: var(--errorBackground);
}

#corrected-text {
  min-height: 160px;
  /* border: var(--mainBorder); */
  border-top: none;
}

.cursor-pointer {
  cursor: pointer;
}

/* styles for medium screen sixe */
@media (max-width: 991px) {

  .leftSection {
    width: 100vw;
    background-color: white;
  }

  .rightSection {
    flex-basis: 100%;
    height: fit-content;
    border: none;
  }

  .hamburger-menu {
    visibility: visible;
  }

  #site-main-heading {
    display: none;
  }

  #hamburger-hidden-menu {
    flex-basis: 0%;
    position: fixed;
    height: var(--mainSectionHeight);
    max-width: 100vw;
    overflow: auto;
    top: calc(100vh - var(--mainSectionHeight));
    right: -1000px;
    z-index: 1000;
    transition: right 0.5s ease-in-out;

    padding: 20px;

    border-top-left-radius: 0;
    border-top-right-radius: 0;

    border-top: none;
  }
}

.correct {
  text-decoration: none;
  color: Green;
}

.corrected {
  text-decoration: none;
  cursor: pointer;
  color: DarkOrange;
}

.incorrect {
  text-decoration: none;
  cursor: pointer;
  color: Red;
}

.unknown {
  text-decoration: none;
  color: Black;
}

/* background colors */
.bg-correct {
  background-color: Green;
}

.bg-corrected {
  background-color: DarkOrange;
}

.bg-incorrect {
  background-color: Red;
}

.bg-unknown {
  background-color: Black;
}
