@font-face {
  font-family: "HelveticaCustom";
  src: url("fonts/helvetica-regular.woff2") format("woff2"),
    url("fonts/helvetica-regular.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "HelveticaCustom";
  src: url("fonts/helvetica-bold.woff2") format("woff2"),
    url("fonts/helvetica-bold.woff") format("woff");
  font-weight: 700;
}

html {
  font-size: 3vw;
  /* <480 */
}

@media (min-width: 480px) {
  html {
    font-size: 2.4vw;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 2vw;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 1vw;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
  overflow-x: hidden;
}

body {
  max-height: 100svh;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "HelveticaCustom", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.card {
  width: 22rem;
  height: 32rem;
  background: #eee;
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.color {
  flex: 1;
}

.info {
  background: white;
  padding: 1.6rem;
}

.brand {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.code {
  font-weight: 400;
  font-size: 1.25rem;
  margin-top: 0.3rem;
  color: #444;
}

.name {
  font-weight: 700;
  font-size: 1.55rem;
  margin-top: 0.4rem;
  line-height: 1.15;
  text-transform: capitalize;
}

button {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: 0.12rem solid white;
  background: none;
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

button:hover {
  background: white;
  color: black;
}

* {
  touch-action: manipulation;
}