body {
    background-color: #3A2525;
    font-family: 'Lato', sans-serif;
    width: 100%;
    height: 100%;
    margin: 0px;
}

#root {
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0px;
    padding: 0px;
}

header {
    background-color: #3A2525;
    width: 100%;
    color: #fdfdfd;
    text-align: center;
    /* margin-bottom: 20px; */
}

header a {
    color: #fdfdfd;
}

a {
    color: black;
}

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

fieldset {
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
}

form {
    width: 100%;
    height: 100%;
}

.inner-flex {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0px 24px 0px 24px;
    position: relative;
}

.form-section {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 1000px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.form-label {
    display: flex;
    align-items: center;
    width: 18%;
    min-width: 180px;
    height: 48px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 20px;
}

.input-stack {
    display: flex;
    flex-direction: column;
    width: 80%;
}

.input-row {
    display: flex;
    justify-content: start;
    align-items: center;
    height: 48px;
    gap: 16px 36px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-flow: row wrap;
    max-width: 100%;
}

.input-big {
    padding: 8px 10px 8px 10px;
    font-size: 18px;
}

.checkbox-group {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 12px;
    /* width: 33%; */
}

input.checkbox-big {
    width: 32px;
    height: 32px;
    margin: 0px;
}

#subtype-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    height: 100%;
    padding: 0px 24px 0px 24px;
}

.section-heading-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(min(200px,100%), 1fr));
    width: 100%;
}

.section-heading-row a {
    color: gray;
}

.section-heading {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-back {
    justify-content: start;
}

.section-next {
    justify-content: end;
}

.subtype-section {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: center;
    width: 100%;
    padding: 0px 0px 24px 0px;
    border-bottom: 1px solid #e0e0e0;
}

.singleton {
    padding-bottom: 0px;
}

.subtype-stack-row {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
}

.subtype-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* width: 200px; */
}

.stack-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.stack-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 175px;
}

.stack-wide {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    width: 755px;
}

.new-card {
    border: 1px solid gray;
    margin: -0.5px;
    width: 150px;
    height: 150px;
    position: relative;
}

.cardbg   { background-color: #f0f0f0; }
.cardbg-W { background-color: #f0f2c0; }
.cardbg-U { background-color: #b5cde3; }
.cardbg-B { background-color: #aca29a; }
.cardbg-R { background-color: #db8664; }
.cardbg-G { background-color: #93b483; }
.cardbg-C { background-color: #dbd5cd; }

.color-bar {
    position: absolute;
    bottom: 25%;
    left: 50%;
    display: flex;
    width: 90%;
    height: 20%;
    scale: 1;
    translate: -50%;
}

.color-bar:hover {
    z-index: 1000;
    scale: 1.5; /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

.color-segment {
    display: inline-block;
    height: 100%;
    border: 0.5px solid gray;
    border-right: 0px;
}

.color-segment:last-child {
    border: 0.5px solid gray;
}

.subtype-name {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.corner-info {
    position: absolute;
    width: 45%;
    padding-top: 5%;
    padding-bottom: 5%;
}

.corner-icon {
    cursor: help;
}

.corner-top {
    top: 0%;
}

.corner-bottom {
    bottom: 0%;
}

.corner-left {
    left: 0%;
    padding-left: 5%;
    display: inline-flex;
    justify-content: start;
    align-items: center;
}

.corner-right {
    right: 0%;
    padding-right: 5%;
    display: flex;
    justify-content: end;
    align-items: center;
}

.num {
    padding-left: 4px;
    padding-right: 4px;
    /* transform: translateY(10%); */
}

.dollar-icon {
    font-weight: bold;
    font-size: 18px;
    transform: translateY(-11%);
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 800px;
    padding: 24px;
    position: relative;
    bottom: 0%;
    color: #666666;
}

@media screen and (max-width: 946px) {
    .form-label {
        width: 18%;
        min-width: 180px;
        height: 30px;
        font-size: 16px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .submit-label {
        visibility: hidden;
        width: 0px;
        height: 0px;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .ms-cost.ms-shadow {
        font-size: 20px;
    }

    .input-stack {
        width: 100%;
    }

    .stack-body {
        width: 140px;
    }

    .stack-wide {
        width: 630px;
    }

    .new-card {
        width: 125px;
        height: 125px;
        font-size: 14px;
    }
}

@media screen and (max-width: 740px) {
    .checkbox-group {
        gap: 12px;
        width: 24%;
    }

    .input-row {
        height: inherit;
    }

    .ms-cost.ms-shadow {
        font-size: 18px;
    }

    .stack-body {
        width: 120px;
    }

    .stack-wide {
        width: 505px;
    }

    .new-card {
        width: 100px;
        height: 100px;
        font-size: 12px;
    }
}
