@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500&display=swap");
/* กำหนดคุณสมบัติเบื้องต้นของเว็บ */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  overflow-x: hidden;
}

/* กำหนด Default ของ Hyperlink  */
a {
  text-decoration: none;
  color: inherit;
}

/* LearnMore */
.learnmore {
  width: 100%;
  position: fixed;
  bottom: 0;

  background-color: white;

  padding: 1.5rem 1rem;
  z-index: 20;

  font-size: 0.875rem;
  font-weight: 500;
  color: #000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 16px;
}
.learnmore > p {
  margin-right: 1rem;
}

.learnmore > div > .border-blue-btn {
  cursor: pointer;
  background-color: white;
  color: rgb(12, 108, 242);
  border: 1px solid rgb(240, 242, 247);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

.learnmore > div > .blue-btn {
  cursor: pointer;
  background-color: rgb(12, 108, 242);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(12, 108, 242);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-left: 16px;
}

/* Navbar */
nav {
  width: 100%;
  height: 4.75rem;
  position: fixed;
  top: 40px;
  background-color: rgb(18, 29, 51);

  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

nav > div {
  color: #fff;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
}

.logo {
  margin-right: 24px;
}
/* ส่วน menu */
.container-menu {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu > ul {
  display: flex;
  align-items: center;
  list-style-type: none;
}
.menu > ul > li {
  min-width: 4.75rem;
  margin-right: 1.25rem;
  text-align: center;
  padding: 4px 8px;

  border-radius: 0.25em;

  color: rgb(204, 210, 222);

  transition: color 500ms ease 0s, background-color 500ms ease 0s;
}

.menu > ul > li:last-child {
  min-width: auto;
  padding: 0px 0.75rem;
  margin-right: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
  cursor: pointer;
}

.menu > ul > li:last-child > a > img {
  margin-top: 5px;
  cursor: pointer;
}

.dropdown-container {
  position: absolute;
  margin: 0px auto;
  top: 0px;
  left: -17.5rem;
  width: 35rem;
  padding-top: 3.4rem;

  transition: 0.2s;

  opacity: 0;
  pointer-events: none;
}

.menu > ul > li:last-child:hover .dropdown-container {
  opacity: 1;
  pointer-events: all;
}

.dropdown-col {
  background-color: rgb(255, 255, 255);
  border-radius: 0.75rem;
  box-shadow: rgba(103, 113, 133, 0.4) 0.75rem 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
}

.dropdown-row {
  margin-right: 1.25rem;
  width: 8.125rem;
}

.dropdown-row > p {
  color: rgb(18, 29, 51);
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
}

.dropdown-row > ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dropdown-row > ul > li {
  border-radius: 0.25rem;
  color: rgb(103, 113, 133);
  align-items: center;
  font-size: 1rem;
  line-height: 1.5rem;
  margin: 0px -0.25rem;
  padding: 0.25rem 0.5rem;
  text-align: left;

  max-width: fit-content;
}

.dropdown-row > ul > li > a {
  transition: 0.1s;
}

.dropdown-row > ul > li:hover {
  background-color: rgb(240, 242, 247);
  color: rgb(53, 63, 82);
  text-shadow: rgb(53, 63, 82) 0px 0px 0.0406rem,
    rgb(53, 63, 82) 0px 0px 0.0406rem;
}

.menu > ul > li:hover {
  color: #fff;
  background-color: rgba(240, 242, 247, 0.1);
}

/* Search Login SignUp */
.menu-2 {
  display: flex;
  align-items: center;
}

button.search {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  margin-right: 1.25rem;
  cursor: pointer;

  transition: 0.2s;
}

button.search:hover {
  background: rgba(255, 255, 255, 0.25);
}

button.login {
  background: transparent;
  color: #fff;
  border: 0.125rem solid rgb(255, 255, 255);
  border-radius: 0.5rem;
  padding: 10px 14px;
  margin-right: 1.25rem;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

button.login:hover {
  opacity: 0.85;
}

button.signup {
  border: 0.125rem solid transparent;
  color: rgb(18, 29, 51);
  border-radius: 0.5rem;
  padding: 10px 14px;
  margin-right: 1.25rem;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
  background-color: rgb(255, 255, 255);
  transition: 0.2s;
}
button.signup:hover {
  background-color: rgb(223, 227, 235);
}

/* float icon */
.buyCrypto {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 1.5rem;
  bottom: 4.5rem;
  z-index: 10;
  transition: all 0.3s ease 0s;
}

.buyCrypto > a {
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 3rem;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 24px;

  background: rgb(12, 108, 242);
  border: transparent;
  font-size: 1.25rem;
}

.buyCrypto > a > img {
  height: 2.5rem;
  border-radius: 50%;
}

.icon-bg-purple {
  background-color: rgb(239, 236, 254);
  border-radius: 1.25rem;
  padding: 0.75rem;

  color: rgb(115, 73, 242);
  margin-bottom: 1.5rem;
  width: fit-content;

  display: grid;
  place-items: center;
}

.blue-btn {
  padding: 0.75rem 1.375rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 144%;
  border-radius: 0.5rem;
  border: 0.125rem solid transparent;
  cursor: pointer;
  color: rgb(255, 255, 255);
  background: rgb(12, 108, 242);
}

.page-active {
  position: relative;
}
.page-active > a {
  color: #fff;
}
.page-active::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  border: 1px solid #fff;
}

/* dropdown triangle */
.triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;

  border-bottom: 12px solid #fff;
  position: absolute;
  top: 44px;
  left: 52.5%;
}

/* responsive mobile */
@media (max-width: 426px) {
  .learnmore {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }

  .learnmore > div {
    margin-top: 1rem;
  }

  nav {
    padding: 0 16px 0 16px;
    top: 38px;
  }

  nav > div {
    justify-content: space-between;
  }

  .container-menu {
    display: none;
  }

  .buyCrypto {
    right: 0rem;
    bottom: 1rem;
    margin: 0px 1rem;
  }

  .icon-bg-purple {
    margin: 0 auto;
    margin-bottom: 1.5rem;
  }
  .blue-btn {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }
}
