/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
    --primary-color: #0d90a1;
    --primary-color-faded: #499ba6;
    --primary-button-text: #fff;
    --primary-button-text-faded: #a8e5ed;

    --light-bg-color: #fff;
    --light-text-color: #555;
    --light-text-color-faded: #666;

    --dark-bg-color: #111;
    --dark-bg-color-secondary: #333;
    --dark-text-color: #eee;
    --dark-text-color-faded: #bbb;
}

@media (prefers-color-scheme: light) {
    body { 
        background-color: var(--light-bg-color); 
        color: var(--light-text-color);
    }
    .label-column { color: var(--light-text-color-faded); }
}

@media (prefers-color-scheme: dark) {
    body { 
        background-color: var(--dark-bg-color); 
        color:  var(--dark-text-color); 
    }
    input {
        background-color: var(--dark-bg-color-secondary);
        color: var(--dark-text-color); 
    }
    .label-column { color: var(--dark-text-color-faded); }
}

@media only screen and (max-width: 500px) {
    .container {
        width: 100%;
    }
    h1 {
        margin-top: 0em;
        margin-bottom: 0em;
    }
    .radiogroup-items {
        max-width: 90%;
    }
    footer {
        text-align: center;
    }
}

@media only screen and (min-width: 501px) {
    .container {
        width: 500px;
    }
    .radiogroup-items {
        max-width: 70%;
    }
    footer {
        padding-right: 1em;
        text-align: right;
    }
}

body {
    font-size: 1.2em;
    font-family: 'PT Sans', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

footer {
    margin-top: 1em;
    margin-bottom: 0.5em;
    width: 100%;
    color: #999;
}

.container {
    padding-left: 1em;
    padding-right: 1em;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 2.75em;
}

form {
    display: flex;
    flex-direction: column;
}

form { margin-bottom: 1em; }

.fade-opacity { opacity: 0.6; }

.radiogroup-items {
    flex-grow: 3;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style-type: none;

    padding-left: 0em;
    margin: 0em 0em 0em 1.4em;
}

.radiogroup-items > li {
    margin: 0em;
}

.form-item {
    margin-top: 1em;}

.form-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

input[type='number'], input[type='text'] {
    text-align: right;
    width: 150px;
}

input[type='checkbox'] {
    transform: scale(1.5);
}
input[type='radio'] {
    transform: scale(1.2);
    margin-right: 0.1em;
}

.label-column {
    font-weight: 700;
}

#taxedprice-text {
    font-weight: 400;
}

.emphasized-text {
    font-weight: 700 !important;
}

#calculate-button {
    margin-top: 1em;
    padding: 0.2em;
    width: 100%;
    border-radius: 0.2em;

    background-color: var(--primary-color);
    color: var(--primary-button-text);

    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.button-faded {
    background-color: var(--primary-color-faded) !important;
    color: var(--primary-button-text-faded) !important;
}

#tip-solo, #tip-text {
    font-size: 1.4em;
    font-weight: 400;
}

.dollar-value::before {
    content: "$";
    margin-right: 0.2em;
    font-size: 80%;
    font-weight: normal;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}