html,
body,
div#root {
    width: 100%;
    margin: 0;
    padding: 0;
}

div#root {
    display: flex;
    flex-direction: column;
    align-items: center;
}

div#root>h1 {
    text-align: center;
    color: darkseagreen;
}

div.input {
    width: 90%;
    padding: 0;
}

.line {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.line>h3 {
    margin-block-start: 5px;
    margin-block-end: 0;
}

.line>h3::after {
    content: ":";
}

input::placeholder {
    color: lightgray;
}

.line>input {
    width: calc(90% - 5em);
    text-align: center;
    line-height: 1.5em;
    font-size: 1.2em;
    border: none;
    outline: none;
    border-bottom: 1px solid gray;
}

.line>input:focus {
    background-color: ghostwhite;
    border-radius: 4px;
}

.line>span {
    color: red;
}

h3#more-title {
    color: rgb(255, 73, 103);
}

div#more-sum {
    color: black;
    font-weight: bold;
}

div#checker {
    cursor: pointer;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 1px solid gray;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 15px;
    font-weight: bold;
}

div#checker.selected {
    padding: 1px;
    background-color: rgb(0, 117, 255);
}

div#more-box {
    margin-top: 10px;
    overflow-y: hidden;
    box-sizing: border-box;
    padding: 10px 15px;
    border: 1px solid lightgray;
    border-radius: 4px;
}

div#more-box>label:first-child {
    margin-top: 0;
}

div#more-box h3 {
    color: rgb(70, 92, 92);
}

div.btns {
    width: 80%;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

div.btns>button {
    width: 40%;
    line-height: 1.5em;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    padding: 5px 30px;
}

div.btns>button:active {
    outline: 2px dashed gray;
}

button#calc {
    color: whitesmoke;
    background-color: rgb(76, 166, 241);
}

div.output {
    width: 90%;
    margin-top: 40px;
    margin-bottom: 40px;
}

div.res-box {
    width: 100%;
    border-top: 1px dashed black;
}

div.res-box h3 {
    color: green;
    margin-block-start: 5px;
    margin-block-end: 5px;
}

div.res-box h4 {
    margin-block-start: 5px;
    margin-block-end: 5px;
}

div.res-title,
div.res-item,
label[for="capital"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#capital {
    width: 5em;
    text-align: center;
    line-height: 1em;
    font-size: 1em;
    border: none;
    outline: none;
    border-bottom: 1px solid gray;
}

div.res-sub {
    width: 90%;
    margin-left: 10%;
}

div.res-value {
    color: darkred;
    text-align: center;
    background-color: aliceblue;
}

div.res-value.em5 {
    width: calc(95% - 5em);
}

div.res-value.em2 {
    width: calc(95% - 2em);
}
