@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@100&family=Mulish:wght@200&family=Roboto:ital,wght@0,400;0,500;1,500&display=swap");

* {
  margin: 0px;
  padding: 0px;
  font-family: "Roboto", sans-serif;
}
html,
body {
  overflow: hidden;
  height: 100%;
  width: 100%;
  background-color: #2f3e56;
}
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2f3e56;
}
::-webkit-scrollbar-thumb:hover {
  background: #2f3e56;
}

/* body {
  overflow-y: scroll;
} */

a {
  text-decoration: none;
  color: white;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.75rem;
}
ul {
  display: flex;
  list-style: none;
  align-items: start;
  margin-left: 15px;
  gap: 10px;
  /* margin-top: 20px; */
  padding: 20px;
}

li {
  /* margin-left: 25px; */
  font-weight: 500;
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  transition: 0.1s all ease;
}
li:hover {
  transform: scale(1.1);
}
#nav-logo {
  height: 50px;
  width: 50px;
  filter: invert();
}
.nav-button {
  background-color: rgb(249, 75, 75);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: 0.1s all ease;
  font-weight: 500;
  border: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-button:hover {
  transform: scale(1.1);
}
.sub-course {
  gap: 1.5rem;
  border-radius: 1rem;
  height: 100%;
  width: 100%;
  position: relative;
  margin: 4px;
  display: flex;
  align-items: start;
  margin-left: 4rem;
}
.course-description {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  backdrop-filter: blur(40px);
  border-radius: 1rem;
  height: 600px;
  width: 500px;
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
}
.course-description img {
  border-radius: 1rem;
  overflow: hidden;
  height: 300px;
  width: 500px;
  object-fit: cover;
}

.course-description a {
  margin-bottom: 1rem;
  transition: 0.3s all ease;
  text-align: center;
  border-radius: 1rem;
  padding: 1rem;
  background-color: #2f3e56;
  color: white;
  margin-top: 1rem;
  width: 150px;
  font-size: 1rem;
  text-decoration: none;
}
.course-description a:hover {
  background-color: #2f3e56;
  transform: scale(1.02);
}
.course-description p {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  line-height: 1.4rem;
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  color: white;
}

h3 {
  letter-spacing: 0.1rem;
  color: white;
  font-weight: 500;
  margin-top: 1rem;
}
h2 {
  color: white;
  font-weight: 500;
}
.chapters-container {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  width: 800px;
  border-radius: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.2);
  margin-left: 1rem;
  overflow-y: scroll;
  height: 560px;
  display: flex;
  flex-direction: column;
}
/* .chapter-list {
  height: 990px;
} */
.chapters {
  display: flex;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  margin-top: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: white;
  color: white;
}

.chapters:hover {
  background-color: #2f3e56;
  cursor: pointer;
}
b {
  font-weight: 500;
}
