/* From the :root element you can easily change the colors of the design, its size and so on. */
:root {

  /* You can change the font family in the whole design here. (You need to add the font family to the codes.) */
  --font_family: 'Titillium Web';

  /* You can change the font size here, is proportional to all texts. */
  --font_size: 16px;

  /* You can change the background color by typing the color code. (If you do not enter a background-image image, the background-color will be active.) */
  --background_color: rgb(30, 30, 30);
  --background_image: url("../img/wallpaper.jpg");

  /* You can change the frame thickness and color of the picture by typing the number of pixels and the color code. */
  --image_border_color: #fff;
  --image_border_px: 3px;

  /* You can change the width and size of the picture by typing the number of pixels. */
  --image_width: 140px;
  --image_height: 140px;

  /* You can change the colors of the title and description section by typing the color codes. */
  --title_color: #fff;
  --description_color: #fff;

  /* You can change the colors of social media icons by changing the color code. */
  --svg_color: #fff;

  /* You can change the button's background, text color and active color by changing the color codes. */
  --button_background_color: rgb(229, 229, 229);
  --button_text_color: rgb(30, 30, 30);
  --button_text_hover_color: rgb(4, 121, 181);

  --badge-primary-bg: oklch(70% 0.259 146.12);
  --badge-primary-color: oklch(100% 0 146.12);

  /* You can change the background, text color and active color of the footer area by changing the color codes. */
  --footer_background_color: rgb(30, 30, 30);
  --footer_text_color: #fff;
  --footer_link_text_color: rgb(88, 178, 216);
  --footer_span_text_color: rgb(195, 195, 195);
}

/* Basic Codes */

body {
  font: var(--font_size) var(--font_family);
  font-weight: 400;
  line-height: 1.5;
  background: var(--background_color) var(--background_image) no-repeat left -60px top;
  background-size: auto 100vh;
  background-attachment: fixed;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto 1fr auto;
  min-block-size: 100dvh;
}

@media screen and (min-width: 540px) {
  body {
    background-size: cover;
    background-attachment: scroll;
    background-position: left top;
  }
}

.flex_column_center {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.flex_row_center {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.flex_no_wrap_row_center {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

/* Logo, Title and Description Codes */

.header_img {
  padding-top: 1.9em;
  padding-bottom: 1.1em;
}

.header_img img {
  height: var(--image_height);
  width: var(--image_width);
  border: var(--image_border_px) solid var(--image_border_color);
  border-radius: 50%;
  margin-bottom: 0.5em;
}

.header_text *:is(h1, h2) {
  overflow-wrap: break-word;
  text-align: center;
}

.header_text h1 {
  color: var(--title_color);
  font-size: 2em;
  font-weight: bold;
}

.header_text h2 {
  color: var(--description_color);
  font-size: 1.5em;
}

/* Social Media Icons Codes */

.header_svg_list {
  padding-top: 1em;
  padding-bottom: 4em;
}

.header_svg_item {
  width: 2.1em;
  height: 2.1em;
  cursor: pointer;
}

.header_svg_item:hover {
  transform: scale(1.10);
  transition: 0.10s ease;
}

.header_svg_item+.header_svg_item {
  margin-left: 1em;
}

.header_svg_item svg {
  fill: var(--svg_color);
}

/* Main */

.tea-linktree {
  max-inline-size: 650px;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  padding-inline: .875rem;
  margin-block: 1rem 4.5rem;
}

.tea-linktree__item {
  background-color: var(--button_background_color);
  color: var(--button_text_color);
  border-radius: 1rem;
  display: flex;
  place-items: center center;
  place-content: start;
  gap: 1rem;
  min-block-size: 3.7rem;
  will-change: color, scale;
  transition: color 100ms ease, scale 100ms ease;
  text-decoration: none;
  padding-inline: 1rem;
}

.tea-linktree__item:has(.badge) {
  position: relative;
  overflow: hidden;
  padding-inline-end: 80px;
}

@media screen and (min-width: 480px) {
  .tea-linktree {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tea-linktree__item--wide {
    grid-column: span 2;
  }
}

.tea-linktree__item:hover,
.tea-linktree__item:focus {
  color: var(--button_text_hover_color);
  scale: 1.02;
}
.tea-linktree__item svg {
	fill:var(--button_text_color);
}
.tea-linktree__item:hover svg,
.tea-linktree__item:focus svg{
	fill:var(--button_text_hover_color);
}
.tea-linktree svg {
  block-size: 2.25rem;
  inline-size: 2.25rem;
  display: block;
}
.tea-linktree svg.logo {
  inline-size: 6.75rem;
}

.tea-linktree .badge {
  position: absolute;
  inset-block-start: calc(50% - 4px);
  inset-inline-end: calc(-50% + 30px);
  display: inline-flex;
  color: var(--badge-primary-color);
  background-color: var(--badge-primary-bg);
  place-content: center;
  translate: 0 -50%;
  inline-size: 100%;
  rotate: 45deg;
  transform-origin: center;
  font-size: 12px;
  padding-block: 4px;
}

.blackandwhite{
	-webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

/* Footer Codes */

.footer_div_item {
  color: var(--footer_text_color);
  background: var(--footer_background_color);
  padding: 1em;
  margin-top: 1.5em;
}

.footer_a_item {
  color: var(--footer_link_text_color);
  text-decoration: none;
}

.footer_span_item {
  color: var(--footer_span_text_color);
  text-decoration: none;
}