@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Mina:wght@400;700&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');

* {
    background-color: #f5f5f5;
}

body {
    font-family: 'IBM Plex Mono', Courier, monospace;
}

#root {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 20px;
}

header {
    padding: 20px;
    border: 5px solid black;
    box-shadow: -5px 5px 0 #aaa;
}

#header-bar {
    display: flex;
    flex-direction: row;
}

#header-bar-statistics {
    margin-left: auto;
    text-align: right;
}

#header-bar-branding,
#header-bar-statistics {
    height: 50px;
    display: flex;
    flex-direction: column;
}

#header-bar-branding-title,
#header-bar-statistics-current-weight {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

#header-bar-branding-date,
#header-bar-statistics-change-from-start-weight {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-top: auto;
}

#header-bar-statistics-current-weight {
    font-size: 16px;
}

#header-bar-statistics-change-from-start-weight {
    text-transform: uppercase;
}

.divider {
    display: block;
    height: 20px;
    width: 100%;
    background-color: transparent;
}

#header-weight-form {
    text-align: center;
}

input,
button {
    height: 30px;
    border: 3px solid black;
    box-shadow: -3px 3px 0 #aaa;
    outline: none;
    vertical-align: middle;
    cursor: pointer;
}

input {
    padding: 0;
    padding-left: 10px;
    z-index: 10;
    position: relative;
    font-size: 12px;
}

button {
    width: 30px;
    font-size: 14px;
    font-weight: bold;
}

button i {
    background-color: transparent;
}

button:hover {
    background-color: #000;
    color: #ddd;
}

input:active {
    outline: none;
}

.input-field {
    display: inline-block;
}

#weight-input {
    border-right: none;
    width: 60px;
}

#weight-input-label {
    display: inline-block;
    border: 3px solid black;
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: 12px;
    line-height: 24px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: -3px 3px 0 #aaa;
    border-left: 0;
    margin-left: -10px;
    vertical-align: top;
    z-index: 0;
}

#trend {
    display: flex;
    flex-wrap: wrap;
    border: 5px solid black;
    box-shadow: -5px 5px 0 #aaa;
    padding: 10px;
    justify-content: center;
    width: 100%;
}

#trend hr {
    width: 100%;
}

.trend-item {
    width: 33.3%;
    text-align: center;
    border-left: 1px solid;
    margin-top: 20px;
    margin-bottom: 20px;
}

.trend-item:first-child,
.trend-item:nth-of-type(4) {
    border-left: none;
}

.trend-item-title {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
}

.trend-item-value {
    font-size: 14px;
    text-align: center;
}

.fa-arrow-down {
    color: green;
}

.fa-arrow-up {
    color: red;
}

.record {
    border: 3px solid black;
    box-shadow: -3px 3px 0 #aaa;
    padding: 10px;
    margin-bottom: 10px;
}

.record-date {
    width: 100%;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.record-record {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
}

.record-weight {
    width: 50%;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    margin-right: auto;
    line-height: 30px;
    text-transform: uppercase;
}

.record-edit {
    margin-right: 10px;
}

.record-delete {
    margin-left: 10px;
}

.record-edit,
.record-delete {
    border: 3px solid black;
    box-shadow: -3px 3px 0 #aaa;
}

footer {
    text-align: center;
    padding: 10px;
    border: 3px solid black;
    box-shadow: -3px 3px 0 #aaa;
}

footer p {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 5px 0;
}
