* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #838079;
  color: white;
  /* background-color: white; */
  /* background: url(); */
  /* scrollbar-color: #1f1ff0 #1b39fb; */
  
}
/* a{
  font-family: "Archivo Black", sans-serif;
} */
/* scroll bar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
  background: black;
  
  /* background: #838079; */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, rgb(255, 0, 89), #06b6d4);
  /* background: linear-gradient(45deg, rgb(255, 0, 89), aqua); */
  border-radius: 10px;
  /* border-radius: 5px; */
}

::-webkit-scrollbar-thumb:hover {
  margin-top: 65px;
  background: linear-gradient(45deg, #2563eb, #0891b2);
}

/* ================= NAVBAR ================= */
#Navigation_section {
  background-color: #b9ae99;
  /* background-color: #87868440; */
  /* background-color: transparent; */
  backdrop-filter: blur(70%);

  position: fixed;
  z-index: 1;
  width: 100%;
  /* margin-bottom: 5vw; */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  /* main blur effect */
  -webkit-backdrop-filter: blur(10px);
  /* for Safari */
}

.kkgradient {
  height: .2vw;
  background: linear-gradient(270deg,
      #f52575,
      #feca57,
      #48dbfb,
      #1dd12f,
      #e70b6e);
  background-size: 1000% 1000%;
  animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.nav3 {
  height: .5vw;
}

.navbar {
  /* border: 2px solid aqua; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  /* background: rgba(255, 255, 255, 0.06); */
  /* background: rgba(217, 215, 215, 0.537); */
  /* backdrop-filter: blur(10px); */
  flex-wrap: wrap;
  /* margin: 0vw .5vw; */
}


.logo {
  color: aqua;
  color: rgb(255, 0, 89);
  font-size: 1.4rem;
  font-weight: bold;
  /* font-family: "Archivo Black", sans-serif; */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
  /* font-weight: 80rem; */
  /* font-weight: bold; */
}

.navbar a:hover {
  color: aqua;
  color: rgb(255, 0, 89);
}

.page-section {
  /* border: 1px solid blue; */
  /* background-color: rgb(147, 145, 145); */

  background-color: rgba(86, 86, 86, 0.65);
  backdrop-filter: blur(50%);
  border-radius: .5vw;
}

.keyboard-test-page-section {

  /* border: 1px solid rgb(0, 255, 162); */
  margin-top: 55vw;
  margin: 20vw auto;
  /* padding-top: 30vw; */

}

/* ================= KEYBOARD WRAPPER ================= */

/* .keyboard-wrapper {
  border: 2px solid rgb(238, 25, 131);
  overflow-x: auto;
  display: flex;
  justify-content: center;
} */

/* ================= KEYBOARD CONTAINER ================= */
#keyboard_section {
  /* border: 2px solid red; */
  width: 100%;
}

#keyboard_container_main {
  /* border: 2px solid aqua; */
  /* justify-content: center; */
  width: 77%;
  margin: 0 auto;
  /* background: linear-gradient(145deg, #ffffff, #d7d7d7); */
  /* transform-origin: center; */
}

.keyboard-container {
  /* border: 2px solid rgb(0, 123, 255); */
  background-color: white;
  width: 100%;
  height: 25.5vw;
  margin: 0 auto;
  padding: 2vw 0.5vw;
  border-radius: 0.5vw;
  display: flex;
  gap: .3vw;

  /* width: fit-content; */
  /* display: grid; */
  /* align-items: stretch; */
  /* transform-origin: center; */
}

/* ================= KEYBOARD BLOCKS ================= */

.keyboard-block {
  /* border: 1.5px solid rgb(255 233 0); */
  /* border: 1.5px solid rgb(90, 84, 18); */
  width: 64%;
  margin: 1 auto;
  padding: .1vw;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

/* MAIN KEYBOARD */
.main .row {
  /* border: 1px solid blue; */
  display: flex;
  gap: 0.3vw;
  margin-bottom: 0.3vw;

}

/* NAV KEYS */
.nav {
  /* border: 2px solid rgb(212, 255, 0); */
  display: grid;
  grid-template-columns: repeat(3, 4vw);
  gap: .3vw 0vw;
  margin-top: 4vw;
  /* margin-bottom: 61px; */
  margin-block: 4vw;
}


/* ARROWS */
.middle {
  /* border: 2px solid red; */
  width: 16%;
}

.middle .key {
  width: 3.5vw;
  height: 3.5vw;
}

.arrows {
  /* border: 2px solid rgb(212, 255, 0); */
  /* box-shadow: 0 6px 103px 0 rgba(0, 255, 221, 0.2), 0 6px 20px 0 rgba(0, 255, 251, 0.19); */
  display: grid;
  grid-template-columns: repeat(3, 4vw);
  gap: .3vw 0vw;
}

/* NUMPAD */
.numpad {
  /* border: 2px solid rgb(183, 0, 255); */
  width: 19%;
  margin-top: 4.2vw;
  display: grid;
  grid-template-columns: repeat(4, 3.5vw);
  grid-auto-rows: 3.7vw;
  gap: 0.1vw;

}

/* ================= KEY STYLE ================= */
.numpad .key {
  width: 3.5vw;
  height: 3.5vw;
}

.key {
  /* border: 1px solid blue; */
  box-shadow: 0 6px 103px 0 rgba(255, 0, 140, 0.2), 0 6px 20px 0 rgba(0, 255, 251, 0.19);
  width: 44px;
  height: 44px;
  width: 3.5vw;
  height: 3.5vw;
  border-radius: 8px;
  text-align: center;
  line-height: 44px;
  font-size: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #020617;
  transition: 0.08s;
  user-select: none;


}

.key:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px aqua;
  cursor: pointer;
}

.key {
  transition: all 0.15s ease;
}

.numpad .key {
  width: 3.3vw;
  height: 3.3vw;
}

/* WIDTHS and RGB colour */
.arrows .w1 {
  box-shadow: 0 3px 1px 0 rgba(255, 0, 132, 0.652), 0 0px 20px 0 rgba(255, 0, 132, 0.39);

}

.numpad .w1 {
  box-shadow: 0 3px 1px 0 rgba(0, 255, 221, 0.652), 0 1px 20px 0 rgba(0, 250, 241, 0.39);

}

.w1 {
  width: 44px;
  box-shadow: 0 3px 1px 0 rgba(0, 255, 221, 0.652), 0 1px 20px 0 rgba(0, 255, 0, 0.39);
}

.w2 {
  width: 92px;
  /* box-shadow: 0 1px 1px 0 rgba(230, 31, 121, 0.652), 0 1px 20px 0 rgba(255, 0, 119, 0.19); */
  box-shadow: 0 3px 1px 0 rgba(230, 167, 31, 0.541), 0 1px 20px 0 rgba(255, 174, 0, 0.39);
}

.w3 {
  width: 117px;
  box-shadow: 0 3px 1px 0 rgba(255, 0, 93, 0.652), 0 1px 20px 0 rgba(255, 0, 128, 0.39);
}

.w6 {
  width: 276px;
  box-shadow: 0 3px 1px 0 rgba(255, 255, 0, 0.652), 0 1px 20px 0 rgba(255, 251, 0, 0.39);
}

.h2 {
  height: 92px;
  line-height: 92px;
  box-shadow: 0 3px 1px 0 rgba(0, 255, 51, 0.652), 0 1px 20px 0 rgba(255, 255, 0, 0.252);
}


/* NUMPAD SPECIAL KEYS */
.numpad .zero {
  grid-column: span 2;
  width: 92px;
  width: 6.9vw;
  font-size: 0.85rem;
}

.numpad .enter {
  grid-row: span 2;
  height: 7vw;
}

.numpad .h2 {
  height: 7vw;
}

.numpad .dot {
  grid-column: 3;
}

/* PRESS EFFECT */
.key.active {
  background: #020617;
  color: aqua;
  box-shadow: 0 0 14px aqua;
  transform: translateY(3px);
}

/* MENU KEY */
.key.menu {
  font-size: 1rem;
}

/* PERMANENT PRESSED KEY */
.key.pressed {
  background: #22c55e;
  color: white;
  box-shadow: 0 0 16px #22c55e;
}

/* ERROR KEY */
.key.error {
  background: #ef4444;
  color: white;
  box-shadow: 0 0 18px red;
}

/* ================= CONTENT SECTIONS (ABOUT & PRIVACY) ================= */

.page-section {
  /* border: 1px solid rgb(0, 21, 255); */
  /* max-width: 900px; */
  max-width: 62vw;
  margin: 40px auto;
  margin: 70px auto;
  color: white;
  line-height: 1.7;
  font-size: 1rem;
  padding: 0 16px;
  text-align: center;


}

.page-section h1{
  /* color: aqua; */
  /* font-size: 4rem; */
  font-size: 3.6rem;
  font-size: 4.2vw;
  margin-bottom: 10px;
  
  font-family: "Archivo Black", sans-serif;
  
  font-style: normal;
  font-weight: 80rem;
  /* font-weight: 400; */
}
.page-section h1 span{
  font-size: 3.6rem;
  font-size: 4vw;
  font-family: "Archivo Black", sans-serif;
  color: rgb(255, 0, 89);
}

.page-section h2{
  color: aqua;
  color: rgb(255, 0, 89);
  font-family: "Archivo Black", sans-serif;
  
  margin-top: 20px;
  font-size: 1.3rem;
  font-size: 2rem;
}

.Content_text {
  background-color: rgba(86, 86, 86, 0.65);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  line-height: 1.8;
  font-size: 1rem;
  margin-top: 30px;
}

.Content_text li {
  margin-left: 2vw;
}

.page-section p,
.page-section li {
  font-size: 1rem;
}

.page-section ul {
  margin-left: 20px;
  margin-top: 10px;
}

.page-section .footer-text {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.typing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.typing-table th,
.typing-table td {
  border: 1px solid #aaa;
  padding: 10px;
  text-align: left;
}

.typing-table th {
  background: #444;
  color: white;
}

/* ================= RESPONSIVE DESIGN ================= */

/* Tablet */
@media (max-width: 425px) {
  /* .keyboard-container {
    transform: scale(0.85);
  } */


  /* .navbar {
    padding: 12px 20px;
  } */

}

/*===== MOBILE KEYBOARD FIX ====== */

/* Prevent full page horizontal scroll */
html,
body {
  overflow-x: hidden;
}

@media (max-width:426px) {

  .kkgradient {
    height: 0.6vw;
  }
  .page-section {
    /* border: 1px solid rgb(0, 21, 255); */
    border-radius: 1.4vw;
    max-width: 96vw;
    margin: 40px auto;
    line-height: 1.5;
  }


  .page-section h1{
    font-size:1.8rem;
  }
  .page-section h1 span{
    font-size:1.8rem;
  }
  .Page_section_1{
    padding-top: 20vw;
  }
  .Page_section_1 h1{
    font-size:1.8rem;
  }
  .Page_section_1 h1 span{
    font-size: 1.8rem;
  }




  /* Wrapper handles scroll, not page */
  .keyboard-wrapper {
    /* border: 1px solid blue; */
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 1vw 1vw;
    display: block;
    /* IMPORTANT */
  }

  #keyboard_container_main {
    width: fit-content;
    /* keyboard can be wide */
    margin: auto;
  }

  .keyboard-container {
    /* border: 2px solid blue; */
    margin: 0px auto;
    transform: none !important;
    /* remove scaling */
    background: white;
    border-radius: 2vw;
    /* padding: 10px; */
    padding: 2vw;
    align-items: stretch;
    height: 64vw;
    transform-origin: center;
    width: fit-content;
    display: flex;
    gap: 2vw;
  }

  .keyboard-block {
    /* border: 1.5px solid rgb(255 233 0); */
    background: white;
    padding: 2vw;
    /* border-radius: 14px; */
    border-radius: 0vw;
    display: flex;
    flex-direction: column;
    width: auto;
  }

  /* MAIN KEYBOARD */
  .main .row {
    /* border: 1px solid yellow; */
    display: flex;
    gap: 1.5vw;
    /* margin-bottom: 6px; */
    margin-bottom: 1vw;
  }

  .nav {
    /* border: 1px solid green; */
    display: grid;
    grid-template-columns: repeat(3, 8vw);
    margin-top: 9.6vw;
    margin-bottom: 1vw;
    column-gap: 1vw;
    row-gap: 1.5vw;
    width: 27vw;
  }

  .middle {
    /* border: 1px solid blue; */
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 32.5vw;
  }

  .arrows {
    /* border: 1px solid red; */
    display: grid;
    grid-template-columns: repeat(3, 8vw);
    margin-top: 8.2vw;
    margin-left: 0.6vw;
    width: 27vw;
    column-gap: 1vw;
    row-gap: 1.2vw;
  }

  /* NUMPAD */
  .numpad {
    /* border: 2px solid rgb(0, 255, 72); */
    width: 40vw;
    display: grid;
    grid-template-columns: repeat(4, 9vw);
    grid-auto-rows: 9.2vw;
    height: 100%;
    padding-top: 12vw;
    margin-top: 0vw;
    column-gap: 0vw;
    row-gap: 0vw;
  }

  /* ================= KEY STYLE ================= */

  .key {
    box-shadow: 0 6px 103px 0 rgba(255, 0, 140, 0.2), 0 6px 20px 0 rgba(0, 255, 251, 0.19);
    /* border-radius: 8px; */
    border-radius: 2vw;
    text-align: center;
    line-height: 8vw;
    font-size: 0.65rem;
    font-weight: 600;
    color: #020617;
    transition: 0.08s;
    user-select: none;
    width: 8vw;
    height: 8vw;
  }

  .middle .key {
    width: 8vw;
    height: 8vw;
    /* border-radius: 8px; */
    border-radius: 2vw;
    text-align: center;
    line-height: 8vw;
    font-size: 0.65rem;
    /* font-size: 2.5vw; */
    font-weight: 600;
  }

  .numpad .key {
    width: 8vw;
    height: 8vw;
    border-radius: 8px;
    text-align: center;
    line-height: 8vw;
    font-size: 0.65rem;
    /* font-size: 2.5vw; */
    font-weight: 600;
  }

  /* WIDTH CLASSES and setting RGB colour */
  .w1 {
    width: 36px;
    box-shadow: 0 .3vw .1vw 0 rgba(0, 255, 221, 0.652), 0 1px 20px 0 rgba(0, 255, 0, 0.39);
  }

  .numpad .w1 {
    box-shadow: 0 .3vw .1vw 0 rgba(0, 255, 221, 0.652), 0 1px 20px 0 rgba(0, 250, 241, 0.39);
  }

  .arrows .w1 {
    box-shadow: 0 .3vw .1vw 0 rgba(255, 0, 132, 0.652), 0 0px 20px 0 rgba(255, 0, 132, 0.39);
  }

  .w2 {
    width: 76px;
    box-shadow: 0 .3vw .1vw 0 rgba(230, 167, 31, 0.541), 0 1px 20px 0 rgba(255, 174, 0, 0.39);
  }

  .w3 {
    width: 96px;
    box-shadow: 0 .3vw .1vw 0 rgba(255, 0, 93, 0.652), 0 1px 20px 0 rgba(255, 0, 128, 0.39);
  }

  .w6 {
    width: 220px;
    box-shadow: 0 .3vw .1vw 0 rgba(255, 255, 0, 0.652), 0 1px 20px 0 rgba(255, 251, 0, 0.39);
  }

  .h2 {
    height: 76px;
    /* line-height: 76px; */
    line-height: 16vw;
    box-shadow: 0 .3vw .1vw 0 rgba(0, 255, 51, 0.652), 0 1px 20px 0 rgba(255, 255, 0, 0.252);
  }

  /* NUMPAD SPECIAL KEYS */
  .numpad .zero {
    width: 16.9vw;
    grid-column: span 2;
    font-size: 0.85rem;
  }

  .numpad .enter {
    grid-row: span 2;
    /* height: 22vw; */
  }

  .numpad .h2 {
    height: 17vw;
    /* line-height: 73px; */
    line-height: 16vw;
  }

  .numpad .dot {
    grid-column: 3;
  }

}

/* For medium mobile */



/* Small Mobile final */
@media (max-width: 320px) {
  .logo {
    font-size: 1.1rem;
  }

  .nav-links,
  .navbar ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .keyboard-container {
    transform: scale(0.6);
  }

  .page-section {
    margin: 20px auto;
    font-size: 0.9rem;
  }

  .page-section h1 {
    font-size: 1.4rem;
  }

  .page-section h2 {
    font-size: 1.05rem;
  }

  .keyboard-wrapper {
    /* border: 2px solid rgb(255, 0, 102); */
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px;
    display: block;
    /* IMPORTANT */
  }

  .keyboard-container {
    /* border: 2px solid blue; */
    margin: 0px auto;
    transform: none !important;
    /* remove scaling*/
    background: white;
    border-radius: 6px;
    padding: 7px;
    align-items: stretch;
    height: 72vw;
    transform-origin: center;
    width: fit-content;
    display: flex;
    gap: 6px;
    gap: 8vw;
  }

  .keyboard-block {
    /* border: 1.5px solid rgb(255 233 0); */
    background: white;
    padding: 2vw;
    border-radius: 14px;
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.4); */
    display: flex;
    flex-direction: column;
    width: auto;
  }

  /* MAIN KEYBOARD */
  .main .row {
    /* box-shadow: 0 6px 103px 0 rgba(0, 255, 221, 0.2), 0 6px 20px 0 rgba(0, 255, 251, 0.19); */
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
  }

  .nav {
    /* border: 1px solid green; */
    display: grid;
    grid-template-columns: repeat(3, 36px);
    margin-top: 10.4vw;
    margin-bottom: 30px;
    column-gap: 0vw;
    row-gap: 1.5vw;
  }

  .middle {
    /* border: 1px solid blue; */
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .arrows {
    /* border: 1px solid red; */
    display: grid;
    grid-template-columns: repeat(3, 36px);
    margin-top: 4vw;
    column-gap: 0vw;
    row-gap: 1.5vw;
  }

  /* NUMPAD */
  .numpad {
    /* border: 1px solid blue; */
    display: grid;
    grid-template-columns: repeat(4, 35px);
    grid-auto-rows: 35px;
    padding-top: 12.6vw;
    height: 100%;
    margin-top: 0vw;
    column-gap: 0vw;
    row-gap: 0vw;
  }

  /* ================= KEY STYLE ================= */

  .key {
    /* border: 1px solid red; */
    box-shadow: 0 6px 103px 0 rgba(255, 0, 140, 0.2), 0 6px 20px 0 rgba(0, 255, 251, 0.19);
    border-radius: 2vw;
    text-align: center;
    line-height: 8vw;
    font-size: 0.55rem;
    font-weight: 600;
    color: #020617;
    transition: 0.08s;
    user-select: none;
    width: 4vw;
    height: 9vw;
  }

  .middle .key {
    border-radius: 8px;
    text-align: center;
    line-height: 8vw;
    font-size: 0.55rem;
    font-weight: 600;
    width: 9.5vw;
    height: 9.5vw;
  }

  .arrows .key {
    width: 9vw;
    height: 9vw;
  }

  .numpad .key {
    border-radius: 8px;
    text-align: center;
    line-height: 8vw;
    font-size: 0.55rem;
    font-weight: 600;
    width: 9.5vw;
    height: 9.5vw;

  }

  /* WIDTH CLASSES and setting RGB colour */
  .arrows .w1 {
    box-shadow: 0 1px 1px 0 rgba(255, 0, 132, 0.652), 0 0px 20px 0 rgba(255, 0, 132, 0.39);
  }

  .w1 {
    width: 9.5vw;
    height: 9vw;
    box-shadow: 0 1px 1px 0 rgba(0, 255, 221, 0.652), 0 1px 20px 0 rgba(0, 255, 0, 0.39);
  }

  .numpad .w1 {
    box-shadow: 0 1px 1px 0 rgba(0, 255, 221, 0.652), 0 1px 20px 0 rgba(0, 250, 241, 0.39);
  }

  .w2 {
    width: 21vw;
    /* border: 1px solid aqua; */
    box-shadow: 0 1px 1px 0 rgba(230, 167, 31, 0.541), 0 1px 20px 0 rgba(255, 174, 0, 0.39);
  }

  .w3 {
    /* border: 1px solid blue; */
    width: 26.5vw;
    box-shadow: 0 1px 1px 0 rgba(255, 0, 93, 0.652), 0 1px 20px 0 rgba(255, 0, 128, 0.39);
  }

  .w6 {
    width: 75vw;
    /* border: 1px solid rgb(255, 0, 242); */
    box-shadow: 0 1px 1px 0 rgba(255, 255, 0, 0.652), 0 1px 20px 0 rgba(255, 251, 0, 0.39);
  }

  .h2 {
    height: 76px;
    line-height: 76px;
    box-shadow: 0 1px 1px 0 rgba(0, 255, 51, 0.652), 0 1px 20px 0 rgba(255, 255, 0, 0.252);
  }

  /* NUMPAD SPECIAL KEYS */
  .numpad .zero {
    width: 20.7vw;
    grid-column: span 2;
    /* font-size: 0.85rem; */
    /* padding-top: 15vw; */
  }

  .numpad .enter {
    grid-row: span 2;
    height: 16.9vw;
  }

  .numpad .h2 {
    height: 20.7vw;
    line-height: 18vw;
  }

  .numpad .dot {
    grid-column: 3;
  }



}

/* ================= FOOTER ================= */

.site-footer {
  background: #000;
  /* pure black */
  color: #9ca3af;
  padding: 30px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left h3 {
  color: aqua;
  color: rgb(255, 0, 89);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-left p {
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: aqua;
  color: rgb(255, 0, 89);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #6b7280;
  border-top: 1px solid #111827;
  padding-top: 12px;
}

/* ================= FOOTER RESPONSIVE ================= */

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left p {
    max-width: 100%;
  }
}
