:root {
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  --text-color: #607B96;
  --border-color: #1E2D3D;
  --background-color: #011627;
}

* {
  color: var(--text-color);
  text-decoration: none;
  width: fit-content;
  box-sizing: border-box;
}

.fira-code {
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-weight: 100%;
  font-style: normal;
}

html {
  height: 100vh;
  width: 100%;
}

body {
  overflow: hidden;
  display: flex;
  background-color: var(--background-color);
  margin: 0%;
  padding: 0%;
  width: 100%;
  height: 100%;
}

#menus {
  /* min-width: 280px; */
  max-width: fit-content;
  width: fit-content;
  height: 100%;
  box-sizing: border-box;
  border-right: var(--border-color) solid 0.5px;
}

#name {
  display: flex;
  align-items: center;
  padding-left: 15px;
  width: 100%;
  height: 50px;
  border-bottom: var(--border-color) solid 0.5px;
}

#menus-container {
  display: flex;
  height: calc(100% - 50px);
  flex-direction: column;
}

#menus #side-menu {
  display: flex;
  height: 100%;
  flex-direction: column;
  border-right: var(--border-color) solid 0.5px;
}

.side-btn {
  padding: 11px 13px;
}

button {
  background-color: inherit;
  border: none;
  padding: 0%;
  font-family: "Fira Code", monospace;
}

#explorer-menu {
  /* padding-left: 5%;
  padding-right: 5%; */
  width: 15vw;
  box-sizing: border-box;
}

#personal-info-container {
  height: 40px;
  display: flex;
  align-items: center;

}

ul {
  padding: 0%;
  margin: 0%;
  list-style-type: none;
}

li {}

.menu-container {
  padding: 15px 15px;
}

#gmail-container {
  display: flex;

}

#gmail-container:hover {
  /* background-color: blue; */
  /* color: blue; */
}

#short-email {
  display: none;
}

.menu-container {
  width: 100%;
  border-bottom: var(--border-color) solid 0.5px;
}

.icon {
  margin-right: 10px;
}

ul li {
  margin-left: 20px;
}

#content-container {
  height: fit-content;
  width: 100%;
  height: 100%;
}

header {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-color) solid 0.5px;
}

#left-header,
#right-header {
  display: flex;
  height: 100%;
}

#left-header>.header-items-container {
  border-right: solid 0.03125em var(--border-color);
  text-decoration: none;
}

#right-header>.header-items-container {
  border-left: solid 0.03125em var(--border-color);
  text-decoration: none;
}

.header-text {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 2.5em;
  margin-right: 2.5em;
  /* font-size: 2.272729vh; */
  /* font-size: 1.04712vw; */
  font-size: 16px;
}


.header-items-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#header-btn {
  display: none;
  border: none;
  border-left: solid 0.03125em var(--border-color);
  background-color: rgba(255, 255, 255, 0);
  outline: inherit;
}

#tabs-container {
  width: 100%;
  height: calc(100% - 50px);
}

.tab-editor {
  width: 100%;
  height: 40px;
  border-bottom: var(--border-color) solid 0.5px;
}

.explorer-item {
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.hidden {
  display: none;
}

#tab-display {
  /* display: flex;
  flex-wrap: wrap;
  gap: 10px; */
  display: grid;
  /* border: solid; */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  justify-content: center;
  padding: 100px;
  width: 100%;
  height: calc(100% - 90px);
  overflow-y: auto;
  overflow-x: auto;
}

.project-cards {
  /* width: 50%; */
  /* flex: 1 1 150px;
  min-width: 340px;
  max-width: 340px; */
}

.project-images {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  width: 100%;
}

.project-content {
  background-color: #011221;
  border: solid 1px #1E2D3D;
  border-radius: 16px;
}

.project-text-container {
  padding: 20px;
}

.view-project-btn {
  color: #fff;
  background-color: #1C2B3A;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 20px;
}


#contact-info>a {
  display: flex;
  align-items: center;
}

#tabs-container {
  display: flex;
}

.tabs-container {
  width: 100%;
}

/* pre {
  background: #303030;
  padding: 10px 16px;
  color: var(--text-color);
  counter-reset: line 1;
}

pre>span::before {
  content: '1';
  display: inline-block;
  padding: 0 .5em;
  margin-right: .5em;
  color: #888;
}

pre div {
  line-height: 1.5;
  counter-increment: line;
}

pre div::before {
  content: counter(line);
  display: inline-block;
  padding: 0 .5em;
  margin-right: .5em;
  color: #888;
} */

.code-box {
  background-color: #0f172a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  white-space: pre;
  counter-reset: line;
}

.code-line {
  position: relative;
  padding-left: 3em;
  counter-increment: line;
}

.code-line::before {
  content: counter(line);
  position: absolute;
  left: 0;
  width: 2em;
  text-align: right;
  color: #64748b;
  user-select: none;
}

#tab-display::-webkit-scrollbar {
  height: 100%;
  width: 10px;
  /* background: #0f172a; */
}

#tab-display::-webkit-scrollbar-thumb {
  background: #1e293b;
  margin: 10px;
}

#tab-display::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Optional: Hide scrollbar track border */
#tab-display::-webkit-scrollbar-track {
  /* background: #0f172a; */
  border-left: solid 1px var(--border-color);
  box-sizing: border-box;
  padding: 10px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.code-snippet {
  width: 100%;
  margin-bottom: 50px;
}

.code-snippet-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.code-snippet-header-left {
  display: flex;
}

.header-info {
  display: flex;
  flex-direction: column;
}

.header-info>.username {
  color: #5565E8;
  font-weight: bold;
}

.header-info>.posted-date {
  font-size: 80%;
}

.code-snippet-header-right {
  display: flex;
}

.code-snippet-header-right>button {
  display: flex;
  align-items: center;
}

.code-snippet-header-right>button>.icon {
  margin-right: 5px;
}

.code-snippet-header-right>button:hover {
  color: white;
}

.code-snippet-content {
  width: 100%;
  padding: 12px;
  /* Add padding to show rounded corners */
  box-sizing: border-box;
  background: transparent;
  /* Or match your page background */
}

.code-snippet-content pre {
  background: #011221;
  border-radius: 10px;
  /* Smaller radius */
  padding: 0px 20px;
  margin: 0;
  font-family: "Fira Code", monospace;
  font-size: 1em;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  width: auto;
  /* Let it size naturally */
}

.code-snippet-content pre code {
  background-color: #011221;
  width: 100%;
  line-height: 20px;
}

footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  background: var(--background-color);
  border-top: 1px solid var(--border-color);
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 100;
}

#left-footer,
#right-footer {
  display: flex;
  height: 100%;
}

.footer-text {
  color: var(--text-color);
  margin-left: 0.96875em;
  margin-right: 0.96875em;
}

.footer-items-container {
  height: 100%;
  text-decoration: none;
  display: flex;
  align-items: center;
}

#left-footer>.footer-items-container {
  border-right: solid 0.5px var(--border-color);
}

#right-footer>.footer-items-container {
  border-left: solid 0.5px var(--border-color);
}

@media (max-width: 90em) {
  body {
    /* overflow: auto; */
  }

  footer {
    /* display: none; */
  }

  .tabs-container {
    width: 100%;
  }

  #left-tabs-container>.tab-editor {
    /* overflow: hidden; */
    z-index: 10;
    position: fixed;
    background-color: var(--background-color);
  }

  #tabs-container {
    overflow: auto;
    display: block;
  }

  /* #tab-display {
    position: relative;
    top: 50px;
    width: 100%;
  } */

  #long-email {
    display: none;
  }

  #short-email {
    display: inline;
  }

  /* .tab-editor */
}

#small-header {
  display: none;
}

#overlay {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  position: absolute;
  display: none;
}

#drop-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
  width: 21.875em;
  height: 100%;
  position: absolute;
  background-color: var(--background-color);
  right: 0;
  display: none;
}

.menu-items-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-bottom: var(--border-color) solid 0.5px;
  height: 5.5vh;
}

.menu-texts {
  color: var(--text-color);
  font-size: 16px;
  margin-left: 15px;
}

#name-container {
  justify-content: space-between;
}

#name-container>button {
  border: none;
  background-color: transparent;
  margin-right: 10px
}

#footer-menu {
  border-top: var(--border-color) solid 0.5px;
  width: 100%;
}

#menu-find-me-in {
  display: flex;
  align-items: center;
  border-right: var(--border-color) solid 0.5px;
  height: 100%;
  padding-right: 15px;
}

#find-me-in-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#menu-facebook-icon,
#menu-github-icon {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: var(--border-color) solid 0.5px;
  padding: 0px 1.409vh 0px 1.409vh;
}

/* Ẩn overlay và menu ban đầu */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#drop-menu {
  position: fixed;
  top: 0;
  right: -100%;
  /* width: 300px;
  height: 100%; */
  /* background-color: #1e1e1e; */
  /* color: white; */
  z-index: 11;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

#drop-menu.active {
  right: 0;
}

.upper-drop-menu>div {
  width: 100%;
}

.menu-items-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#mobile-explore-menu {
  display: none;
}


@media (max-width: 76.875em) {
  #menus {
    display: none;
  }

  footer {
    display: none;
  }

  #small-header {
    display: flex;
  }

  #large-header {
    display: none;
  }

  #header-btn {
    display: block;
  }

  #contact-me {
    display: none;
  }

  #tabs-display {
    overflow-x: hidden;
    overflow-y: hidden;
  }

  /* #star-icon {
    display: none;
  } */

  #left-header>.header-items-container {
    border-right: none;
  }

  .tab-editor {
    /* height: auto; */
    /* display: none; */
  }

  @media (max-width: 76.875em) {
    .tab-editor {
      display: none;
    }

    #mobile-explore-menu {
      display: block;
      width: 100%;
    }

    #mobile-explore-menu>div {
      width: 100%;
    }

    #content-container {
      overflow: auto;
    }

    #mobile-personal-info-container,
    #mobile-contacts-container {
      margin: 2px;
    }

    #tab-display {
      overflow: scroll;
      padding: 0 10vw;
    }

    #mobile-contact-info {
      width: 100%;
      padding-left: 7vw;
    }

    #mobile-contact-info,
    #mobile-folder-container {
      margin: 20px 0;
    }

    #mobile-items {
      margin: 3px;
    }
  }
}

.details-btn {
  margin-right: 10px;
  display: none;
}

/* .project-type {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: #0f1b28;
  border: 2px solid #607B96;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  vertical-align: middle;
}

.project-type:checked {
  background: #334155;
  border-color: #607B96;
}

.project-type:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 8px;
  height: 14px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  border-radius: 1px;
  transform: rotate(45deg);
  box-sizing: border-box;
} */

.checkbox-wrapper-1 *,
.checkbox-wrapper-1 ::after,
.checkbox-wrapper-1 ::before {
  box-sizing: border-box;
  margin: 5px 0;
}

.checkbox-wrapper-1 [type=checkbox].substituted {
  margin: 0;
  width: 0;
  height: 0;
  display: inline;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.checkbox-wrapper-1 [type=checkbox].substituted+label:before {
  content: "";
  display: inline-block;
  vertical-align: top;
  /* height: 1.15em;
    width: 1.15em; */
  width: 1.375em;
  height: 1.375em;
  margin-right: 0.9375em;
  color: rgba(0, 0, 0, 0.275);
  border: solid 0.06em;
  box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em inset, 0 0 0 0.07em transparent inset;
  border-radius: 0.2em;
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="white" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>') no-repeat center, white;
  background-size: 0;
  will-change: color, border, background, background-size, box-shadow;
  transform: translate3d(0, 0, 0);
  transition: color 0.1s, border 0.1s, background 0.15s, box-shadow 0.1s;
}

.checkbox-wrapper-1 [type=checkbox].substituted:enabled:active+label:before,
.checkbox-wrapper-1 [type=checkbox].substituted:enabled+label:active:before {
  box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset;
  background-color: #f0f0f0;
}

.checkbox-wrapper-1 [type=checkbox].substituted:checked+label:before {
  background-color: rgba(96, 123, 150, 1);
  background-size: 0.75em;
  color: rgba(0, 0, 0, 0.075);
}

.checkbox-wrapper-1 [type=checkbox].substituted:checked:enabled:active+label:before,
.checkbox-wrapper-1 [type=checkbox].substituted:checked:enabled+label:active:before {
  background-color: rgba(96, 123, 150, 1);
  color: rgba(0, 0, 0, 0.275);
}

.checkbox-wrapper-1 [type=checkbox].substituted:focus+label:before {
  box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset, 0 0 0 3.3px rgba(65, 159, 255, 0.55), 0 0 0 5px rgba(65, 159, 255, 0.3);
}

.checkbox-wrapper-1 [type=checkbox].substituted:focus:active+label:before,
.checkbox-wrapper-1 [type=checkbox].substituted:focus+label:active:before {
  box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset, 0 0 0 3.3px rgba(65, 159, 255, 0.55), 0 0 0 5px rgba(65, 159, 255, 0.3);
}

.checkbox-wrapper-1 [type=checkbox].substituted:disabled+label:before {
  opacity: 0.5;
}

.checkbox-wrapper-1 [type=checkbox].substituted.dark+label:before {
  color: rgba(255, 255, 255, 0.275);
  background-color: #222;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="rgba(34, 34, 34, 0.999)" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>');
}

.checkbox-wrapper-1 [type=checkbox].substituted.dark:enabled:active+label:before,
.checkbox-wrapper-1 [type=checkbox].substituted.dark:enabled+label:active:before {
  background-color: #444;
  box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(255, 255, 255, 0.1) inset;
}

.checkbox-wrapper-1 [type=checkbox].substituted.dark:checked+label:before {
  background-color: #a97035;
  color: rgba(255, 255, 255, 0.075);
}

.checkbox-wrapper-1 [type=checkbox].substituted.dark:checked:enabled:active+label:before,
.checkbox-wrapper-1 [type=checkbox].substituted.dark:checked:enabled+label:active:before {
  background-color: #c68035;
  color: rgba(0, 0, 0, 0.275);
}

.checkbox-wrapper-1 [type=checkbox].substituted+label {
  -webkit-user-select: none;
  user-select: none;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

#drop-menu.active {
  right: 0;
}