: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;
}

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  overflow: hidden;
  background-color: var(--background-color);
  margin: 0%;
  padding: 0%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

header {
  position: sticky;
  display: flex;
  justify-content: space-between;
  height: 50px;
  border-bottom: solid 0.03125em var(--border-color);
}

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

#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;
}

#name>div {
  /* margin-right: 10.625em; */
  margin-right: 10%;
}

main {
  /* height: initial; */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
}

#left-main {
  margin-right: 8%;
}

#right-main {
  width: 63.922vh;
  height: 63.922vh;
  z-index: 500;
  background-image: linear-gradient(180deg, rgba(23, 85, 83, 100%), rgba(63, 217, 173, 13%));
  border-radius: 5%;
  padding: 0.7%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: auto 1fr auto;
}

.screws {}

#bolt-up-left {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#bolt-down-left {
  grid-row: 3;
  grid-column: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#bolt-up-right {
  grid-row: 1;
  grid-column: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

#bolt-down-right {
  grid-row: 3;
  grid-column: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

#right-main-container {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
}

#right-right-main {
  height: 100%;
  width: 40%;
}

#guides-container {
  width: 95%;
  background-color: rgba(1, 20, 35, 19%);
  border-radius: 10%;
  /* width: fit-content; */
  padding: 3%;
}

#arrows-container {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;

}

#arrows-container>button {
  padding: 0%;
  background-color: transparent;
  border: none;
  width: fit-content;
  width: 100%;
}

#arrows-container>button>img {
  width: 100%;
}

.right-main-text {
  font-size: 90%;
  color: white;
}

#left-right-main {
  height: 100%;
  width: 55%;
}

#gameCanvas {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* grid-template-rows: ; */
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 100%;
  background-color: rgb(1, 22, 39, 84%);
  border-radius: 5%;
  z-index: 1;
}

/* #game-canvas {
  display: none;
  grid-column: 2;
  grid-row: 1;
} */

#gameCanvas>button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FEA55F;
  width: 18vh;
  height: 6vh;
  border: none;
  border-radius: 10%;
  padding: 0%;
  grid-column: 2;
  grid-row: 4;
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

#line-3 {
  margin-bottom: 10%;
}

footer {
  height: 2.8125em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* position: fixed; */
  /* position: absolute;
  bottom: 0; */
  width: 100%;
  text-align: center;
  /* z-index: 1000; */
  border-top: solid 0.5px var(--border-color);
}

#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);
}

#background-blurs {
  height: 106%;
  position: fixed;
  right: -20px;
  top: -20px;
  z-index: 0;
}

#line-1 {
  color: white;
  font-size: 1.17801vw;
}

#line-2 {
  color: white;
  font-size: 3.53403vw;
}

#line-3 {
  color: #4b5bce;
  font-size: 2.094244vw;
}

#line-4,
#line-5,
#line-6 {
  color: #607B96;
  font-size: 1.04712vw;
}

#hello :hover,
#about-me :hover,
#projects :hover,
#contact-me :hover {
  text-decoration: underline;
}

@media screen and (max-width: 64em) {

  body, html {
    overflow: auto;
  }

  #background-blurs {
    top: 0px;
    right: 0px;
  }

  .header-text {
    font-size: 2.272729vh;
  }

  #line-1 {
    color: white;
    font-size: 2.55682vh;
  }

  #line-2 {
    color: white;
    font-size: 7.67045vh;
  }

  #line-3 {
    color: #4b5bce;
    font-size: 4.54546vh;
  }

  #line-4,
  #line-5,
  #line-6 {
    color: #607B96;
    font-size: 2.272729vh;
  }


  #hello,
  #about-me,
  #projects,
  #contact-me {
    display: none;
  }

  #left-header,
  #name {
    width: 100%;
  }

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



  #name {
    justify-content: start;
  }

  #right-main,
  #line-4,
  footer {
    display: none;
  }

  #left-main {
    /* margin-left: auto;
   margin-right: auto; */
    width: fit-content;
    margin-right: 0%;
  }

  #header-btn {
    display: block;
  }

  .main-text {
    /* font-size: 90%; */
    width: fit-content;
  }

  .header-items-container>.header-text {
    margin-right: 0%;
  }

  main {
    /* height: initial; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
  }
}

#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;
}

#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;
}

#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;
}

