﻿header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 1rem;
  background-color: var(--bg-card);
}
@media (max-width: 500px) {
  header {
    gap: 0;
  }
}
header a {
  text-decoration: none;
  color: var(--text);
}
header a svg {
  fill: var(--text);
  margin-top: 13px;
}
header i {
  font-size: 2rem;
}
header div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}
@media (max-width: 500px) {
  header div {
    flex-wrap: wrap;
    justify-content: center;
  }
}
header h1 {
  font-family: "Petit Formal Script", cursive;
  font-weight: 700;
  font-style: normal;
}

.c-image-hero {
  display: flex;
  min-height: 300px;
  background-position: center;
  background-size: cover;
}

:root {
  --primary-hue: 350;
  --secondary-hue: 142.84;
  --text-hue: 108.57;
  --primary-color: oklch(48% 0.12 350deg);
  --secondary-color: oklch(78.92% 0.1609 142.84deg);
  --bg: oklch(20% 0.02 49.99deg);
  --bg-card: oklch(24% 0.03 49.7deg);
  --text: oklch(94% 0.02 108.57deg);
}

body.light {
  --primary-hue: 350.37;
  --secondary-hue: 142.84;
  --text-hue: 50;
  --primary-color: oklch(59% 0.18 350.37deg);
  --secondary-color: oklch(78.92% 0.1609 142.84deg);
  --bg: oklch(99% 0 50deg);
  --bg-card: oklch(97% 0.01 21.35deg);
  --text: oklch(20% 0 50deg);
}
body.light header {
  border-bottom: 1px solid var(--primary-color);
  box-shadow: 0 2px 2px oklch(10% 0 0deg / 0.15), 0 6px 6px oklch(10% 0 0deg / 0.15);
}
body.light btn, body.light button {
  background-color: var(--primary-color);
  color: var(--bg);
  border: solid 2px var(--primary-color);
}
body.light btn.secondary, body.light button.secondary {
  background-color: var(--bg);
  color: var(--primary-color);
  border: solid 2px var(--primary-color);
}
body.light .card {
  border: 1px solid var(--primary-color);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Roboto;
  line-height: 1.4rem;
  margin: 0;
}

h1 {
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 2.75rem;
}

.wrapper {
  max-width: 1200px;
  width: 90vw;
  margin: 1rem auto;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
}

section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

button, btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 12px 20px;
  margin: 8px 8px 8px 0px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  background-color: var(--primary-color);
  color: var(--bg);
  border: solid 2px var(--primary-color);
}
button i, btn i {
  font-size: 24px;
}
button.secondary, btn.secondary {
  background-color: var(--bg);
  color: var(--primary-color);
  border: solid 2px var(--primary-color);
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 70%;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 5px;
  outline: none;
}

input[type=number] {
  -webkit-appearance: none;
  appearance: none;
  color: var(--text);
  padding: 8px;
  width: 40px;
  height: 20px;
  border: solid 1px var(--secondary-color);
  border-radius: 4px;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 24px;
  background-color: var(--secondary-color);
  border-radius: 4px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.controls {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.c1 {
  min-width: 300px;
  flex: 1;
}

span {
  color: var(--accent-color);
}

.card {
  position: relative;
  flex: 1;
  background-color: var(--bg-card);
  color: var(--text);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 2px 2px oklch(10% 0 0deg / 0.15), 0 6px 6px oklch(10% 0 0deg / 0.15);
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, linear-gradient(0deg, var(--bg-card) 80%, oklch(31% 0.03 47.7deg) 100%) border-box;
  border: 1px solid transparent;
}
.card .copy-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--primary-color);
  width: 60px;
  height: 30px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  margin: 0;
  padding: 0;
}
.card pre.code {
  font-family: monospace;
  font-weight: 300;
  font-size: 0.7rem;
  line-height: 1.5rem;
}
