:root {
  --background-color: #efefef;
  --text-color: #333;
  --box-color: #fff;
  --sub-label-color: #6b778d;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html, body {
  color: var(--text-color);
  background-color: var(--background-color);
  font-family: 'Roboto', sans-serif;
}

.flex-container {
    height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 50px auto;
}

.box {
  background-color: var(--box-color);
  width: 80%;
  height: 70%;
  padding: 50px 30px 0;
  border-radius: 5px;
}

.box h2 {
  font-size: 3rem;
  text-align: center;
}

.form-group {
  margin: 50px 0;
}

label, input {
  display: block;
  margin: 5px 0;
}

label {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.sub-label {
  font-size: 1.3rem;
  background-color: var(--sub-label-color);
  padding: 5px;
  border-radius: 5px;
  margin-left: 5px;

}

input {
  width: 100%;
  font-size: 1.5rem;
  font-weight: bold;
  background-color: hsl(0, 0%, 95%);
}

input[type=text], input[type=number] {
    padding: 12px 20px;
    outline: none;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type=range] {
  margin-top: 20px;
  cursor: grab;
}

.total-cost {
  text-align: right;
  margin-left: 10px;
  font-weight: 900;
}

table tbody td {
    vertical-align: top;
    line-height: 1.6;
    border-bottom: 1px solid #ddd;
}

table tbody td.kind {
    width: 70%;
    font-size: 1rem;
    font-weight: 700;
}

table tbody td.price {
    text-align: right;
    font-weight: 700;
}

table tbody tr.normal td {
    border-bottom: none;
    padding: 10px 0;
}

table tbody tr.desc td {
    font-size: .8rem;
    color: #888;
    padding: 0 10px 10px;
    line-height: 1.4;
}

table tbody tr.desc .ref {
    display: block;
    margin-top: 10px;
    font-style: italic;
    color: #666;
}