@import url('https://fonts.googleapis.com/css2?family=Libre+Barcode+39&family=Rubik:ital,wght@0,300..900;1,300..900&family=Zilla+Slab:wght@400;500&display=swap');

:root {
  --dark: #171717;
  --dark30: #1717173b;
  --cream: #fffbda;
  --green: #4ade80;
  --green10: rgba(74, 222, 128, 0.1);
  --cream30: rgba(255, 251, 218, 0.3);
  --cream10: rgba(255, 251, 218, 0.1);
  --yellow: #decf4a;
  --red: #ef4444;
  --lightRed: #f87171;
}

* {
  font-family: 'Rubik', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: var(--cream);
}

body {
  background-color: var(--dark);
  color: var(--cream);
  max-width: 100%;
  overflow-x: hidden;
}

.hidden {
  display: none;
}

button,
.button {
  background-color: var(--cream);
  color: var(--dark);
  padding: 1em 2em;
  border-radius: 0.4em;
  border: none;
  font-weight: 900;
  font-size: 1rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.button--outline {
  border: 4px solid var(--cream);
  background-color: transparent;
  color: var(--cream);
}

.button--success {
  background-color: var(--green);
  color: var(--cream);
}

button:hover,
.button:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.clickable {
  cursor: pointer;
}

.mobile {
  display: block;
}

.desktop {
  display: none;
}

/* Fonts */
.GD__text--semibold {
  font-weight: 700;
}

.GD__text--4xl {
  font-weight: 900;
  font-size: 4rem;
}

.GD__text--3xl {
  font-weight: 900;
  font-size: 3rem;
}

.GD__text--2xl {
  font-weight: 900;
  font-size: 2.25rem;
}

.GD__text--xl {
  font-weight: 900;
  font-size: 2rem;
}

.GD__text--lg {
  font-weight: 900;
  font-size: 1.5rem;
}

.GD__text--md {
  font-weight: 500;
  font-size: 1rem;
}

.GD__text--sm {
  font-weight: 400;
  font-size: 0.75rem;
}

.GD__text--logo {
  font-weight: 900;
  font-size: 1.5rem;
}

.GD__icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 2rem; /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

/* Item Collection */
.item-collection {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  overflow-x: scroll;
  column-gap: 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 2rem;
}

.item-collection > * {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Form fields */
.inputBox {
  background-color: var(--cream30);
  border: 1px solid var(--cream);
  border-radius: 0.4rem;
  width: 100%;
}

@media (min-width: 640px) {
  .mobile {
    display: none;
  }

  .desktop {
    display: block;
  }

  .item-collection {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Input fields */
.checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox--new {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  width: 2rem;
  background-color: var(--cream10);
  border: 1px solid var(--cream);
  border-radius: 0.4rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.input-container {
  position: relative;
  padding-left: 3rem;
  height: 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.input-container:hover input ~ .checkbox--new {
  background-color: var(--cream30);
}

.checkbox:checked ~ .checkbox--new {
  background-color: var(--cream10);
  border: 1px solid var(--cream);
  border-radius: 0.4rem;
  height: 2rem;
  width: 2rem;
}

.checkbox--new:after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 0rem;
  height: 0rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.input-container input:checked ~ .checkbox--new:after {
  display: block;
  left: 0.45rem;
  top: 0.45rem;
  width: 1rem;
  height: 1rem;
}

.input-container .checkbox--new:after {
  background-color: var(--green);
  border-radius: 0.4rem;
}

/* Hide the browser's default radio button */
.radio {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom radio button */
.radio--new {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  width: 2rem;
  background-color: var(--cream10);
  border: 1px solid var(--cream);
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.input-container:hover input ~ .radio--new {
  background-color: var(--cream30);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.radio--new:after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 0rem;
  height: 0rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Show the indicator (dot/circle) when checked */
.input-container input:checked ~ .radio--new:after {
  display: block;
  left: 0.45rem;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
}

/* Style the indicator (dot/circle) */
.input-container .radio--new:after {
  background-color: var(--green);
  border-radius: 10rem;
}
