/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
    9. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

/* * {
  outline: 1px solid red;
} */

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Disable text selection */
html {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

body {
  background-color: #09090b;
  color: white;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding: 0 40px;
}

header {
  display: flex;
  justify-content: center;
  width: 100%;
  position: fixed;
  z-index: 100;
  background: linear-gradient(to bottom, #09090b, transparent);
  /* backdrop-filter: blur(12px); */
}

nav {
  display: flex;
  margin: 50px;
  background-color: rgb(24 24 27);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem;
  border-radius: 1000px;
}

nav > p {
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 1000px;
}

p.activeToggle {
  background-color: rgb(9 9 11);
}

main {
  display: flex;
  width: 100%;
  max-width: 800px;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-bottom: 40px;
  margin-top: 140px;
}

main .card {
  background-color: #18181bcc;
  box-shadow: 0 0 0 1px rgb(39 39 42 / 1), 0 0 #0000;
  border-radius: 0.75rem;
  min-width: 200px;
  flex: 1;
  position: relative;
}

.card .pop {
  position: absolute;
  right: 15px;
  top: 15px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
}

.pop:hover {
  background-color: rgb(48 48 51 / 1);
}

.pop svg {
  height: 1rem;
  aspect-ratio: 1;
  fill: rgb(161 161 170);
  pointer-events: none;
}

main .card > .top {
  width: 100%;
  padding: 1rem 1rem 0.25rem 1rem;
}

main .card > .top > p:nth-of-type(1) {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgb(113 113 122);
}

main .card > .top > p:nth-of-type(2) {
  font-size: 3rem;
  font-weight: 100;
  position: relative;
}

main .card > .bottom {
  background-color: #52525b1a;
  width: 100%;
  padding: 0.75rem 1rem;
  color: rgb(161 161 170);
}

.loading .top > p:nth-of-type(2):after {
  content: "";
  display: inline-block;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgb(167, 167, 167);
  border-top: 2px solid transparent;
  animation: loading 1s linear infinite;
  position: absolute;
  top: 25%;
  left: 0;
  z-index: 0;
}

.loading .top > p:nth-of-type(2) {
  color: transparent;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

main > p {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgb(89, 89, 91);
  margin-top: 20px;
}

/* List Quotes/Policies */
.hidden {
  visibility: hidden;
}

aside {
  width: 100%;
  min-height: 100vh;
  max-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #09090b;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

aside button {
  background-color: white;
  border: none;
  border-radius: 1000px;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #09090b;
  cursor: pointer;
}

.close {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 2rem 0;
  padding-top: 4rem;
  background: linear-gradient(to top, #09090b, transparent);
  display: flex;
  justify-content: center;
  z-index: 50;
}

aside .list {
  /* outline: 1px solid red; */
  max-width: 600px;
  width: 100%;
  font-size: 0.75rem;
  display: grid;
  grid-template-columns: auto auto auto;
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgb(39 39 42 / 1), 0 0 #0000;
  border-radius: 0.5rem;
  overflow: auto;
}

.list > div {
  border-right: 1px solid rgb(39 39 42 / 1);
}

.list > div:last-of-type {
  border-right: none;
}

.list > div > p {
  padding: 0.5rem;
  border-bottom: 1px solid rgb(39 39 42 / 1);
  text-align: center;
}

.list > div:nth-of-type(2) > p {
  text-align: left;
}

.list > div > p:last-of-type {
  border-bottom: none;
}

.list > div > p:nth-of-type(1) {
  background-color: rgb(16 16 19 / 1);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.list > div:nth-of-type(2) > p {
  text-transform: capitalize;
}
