/* Set general text color for the body */
body {
  color: #5a5a5a;
}

/* Swiper slide spacing */
.swiper-slide {
  margin: 10px 0 0 0;
}

/* Carousel item: text is centered, and its size is responsive */
.carousel-item {
  text-align: center;
  font-size: 1.2rem;
  height: auto;
  line-height: 1.2;
  padding: 10px;
}

/* TextSwiper component with default margin and padding, and white background */
.textSwiper {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

/* "Scroll to top" button, hidden by default and styled for fixed positioning */
#topBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #2C313C;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

/* Hover effect on the "Scroll to top" button to change background color */
#topBtn:hover {
  background-color: #3C4454;
}

/* Swiper pagination progress bar styling */
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: #b22629 !important;
}

/* Swiper navigation buttons: styled in red color */
.swiper-button-next,
.swiper-button-prev {
  color: #b22629 !important;
}

/* Show Swiper navigation buttons for larger screens */
.swiper-button-next.d-none.d-lg-block,
.swiper-button-prev.d-none.d-lg-block {
  display: block;
}

/* Hide Swiper navigation buttons on screens smaller than 992px */
@media (max-width: 992px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Modal styling: initially hidden, fixed positioning, with semi-transparent background */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

/* Modal content centered on the screen with padding and a fixed size */
.modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  text-align: center;
  font-size: 1.5rem;
}

/* Close button styling for modals */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

/* Hover and focus effect for the close button */
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Full-screen overlay for the screen dim effect */
#screen-dim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
}

/* Container for the beaver character, fixed position and cursor pointer */
#beaver-container {
  position: fixed;
  z-index: 100;
  cursor: pointer;
}

/* Beaver image styling */
#beaver-img {
  width: 100px;
  height: auto;
  position: absolute;
}

/* Beaver speech bubble styling */
#beaver-speech-bubble {
  display: block;
  position: absolute;
  background-color: #fff;
  border: 1px solid #000;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
  max-width: 300px;
  text-align: center;
  z-index: 101;
}

/* Beaver speech bubble close button styling */
#close-speech-bubble {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 18px;
  background: #ff6b6b;
  color: white;
  width: 20px;
  height: 20px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  line-height: 20px;
}

#beaver-text {
    display: block;
    color: #000;
}

#beaver-options {
    margin-top: 10px;
}

/* Polish beaver components similar to the beaver components */
#polish-beaver-container {
  position: fixed;
  z-index: 100;
  cursor: pointer;
}

#polish-beaver-img {
  width: 100px;
  height: auto;
  position: absolute;
}

#polish-beaver-speech-bubble {
  display: block;
  position: absolute;
  background-color: #fff;
  border: 1px solid #000;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
  max-width: 300px;
  text-align: center;
  z-index: 101;
}

#polish-close-speech-bubble {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 18px;
  background: #ff6b6b;
  color: white;
  width: 20px;
  height: 20px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  line-height: 20px;
}

/* Chat beaver container positioning, draggable, and flexbox layout */
#chat-beaver-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 200px;
  z-index: 1000;
  cursor: move;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Chat beaver image and speech bubble */
#chat-beaver-img {
  width: 100px;
  height: auto;
  position: absolute;
}

#chat-speech-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
}

#chat-text {
    margin-bottom: 10px;
}

#beaver-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 100px;
    z-index: 1002;
    position: relative;
}

#chat-user-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#chat-send-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #6c757d;
    color: white;
    cursor: pointer;
    margin-top: 5px;
}

#chat-send-button:hover {
    background-color: #5a6268;
}

/* Responsive video container styles for different content */
@media only screen and (max-width: 767px) {
  #video-container-articulators,
  #video-container-exercises,
  #video-container-twisters,
  #video-container-bonuses {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 30vh;
    position: relative;
  }

  #video-preview-articulators,
  #video-preview-exercises,
  #video-preview-twisters,
  #video-preview-bonuses {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: -70vh;
    left: 0;
    object-fit: cover;
  }
}

/* Highlighting effect for elements */
.highlight {
  outline: 4px solid rgba(255, 255, 0, 0.9) !important;
  box-shadow: 0px 0px 20px 10px rgba(255, 255, 0, 0.9) !important;
  z-index: 1000;
  position: relative;
}

a.highlight {
  outline: 4px solid rgba(255, 255, 0, 0.9) !important;
  box-shadow: 0px 0px 20px 10px rgba(255, 255, 0, 0.9) !important;
  z-index: 1000;
  position: relative;
}

#slide-arrow-container {
    display: none;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

#slide-specific-arrow {
    font-size: 48px;
    text-shadow: 0px 0px 10px rgba(255, 255, 0, 0.9);
}
