@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@1,300;1,400;1,500&display=swap");

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  --webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #efefef;
  font-family: "Open Sans", sans-serif;
}
::selection {
  color: #fff;
  background: #4d59fb;
}
.container {
  width: 720px;
  border-radius: 7px;
  background: #fff;
  padding: 25px 28px 45px;
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.05);
}
.container header {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}
.container .search {
  position: relative;
  margin: 35px 0 18px;
}
.search input {
  height: 53px;
  width: 100%;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  padding: 0 42px;
  border: 1px solid #999;
}
.search input:focus {
  padding: 0 41px;
  border: 2px solid #4d59fb;
}
.search input::placeholder {
  color: #b8b8b8;
}
.search :where(i, span) {
  position: absolute;
  top: 50%;
  color: #999;
  transform: translateY(-50%);
}
.search i {
  left: 18px;
  pointer-events: none;
  font-size: 16px;
}
.search input:focus ~ i {
  color: #4d59fb;
}
.search span {
  right: 15px;
  cursor: pointer;
  font-size: 18px;
  display: none;
}
.search input:valid ~ span {
  display: block;
}
.container .info-text {
  font-size: 13px;
  color: #9a9a9a;
  margin: -3px 0 -10px;
}
.container.active .info-text {
  display: none;
}
.info-text span {
  font-weight: 500;
}
.container ul {
  height: 0;
  opacity: 0;
  padding-right: 1px;
  overflow-y: hidden;
  transition: all 0.2s ease;
}
.container.active ul {
  opacity: 1;
  height: 130px;
}
.container ul li {
  display: flex;
  list-style: none;
  margin-bottom: 14px;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid #d9d9d9;
  justify-content: space-between;
}

ul .word p {
  font-size: 22px;
  font-weight: 500;
}
ul .word span {
  font-size: 12px;
  color: #989898;
}
ul .word i {
  color: #999;
  font-size: 15px;
  cursor: pointer;
}
ul .content {
  max-height: 215px;
  overflow-y: auto;
}
ul .content::-webkit-scrollbar {
  width: 0px;
}
.content li .details {
  padding-left: 10px;
  border-left: 3px solid #4d59fb;
}
.content li p {
  font-size: 17px;
  font-weight: 500;
}
.content li span {
  font-size: 15px;
  color: #7e7e7e;
}

@media screen and (max-width: 480px){
  .container{
    width: 350px;
  }
}

.project {
  display: block;
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease;
  font-family: 'IBM Plex Mono', monospace;
}

.project:hover {
  background-color: #e9e9ff;
}

.project h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.project p {
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Open Sans', sans-serif;
}

.title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #4d59fb9e;
  c
}

.mini-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 25px;
  color: #c86d199e;
}

.func {
  width: 100%;
}

/* Dark mode styles */
body.dark-mode {
  background: #333;
  color: #f1f1f1;
}

.container.dark-mode {
  background: #444;
  color: #f1f1f1;
}

.container.dark-mode header {
  color: #f1f1f1;
}

.container.dark-mode .search input {
  background: #555;
  color: #f1f1f1;
  border: 1px solid #666;
}

.container.dark-mode .search input:focus {
  border: 2px solid #4d59fb;
}

.container.dark-mode .info-text {
  color: #ccc;
}

.container.dark-mode ul li {
  border-bottom: 1px solid #555;
}

.project.dark-mode {
  background-color: #555;
  color: #f1f1f1;
}

.project.dark-mode:hover {
  background-color: #666;
}

.title.dark-mode {
  color: #4d59fb;
}

.mini-title.dark-mode {
  color: #c86d19;
}

.dark-mode-button {
  cursor: pointer;
  padding: 10px 20px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #4d59fb;
  border: none;
  border-radius: 5px;
  outline: none;
  transition: background-color 0.3s ease;
  font-family: 'IBM Plex Mono', monospace;
}

.dark-mode-button:hover {
  background-color: #6a71fc;
}

.dark-mode-button:focus {
  box-shadow: 0 0 0 2px rgba(77, 89, 251, 0.5);
}

body.dark-mode .dark-mode-button {
  background-color: #4d59fb;
}

body.dark-mode .dark-mode-button:hover {
  background-color: #6a71fc;
}

.param-desc {
  font-style: italic;
  color: #9a9a9a;
  margin-left: 10px;
  font-size: 14px;
}

.param {
  font-weight: bold;
  color: #4d59fb;
}

.func-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
  background-color: #f1f1f1;
  padding: 10px;
  border-left: 4px solid #4d59fb;
  border-radius: 3px;
}

.code-box {
  background-color: #f5f5f5;
  border-left: 3px solid #4d59fb;
  padding: 15px;
  margin: 20px 0;
  overflow-x: auto;
  font-family: 'IBM Plex Mono', monospace;
  color: #333;
  border-radius: 4px;
}

.code-box pre {
  margin: 0;
}

.code-box-return {
  background-color: #333;
  border-left: 3px solid #4d59fb;
  padding: 15px;
  margin: 20px 0;
  overflow-x: auto;
  font-family: 'IBM Plex Mono', monospace;
  color: #f2f2f2;
  border-radius: 4px;
}

::-webkit-scrollbar {
  background: #333;
  color: #f1f1f1;
  transition: 0.5s;
}

::-webkit-scrollbar-thumb {
  background: #4d59fb;
  border-radius: 30px;
  transition: 0.5s;
}

::-webkit-scrollbar-thumb:hover {
  background: #6a71fc;
  transition: 0.5s;
}

::-webkit-scrollbar-track {
  background: #444;
  transition: 0.5s;
}

::-webkit-scrollbar-corner {
  background: #333;
  border-radius: 30px;
  transition: 0.5s;
}

::-webkit-resizer {
  background: #4d59fb;
  transition: 0.5s;
}