* {
    box-sizing: border-box;
    font-family: Verdana, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

/* HEADER STYLES */

#header,
#footer {
    background: #26273A;
    color: white;
}

#header {
    padding: 1rem 0;
}

#header .container {
    align-items: center;
    margin: 0 auto;
}

#header div p {
    font-size: 1.25rem;
    font-weight: 600;
}

#nav-links {
    display: flex;
    flex-wrap: wrap;
}

#nav-links a {
    color: white;
    transition: all 0.25s;
    padding: 1rem;
}

#nav-links a:hover {
    background-color: aliceblue;
    color: #26273A;
}

/* HAMBURGER MENU STYLES */

#hamburger {
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    height: 2rem;
    justify-content: space-between;
    margin-right: 1rem;
    position: relative;
    transition: background 0.25s;
    width: 3rem;
}

#hamburger::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
}

#hamburger span,
#hamburger::after {
    background: red;
    height: 0.3rem;
    transition: width 0.25s, transform 0.3s;
    width: 100%;
}

#hamburger:hover span {
    width: 80%;
}

#hamburger:hover::after {
    width: 30%;
}

#hamburger.active {
    background-color: #fff;
    border-radius: 0.1rem;
}

#hamburger.active::after {
    width: 0;
}

#hamburger.active span {
    width: 118%;
}

#hamburger.active span:nth-child(1) {
    transform: rotate(33.69deg) translate(0.45rem, 0.7rem);
}

#hamburger.active span:nth-child(2) {
    transform: rotate(-33.69deg) translate(0.45rem, -0.7rem);
}

/* BODY STYLES */

main {
    background: url(../img/search-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    color: #26273A;
}

main .container {
    margin: 2rem auto;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

h2,
h3,
#stats-header {
    font-size: 150%;
}

#city-header,
h1,
#faq,
#state-header,
#cities-header,
.link-header {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}

#city-header,
#faq {
    padding: 1rem;
}

#state-map {
    flex: 1;
    float: left;
    margin: 1rem 1rem 1rem 0;
    max-width: 50vh;
}

.container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 1100px;
}

#information {
    background: #F5F5F5;
    border-top: solid 4px #b0163b;
    padding: 1rem 0;
}


#information h2 {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

#information h3 {
    margin: 0.5rem 0;
    border-bottom: solid 1px #dfdfdf;
    margin-left: 3rem;
    margin-top: 1rem
}

#information p {
    margin: auto;
    width: 80%;
}

#information,
#aside {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}



/* FOOTER STYLES */

#footer {
    margin-top: auto;
    padding: 0.8rem 1rem;
}

#footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5em;
    justify-content: center;
    list-style: none;
    margin: auto;
    text-align: center;
}

/* MEDIA QUERIES */

@media (max-width: 900px) {
    main .container {
        width: 100%;
        flex-wrap: wrap;
    }

    #header .container {
        flex-wrap: wrap;
    }

    #header .container div {
        align-items: center;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    #nav-links {
        align-items: flex-end;
        display: none;
        flex-direction: column;
        width: 100%;
    }

    #nav-links a {
        display: block;
    }

    #hamburger {
        display: flex;
    }
}

@media (max-width: 600px) {
    #footer-links {
        flex-direction: column;
        gap: 1.5rem;
        margin: 0.5rem auto;
    }
}

/* index.html styling */

#cities-header {
    color: black;
    font-size: 2rem;
    margin: 1rem;
    position: relative;
    text-align: start;
}

#cities-header::after {
    content: "";
    border-bottom: solid 6px #b0163b;
    position: absolute;
    width: 75%;
    bottom: -10px;
    left: 0;
}


.link-container {
    padding: 1rem 0;
}

.link-container:nth-of-type(1) {
    float: left;
}

.link-container:nth-of-type(2) {
    display: inline-block;
}

.link-container:nth-of-type(3) {
    float: right;
}

.link-header {
    margin-bottom: 1rem;
    color: white;
}

.img-link {
    border-radius: 0.5rem;
    max-height: 10rem;
    transition: all 0.25s;
}

.img-link:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    scale: 1.05;
}

#stats-header {
    font-weight: 600;
    margin-bottom: 1rem;
}

#aside {
    flex-direction: column;
    margin-top: 4rem;
    padding: 0 1rem;
    text-align: center;
}

table {
    margin: 1rem;
    padding: 1rem;
    text-align: end;
}

td,
th {
    border: 2px solid #dfdfdf;
    padding: 0.75rem;
}

@media (max-width: 1200px) {
    #cities {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {

    #state-map {
        margin: 1rem auto;
    }

    #cities {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    #cities {
        flex-direction: row;
        justify-content: center;
    }

    .img-link {
        max-height: 12rem;
    }
}

/* City interior page styling */

#city-img {
    max-width: 100%;
}

section.container:not(#homepage) {
    background: #F5F5F5;
    padding-bottom: 1rem;
}

aside.container {
    border-top: solid 4px #b0163b;
    background: #F5F5F5;
    flex-direction: column;
}

#city-header {
    position: relative;
}

#city-header::before {
    content: "";
    border-top: solid 6px #b0163b;
    position: absolute;
    width: 35%;
    top: 0px;
    right: 0;
}

#stats-header {
    font-weight: 600;
    margin: 0 1rem 1rem 2rem;
    text-align: start;
}

section:not(#homepage) {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

/* Question page styling */

#form {
    padding: 0 2rem;
}

#state-header {
    font-size: 300%;
    margin-bottom: 2rem;
}

section.container:not(#homepage) {
    flex-direction: column;
}

label {
    margin: 1rem 0;
}

.input-div {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.input-div:nth-of-type(2) {
    width: 100%;
}

.inputs {
    padding: 0.5rem;
}

.inputs,
textarea {
    border: 2px solid #dfdfdf;
    border-radius: 0.5rem;
}

#button {
    background: #26273A;
    border: none;
    border-radius: 0.5rem;
    color: #f5f5f5;
    font-size: 1.25rem;
    margin-left: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
    height: 5rem;
    width: 10rem;
}

#faq {
    color: black;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    text-align: start;
}

#faq::after {
    content: "";
    border-top: solid 6px #b0163b;
    position: absolute;
    width: 35%;
    bottom: 0px;
    left: 0;
}

#faquestions {
    background: #f5f5f5;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    text-align: start;
}

ol:first-of-type {
    border-bottom: 6px solid #b0163b;
    margin-left: 2rem;
}

li {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1.5rem 0;
}

.questions {
    font-size: 1.75rem;
}

#answers {
    color: #26273A;
    margin-left: auto;
    max-width: 63%;
    padding-left: 1rem;
}

@media (max-width: 1400px) {
    #form{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    }

    #button {
        left: 4rem;
    }
}

@media (max-width: 1000px) {
    ol:first-of-type {
        margin-left: 1rem;
    }

    #button {
        position: static;
        margin: 1rem;
    }

    #form {
        justify-content: center;
        flex-direction: column;
    }

    .input-div {
        width: auto;
        margin: 0 0.5rem;
    }

    #answers {
        max-width: 100%;
    }
}