body {
    font-family: 'Inter', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background-color: hsl(0, 0%, 94%);
}

:root {
    --customBlue: hsl(215, 58%, 78%);
    --customBlueDark: hsl(215, 58%, 72%);
    --customBlueDarker: hsl(215, 58%, 66%);
    --customBrown: hsl(31, 12%, 37%);
    --customBrownDark: hsl(31, 12%, 33%);
    --customBrownDarker: hsl(31, 12%, 29%);
    --colorDisclaimer: hsl(0, 0%, 38%);
}

select {
    cursor: pointer;
    font-size: 1rem;
}

label {
    font-size: 1.1rem;
}

input {
    font-size: 1rem;
}

/*Remove arrows in number*/
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove arrows in numbers for firefox*/
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

button {
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: default;
}

button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#allContent {
    margin: 12px;
}

h1 {
    font-family: 'Raleway', sans-serif;
    text-align: center;
    margin: 0;
    padding: 10px 0;
    border-bottom: 2px solid black;
    font-weight: 600;
}

h2, h3, h4 {
    font-weight: 500;
}

.transition {
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
    display: none;
}


/* Content Frame */

#contentButtonsDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 10px;
    min-height: 400px;
    height: auto;
    box-sizing: border-box;
}

#contentFrame {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 950px;
    width: 100%;
}

.contentSection {
    display: none;
}

.contentSectionHide {
    display: none;
}

#buttonControls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 10px;
    max-width: 950px;
    width: 100%;
}

#buttonControls button {
    display: none;
    background-color: var(--customBrown);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    min-width: 92px;
}

#buttonControls button:hover {
    background-color: var(--customBrownDark);
}

#buttonControls button:active {
    background-color: var(--customBrownDarker);
}


/* Index 0 - Begin */

#sectionBegin {
    display: block;
}

#beginDiv {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#startButton {
    background-color: var(--customBrown);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 15px 50px;
    border-radius: 10px;
    margin: 20px 0;
}

#startText {
    font-size: 0.8rem;
    color: var(--colorDisclaimer);
}

#startButton:hover {
    background-color: var(--customBrownDark);
}

#startButton:active {
    background-color: var(--customBrownDarker);
}


/* Index 1 - Year, County, County Area */

.sectionName {
    margin-top: 40px;
    margin-bottom: -10px;
    margin-left: 12px;
    font-size: 1.3rem;
}

.sectionDiv {
    display: flex;
    flex-direction: column;
    border: 3px solid var(--customBlue);
    padding: 20px 10px;
    border-radius: 10px;
    margin: 20px 0;
}

.sectionDiv label {
    padding-bottom: 3px;
}

.sectionDiv select {
    width: fit-content;
}

#countyAreaMap, #shapeImage {
    max-width: 360px;
    max-height: 360px;
    object-fit: contain;
    margin-top: 10px;
}

#shapeImage {
    max-width: 410px;
}

/* Index 2 - House, Frame, Shape, Construction, Garage Type */

.noteFontSize {
    font-size: 0.9rem;
}

.noteMarginTop {
    margin-top: 12px;
}

.underline {
    text-decoration: underline;
}

/* Index 3 - Quality */

#qualityInstructions {
    margin-bottom: 0;
    margin-top: 12px;
}

#imageQualityContainer {
    display: flex;
    flex-direction: column;
}

#imageQualityContainer img {
    width: 100%;
    margin-top: 3px;
    margin-bottom: 3px;
    object-fit: contain;
}


#qualityTable {
    border-collapse: collapse;
    margin-top: 20px;
}

td {
    padding: 5px 0;
}

#qualityTable tbody td, th {
    border-bottom: 1.5px solid hsl(0, 0%, 60%);
    text-align: center;
    font-weight: normal;
    font-size: 1.05rem;
}

#qualityTable tr:last-child td {
    border-bottom: none;
}


/* Index 4 - Area and Garage */

.flexColumn {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.flexColumn label {
    padding-bottom: 3px;
}

.flexColumn input {
    width: fit-content;
}

/* Index 5 - Additives */

.additiveSubTitleNote {
    margin-top: 13px;
    margin-left: 12px;
}

.additiveNoteMarginTop {
    margin-top: 10px;
}

.additiveSectionTitle {
    display: flex;
    flex-direction: column;
}

.additiveSectionTitle h3 {
    margin-top: 0;
    margin-bottom: 5px;
    margin-left: 5px;
    font-size: 1.2rem;
}

.additiveShowHideButton {
    width: fit-content;
    background-color: var(--customBlue);
    color: black;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
}

.additiveShowHideButton:hover {
    background-color: var(--customBlueDark);
}

.additiveShowHideButton:active {
    background-color: var(--customBlueDarker);
}

.additiveSectionBody {
    margin-left: 20px;
}

.additiveSectionInnerTitle {
    margin-top: 40px;
    margin-bottom: 5px;
    font-size: 1.15rem;
}

.topTitle {
    margin-top: 20px;
}

.subTitleAbove {
    margin-top: 20px;
}

.subTitleMiddle {
    margin-top: 60px;
}

.flexColumnAdditives {
    display: flex;
    flex-direction: column;
    margin-bottom: 9px;
    margin-left: 0.25rem;
}

.flexColumnAdditives label {
    padding-bottom: 3px;
}

.flexColumnAdditives input {
    width: fit-content;
}

.marginBottomZero {
    margin-bottom: 0;
}

.additiveNote {
    margin-top: 20px;
}


/* Index 6 - Summary */

.summaryTitleTop {
    font-size: 1.1rem;
    margin-top: 0px;
    margin-bottom: 2px;
}

.summaryTitle {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 2px;
}

.summaryTitleText {
    font-size: 0.95rem;
    margin: 0px;
}

#summaryTable {
    margin-top: 10px;
    border-collapse: collapse;
}

#summaryTable th {
    font-weight: 500;
}

#summaryTable th, #summaryTable td {
    padding-right: 6px;
    padding-left: 4px;
}

#summaryTableBody {
    td:nth-child(2),
    td:nth-child(3) {
        text-align: right;
    }
}

#tdTotalText {
    text-align: right;
    font-weight: 600;
}

#tdTotalCost {
    text-align: right;
    font-weight: 600;
}

.summaryTextTop {
    margin-top: 20px;
    margin-bottom: 0px;
}

.summaryText {
    margin-top: 10px;
    margin-bottom: 0px;
}

#summaryDisclaimer {
    font-size: 0.8rem;
    color: var(--colorDisclaimer);
    margin-top: 20px;
}


/* Resources */

#resourcesDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    margin-top: 40px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.15);
}

#resourcesTitle {
    margin-top: 0px;
    margin-bottom: 8px;
    margin-left: 10px;
    max-width: 950px;
    width: 100%;
}

#allResourcesDiv {
    max-width: 950px;
    width: 100%;
}

.topicDiv {
    background-color: var(--customBlue);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.topicDiv:hover {
    background-color: var(--customBlueDark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.topicDiv:active {
    background-color: var(--customBlueDarker);
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.topicTitle{
    display: inline;
    margin: 10px 0;
}

.topicInfoTitle {
    margin-top: 30px;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.firstTopicTitle {
    margin-top: 10px;
}

.topicInfoText {
    margin-top: 4px;
    margin-bottom: 8px;
}

.lastInfoText {
    margin-bottom: 20px;
}

.topicInfo {
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
    display: none;
    margin-left: 10px;
    margin-right: 10px;
}

.topicImage {
    height: 20px;
    margin-right: 8px;
}

#notIncludedUL {
    margin-top: 8px;
}

#countyLinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#countyLinks a {
    background-color: var(--customBrown);
    color: white;
    text-decoration: none;
    width: 60%;
    padding: 15px 10px;
    margin: 5px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

#countyLinks a:hover {
    background-color: var(--customBrownDark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#countyLinks a:active {
    background-color: var(--customBrownDarker);
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Offline Div */

#offlineDiv {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

#offlineContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: hsl(0, 0%, 94%);
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animateOffline;
    animation-duration: 0.4s;
}

@keyframes animateOffline {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

#noWifiImg {
    max-width: 150px;
}

#offlineTitle {
    margin-bottom: 10px;
}

#offlineText {
    margin-top: 0;
    margin-bottom: 20px;
}

#offlineOkayButton {
    background-color: var(--customBrown);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    min-width: 92px;
}

#offlineOkayButton:hover {
    background-color: var(--customBrownDark);
}

#offlineOkayButton:active {
    background-color: var(--customBrownDarker);
}


footer {
    margin: 40px 8px 16px 8px;
    text-align: center;
}

@media screen and (min-width: 500px) {
    #imageQualityContainer {
        flex-direction: row;
    }

    #imageQualityContainer img {
        width: 49%;
        padding-left: 4px;
    }
}