/* Font ----------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap");

/* Root ----------------------------------------------- */

:root {
  /* Color */

  --primary-color: #00ed82;
  --primary-hover: #00ed33;
  --text-light: #bec0c2;
  --background-dark: #0b0c0f;
  --background-gray: #272c34;
  --background-hover: #586174;
  --header-box-shadow: inset 0 4rem 12rem black;
}

/* Box Sizing --------------------------------------- */

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Element  ----------------------------------------- */

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

/* Tag Preset --------------------------------------- */

html,
body {
  font-family: "Rubik", sans-serif;
  background-color: var(--background-dark);
  color: white;
  user-select: none;
}
h2 {
  font-size: clamp(0.8rem, 4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.4;
  max-width: 28rem;
}
h3 {
  font-size: clamp(0.4rem, 2.9vw, 0.8rem);
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 1px;
}
a,
ul,
li {
  list-style: none;
  text-decoration: none;
  cursor: pointer;
  color: var(--text-light);
}
img {
  width: 100%;
}
header {
  min-height: 100vh;
}

/* Text Styling ------------------------------------- */

.text-xs {
  font-size: 0.62rem;
  color: var(--text-light);
}

.text-underline {
  cursor: pointer;
  color: white;
  border-bottom: 1px solid var(--text-light);
}
.text-underline:hover {
  border-color: white;
}

.text-button {
  font-size: 1rem;
}
.text-detail {
  font-size: 0.62rem;
}

/* Spacing ----------------------------------------- */

.margin-block-1 {
  margin-block: 1rem;
}
.margin-inline {
  margin-inline: auto;
}
.margin-top {
  margin-top: 0.6rem;
}
.margin-bottom {
  margin-bottom: 0.6rem;
}

/* Button ------------------------------------------ */

button,
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
  border: none;
  border-radius: 0.3em;
  padding: 1em;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--background-dark);
  max-width: 100%;
  margin-inline: auto;
}

.btn-dropdown {
  cursor: pointer;
  height: 2.4rem;
  width: 2.6rem;
  background-color: var(--background-gray);
}
.btn-dropdown::after {
  display: grid;
  align-items: center;
  content: "\f0c9";
  font-family: "Font Awesome 6 Free";
  color: white;
}
.btn-dropdown:hover {
  background-color: var(--background-hover);
}

.btn-primary {
  background-color: var(--primary-color);
  max-width: 36rem;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-login {
  color: var(--text-links);
  margin-bottom: 0.4rem;
}
.btn-login:hover {
  background: var(--background-hover);
}

/* Logo ------------------------------------------ */

.logo {
  width: 5rem;
}

/* Nav ------------------------------------------- */

.nav {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 4%;
  z-index: 2;
}
.nav-1 {
  justify-content: space-between;
  position: absolute;
}

/* Dropdown --------------------------------------- */

.dropdown {
  position: relative;
}
.dropdown-container {
  position: absolute;
  width: 16rem;
  margin-top: 1rem;
  display: grid;
  text-align: center;
  padding: 0.6rem;
  background-color: var(--background-gray);
  right: 0;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-1rem);
  transition: all ease-in 0.1s;
}
.dropdown button:focus + .dropdown-container {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}

@media (320px <= width <= 890px) {
  .dropdown-container {
    width: 50vw;
  }
}
@media (320px <= width <= 480px) {
  .dropdown-container {
    width: 90vw;
  }
}

/* Header ------------------------------------------- */

.header {
  display: grid;
  place-content: center;
  background: url("./natalie-kinnear-MOYsN7tGwA8-unsplash.jpg") no-repeat center center/cover;
  padding: 4%;
}
.header::after {
  content: "";
  box-shadow: var(--header-box-shadow);
}
.header-container {
  display: grid;
  gap: 3rem;
  max-width: 40rem;
  text-align: center;
  z-index: 1;
}
.header-button {
  width: 100%;
}

@media (320px <= width <= 890px) {
  .header-container {
    gap: 2rem;
  }
}
