body {
  --primary: #ab2627;
  --display: 'Neuton', 'Gravitas One', sans-serif, cursive
}

* {
  box-sizing: border-box;
}

main {
  margin: 0 auto;
  max-width: 540px;
  font-family: var(--display);
  font-size: 20px;
}

label {
  display: block;
}

fieldset {
  margin: 0;
  padding: 20px;
  border: 0;
  width: 100%;
}

fieldset:nth-child(even),
tr:nth-child(even) {
  background: rgba(238,13,34,0.03);
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  font-family: serif;
  padding: 16px;
  font-size: 20px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--primary);
  text-align: center;
  font-size: 45px;
}

h2 {
  font-size: 32px;
  padding: 10px 0;
  border: 7px double var(--primary);
  border-left: 0;
  border-right: 0;
}

h3 {
  text-align: left;
  margin: 10px 0 5px 0;
  font-size: 24px;
}

p {
  margin: 0 0 15px;
}

input[type="submit"], button {
  color: white;
  -webkit-appearance: none;
  border-radius: 4px;
  padding: 15px;
  background: var(--primary);
  font-family: var(--display);
  font-size: 32px;
  width: 50%;
  border: 0;
  margin: 30px auto;
  display: block;
}

.items {
  width: 100%;
  margin: 0 auto;
  max-width: 1040px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  flex-flow: row wrap;
}

.item-cell {
  flex: 0 0 48.5%;
  margin-bottom: 30px;
}

.item-image {
  position: relative;
}

.item-image:before,
.item-image:after {
  display: none;
  z-index: 1;
  box-sizing: border-box;
  position: absolute;
  text-align: center;
  font-family: var(--display);
  color: var(--primary);
}

.item-image:before {
  content: "SOLD $" attr(data-sell-price);
  background: rgba(255, 255, 255, 0.7);
  font-size: 4vw;
  width: 100%;
  height: 100%;
  top: 0;
  padding: 25% 0;
}

.item-image:after {
  content: "SNAGGED BY " attr(data-purchased-by);
  font-size: 1.5vw;
  text-transform: uppercase;
  width: 100%;
  top: calc(100% - 45px);
}

.item-image.-purchased:before,
.item-image.-purchased:after {
  display: block;
}

img {
  max-width: 100%;
}

table {
  table-layout: fixed;
  width: 100%;
}

th {
  color: var(--primary);
  font-family: var(--display);
}

table th:first-child {
  width: 80px;
}
