

/* to discover overflow */
/* * {
  outline: 1px solid #f00 !important;
} */
.bwrap {
  background-color: #ffffff;
}

.cwrap {
  /* width: 100%; */
  padding-left: 40px;
  padding-right: 40px;
  font-size: 20px;
  line-height: 1.4em;
}

.chapter-text{
  padding: 20px 0px;
}
/*
 * Container
 */

 .slide-btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color 0.3s ease;
}

.slide-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%; /* Initially hide the background */
  width: 100%;
  height: 100%;
  background-color: white; /* Background color for the slide */
  z-index: -1; /* Send behind text */
  transition: transform 0.3s ease; /* Smooth slide */
  transform: translateX(0);
}

.slide-btn.active {
  color: gray;
}

.slide-btn.active::before {
  transform: translateX(100%); /* Slide the background into view */
}
.content-container {
  max-width: 700px;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5em;
  display: block;
}

.phrase-section{
  position: relative;
  .audio-button{
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    width: 1.8rem;
    height: 1.8rem;
    transition: transform 0.5s ease;
    background-repeat: round;
  }
  /* .audio-button img{
    width: 2.1rem;
    height: 2.1rem;
  } */
}

.phrase-section{

}

.vertical-phrase{
  .text.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    /* display: none; */
  }
}

.horizontal-text-phrase{
  .text.hidden {
    opacity: 0;
    visibility: hidden;
    /* width: 0; */
    /* display: none; */
  }
}

.segmented-controls::after::before {
  outline: 0;
  outline: none;
}

.segmented-controls {
  display: flex;
  margin: 0;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
  width: 100px;
  border-radius: 0.5rem 0.5rem 0.5rem 0;
  background: #e2e2e9;
  height: 1.5rem;
  padding: 0.125rem;
}

.segmented-controls:focus {
  outline: none;
}

.text-division {
  padding: 25px 0px 0;
}

.horizontal-text-phrase{
  .text {
    padding: 20px 20px 0 20px;
    opacity: 1;
    visibility: visible;
    /* transition: opacity 0.8s, visibility 0.8s; */
    /* transition: opacity 0.7s; */
     width: auto;
    /* height: auto;  */
  }
}

.vertical-phrase{
  .text {
    padding: 20px 20px 0 20px;
    opacity: 1;
    visibility: visible;
    /* transition: opacity 0.8s, visibility 0.8s; */
    /* transition: opacity 0.7s; */
    /* width: auto; */
    height: auto; 
  }
}
/*
 * Vissualy hidden radiobuttons
 */
.segmented-controls input {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  /* added line */
}

/* 
 * Labels need to be the same size
 */
.segmented-controls label {
  font-size: 0.8125rem;
  font-family: Georgia, Times, Times New Roman, serif;
  /* font-family: -apple-system, BlinkMacSystemFont, sans-serif; */
  font-weight: 300;
  line-height: 1;
}

.segmented-controls label {
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  flex: 1 1 0px;
  position: relative;
  z-index: 2;
  transition: inherit;
  color: rgb(180,180,180);
}

/* 
 * Adjust z-index of last label since that contains 
 * the paddle that needs to go beneath all other labels 
 */
.segmented-controls label:last-of-type {
  z-index: 1;
}

/*
 * Paddle 
 */
.segmented-controls label:last-of-type::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  background-color: black;
  transition: inherit;
}

/*
 * Move paddle depending on which option is selected
 */
.segmented-controls input:nth-last-of-type(2):checked~label:last-of-type::after {
  transform: translateX(-100%);
}

.segmented-controls input:nth-last-of-type(3):checked~label:last-of-type::after {
  transform: translateX(-200%);
}

.segmented-controls input:nth-last-of-type(4):checked~label:last-of-type::after {
  transform: translateX(-300%);
}

.segmented-controls input:nth-last-of-type(5):checked~label:last-of-type::after {
  transform: translateX(-400%);
}

.segmented-controls input:nth-last-of-type(6):checked~label:last-of-type::after {
  transform: translateX(-500%);
}

.segmented-controls input:nth-last-of-type(7):checked~label:last-of-type::after {
  transform: translateX(-600%);
}

.segmented-controls input:nth-last-of-type(8):checked~label:last-of-type::after {
  transform: translateX(-700%);
}

.segmented-controls input:nth-last-of-type(9):checked~label:last-of-type::after {
  transform: translateX(-800%);
}

.segmented-controls input:nth-last-of-type(10):checked~label:last-of-type::after {
  transform: translateX(-900%);
}


/*
 * IOS 13 Theme
 * Special thanks to https://www.figma.com/community/file/768365747273056340
 */
/*
 * Container
 */

/*
 * Labels 
 */
.segmented-controls label {
  font-size: 0.8125rem;
}

/*
 * Dividers
 */
.segmented-controls label:not(:first-of-type)::before {
  /* content: ""; */
  position: absolute;
  z-index: -3;
  top: 0.5rem;
  left: 0;
  bottom: 0.5rem;
  width: 1px;
  background: rgba(0, 0, 0, 0.15);
  transition: inherit;
}


/*
 * Selected option 
 */
.segmented-controls input:checked+label {
  /* font-weight: 500; */
  /* font-size: 0.875rem; */
  color: rgb(150,150,150,0.8);
}

/*
 * Hide dividers before and after the selected option
 */
.segmented-controls input:checked+label::before,
.segmented-controls input:checked+label+input+label::before {
  opacity: 0;
}

/*
 * Focus style for keyboard navigation
 */
/* .segmented-controls:focus-within {
    box-shadow: 0 0 0 .2rem rgba(0,122,255,0.75);
} */


/*
 * Paddle
 */
.segmented-controls label:last-of-type::after {
  background: white;
  border-radius: 0.4275rem;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.04), 0px 3px 8px rgba(0, 0, 0, 0.12);
}

.index-img {
  max-width: 700px;
  position: relative;
}

.horizontal-text-phrase {
  display: flex;
  font-size: 35px;

  .tamil-text {
    background-color: #111111;
    color: #ffffff;
    padding: 20px;
    font-weight: bold;
  }

  .transliterated-text {
    color: #d5d7db;
    background-color: #656566;
    padding: 20px;
    border-left: 0px;
  }

  .english-text {
    background-color: #e2e0e0;
    color: #88929b;
    padding: 20px;
    font-weight: 400;
  }
}

.english-text p {
  font-weight: 300;
  font-family: Open Sans, sans-serif;
}


*:focus {
  outline: none;
}

.pd {
  width: 100%;
  margin: 40px 0px 0 0px;
  border-bottom: 2px solid #F2F2F2;
  height: 0;
}

@media screen and (max-width: 767px) {
    .horizontal-text-phrase .text {
        font-size: 17px;
        padding: 11px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .horizontal-text-phrase .text {
        font-size: 17px;
        padding: 11px;
    }
}

.segmented-controls-master{
  display: flex;
  font-family: Open Sans, sans-serif;
  font-size: 16px;
  .segmented-controls{
    background: black;
    border-radius: 0.5rem;
  }
}

/* .segmented-controls p{
  margin: 0;
} */

.label-master p{
  margin: 0 0 0 20px;
}

/* .transliterated-option-label{
  font-size: 0.99rem;
  margin: 0 0 4.2px 0;
}
.tamil-option-label{
  font-size: 0.99rem;
  margin: 2px 3px 6px 0;
}
.small-letter-option-label{
  font-size: 0.99rem;
  margin: 0 0 2.3px 0;
} */

.tamil-option-label {
  font-size: 0.99rem;
  margin: 5px 5.5px 8.5px 5.5px;
}

.transliterated-option-label {
  font-size: 0.99rem;
  margin: 0 0 3.9px 0;
}

.small-letter-option-label {
  font-size: 0.99rem;
  margin: 0 0 1.9px 0;
} 

@media screen and (max-width: 479px) {
  .cwrap {
    padding-left: 0;
    padding-right: 0;
  }
  .text-division{
      font-size: 15px;
  }
  .chapter-text{
    font-size: 15px;
  }
}

@media screen and (max-width: 767px) {
  .cwrap {
    padding-left: 0;
    padding-right: 0;
  }

  .text-division{
    font-size: 16px;
  }
  
  .chapter-text{
    font-size: 16px;
  }

  .label-master p{
    margin: 0 0 0 20px;
    font-size: 14px;
  }

  .text p{
    font-size: 16px;
  }

}

@media screen and (min-width: 769px) {
  .w-nav-overlay{
    display: none;
  }
}

@media screen and (max-width: 768px) {
  
  .w-nav-overlay ul {
    font-size: 12px;
    font-family: Open Sans, sans-serif;
    display: none;
  }
  .w-nav-overlay{
    .show{
      
    }
  }
  .w-nav-overlay nav{
    height: 50px;
  }
}

.rotate {
  transform: rotate(90deg);
}

.playing {
  background-image: url(../images/play-red.png);
}

.not-playing{
  background-image: url(../images/play-grey.png);
}