/*
 * demo.css: Base Template
 * font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  color: #333333;
  font-weight: 50;
  font-size: 19px;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 70px;
  margin: 0;
  padding: 4em 0 4em 20%;
}

*/

body {
  font-weight: 50;
  font-size: 18px;
  font-family: Helvetica, Arial, sans-serif;
}


/* page styles */
.ax-hidden {
  visibility: hidden;
  position: absolute;
}

@-webkit-keyframes bounce {
    0% { margin-top:  0px; }
   50% { margin-top: -8px; }
  100% { margin-top:  0px; }
}

@keyframes bounce {
    0% { margin-top:  0px; }
   50% { margin-top: -8px; }
  100% { margin-top:  0px; }
}


/* carousel styles */
.carousel {
  /* entire carousel-width */
  --carousel-height: 500px;
  --carousel-width: 550px;

  /* middle carousel-width */
  --carousel-item-height: 105px;
  --carousel-item-width: 202px;

  width: 100%;
}

.carousel-container {
  top: 0px;                      /* gap between carousel and navig bar */
  align-items: center;
  display: flex;
  min-height: var(--carousel-height);
  margin: 0 auto;
  max-width: var(--carousel-width);
  position: relative;
  animation: spin 10s linear infinite reverse;
}


.carousel-item {
  height: var(--carousel-item-height);
  width: var(--carousel-item-width);
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  transition: all 0.5s ease-in-out; /* speed */
  background-color: white;
  border-style: solid;
  border: 3px solid;                /* modified */
  border-color: lightskyblue;       /* modified */
  padding: 1px;                     /* modified 3px */
  border-radius: 12px;              /* modified 20px */
  display: block;
  object-fit: cover;
  z-index: 0;
  animation: spin 10s linear infinite reverse;
}


.carousel-item-1 {
  left: 23%;
  opacity: 0.6;
}

.carousel-item-2,
.carousel-item-4 {
  height: calc(var(--carousel-item-height) * 1.60);   /* modified 1.5 */
  opacity: 1;
  width: calc(var(--carousel-item-width) * 1.30);     /* modified 1.5 */
  z-index: 1;
}

.carousel-item-2 {
  left: 32%;
  opacity: 0.9;
}

.carousel-item-3 {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1);
  height: calc(var(--carousel-item-height) * 2);
  opacity: 2;
  left: 50%;
  width: calc(var(--carousel-item-width) * 2);
  z-index: 2;
}

.carousel-item-4 {
  left: 68%;
  opacity: 0.9;
}

.carousel-item-5 {
  left: 77%;
  opacity: 0.6;
}



/* Hans */

/* make front word blue during hover */
.carousel-item-3:hover .flip-card .card-front {
  color: Dodgerblue;    /* front word hovers */
}

.carousel-item-3.hover .flip-card {
  transform: rotateY(180deg);
}

.carousel-item .hover {
  transform: rotateY(180deg);
}


.flip-card {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 1.5s;
  transform-style: preserve-3d;
}


.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}


.card-front h1 {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 38%;
  width: 100%;
  margin: -10px;
  margin-left: 2px;
  color: #333333;          /* front word: #1a1a1a, #0d0d0d */
}

.card-front .word {
  color: red;            
}

.card-front .click-msg {
  display: flex;
  position: absolute;
  font-size: 19px;
  color: Dodgerblue;
  left: 152px;
  top: 150px;
}


.card-back {
  text-align: left;
  transform: rotateY(180deg)
}


.card-back h4{
  color: black;            
  font-size: 20px;
  text-align: center;
  font-weight: 400;
  margin-top: 14px;
  font-family: Helvetica;
}

.card-back .POS {
  text-align: center;
  font-size: 5px;
  line-height: 7px;
  margin-top: -11px;
}

.card-back .post_POS {
  margin-top: 8px;      /* gap between POS and defn */
}

.card-back .defn-p,
.card-back .defn-span {
  margin-top: 21px;
}

.card-back .defn-p,
.card-back .syno-p,
.card-back .usge-p,
.card-back .root-p,
.card-back .defn-span,
.card-back .syno-span,
.card-back .usge-span,
.card-back .root-span {
  font-family: Helvetica;
  font-size: 18px;
  font-weight: 300;
  line-height: 20px;
}


.card-back .defn-p {
  margin: 3px;           /* gap between blue border and text */
  color: gray;
  word-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
}

.card-back .syno-p {
  margin: 2px;
  color: gray;
  /* text-overflow: ellipsis; */
  word-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
}

.card-back .defn-span,
.card-back .syno-span {
  color: black;
  background-color: #ffff80;   /* pale yellow */
}


.card-back .usge-p{
  color: gray;
  padding-top: 3px;         /* space between 'syno' and 'usge' */
  line-height: 19px;
}

.card-back .root-p,
.card-back .usge-p {
  margin: 2px;
  /* text-overflow: ellipsis; */
  overflow: visible;
  word-wrap: break-word;
  white-space: nowrap;
}

.card-back .usge-span {
  color: black;
  color: #404040;
  width: 96%; 
  font-style: italic;
  margin-bottom: 5px;
  line-height: 19px;
  overflow: visible;
}


.card-back .root-p{
  margin: 4px;
  color: gray;
  padding-top: 2px;         /* space between 'usge' and 'root' */
  line-height: 19px;
}

.card-back .root-span {
  margin: 2px;
  color: gray;
  padding-top: 0px;         /* space between 'usge' and 'root' */
  line-height: 19px;
  width: 96%; 
  margin-bottom: 1px;
}


.card-back .lingual .lc-p {
  font-size: 18px;
  line-height: 20px;         /* space between 'usge' and 'cctw' */
  padding-top: 3px;
  margin: 3px;
  /* letter-spacing: 0.2px; */
  color: gray;
  font-weight: 300;
}

.card-back .lctw,
.card-back .lcsp,
.card-back .lcjp,
.card-back .lckr,
.card-back .lccn {
  line-height: 21px;
}

.card-back .lctw,
.card-back .lcsp,
.card-back .lcjp,
.card-back .lckr,
.card-back .lccn {
  color: purple;
  word-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
  /* margin-top: 3px;       space between 'lcxx' and 'usge' */
}

.card-back .lctw,
.card-back .lcjp,
.card-back .lckr,
.card-back .lccn {
  font-size: 16px;
}

.card-back .lcsp {
  font-size: 18px;
}


.carousel-item-1 .flip-card,
.carousel-item-2 .flip-card,
.carousel-item-4 .flip-card,
.carousel-item-5 .flip-card
{
  display: none;
  pointer-events: none;
}


.carousel-item-3 .flip-card .card-front i {
  display: block;
}

.card-back h3 {
  vertical-align: middle;
  border-radius: 10px;
  border: 3px groove whitesmoke;
  width: var(--content-width);
  height: var(--content-height);
  -o-object-fit: cover;
     object-fit: cover;
  cursor: pointer;
  filter: grayscale(0%) brightness(100%);
}

.carousel-item-current:not(.selected) .front img {
  filter: grayscale(0%) brightness(100%);
}


.fa-speaker {
  color: Dodgerblue;
  position: relative;
  height:  12px;                /* speaker icon dimension */
  width:   12px;                /* speaker icon dimension */
  left: 185px;                  /* X location */
  top: 150px;                   /* Y location */
}


/* ------------ Title ------------ */
.carousel-title .title .title-p {
  top: 115px;                   /* gap from navigation bar */
  display: flex;
  position: relative;
  color: #cc00cc;               /* deep purple */
  justify-content: center;
  margin: 0px; 
  font-size: 15px;
  line-height: 20px;
}


/* ------------ Word Counter ------------ */
.carousel-counter .counter .counter-p {
  display: flex;
  color: black;
  justify-content: center;
  margin: -130px;                /* gap between counter and carousel */
  font-size: 15px;
  line-height: 20px;
}



/* ------------ Control Buttons ------------ */
.carousel-controls {
  display: flex;
  justify-content: center;
  margin: 155px 0;             /* gap between counter and control buttons */
}

/* ----- carousel button styles ----- */
.carousel-control {  
  background-color: transparent;
  border: 0 none;              /* modified '1.9px  solid */
  border-radius: 3px;
  color: Dodgerblue;           /* color: #aaa; */
  cursor: pointer;
  height:  25px;               /* button dimension */
  width:   25px;               /* button dimension */
  margin: 0 50px;              /* between control buttons '0 30px' */
  position: relative;
  transform: scale(2.1);       /* modified  scale(1.5)*/
  transition: transform 0.5s ease-out;
}

.carousel-control:hover {
  transform: scale(2.5);
  color: MediumOrchid;          /* added */
}


/* -------- previous button -------- */
.carousel-control-previous::after,
.carousel-control-previous::before {
  box-sizing: border-box;
  content: '';
  display: block;
  height: 8px;
  position: absolute;
  top: 5px;
}
.carousel-control-previous::before {
  background: currentColor;
  border-radius: 2px;
  right: 11px;
  width: 2px;
}
.carousel-control-previous::after {
  border-bottom: 4px solid transparent;
  border-right: 5px solid;
  border-top: 4px solid transparent;
  right: 5px;
  width: 0;
}
.carousel-control-previous:hover .ax-hidden {
  content: 'Prev';
  visibility: visible;
  position: absolute;
  font-size: 6px;
  color: black;
}


/* -------- undo button -------- */
.carousel-control-undo::after,
.carousel-control-undo::before {
  box-sizing: border-box;
  content: '';
  display: block;
  height: 8px;
  position: absolute;
  top: 5px;
}
.carousel-control-undo::before {
  display: none;                         /* bug: overlap icon */
  background: currentColor;
  background: red;
  border-radius: 2px;
  right: 11px;
  width: 2px;
}
.carousel-control-undo::after {
  display: none;                         /* bug: overlap icon */
  border-bottom: 4px solid transparent;
  border-right: 5px solid;
  border-top: 4px solid transparent;
  right: 5px;
  width: 0;
}
.carousel-control-undo:hover .ax-hidden {
  content: 'Rewind';                       /* bug: doesn't hover */
  visibility: visible;
  position: absolute;
  font-size: 6px;
  color: black;
}


/* -------- next button -------- */
.carousel-control-next::after,
.carousel-control-next::before {
  box-sizing: border-box;
  content: '';
  display: block;
  height: 8px;
  position: absolute;
  top: 5px
}
.carousel-control-next::before {
  background: currentColor;
  border-radius: 2px;
  left: 11px;
  width: 2px;
}
.carousel-control-next::after {
  border-bottom: 4px solid transparent;
  border-left: 5px solid;
  border-top: 4px solid transparent;
  left: 5px;
  width: 0;
}

.carousel-control-next:hover .ax-hidden {
  content: 'Next';
  visibility: visible;
  position: absolute;
  font-size: 6px;
  color: black;
}

/* -------- play button -------- */
.carousel-control-play::before {
  border-bottom: 5px solid transparent;
  border-left: 6px solid;
  border-top: 5px solid transparent;
  box-sizing: border-box;
  content: "";
  display: block;
  height: 10px;
  position: absolute;
  left: 7px;
  top: 4px;
  width: 0;
}
.carousel-control-play.playing::before {
  border-bottom: 0;
  border-left: 2px solid;
  border-right: 2px solid;
  border-top: 0;
  box-sizing: border-box;
  content: "";
  display: block;
  height: 6px;
  position: absolute;
  left: 6px;
  top: 6px; 
  width: 6px;
}
.carousel-control-play:hover .ax-hidden {
  content: 'Autoplay';
  visibility: visible;
  position: absolute;
  font-size: 6px;
  color: black;
}
.carousel-control-play.playing:hover .ax-hidden {
  content: 'Stop';
  visibility: visible;
  position: absolute;
  font-size: 6px;
  color: black;
}


/* -------- Definition Table (Vword) -------- */
.defnTag-container {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.defnTag {
    flex: 1 1 calc(25% - 5px);
    padding: 3px;
    box-sizing: content-box;
    border-style: solid;
    border-color: lightgreen;
    border-radius: 5px;
    overflow-wrap: break-word;
    white-space: wrap;
    margin: 5px;
    font-family: Helvetica;
    background-color: white;
}

.defnTag p {
    line-height: 1.2
}

.defnTag .word {
    color: black;            
    font-size: 18px;
    text-align: center;
    font-weight: 400;
    font-family: Helvetica;
}

.defnTag .POS {
    color: purple;
    font-size: 16px;
    text-align: center;
    font-weight: 200;
    font-family: Helvetica;
    margin-top: 4px;
}

.defnTag .defn {
    color: #404040;
    font-size: 16px;
    text-align: center;
    font-weight: 300;
    font-family: Helvetica;
    margin-top: 4px;
}

.defnTag .syno {
    color: brown;
    font-size: 17px;
    text-align: center;
    font-family: Helvetica;
    margin-top: 6px;
}

.defnTag .usge {
    color: blue;
    font-size: 17px;
    text-align: center;
    font-family: Helvetica;
}

.defnTag .fa-speaker {
    color: Dodgerblue;
    position: relative;
    margin-top: -8px
}

.defnTag .lingual {
    margin: 3px;
    letter-spacing: 0.2px;
    text-align: center;
    color: purple;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
}

.defnTag .lingual .lcsp {
    font-size: 16px;
}

.defnTag .lingual .lctw,
.defnTag .lingual .lcjp,
.defnTag .lingual .lckr,
.defnTag .lingual .lccn {
    font-size: 14px;
}

.defnTag .lingual span {
    margin-top: 0.5em;
    display: block;
}


@media (max-width: 768px) {
    .defnTag {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .defnTag {
        flex: 1 1 calc(100% - 20px);
    }
}


/* -------- Dropdown -------- */
.dropdown {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 100;
    font-size: 15px;
}

.Lingual,
.PlayTime,
.Autoplay,
.SortVocab,
.ShowRoot,
.AutoSpeak,
.VocabOptions {
    margin-left: 25px;
}


/* Reset all Tags */
.resetTagsBtn {
    background-color: #1583e9;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
    font-size: 17.3px;
    margin: 4px 2px;
    margin-top: 50px;
    border-radius: 6px;
}


/* -------- side strip -------- */

.sideStrip {
    position: absolute;
    height: 115%;
    width: 15%;
    background: #ffffcf;
    transition: 2s all ease-in-out;

    -webkit-transition: 2s all ease-in-out;
}


.DemoMode {
    margin-left: 25px;
    display: none;
}

/* -------- background color -------- */

.XbackGroundColor {
    position: absolute;
    height: 100%;
    width: 100%;
    background: #cce6ff;
}

