/*
Theme Name: SimplyLearn Child Theme
Theme URI: https://www.simplylearn.com
Version: 1.84.1
Description: SimplyLearn Child Theme
Author: SimplyLearn
Author URI: https://www.simplylearn.com
template: bb-theme
Text Domain: bb-theme-child
*/

/* Add your custom styles here...
Domain Path: /bb-theme-child/languages

wp i18n make-pot . languages/bb-theme-child.pot
sudo apt-get install php7.2-mbstring
*/
input.enrollmentcode-input {
  width: 400px;
}

/*Fix LD quiz List*/
/* Removed because style break in quiz rating*/
/* .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionList[data-type="assessment_answer"] label {
    margin: 0;
    flex: 1 1 15%;
} */
/*.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionList[data-type="assessment_answer"] .wpProQuiz_questionListItem p {
    display: flex;
    flex-wrap: wrap;
}*/

/*Set rem size to 100% to fix LearnDash font calculations*/
html {
  font-size: 100%;
}

/*Fix Popup of User Registration*/
.learndash-wrapper .ld-modal {
  transform: translateY(-35%) translateX(-50%) !important;
}

/*Fix spacing in popup of user registration*/
.ld-login-modal-wrapper #reg_passmail {
  margin-top: -10%;
}

/*Remove added padding on login menu item when on pages using the ld-button class*/
.fl-menu ul li.ld-button,
.fl-page-nav ul li.ld-button,
.top-bar-nav ul li.ld-button {
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

/*Fix list on BB theme on LearnDash*/
body.has-blocks .fl-post-content ul,
body.has-blocks .fl-post-content ol {
  margin: 0px !important;
}

/*Style your course profile: https://drive.google.com/file/d/1c59T_Bkfa9qxHZc2ZosdGjaHxl0zCh3g/view*/
a.user_statistic:hover {
  background-color: #d85f0b;
  color: #fff;
}

a.user_statistic {
  display: inline-block;
  width: 120px;
  background-color: #f96600;
  padding: 5px;
  border-radius: 50px;
  border: none;
  color: #fff;
}

span.ld-icon.ld-icon-assignment {
  background-color: transparent !important;
  border-color: transparent !important;
}

.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
  max-width: 100%;
  height: auto;
}

/*Fix Iframe height*/
.wp-block-embed__wrapper>iframe {
  width: 100%;
  height: 400px;
}

.is-provider-vimeo .wp-block-embed__wrapper>iframe,
.is-provider-youtube .wp-block-embed__wrapper>iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}

.fl-page-header-logo {
  max-width: 200px;
}

/* Endre hvit tekst på pop-up modal */
.ld-login-modal-login,
.ld-alert-content {
  color: white;
}

.ld-alert-messages {
  color: black;
}

/* Removing "Published in category" section - Sindre */
.fl-post-meta.fl-post-meta-bottom {
  display: none;
}

/* Removing promotional images from content cloner plugin */
.ui-dialog.ui-widget.ui-widget-content.ui-corner-all.ui-front img {
  display: none !important;
}

.carousel-inner img {
  display: none;
}

div#myCarousel {
  display: none !important;
}

.carousel-inner {
  display: none !important;
}

/* Remove grade disclaimer */
p.graded-disclaimer {
  display: none;
}

/* Align "enrollment button" in center - Sindre */
.fl-module.fl-module-bdash-button-enroll.fl-node-5f992475f0900.fl-animation.fl-fade-left.fl-animated {
  margin: auto !important;
}

/*hide Astra*/
img.powerdbyastraimg {
  display: none;
}

.sl-rounded-button {
  margin: 0;
  border-radius: 20px;
  background-color: #e42312;
  color: #fff;
  box-shadow: none;
  text-transform: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.75em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  max-width: 385px;
  white-space: normal;
  text-shadow: none;
  border: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 1em;
  line-height: 1.25em;
}

#ld-user-register p br {
  display: none;
}

.g-recaptcha iframe {
  height: auto;
}

@media (max-width: 768px) {

  /* Fixes Popup of User Registration in responsive mode */
  .learndash-wrapper .ld-modal {
    transform: translateY(0%) translateX(-50%) !important;
  }
}

.wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerIncorrect.wpProQuiz_answerCorrect label.is-selected {
  border-color: #00a2e8;
}

@media (min-width: 1043px) {
  .sl-registration-username-error {
    top: 126px;
    right: 450px;
    width: 200px;
    z-index: 10;
    position: absolute;
    background: #fff;
    font-size: 14px;
    text-align: left;
    border: 1px solid gray;
    border-radius: 10px;
    padding: 10px;
  }

  .sl-registration-username-error:after,
  .sl-registration-username-error:before {
    left: 100%;
    top: 50%;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
  }

  .sl-registration-username-error:after {
    border-color: rgba(255, 255, 255, 0);
    border-left-color: #ffffff;
    border-width: 12px;
    margin-top: -12px;
  }

  .sl-registration-username-error:before {
    border-color: rgba(186, 186, 186, 0);
    border-left-color: #bababa;
    border-width: 15px;
    margin-top: -15px;
  }
}

#sl-user-update-form .custom-file-upload {
  cursor: pointer;
  margin-top: 10px;
}


/* Style for the privacy policy checkbox */
#sl_agree_terms_wrapper {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  /* Align items vertically in the center */
}

/* Ensure the privacy policy checkbox is displayed inline */
#sl_agree_terms_wrapper input[type="checkbox"] {
  width: auto !important;
  /* Override the width set by other styles */
  margin-right: 10px;
  /* Add some space between the checkbox and the label text */
  display: inline-block;
  /* Ensure it doesn't try to take up the full width */
  vertical-align: middle;
  /* Align the checkbox vertically with the text */
}

/* override bb parent theme issue for zoho desk asap widget styling */
.zd-launcher-button {
  position: fixed !important;
}