*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  font-family: inherit;
}

h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #007bff;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

.sr-only {
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* remove all animation,transition */

@media (prefer-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --clr-Blue-500: hsl(215, 51%, 70%);
  --clr-Cyan-400: hsl(178, 100%, 50%);
  --clr-Clay-400-overlay:hsla(178, 100%, 50%, 0.4);

  --clr-Blue-950-mainBG: hsl(217, 54%, 11%);
  --clr-Blue-900-cardBG: hsl(216, 50%, 16%);
  --clr-Blue-800-line: hsl(215, 32%, 27%);
  --clr-White: hsl(0, 0%, 100%);

  --fs: 18px;
  --ff: "Outfit", sans-serif;

  --fw-300: 300;
  --fw-400: 400;
  --fw-600: 600;

  --fs-700: 1.75rem;
  --fs-400: 1rem;
  --fs-300: 0.875rem;
}

body {
  font-family: var(--ff);
  font-size: var(--fs);
  font-weight: var(--fw-300);
  background-color: var(--clr-Blue-950-mainBG);
  line-height: 1.6;

  display: grid;
  min-height: 100vh;
  place-items: center;
}
h1,
h2,
h3{
  line-height: 1.1;
}

h1{
  font-size: var(--fs-700);
  font-weight: var(--fw-600);
}

/* composition */

.grid-flow{
  display: grid;
  gap: var(--gap,1rem);
}
.flex-row{
  display: flex;
  place-items: center;
  gap: var(--gap,0.8rem);
}

/* utility */

.padding-24{
  padding: 1.5rem;
}
.padding-btm-24{
  padding-bottom: 1.5rem;
}

.cursor{
  cursor: pointer;
}

.text-blue-500{
  color: var(--clr-Blue-500);
}
.text-clay-400{
  color: var(--clr-Cyan-400);
}
.text-white{
  color: var(--clr-White);
}

.img-width{
  aspect-ratio: 1;
  width: 40px;
}

.br-1 {
  border-radius: 0.5rem;
}
.br-2 {
  border-radius: 1rem;
}
.push-right {
  margin-left: auto;
}

.border-bottom{
  border-bottom: 2px solid var(--clr-Blue-800-line);
}
.image-border{
  border-radius:50%;
  border: 2px solid var(--clr-White);
}
/* block */

.card {
  max-width: 340px;
  overflow: hidden;
  background-color: var(--clr-Blue-900-cardBG);
  font-weight: var(--fw-400);
}

/* exceptions */

[data-type="image-overlay"]{
  position: relative;
  overflow: hidden;
}

[data-type="image-overlay"] img{
  height: 100%;
}

[data-element="overlay"]{
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  background: var(--clr-Clay-400-overlay);
  inset: 0;

  background-image: url("./images/icon-view.svg");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
/*   cursor: pointer; */
}

[data-type="image-overlay"]:hover [data-element="overlay"] ,
[data-type="image-overlay"]:focus-within [data-element="overlay"] {
  opacity: 1;
  cursor: pointer;
}

[data-type="hover"]:hover,
[data-type="hover"]:focus
{
  color: var(--clr-Cyan-400);
}



@media screen and (max-width: 35em)
{
  main{
    margin: 1rem;
  }
}

@media only screen and (min-width: 764px) and (max-width: 1024px) {
}
