body {
    box-sizing: border-box;
    margin: 0px;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 10px;
}

.root {
    margin: 60px 0px;
}

* {
    box-sizing: border-box;
}

.spin {
    animation: a-spin 1.5s infinite linear
}

@keyframes a-spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(359deg)
    }
}

.waiting {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 1000000;
}

.waiting-content {
    max-height: 100%;
    max-width: min(800px, 100%);
    min-width: min(800px, 100%);
    overflow-y: auto;
    position: relative;
    margin: 0 auto;
    color: white;
    text-align: center;
    font-size: 5rem;
}

.loading-text {
    display: block;
    font-size: 14pt;
    text-align: center;
    padding: 15px 10px;
}

@keyframes dots {
    0% {
        content: '.';
    }

    33% {
        content: "..";
    }

    66% {
        content: "...";
    }
}

.loading-text::after {
    content: '.  ';
    padding-right: 5px;
    animation: dots 2s infinite linear;
}

.input-wrapper {
    display: grid;
    grid-template-columns: 145px 1fr;
    margin-bottom: 15px;
}

.button {
    background: #e07900;
    border: 1px solid #e07900;
    font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
    text-transform: uppercase;
    width: 100%;
    padding: 10px 15px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
    text-align: center;
    position: relative;
}


.input-wrapper label {
    padding: 10px 15px;
    padding-left: 10px;
    border: 1px solid lightgrey;

}

input {
    padding: 10px 15px;
    border: 1px solid grey;
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace;
}


select {
    display: block;
    bordeR: none;
    padding: 10px 0px 10px 15px;
    padding-left: 5px;
    background-color: white;
    color: black;
    font-family: 'Courier New', Courier, monospace;
}

.feedback {
    padding: 10px;
    text-align: center;
    color: darkred;
    font-size: 14pt;
}

@media only screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .input-wrapper,
    input[type=submit] {
        margin-top: 10px;
        display: block;
    }

    input {
        touch-action: none;
    }

    .input-wrapper label,
    .input-wrapper input {
        display: block;
        width: 100%;
        text-align: left;
    }

    .input-wrapper label {
        border: none;
        padding: 0px;
    }

    .input-wrapper input {
        font-size: 14px;
        padding: 15px 20px;

    }

    select {
        font-size: 14px;
    }
}

.top-bar span {
    font-weight: bolder;
    float: right;
    padding: 10px;
}

.top-bar {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    background-color: darkorange;
    color: white;
    z-index: 10;
}

.backbtn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.backbtn:hover {
    background-color: rgb(163, 91, 4);
}

.backbtn i {
    padding-right: 10px;
}

.gap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top:30px;
}

.yes,
.no {
    color: white;
    border:none;
}

.yes {
    background-color: darkgreen !important;
}

.no {
    background-color: darkred !important;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.notice{
    padding:5px;
    color:darkred;
    border:1px solid darkred;
    border-radius: 4px;
}

h1{
    font-size:16pt;
    margin:5px 0px;
    padding:0px;
}

.item-row{
    display:grid;
    grid-template-columns: 1fr;
    gap:5px;
    border:1px solid rgb(71, 71, 71);
    margin-bottom:10px;
}
.root .item-row:nth-of-type(even){
    background-color:rgb(243, 243, 243);
}

.item-row select{
    border:1px solid black;
    margin:10px;
}

.subtext{
    display:block;
    color:grey;
    padding:0px 10px;
}

.subtext-light{
    display:block;
    color:rgb(70, 70, 70);
}

input[type="number"]{
    width:max-content;
    height:max-content  ;
    padding:6px;
    font-size:14pt;
    font-weight:bold;
}

.return-row{
    display:grid;
    grid-template-columns: 1fr max-content;
    padding:5px 10px;
}

.action-wrapper{
    display:block;
    padding:0px 10px;
}

.action-wrapper select,
.action-wrapper input{
    margin:0px;
    margin-bottom:10px;
    display:block;
    width:100%;
}