﻿* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.hidden {
    visibility: hidden;
}

.app {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


.wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

    .wrapper > * {
    }

    .wrapper header {
        height: 40px;
        flex: unset;
    }

main {
    overflow: hidden;
    max-height: 100%;
}

/* header */
header {
    clear:both;
}

header > * {
    float:left;
}
header > *:last-child
{
    float:right
}

    header .back {
    }

        header .back .btn {
            line-height: 35px;
            padding: 0px 10px;
            border-radius: 3px;
            background-color: lightgrey;
            text-decoration: none;
            display:inline-block;
        }

    header .preset > div{
        display:inline-block;
    }

    header input,
    header select {
        line-height: 35px;
        height: 35px;
        margin-right: 10px;
        display:inline-block;
    }


.main-wrapper {
}

    .main-wrapper > div {
        padding:10px;
        float:left;
        width:33%;
    }

    .main-wrapper > .animals {

    }
    .main-wrapper > .amount {
        width:40%
    }
    .main-wrapper > .action {
        width:27%;
    }


/* animals list */
.animals {
    overflow: auto;
    overflow-y: scroll;
    max-height: 100%;
}

    .animals input {
        display: none;
    }

        .animals input:checked + label {
            background-color: cornflowerblue;
            color: white;
        }

    .animals label {
        padding: 12px 3px;
        width: 100%;
        display: block;
        border-bottom: solid 1px grey;
    }

        .animals label:first-child {
            border-top: solid 1px grey;
        }


/* amount */
.amount {
}

.amount-input {
}

    .amount-input input {
        padding: 3px 5px;
        border: solid 1px grey;
        display: block;
        width: 100%;
        margin-bottom: 6px;
        font-size: 25px;
        text-align: right;
    }

    .amount-input .amount-grid {
    }

.amount-grid span {
    float:left;
    width: 32%;
    margin-right:1%;
    margin-bottom:1%;
    line-height:60px;
    min-height: 60px;
    background-color: lightgray;
    text-align: center;
}


/* aciton */
.action {
    flex: unset !important;
}

    .action button {
        height: 150px;
        width:100%;
        background-color: green;
        font-size: 40px;
        line-height:150px;
        text-align: center;
    }

        .action button span {
            width: 100%;
            text-align: center;
        }

    .action .notify {
        margin-bottom: 25px;
        height: 143px;
    }

        .action .notify .alert {
            text-align: center;
            background-color: lightcoral;
            border: solid 2px red;
            padding: 5px 0px;
        }

        .action .notify .success {
            text-align: center;
            background-color: lightgreen;
            border: solid 2px green;
            padding: 5px 0px;
        }
