 /* Top Navigation */
.topnav {
  width: 100%;
  overflow: hidden;
  background-color: rgb(192, 192, 140);
}
.topnav a {
  float: left;
  color: #4e0d0d;
  text-align: center;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 1.1em;
}
.topnav a.pull-right {
  float: right;
  color: #4e0d0d;
  text-align: center;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 1.1em;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #4CAF50;
  color: white;
}

/* Add an active class to highlight the current page */
.active {
  background-color: #4CAF50;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 1.1em; 
  border: none;
  outline: none;
  color: #4e0d0d;
  padding: 8px 10px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgb(192, 192, 140);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 8px 10px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

/* content of the page */
 .content {
     background-color: rgba(192, 189, 189, 0.355);
     margin: auto;
     font-size: 1.07em;
     width: 100%;
     min-width: 300px;
     /* max-width: 1200px; */
    /* min-height: 25px;
     */
     padding: 10px 0px 0px 0px;
     min-height: calc(100vh - 70px);
}
.khenpo-quote {
   text-align: center;
   font-size: 1em;
   color: rgb(92, 79, 4);
   display: block;
   margin-left: auto;
   margin-right: auto;
   width: 90%;
   min-width: 200px;
   padding: 10px 10px 10px 10px;
}
 .footer {
    /* background-color: rgb(175, 79, 41);
     */
     margin: auto;
     width: 100%;
    /* font-size: 1.5em;
     */
     min-width: 300px;
     /* max-width: 1200px; */
     text-align: center;
     height: 30px;
    /* margin-bottom: 10px;
     */
    margin-top: 10px;
}
.js-cd-top {
  position: fixed;
  bottom: 20px;
  right: 15px;
  display: none;
}
.js-cd-top-show {
  display: block;
}
.lowercase {
  text-transform: lowercase;
}
.iframe-style {
    background-color: rgba(192, 189, 189, 0.418);
    padding-top: 10px;
    width: 100%;
    float:left;
}
.html-text-style {
    background-color:rgba(231, 230, 230);
    padding: 15px; 
    font-size: 1.3em;
}
.html-text-style-wechat {
    background-color:rgba(231, 230, 230);
    padding: 15px;
    font-size: 1em;
    width: 70%;
}
.html-text-style-wechat img {
    margin-left: auto;
    margin-right: auto;
}
/* styled-textarea */
 .styled-textarea {
     background-color: rgba(228, 244, 248, 0.582);
     font-size: 0.9em;
     width: 100%;
}
/* float styles and float cards */
 .floatstyle {
     background-color: rgba(192, 189, 189, 0.192);
     padding-top: 10px;
     padding-left: 10px;
     width: 100%;
     /* float:left; */
     /* content: ""; */
     display: table;
     clear: both;
}
 .float-card-2-cols {
     background-color: rgba(192, 189, 189, 0.192);
     margin: 10px 10px 10px 10px;
     width: 47%;
     min-height: 160px;
     max-height: 160px;
     overflow: hidden;
     text-overflow: ellipsis;
     display: table-row;
     float:left;
}
.float-card-2-cols:hover{
    overflow: visible;
    white-space: normal;
    transition:0.5s;
    max-height: 600px;
    box-shadow: 0 8px 16px 0 rgba(11, 39, 80, 0.685);
   /* just added this line */
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  background-color: rgba(192, 189, 189, 0.192);
  width: 95%;
  gap: 10px;
  padding: 10px;
  margin: auto;
  align-items: flex-start;
  justify-items: center;
}
.video-card {
    background-color: #c0bdbd94;
    padding: 10px;
  /* box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    */  
    width: 290px;
    min-height: 215px;
}
.video-card:hover{
  box-shadow: 0 8px 16px 0 rgba(11, 39, 80, 0.685);
}
.video-card img { 
  height: 170px;
  width: 290px;
}
.video {
   display: inline-block; 
   width: 100%; 
   height: 100%;
}
/* Previous and Next Buttons */
 .button-href {
     text-decoration: none;
     display: inline-block;
    /* padding: 4px 8px;
     */
}
 .button-href:hover {
     background-color: #ddd;
     text-decoration: none;
     color: rgb(16, 133, 51);
}
 .button-previous {
     background-color: #db7474;
     color: white;
    /* color: black; */
}
 .button-next {
     background-color: rgb(102, 151, 103);
     color: white;
}
/* visible on hover */
 .hoverShow {
     display: none;
}
 .hoverWrapper:hover .hoverShow {
     display: inline-block;
}
/* collapsible */
.collapsible {
    background-color: rgb(189, 190, 192);
    color: rgb(11, 56, 116);
    font-size: 1em;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
  }
  
  .collapsible-active, .collapsible:hover {
    background-color: rgb(138, 137, 137);
    color: rgb(213, 216, 41);
  }
  
  .collapsible:after {
    content: '\002B';
    color: white;
    font-weight: bold;
    float: right;
    margin-left: 5px;
  }
  
  .collapsible-active:after {
    content: "\2212";
  }
  
  .collapsible-content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #f1f1f1;
  }

/* tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgb(141, 131, 131);
    color: #fff;
    text-align: center;
    font-size: 0.9em;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }
/*  progress bar */
.my-progress {
    width: 100%;
    background-color: rgb(209, 212, 205);
 }
  
.my-bar-light-green {
    height: 25px;
    background-color: rgb(118, 180, 118);
    text-align: center;
    line-height: 25px;
    color: white;
}
  
.my-bar-grey {
    height: 25px;
    background-color:rgb(187, 181, 104);
    text-align: center;
    line-height: 25px;
    color: white;
}
/* tabs */
/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
  }
.tablinks {
    font-size: 1em;
}
  /* Style the buttons that are used to open the tab content */
  .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #ddd;
  }
  
  /* Create an active/current tablink class */
  .tab button.active {
    background-color: #ccc;
  }
  
  /* Style the tab content */
  .tabcontent {
    display: none;
    font-size: 1em;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
    animation: fadeEffect 1s; /* Fading effect takes 1 second */
  }

  /* Go from zero to full opacity */
  @keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
/* messages / notes */
.message {
    list-style-type: none;
    text-align: center;
    font-size: 1em;
}
.error {
    background-color: #ffdddd;
    /* border-left: 6px solid #f44336; */
    font-size: 1em;
}
.answer-or-marking-saved-alert {
    font-size: 1em;
    display: none;
    margin-bottom: 10px;
    padding: 6px 16px;
    border-radius: 5px;
    background-color: #ddffdd;
    color: #2e7d32;
}
.answer-or-marking-saved-alert:not(:empty) {
    display: inline-block;
}
.answer-or-marking-saved-alert.alert-error {
    background-color: #ffdddd;
    color: #c62828;
}
.exam-link-copied-alert {
    background-color: #ffdddd;
    font-size: 1em;
    display:inline-block;
    margin-bottom: 10px;
    padding: 0 30px;
}
.answer-for-marking {
    font-size: 1.1em;
    padding: 5px;
    display:inline-block; 
    margin: 15px; 
}
.answer-for-marking span {
    font-size: 1.1em;
    color: darkgoldenrod;
}
  
.success {
    background-color: #ddffdd;
    /* border-left: 6px solid #4CAF50; */
    font-size: 1em;
}

.info {
    background-color: #e7f3fe;
    /* border-left: 6px solid #2196F3; */
    font-size: 1em;
}
.warning {
    background-color: #ffffcc;
    /* border-left: 6px solid #ffeb3b; */
    font-size: 1em;
}
.closebtn {
    margin-left: 15px;
    color: rgb(192, 118, 180);
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.closebtn:hover {
    color: black;
}
/* toggle switch */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
  }
  
  .toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(211, 163, 163);
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color:white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .toggle-slider {
    background-color: #2196F3;
  }
  
  input:focus + .toggle-slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .toggle-slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
  }

  /* checkmark icons */
  .checkmark {
    font-size: 16px; /* this determines the size of the list text and therefore checkmark size */
    list-style-type: none; /*  remove default list style */
    margin-bottom: 0; /*  lists need to be able to breathe */
    padding: 0em 0 0 2.5em; /* make room for the circle */
    position: relative; /* because we want to position the circle in an absolute fashion */
  }
  .checkmark:before {
    content: " "; /* the circle itself is empty */
    display: block;
     /* border: solid 0.8em #660a5e; create a colored area... */
    border: solid 0.8em #756b0a; /* create a colored area... */
    border-radius: .8em; /* ... and turn it into a circle */
    height: 0;
    width: 0;
    position: absolute; /* the circle is then put into place */
    left: 0.5em;
    top: 40%; 
    margin-top: -0.5em;
  }
  .checkmark:after {
    content: " ";
    display: block;
    width: 0.3em; /* the short bar of the mark is half as long as the long bar */
    height: 0.6em;
    border: solid white;
    border-width: 0 0.2em 0.2em 0; /* creates the inverted "L" shape */
    position: absolute;
    left: 1em;
    top: 40%;
    margin-top: -0.2em;
    -webkit-transform: rotate(45deg); /* tilts the shape */
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  
  /* Rounded sliders */
  .toggle-slider.toggle-round {
    border-radius: 24px;
  }
  
  .toggle-slider.toggle-round:before {
    border-radius: 50%;
  }
/* miscellaneous */
 .input {
     background-color: rgb(183, 203, 214);
     color: rgb(54, 62, 167);
     font-size: 1.1em;
     padding: 3px;
     width: 50%;
     margin-bottom: 10px;
     margin-left: 10px;
}
 .no_text_decroration {
     text-decoration: none;
}
.not-completed-or-not-accepted{
  background-color: rgb(235, 218, 164);
}
 .button {
     background: rgb(66, 184, 221);
     color: white;
     text-align: center;
     float: right;
     font-size: 1.1em;
}
 .styled-button {
     padding: 8px 16px;
     background: rgb(76, 140, 161);
     color: rgb(200, 223, 163);
     text-align: center;
     font-size: 1.1em;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     text-decoration: none;
     display: inline-block;
     transition: background-color 0.2s, transform 0.1s;
}
.styled-button:hover {
     background: rgb(56, 120, 141);
     color: white;
}
.styled-button:active {
     transform: scale(0.97);
}
 .available {
     color: green;
}
 .full {
     color: rgb(173, 25, 94);
}
 .right, .pull-right {
     text-align: right;
     float: right;
}
 .pull-left {
    text-align: left;
    float: left;
}
 .text-center {
    position: relative;
}
 .text-center > .pull-right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    float: none;
}
 .flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
 .flex-between > .pull-right,
 .flex-between > .pull-left {
    float: none;
}
.align-right {
    text-align: right;
}
.align-left {
   text-align: left;
}
 .long-text {
     white-space: nowrap;
     overflow: hidden;
     text-align: center;
     text-overflow: ellipsis;
     max-width: 270px;
}
 .long-text:hover{
     overflow: visible;
     white-space: normal;
     transition:0.5s;
     height:auto;
}
.medium-text {
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    max-width: 200px;
}
.medium-text:hover{
    overflow: visible;
    white-space: normal;
    transition:0.5s;
    height:auto;
}
 .centered-form{
     margin-left: 15%;
     margin-right: 15%;
}
 .center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
}
.center-logo {
   display: block;
   margin-left: auto;
   margin-right: auto;
   width: 30%;
}
 .text-center {
    text-align: center;
    font-size: 1em;
}
 .vertical-center {
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
 .vertical-padding-top {
    padding-top: 100px;
 }
/* flip cards */
 .flip-card {
     background-color: transparent;
     width: 300px;
     height: 300px;
     perspective: 1000px;
}
 .flip-card-inner {
     position: relative;
     width: 100%;
     height: 100%;
     text-align: center;
     transition: transform 0.6s;
     transform-style: preserve-3d;
     box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}
 .flip-card:hover .flip-card-inner {
     transform: rotateY(180deg);
}
 .flip-card-front, .flip-card-back {
     position: absolute;
     width: 100%;
     height: 100%;
     backface-visibility: hidden;
}
 .flip-card-front {
     background-color: #bbb;
     color: black;
}
 .flip-card-back {
     background-color: #2980b9;
     color: white;
     transform: rotateY(180deg);
}
/* text selection effects */
 ::-moz-selection {
    /* Code for Firefox */
     color: red;
     background: yellow;
}
 ::selection {
     color: red;
     background: yellow;
}

/* search by keywords */
.search-instructions {
  text-align: center;
  font-size: 1em;
  padding-left: 10px; 
  padding-right: 10px; 
  padding-bottom: 25px;
}

.search-result-summary {
  text-align: left;
  float: left;
  margin-left: 10px; 
  margin-bottom: 10px; 
  background-color: #e7f3fe;
  font-size: 0.95em;
}

/* pagination */
.pagination-container {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pagination {
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 0px 7px 0px 6px;
  text-decoration: none;
  transition: background-color .3s;
}

.pagination a.active {
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
}

.pagination a:hover:not(.active) {
  background-color: rgb(229, 190, 190);
  border-radius: 5px;
}
/* customized table */
.styled-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  clear: both;
  max-width: 100%;
}

.styled-table {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

.styled-table th {
  border: 1px solid #ddd;
  padding: 8px;
}

.styled-table td {
  border: 1px solid rgb(241, 225, 225);
  padding: 8px;
}

.styled-table tr{
  background-color: #cdcfcb;
}

.styled-table tr:nth-child(odd){background-color: #f2f2f2;}

.styled-table tr:hover {background-color: rgb(182, 176, 176);}

.styled-table th {
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: left;
  /* background-color: rgb(102, 151, 103);
  color: white; */
  background-color: rgb(187, 214, 187);
  color: rgb(114, 98, 16);
}
/* styles for special elements */
 a {
     text-decoration: none;
}

/* Use a media query to add a breakpoint at 600px: */
 @media screen and (max-width: 800px) {
     .userview {
         padding-top: 20px;
         width: 100%;
        /* The width is 100%, when the viewport is 600px or smaller */
    }
     .header {
         width: 95%;
         min-width: 300px;
         max-width: 800px;
         text-align: center;
         margin-top: 15px;
    }
     .content {
         width: 95%;
         min-width: 300px;
         max-width: 800px;
    }
     .float-card-2-cols {
         background-color: rgba(192, 189, 189, 0.582);
        /* margin: 10px 10px 10px 10px;
         */
         width: 95%;
        /* float:left;
         */
    }
     table, th, td {
         border: 1px solid black;
         border-collapse: collapse;
    }
     table {
         width: 95%;
    }
}

.play-pause-button{
  font-size: 50px;
  cursor: pointer;
}

.audio_player {
	width: 30%;
	height: 20px;
	min-width: 300px;
	margin: 0 auto;
}

.audio_player_in_table {
	width: 300px;
	height: 20px;
}

/* Accessibility: Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #2196F3;
  color: #fff;
  z-index: 9999;
  text-decoration: none;
  font-size: 1em;
}