@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    height: 100vh;
}

body {
  background: #fff;
  color: #333;
}

* {
    box-sizing: border-box;
}

button:focus, .text-with-button-container button:focus {
    border: 4px solid #059;
    outline: 0;
}

/*************** VIEWS ***************/
.view {
    background: #fff;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
    padding: 16px;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    text-align: center;
}

.view.has-top-bar {
    padding-top: 54px;
}

.view-content {
    display: flex;
    flex-flow: column wrap;
    flex: 1;
}

.no-show {
    width: 0 !important;
    height: 0 !important;
    opacity: 0;
    z-index: -1;
}

.top-bar {
    height: 48px;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* box-shadow: 0 0 10px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8px;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

/*************** INTRO PAGE ***************/
h1 {
    margin: 0;
}

.images-tiles {
    max-width: 400px;
    margin: 32px auto 0;
}

.image-container {
    width: calc(50% - 8px);
    float: left;
}

.image-container:last-child {
    margin-left:16px;
}

.image-container img {
    width: 100%;
}

.image-label {
    font-size: 12px;
    text-align: center;
}

/*************** CALCULATOR PAGE ***************/
#batch-container {
    margin-top: 16px;
}

.batch-obj {
    height: 65px;
    border-bottom: 1px dotted #333;
    padding: 8px 0;
    text-align: left;
    position: relative;
    background: #ccc;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.batch-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #fff;
    box-shadow: 0 0 10px #999;
    transition: left 0.2s;
    display: flex;
    align-items: center;
}

.batch-delete {
    margin: 0 12px 0 auto;
    border-radius: 20px;
}

.batch-delete:focus {
    border-color: #F00;
}

.batch-delete:active svg {
    fill: #F00;
}

.batch-display.opened {
    left: -64px;
    overflow: hidden;
}

.batch-obj h3 {
    margin: 0;
}

.batch-total {
    margin-left: auto;
    font-size: 32px;
}

.small-units {
    font-size: 14px;
    margin-left: 4px;
}

.batch-calc {
    font-size: 14px;
}

.primary-action-button {
    background-color: #8BCBFF;
    border: 0;
    border-radius: 4px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    text-transform: uppercase;
    margin: 32px;
    color: #059;
    font-weight: bold;
}

#scale-total {
    position: relative;
    height: 48px;
    margin-top: 16px;
}

.icon-button.batch-more:active {
    background: #ccc;
}

.icon-button.batch-more:focus {
    border: 0;
}

.icon-button.batch-more {
    border-radius: 20px;
    margin: 0 -12px 0 4px;
}

/*************** FORM ***************/
#scale-input {
    align-self: flex-end;
    flex: 0 0 calc(100% + 16px);
    text-align: left;
    margin: 0 0 -8px -8px;
}

.text-with-button-container {
    padding-right: 44px;
    position: relative;
}

.text-with-button-container input {
    display: block;
    height: 40px;
    width: 100%;
    text-align: right;
    padding: 2px 0.5em;
    font-size: 16px;
    border: 2px solid #8BCBFF;
    border-radius: 4px;
}

input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.text-with-button-container input:focus {
    outline: 0;
    border-width: 4px;
}

.text-with-button-container button {
    position: absolute;
    right: 0;
    top: 0;
    background-color: #8BCBFF;
    border: 0;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-with-button-container button svg {
    fill: #059;
}

#scale-input label {
    text-transform: uppercase;
    font-size: 14px;
}

#scale-next-plus {
    display: none;
}

#scale-wiz-calc #scale-next-plus {
    display: inline;
}
#scale-wiz-calc #scale-next-icon {
    display: none;
}