/* == VARIABLE == */
:root {
  --color-yellow: #F4D04E;
  --color-grey: #6B6B6B;
  --color-black: #000;
  --color-white: #FFF;
}

/* == GENERAL == */
* {
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--color-yellow);
}

/* == TYPOGRAPHY == */
/* Import Fitgree fonts */
@font-face {
  font-family: 'Figtree';
  src: url('./assets/fonts/Figtree-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Figtree-Italic';
  src: url('./assets/fonts/Figtree-Italic-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Figtree-SemiBold';
  src: url('./assets/fonts/static/Figtree-SemiBold.ttf')format('truetype');
}

@font-face {
  font-family: 'Figtree-ExtraBold';
  src: url('./assets/fonts/static/Figtree-ExtraBold.ttf')format('truetype');
}

/* Define text presets */
.text-preset-1 {
  font-family: Figtree-ExtraBold, sans-serif;
  font-size: 24px;
  line-height: 150%;
  letter-spacing: 0px;
  transition: color 0.75s ease;
}

#card:hover .text-preset-1 {
  color: var(--color-yellow);
}

.text-preset-2 {
  font-family: Figtree, sans-serif;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0px;
}

.text-preset-3 {
  font-family: Figtree, sans-serif;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0px;
}

.text-preset-3-bold {
  font-family: Figtree-ExtraBold, sans-serif;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0px;
}

/* == CARD == */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#card {
  box-sizing: border-box;
  width: 384px;
  background-color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 24px;
  gap: 12px;
  box-shadow: 8px 8px 0px 0px var(--color-black);
  cursor: pointer;
  transition: box-shadow 0.5s ease;
}

#card:hover {
  box-shadow: 16px 16px 0px 0px var(--color-black);
}

/* == ILLUSTRATION == */
.illustration {
  width: 100%;
}

/* == LABEL == */
.label {
  display: inline-block;
  padding: 5px 10px;
  margin-top: 12px;
  background-color: var(--color-yellow);
  font-weight: 800;
}

/* == DESCRIPTION == */
.description {
  color: var(--color-grey);
}

/* == USER AVATAR == */
#user-avatar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 32px;
}

/* MOBILE */
@media (max-width: 450px) {
  .text-preset-1 {
    font-size: 20px;
  }

  .text-preset-2 {
    font-size: 14px;
  }

  .text-preset-3,
  .text-preset-3-bold {
    font-size: 12px;
  }

  #card {
    width: 327px;
  }
}