/* @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: 'Roboto', sans-serif; */
  font-family: 'Poppins', sans-serif; 
}

/* header section*/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 18px;
}

main {
  height: calc(100vh - 70px);
  display: flex;
  background-color: #f9f9f9;
}

/* Sidebar */
.side-bar {
  height: 100%;
  width: 22.5%;
  background-color: white;
  overflow-y: hidden;
  margin-top: -15px;
}

.side-bar a:hover {
  border-radius: 15px;
}

@media (max-width: 768px) {
  .onscreenimage {
    display: none;
  }
}

.left {
  display: flex;
  align-items: center;
}

.left #menu {
  padding: 0 7px;
  cursor: pointer;
}

.search {
  display: flex;
  align-items: center;
}

.search form {
  display: flex;
  border: 1px solid #ddd;
  height: 45px;

  border-radius: 22.5px; /* Round corners */
  overflow: hidden; /* Ensures rounded corners apply to children */
}

.search input {
  width: 600px;
  padding: 10px;
  border: 0;
  height: 100%;
  /* border-radius: 2px 0 0 2px;
    align-self: center; */

  border-radius: 0; /* No individual border-radius needed */
  align-self: center;
  font-size: 16px; /* Slightly larger font for better appearance */
}

input:focus {
  outline: none;
  /* border: 1px solid #ddd; */

  border: 0; /* Remove any default focus border */
}

.search button {
  height: 100%;
  width: 80px;
  border: none;

  background-color: #f1f1f1; /* YouTube-like button background */
  display: flex;
  justify-content: center;
  align-items: center; /* Center the search icon */
  border-radius: 0; /* Matches form's rounded style */
}

.search button:hover {
  background-color: #e0e0e0; /* Subtle hover effect */
}

.mic {
  margin-left: 15px;
  font-size: 24px; /* Make the mic icon larger */
  color: #606060; /* YouTube mic icon color */
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
  background-color: whitesmoke;
  width: 38px; /* Equal width and height for a perfect circle */
  height: 38px;
  display: flex; /* Centering the icon */
  align-items: center; /* Centering the icon */
  justify-content: center;
  transition: all 0.2s ease; /* Smooth transition for hover effects */
}

.mic:hover {
  color: #000; /* Darker color on hover */

  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3); /* More pronounced shadow on hover */
  background-color: #f9f9f9; /* Slightly darker background on hover */
  transition: all 0.2s ease; /* Smooth transition for hover effect */
}

.nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  margin-top: 15px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  color: #ffffff;
}

.nav-link span {
  margin-left: 15px;
}

.nav-link:hover {
  background: #e5e5e5;
  cursor: pointer;
}

.active {
  background: #e5e5e5;
}

hr {
  height: 1px;
  background-color: #e5e5e5;
  border: none;
}

.content {
  background-color: white;
  width: 100%;
  height: 100%;
  padding: 8px 15px;
  overflow-y: scroll;
}

@media (max-width: 768px) {
  .side-bar {
    /* display: none; */
    width: 60px;
  }
  .search {
    /* display: none; */
    width: 150px;
  }
  .onscreenimage {
    display: none;
  }
  .context {
    overflow-x: auto;
    /* white-space: nowrap;
    box-sizing: border-box; */
    width: 500%;
  }
}

@media (max-width: 900px) {
  .search input {
    width: 25rem;
  }
}

.user-icon {
  width: 28px;
  /* Matches Material Icons size */
  height: 28px;
  border-radius: 50%;
  /* Makes the image circular */
  object-fit: cover;
  /* Prevents distortion */
  vertical-align: middle;
  /* Aligns with other icons */
  position: relative;
  /* Enables position adjustment */
  /* top: -5px; */
  /* Adjust this value to fine-tune alignment */
}

.spaced-icon {
  margin: 0 7px; /* Add horizontal spacing */
}

.icons {
  display: flex;
  align-items: center; /* Vertically align items */
  justify-content: space-around; /* Adjust spacing dynamically */
}

.shorts-section {
  margin-top: 20px;
}

.shorts-container {
  display: flex;
  flex-direction: row;
  justify-content: left;
  flex-wrap: wrap;
}

.shorts-card {
  width: 150px;
  overflow: hidden;
  padding: 10px;
  /* text-align: left; */
}

.shorts-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.shorts-card p {
  margin: 10px 0;
  font-size: 14px;
  font-weight: bold;
}

.youtube-alert {
  max-width: 600px;
  background-color: #ff0000;
  /* YouTube red */
  color: #ffffff;
  /* White text for better contrast */
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  /* Slight shadow for elevation */
}

.youtube-alert .alert-text {
  flex-grow: 1;
  font-weight: bold;
}

.youtube-alert .btn-dark {
  background-color: #282828;
  /* YouTube dark gray */
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
}

.youtube-alert .btn-dark:hover {
  background-color: #333333;
  /* Slightly lighter gray on hover */
  color: #ff0000;
  /* Red text on hover for contrast */
}

.youtube-alert .btn-close-white {
  filter: invert(1);
  /* Ensures it’s white */
  background-color: transparent;
  /* Remove background */
  border: none;
  /* No borders */
  opacity: 1;
  /* Make it fully visible */
}

.youtube-alert .btn-close-white:hover {
  filter: invert(0);
  /* Change to black on hover for visibility */
  background-color: rgba(255, 255, 255, 0.2);
  /* Slight white hover effect */
}

.youtube-spinner {
  color: #ff0000;
  /* YouTube red */
  width: 3rem;
  height: 3rem;
  border-width: 5px;
  /* Thicker border for a more pronounced look */
}

.youtube-text {
  font-family: 'Roboto', sans-serif;
  /* Match YouTube's font */
  font-weight: bold;
  color: #333333;
  /* Dark text for contrast */
}

/* Dropdown Button */
.youtube-dropdown-btn {
  background-color: #ffffff;
  /* Light background for contrast */
  color: #606060;
  /* Subtle dark text to match YouTube theme */
  border: none;
}

.youtube-dropdown-btn:hover {
  background-color: #f1f1f1;
  /* Light gray hover effect */
  color: #333333;
  /* Slightly darker text on hover */
}

/* Dropdown Menu */
.youtube-dropdown-menu {
  background-color: #ffffff;
  /* White dropdown background */
  border: 1px solid #ddd;
  /* Subtle border */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  /* Slight shadow for depth */
}

/* Dropdown Item */
.dropdown-menu .youtube-dropdown-item {
  font-family: 'Roboto', sans-serif;
  color: #ff0000;
  /* YouTube red */
  font-weight: bold;
}

.dropdown-menu .youtube-dropdown-item:hover {
  background-color: #ff0000;
  color: #ffffff;
  /* White text for contrast */
  border-radius: 4px;
}

/* Override focus effect */
.youtube-dropdown-btn:focus {
  box-shadow: none;
  outline: none;
  background-color: #ffffff;
  /* Reset focus background */
  color: #606060;
  /* Match hover */
}

/* Styling for the video thumbnail */
.video-thumbnail {
  border-radius: 15px;
  /* Rounded corners */
  transition: border-radius 0.3s ease;
  /* Smooth transition for hover effect */
  width: 100%;
  object-fit: cover;
  height: 180px;
  display: block;
}

/* Hover effect to make corners sharp */
.video-thumbnail:hover {
  border-radius: 0;
}

/* Styling for the video duration */
.video-duration {
  position: absolute;
  bottom: 18px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  /* Semi-transparent black background */
  color: #fff;
  /* White text */
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  transition: opacity 0.3s ease;
  /* Smooth fade-out effect */
}

/* Hide the duration when hovering over the thumbnail or parent container */
.thumbnail:hover .video-duration {
  opacity: 0;
  /* Make the duration invisible */
}

.videos {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
}

.video {
  width: 340px;
  margin-bottom: 10px;
}

.thumbnail {
  width: 100%;
  height: 210px;
}

.thumbnail img {
  object-fit: cover;
  height: 93%;
  width: 100%;
}

.author img {
  object-fit: cover;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  /* margin-right: 10px; */
}

.details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: 1rem; */
}

/* Dropdown Button Alignment */
.youtube-thumbnail-dropdown-btn {
  background: none;
  border: none;
  padding: 0;
  margin-top: -45px;
  /* Adjusts position slightly upwards */
  cursor: pointer;
  width: 25px;
  height: 25px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.context {
  padding: 5px 20px;
  margin-bottom: 15px;
}

.context-items {
  list-style: none;
  display: flex; /* Use flexbox for horizontal alignment */
  gap: 15px; /* Adds space between the list items */
  padding: 0;
  margin: 0;
  overflow-x: auto; /* Makes the list scrollable if it overflows */
}

.context-items li {
  white-space: nowrap; /* Prevents the text from wrapping */
  font-size: 15px;
  font-weight: 500;
  color: #0b5a5a; /* color: #141414; YouTube-like text color */
  /* color: #0c8d98; */
  cursor: pointer;
  transition: color 0.3s ease;
  /* background-color: whitesmoke; */
  background-color: #adbab5;
  border-radius: 20px;
  padding: 5px 10px;
}

.context-items li:hover {
  color: #000000; /* Changes color on hover */
  /* font-weight: bold; Makes it bold on hover */
  background-color: lightgray;
}

.map-info-window {
  border: 2px solid red;
}

.link-menu {
  border-radius: 1px;
  border-color: #555e5a;
  text-decoration: none;
  color: black;
  white-space: nowrap;
}

/* BRANDING STARTS */

.material-icons {
  color: #0b5a5a;
  /* color: #2c9185; */
  padding: 0 7px;
  cursor: pointer;
}

.title {
  display: flex;
  flex-direction: column;
}

.title h3 {
  color: #000000;
  line-height: 18px;
  font-size: 17px;
  margin-bottom: 6px;
}

.title a,
span {
  text-decoration: none;
  color: #0b5a5a;
  /* color: #2c9185; */
  font-size: 14px;
}

.arx-headingcolor {
  color: #807d7d;
}

.arx-textcolor {
  color: #000000;
}

.arx-linkcolor {
  color: #0b5a5a;
  /* color: #2c9185; */
}

.arx-linecolor {
  color: #0b5a5a;
  /* color: #2c9185; */
}

/* LESSON ACCORDION STYLING SECTION STARTS */

.accordion {
  /* margin: 20px auto; */
  max-width: 1400px;
}

.accordion-item {
  background-color: transparent;
  /* border: 1px solid #ddd; */
  margin-bottom: 5px;
  border: 0px;
}

.accordion-header {
  /* color: #ffffff; */
  background-color: transparent;
  cursor: pointer;
  user-select: none;
  border: 0px;
  padding: 10px;
}

.accordion-header:hover {
  /* color: #ffffff; */
  background-color: transparent;
  border: 0px;
}

.accordion-content {
  display: none;
  /* border-top: 1px solid #ddd; */
  border: 0px;
  /* color: #ffffff; */
  background-color: #ffffff;
  color: #000000;
  border-radius: 20px;
  padding: 20px;
}

.accordion-header::after {
  /* content: url('path-to-your-image.png'); */
  content: 'Show';
  float: left;
  font-weight: bold;
  border: 0px;
}

.active .accordion-header::after {
  /* content: url('path-to-your-image.png'); */
  content: 'Hide';
  /* font-size: 2em; */
  /* color: #ffffff; */
}

.active .accordion-content {
  display: block;
}

/* BRANDING STARTS */

.brand-logo {
  background-image: url('/images/arxlogo.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 100px;
  height: 100px;
  margin-top: 60px;
  margin-left: 10px;
  padding: 10px;
  display: inline-block; /* Or block, depending on your layout needs */
}
