/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-y: scroll; /* Prevent scrollbar shift */
  overflow-x: hidden;
  font-family: "Varela Round", sans-serif;
}

form input[type='file'] {
  margin-bottom: 1rem;
  width: 100%;
  border: none;
  outline: none; 
  box-shadow: none; 
  color: #fefefe;
  background-color: #100E09 !important;
  font-size: 16px;

}
form button {
    background-color: #4caf50;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
  }
.correct-option {
    border: 2px solid green;
    border-radius: 50%;
    padding: 5px 10px;
    display: inline-block;
    margin: 2px;
  }
/* Fixed Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #fefefe;
  z-index: 1020;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

/* Navbar inside header */
nav.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  background-color: #fefefe;

}
.navbar-brand {
  color: #100E09;
  display: flex;
  align-items: center; 
}
.logo {
  width: 50px;
/*  margin-right: 8px; */
}
.quiz {
  background-color: #a9d8ec;
  color:#100E09;
  padding:5px;
  border-radius: 5px;
  font-family: 'Roboto';

}
.fancy-title {
      background-image: url(/title5.png);
    height: 170px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: contain;
}
.mycourse {
  background-color: #a9d8ec;
  color:#100E09;
  padding:5px;
  border-radius: 5px;
  font-family: 'Roboto';
  position: absolute;
  top: -20px;
  left: 70%;
  font-size: 10px;
  border: 2px solid #dceca9;

}
.lesson {
  background-color: #dceca9;
  color:#100E09;
  padding:5px;
  border-radius: 5px;
  font-family: 'Roboto';
}

 .scroll-menu {
      overflow-x: auto;
      overflow-y: hidden;
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;     /* Firefox */
    }

    .scroll-menu::-webkit-scrollbar {
      display: none;  /* Chrome, Safari and Opera */
    }
/* Main content */
main {
  padding-top: 80px;   /* match header height */
  padding-bottom: 80px; /* match footer height */
  min-height: 100vh;
  flex: 1;
  background-color:#a9d8ec;
 background-image: linear-gradient(to bottom, #a9d8ec 0%, white 40%);

}
.titleHeader {
 font-size:36px;
 color: #222222;
}
.subHeader {
 font-size:24px;
 color: #4A4A4A;
}
/* Fixed Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1020;
  background-size: cover;
}

/* Footer navigation */
.footer-nav {
  width: 100%;
  height: 100%;
  background: #fefefe;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 40px 40px 0 0;
}

.footer-nav a {
  text-decoration: none;
  color: #444;
  text-align: center;
  font-size: 12px;
  flex: 1;
}
.footer-nav a i,
.footer-nav a img {
  height: 30px;       /* same height */
  width: 30px;        /* maintain width for images */
  font-size: 30px;    /* scale icon size to match image */
  margin-bottom: 6px; /* space below icon/image */
  line-height: 1;     /* remove extra vertical space */
  display: inline-block;
  object-fit: contain; /* keep image aspect ratio */
}

.btn {
  white-space: nowrap; /* Prevent wrapping */
  display: inline-flex;
  align-items: center;
}

.btn i {
  margin-right: 6px; /* space between icon and text */
}
.footer-nav a i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.footer-nav a.active {
  color: #dceca9;

}

.video-resolution-overlay, .video-codec-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #dceca9;
  color: #100E09;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 100;
}
.video-resolution-overlay {
  right: 60px;
}
/**courses**/

.dash-container {
/*    padding: 20px;
  border-radius: 25px;
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  background-color: rgba(255, 255, 255, 0.2); /* Dewy white glass */
/*  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.15)
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: #2c2c2c; /* Slightly softened black for readability */
/*  transition: all 0.3s ease;*/
}
.dash-container h3 {
  color: #a9d8ec;
  background: linear-gradient(45deg, #a9d8ec, #dceca9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* for Firefox */
  color: transparent;
  font-size: 120px;
}

.bg-primary, .btn-primary, .btn-success {
  background-color: #dceca9 !important;
  color: #100E09 !important;
}
/*segment 3*/
.content-container {
  padding: 20px;
  border-radius: 25px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  background-color: #fefefe;
}

.content-container:hover {
/*  background: linear-gradient(135deg, rgba(169, 216, 236, 0.2), rgba(220, 236, 169, 0.2), rgba(16, 14, 9, 0.4));*/
background-color: #a9d8ec;
background-image: linear-gradient(#a9d8ec, white);
opacity: 7;

}
.content {
  padding: 10px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(169, 216, 236, 0.15), rgba(220, 236, 169, 0.15), rgba(16, 14, 9, 0.3));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin: 10px 0;
}
/* Style for the checkbox */
.correct-checkbox {
  transform: scale(1.5); /* Increases the checkbox size */
  margin-left: 10px; /* Adds space between the checkbox and text */
}

/* Optional: Custom border and color for the checkbox */
.correct-checkbox:checked {
  background-color: #007bff; /* Blue background when checked */
  border-color: #007bff;    /* Blue border when checked */
}

/* Optional: Style the remove button to align better */
.remove-option {
  margin-left: 10px; /* Adds space between checkbox and the remove button */
}

.btn-outline-primary {
  border-color: #a9d8ec;
  color: #100E09;
}
.btn:hover {
  background-color: #dceca9;
  border-color: #dceca9;
  color: #100E09;
}

.btn-success {
  
}
.video-preview {
  text-align: center;
}
.main-video-default video, .main-video video {
  width: 100%;
  max-height: 60vh;
  display: block;
  position: relative;
  z-index: 6;
  border-radius: 10px;
}
video {
  border-radius: 10px;

}
.streaming {
  width: 30%;
}
.video-playlist-default, .video-playlist {
  z-index: 7;
  position: relative;
}
.video {
/*  display: contents;*/
  align-items: center;
  gap: 10px; 
  padding: 8px 12px;
}
.video img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.video p {
  margin: 0;
  font-size: 1rem;
  color: #dceca9;
  margin: 0;
  font-size: 0.8rem;
  color: #100E09;
  font-family: 'Varela Round';
  border-radius: 10px;
  padding: 2px;
  font-weight: bold;
}
.video-wrapper {
  position: relative;
/*  width: 640px;*/
}
.custom-checkbox {
  position: relative;
  display: inline-block;
}

.custom-checkbox .checkbox-box {
  width: 20px;
  height: 20px;
  border: 2px solid #dceca9;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  background-color: #fff;
  transition: all 0.2s ease;
}

.custom-checkbox input:checked + .form-check-label .checkbox-box {
  background-color: #dceca9;
  border-color: #dceca9;
}

.custom-checkbox input:checked + .form-check-label .checkbox-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.marker-container {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  pointer-events: none;
  background-color: red;
pointer-events: none; 
 z-index: 10; 
}

.marker {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #dceca9;
  opacity: 0.8;
 pointer-events: auto;   
  cursor: pointer;
}

.title, .lesson-length, .playlist-title {
  text-align: left;
  color: #100E09;
}
.playlist-title {
  font-size: 16px;
}
.lesson-length {
  background-color: #a9d8ec;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}
.video:hover {
    background-color: #0003;
}

.video.active {
    background-color: #0003;
    color: var(--secondary);
}

.preview-title {
  font-weight: bold;
  font-size: 1.2rem;
  color: #100E09;
}

.video-playlist .videos::-webkit-scrollbar {
    border-radius: .4rem;
    background-color: #0005;
}

.video-playlist .videos::-webkit-scrollbar-thumb {
    border-radius: .4rem;
    background-color: #fff;
}

.video-playlist .videos .video {
    position: relative;
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
    padding: 1rem;
    margin-top: .1rem;
    cursor: pointer;
    border-radius: .5rem;
}

.video-playlist .videos .video:hover {
    background-color: #0003;
}

.video-playlist .videos .video.active {
    background-color: #0003;
    color: var(--secondary);
}
#progress-container, #progress-container-m, #progress-container-m2 {
  margin-top: 15px;
}

#progress-bar, #progress-bar-m, #progress-bar-m2 {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 8px;
  margin-bottom: 5px;
}

#progress, #progress-m, #progress-m2 {
  height: 100%;
  width: 0%;
  background: #a9d8ec;
  transition: width 0.3s ease;
}

#status, #status-m, #status-m2 {
  font-size: 0.9rem;
  color: #100E09;
}

/*segment 1, glass boxes*/
#collapse_h2 .accordion-body {
  padding: 0;
}
.accordion-button {
  background-color: transparent !important;
  box-shadow: none;
  color: #f0f9d8; 
}
.accordion-button[data-bs-toggle='collapse'] {
  color: #f0f9d8; 
}
.accordion-button:focus {
  box-shadow: none;
  outline: none;
  border-color: transparent;
}

.accordion-button::after {
  filter: brightness(0) invert(1); /* Makes the arrow white */
}
.accordion-button:not(.collapsed) {
  box-shadow: none;
}
/* Optional: Change only when collapsed */
.accordion-button.collapsed::after {
  filter: brightness(0) invert(1);
}
.accordion-item {
  border: none;
}
.glass-box {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
  border-radius: 15px;
  padding: 30px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Light border */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.course-box a {
  color: #333333;
  text-decoration: none;
}

/* CSS */
.button-34 {
  background-color: #fefefe;
  border-radius: 4px;
  border-style: none;
  box-sizing: border-box;
  color: #100E09;
  cursor: pointer;
  display: inline-block;
  font-family: "Varela Round", sans-serif;
/*  font-size: 12px;*/
/*  font-weight: 700;*/
  line-height: 1.5;
  margin: 0;
  max-width: none;
  min-height: 34px;
  min-width: 10px;
  outline: none;
  overflow: hidden;
/*  padding: 9px 20px 8px;*/
  position: relative;
  text-align: center;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
  border: 1px solid #dceca9;
/*  pointer-events: none;*/

}
.button-31, .button-32 {
  background-color: #fefefe;
  border-radius: 4px;
  border-style: none;
  box-sizing: border-box;
  color: #100E09;
  cursor: pointer;
  display: inline-block;
  font-family: "Varela Round", sans-serif;
/*  font-size: 12px;*/
/*  font-weight: 700;*/
  line-height: 1.5;
  margin: 0;
  max-width: none;
  min-height: 34px;
  min-width: 10px;
  outline: none;
  overflow: hidden;
/*  padding: 9px 20px 8px;*/
  position: relative;
  text-align: center;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
  border: 1px solid #dceca9;
  pointer-events: none;
  z-index: 5;

}

.button-32 {
  background-color: #dceca9;
  color: #100E09;
}
.button-31:hover,
.button-31:focus {
    background-color: #fefefe;
  }

.button-31:hover,
.button-31:focus {
/*  opacity: .75;*/
  background-color: #dceca9;
  color: #100E09;
}

#editor-container {
  height: 300px;
}
.editor-wrapper {
  overflow: hidden; /* ensure wrapping works cleanly */
}

.editor-wrapper video {
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
  max-width: 300px;
  height: auto;
}

.editor {
  text-align: justify;
  font-family: 'Open Sans';
}

.editor p {
  text-align: justify;
}
.breadcrumbs {
 font-size: 12px;
}
.breadcrumbs a.active{
 color: #100E09 !important;
}
.video {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.video > div {
  white-space: nowrap;
  flex-shrink: 0;
}

.video .title-wrap {
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  min-width: 0;
}

.playlist-title {
  font-size: 1rem;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.time {
  font-size: 0.8rem;
  white-space: nowrap;
}


/* Responsive adjustments */
@media only screen and (max-width: 600px) {

.fancy-title {
      background-image: url(/title5.png);
    height: 170px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}
  .logo {
    width: 40px;
  }
/*  .footer-nav a {
    font-size: 11px;
  }

  .footer-nav a i {
    font-size: 18px;
  }*/
  .titleHeader {
   font-size:24px;
   color: #222222;
  }
  .subHeader {
   font-size:18px;
   color: #4A4A4A;
  }

}
