/*
My custom changes
*/


/*
   css naming conventions, names with - example: main-div

   */
body {

  column-fill: balance;

}
















.vocab-grid {

  /*display: grid;*/
  /*grid-template-columns: repeat(2, 1fr);*/
  /*grid-template-rows: repeat(3, auto);*/
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
  border-collapse: separate;
  border-spacing: 125px 10px;
  /* the below creates a border around the table, surprisingly not around the cells as
    some have said, also repeated it for the caption below, it worked ! */
  margin: 2.5% 0;
  border-top: none;
  width: calc(100%-12px);
}
.extended-tooltip-grid {
  /*this makes columns take up the amount of space available / that they need between min-content and auto*/
  grid-template-columns: repeat(3, minmax(min-content, auto));

}
.vocab-grid > h1 {
  flex-shrink: 0;
  width: 100%;
  background:    #FFF;                                  /*  #0f3;   */
  border: none;
  text-align: center;

}
.vocab-grid > div {
  width: 500px;
}


/* define grid column width control classes. feel free to change grid-column values. */
.grid-column-3 {
  /* spans a third of the page*/
  grid-column: span 1;
}
.grid-column-full {
  /* spans full page*/
  grid-column: span 3;





}




.grid-text-column {


  grid-column:  3;

  padding: 2.5%;
  margin: 2.5%;
  border: 5px solid #1526C5;
}

.grid-item {

  margin: 1%;
  /*
    display: grid;
    makes  the grid items shorter. remove to make them longer
    grid-template-columns: max-content;
  */
}
.chckbx-group {
  /* display: flex;
  justify-content: space-between; */

  display: grid;
  /* grid-template-columns: minmax(10%, 2.5em) auto auto 1fr ; */
  /* width: 100%; */
  /*
  //this way makes less space between text and tooltips
  grid-template-columns: minmax(10%, 2.5em) max-content minmax(min-content, 40%);*/
  grid-template-rows: auto auto;
  align-items: center;
  position: relative;
  /* font-size: 15pt; */
  margin-bottom: 2.5%;
  /* this was added in by Nick, it was 2.5% before, now
                          it's a little scrunched up but works for now */

}
div.tooltip-text, div.tooltip-text_2 {
  grid-column: 1/ span 5;
}






.chckbx-group input[type="checkbox"] + label, .chckbx-group div.main-text {
  cursor: pointer;
  margin: auto 0;
  font-size: 18px;
  /*font-family: 'Grandstander', sans-serif;*/
  line-height: 1.5;
  user-select: none;
}

.chckbx-group input[type="checkbox"] + label {
  font-size: 14px;
}




.chckbx-group .icon, .icon {
  max-width: 30px;
  border-radius: 50%;
}
.chckbx-group .circle {
  border-radius: 50%;
  height: 100%;
  width: 100%;
}

.flex {
  display: flex;
  align-items: center;
}

.chckbx-group a.main-text {
    user-select: none;

  /*Adam's note: style below replaces min-content for .tooltip-text if min-content does not work. sets row (height) for main text to be 2, while the .tooltip-text will default to one row of auto, thus, .tooltip text will take up auto height, only what it needs.*/
  /*grid-row: span 2;*/
}
.audio-group {
  padding: 10px;
}
/*.tooltip-text_2*/
.tooltip-text {
  visibility: hidden;
  /*Adam's note:
  height: min-content sets the tooltip-text height to the minimum height for the content. min-content does not work with I.E or edge. can by setting using grid-row like in the style declaration above this one for a.main-text. this is easier though*/
  height: min-content;
  /*background-color: rgb(49, 114, 172);*/
  background-color: #fff;
  color: #fff;
  /* background-color: #88d0cd;     */         		/* this it the ttt */
  /*color: #FF0000;*/
  text-align: left;
  border-radius: 20px; 	/* this is the ttt ?  */
  padding: 5px;
  margin: 2.5% 10px;
  word-spacing: normal; /* for between words not ttt */

  /*background-color: #fff;*/
  border: 1px solid cornflowerblue;
  color: #000;
  border-radius: 10px;
}


.chckbx-group  .tooltip-text,.chckbx-group  .tooltip-text_2 {
  grid-column: span 5;
  order: -1;
  width: max-content;
  /*margin-left: 45px;*/
  margin-left: 31px;
  margin-bottom: -13px;
}

@media screen and (min-width: 1200px) {
  .chckbx-group  .tooltip-text,.chckbx-group  .tooltip-text_2 {
    margin-left: 60px;
  }
}

.tooltip-group {
  display:grid;
  grid-template-columns: 50px max-content min-content;
  margin-right: 20%;
  padding-left: 5px;
  align-items: center;

}
.tooltip-group .tooltip-text,.tooltip-group .tooltip-text_2 {
  order: -1;
  width: max-content;
  margin-left: 0;
  margin-bottom: 20px;
  grid-column-start: 2;
}
.main-text .tooltip-text, .main-text .tooltip-text_2 {
  /*Prevents tooltip withen */
  white-space: nowrap;
}
.chckbx-group.extended-tooltip-container {
  grid-template-columns: minmax(10%, 2.5em) auto;
}









/* for when there are 2 tooltips, one inside .tooltip-text and one after .tooltip-text */
.extended-tooltip-container .main-text + .tooltip-text, .extended-tooltip-container .main-text + .tooltip-text_2 {
  grid-column: 2 / span 1;
  order: -1;
  margin: auto auto 10px 0;
}

.chckbx-group .tooltip-text {
  font-size: 18px !important;
}tool


   /**/
 .hover-el > *:hover > .tooltip-text,
 .hover-el:hover > .tooltip-text,
 .hover-el:hover ~ .tooltip-text,
 .hover-el:hover,

 .hover-el > *:hover > .tooltip-text_2,
 .hover-el:hover > .tooltip-text_2,
 .hover-el:hover ~ .tooltip-text_2,
 .hover-el:hover

 {
   visibility: visible !important;
 }

.chckbx-group .tooltip-text {
  /*max-width: 90%;*/
  /*margin-left: 60px;*/
}

/*#vocab-new-each-item .tooltip-text .hover-el {*/
/*display: inline-block;*/
/*font-size: .7rem;*/
/*margin-top: 1.5rem;*/
/*  max-width: 85%;*/
/*  overflow: scroll;*/
/*margin-left: -5px;*/
/*}*/

/*
The next 2 styles display the tooltips when you click the checkbox
the ~ selector selects sibling elements with the same parent
*/
/*.chckbx-group input[type="checkbox"]:checked ~ .tooltip-text {*/
/*    visibility: visible;*/
/*}*/
/*.chckbx-group input[type="checkbox"]:checked ~ .main-text .tooltip-text {*/
/*    visibility: visible;*/
/*}*/
/* this is a class for .main-text with embedded .tootip-text in the sentence, NOT for extended-tooltip-continer(double tooltips) */
.hidden-text {
  text-align: start;
  grid-column: 2 / span 2;
}


.collapsed {
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0 !important;
}
.visible {
  visibility: visible !important;
}
a {
  cursor: pointer;
}

input[type="checkbox"] + label {
//display: block;
  margin: 0.2em;
  cursor: pointer;
  padding: 0.2em;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"] + label:before {
  content: "\2714";
  border: 0.1em solid #000;
  border-radius: 0.2em;
  display: inline-block;
  width: 1em;
  height: 1em;
  padding-left: 0.2em;
  padding-bottom: 0.3em;
  margin-right: 2em;
  vertical-align: bottom;
  color: transparent;
  transition: 0.2s;
}

input[type="checkbox"] + label:active:before {
  transform: scale(0);
}

input[type="checkbox"]:checked + label:before {
  background-color: MediumSeaGreen;
  border-color: MediumSeaGreen;
  color: #fff;
}

input[type="checkbox"]:disabled + label:before {
  transform: scale(1);
  border-color: #aaa;
}

input[type="checkbox"]:checked:disabled + label:before {
  transform: scale(1);
  background-color: #bfb;
  border-color: #bfb;
}

audio {
  position: absolute;
  width: 100px;
  bottom: 7%;
}



/*

mobile media query styles

*/


@media screen and (max-width: 900px) {
  .extended-tooltip-grid, .main-grid {
    grid-template-columns: 50% 50%;
  }
  .main-grid > h1 {
    grid-column: 1 / span 2;
  }
  .grid-text-column {
    grid-column: span 2;
  }
  .tooltip-group {
    grid-template-columns: 50px auto auto;
  }



}









@media screen and (max-width: 750px) {
  .extended-tooltip-grid, .main-grid {
    grid-template-columns: 100%;
  }
  .main-grid h1 {
    grid-column: span 1;
  }
  .grid-text-column {
    grid-column: span 1;
  }
  .chckbx-group, .chckbx-group .main-text, .chckbx-group .tooltip-text, .chckbx-group .tooltip-text_2  {
    font-size: 18px !important; /* 11 Feb, 2023 changes */
    max-width: 93%;
    /* max-width: 80%; */
    /* overflow: scroll;*/
  }
  .tooltip-group .tooltip-text, .tooltip-group .tooltip-text_2 {
    width: 100%;
    padding-left: 15px;
  }


}

@media screen and (max-width: 870px) {
  .chckbx-group {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 670px) {
  .two_col_div .parent_div #category-1 {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .two_col_div .main-text.hover-el {
    /*max-width: 300px;*/
    max-width: 235px !important;
  }
}

@media screen and (max-width: 650px) {
  .two_col_div .parent_div #category-1 {
    /* max-width: 400px; */
    margin-left: 120px;
    margin-right: auto;
  }

  .two_col_div .parent_div #category-1  {
    max-width: 400px !important;

  }

  .two_col_div .main-text.hover-el {
    margin-left: 10px !important;
  }

  .two_col_div .main-text {
    width: 350px;
    user-select:  none;
  }
}

/*
  @media screen and (max-width: 650px) {
    .chckbx-group {
      max-width: 100%;
    }

    .two_col_div .main-text.hover-el {
      min-width: 300px;
      max-width: 450px;
    }

    .two_col_div .parent_div #category-1 {
      max-width: 70%;
      margin: auto;

    }
  } */

@media screen and (max-width: 650px) {
  .chckbx-group {
    grid-template-columns: minmax(10%, 2.5em) auto 1fr;

  }
  .chckbx-group .main-text + .tooltip-text, .chckbx-group .main-text + .tooltip-text_2 {
    /*        Make tootip take up second column of section, and display first*/
    grid-column: 2 / span 1;
    order: -1;
    margin: auto auto 10px 0;
  }






}


/* added on */
/*text colors*/

/*.redtext { color: #800080; } */

/* .green--white {
    background: #fff;
    color: white;
} */



.greentext { color: green; }