html, body, .main-nav {
    padding: 0;
    margin: 0;
    border: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: black;
    color: white;
    font-family: open sans, sans-serif;
    width: 100%;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: red;
}

#header {
    display: inline;
}
#header nav {
    background-color: black;
    position: sticky;
    top: 0;
}
.main-nav, #footer, .footer-nav {
    display: flex;
    list-style: none;
}
.main-nav {
    margin: 0;
    justify-content: center;
}

.main-nav a {
    text-transform: capitalize;
    font-weight: 400;
    letter-spacing: .024em;
    font-size:2.1vw;
}

.main-nav li {
    padding: .5em 1em;
    display: block;
    border-right: 2px solid white;
}

.main-nav li:last-child {
    border-right: none;
}

.main-nav li:hover {
    background-color: red;
    transition: .3s;
}

.main-nav li:hover a {
    color: white;
}

.banner {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    padding: 1.5em;
    text-align: right;
}

.banner > div {
    flex: 0 1 25%;
}
.banner > div.logo {
    flex: 0 1 40%;
}
.banner .logo img {
    width: 75%;
}

.banner .phone {
    font-weight: 700;
}

.tirebrands {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    padding: 1em 8em;
}

.tirebrands > div {
    flex: 1 0 25%;
    transition: .3s;
    text-align: center;
}

.tirebrands > div:hover {
    opacity: .8;
    transform: scale(1.1);
}

#main-content {
    display: flex;
    padding-left: 5em;
}

#main-content > div {
    flex-basis: 50%;
}

#main-content .background {
    background-image: url(./assets/rim.jpg);
    background-size: cover;
}

#main-content h1 {
    font-size: 3.5em;
    font-weight: 400;
    margin: 0;
    line-height: 1em;
    padding-top: 1em;
    margin-bottom: 0.5em;
}

#main-content h1::before {
    display: block;
    width: 53%;
    border-top: 0.5rem solid red;
    content: " ";
    padding-top: 0.5em;
}

#main-content p {
    margin: 0;
    font-weight: 700;
}

#main-content > .welcome {
    font-size: 1.3em;
    line-height: 2em;
    margin-right: 1em;
}

#main-content button {
    border-color: red;
    background-color: red;
    color: white;
    transition: 0.3s;
    border-radius: 6px;
    width: 50%;
    height: 3.5em;
    font-size: 1.25rem;
    margin-top: 1em;
    margin-bottom: 4em;
    font-weight: 700;
}

#main-content button:hover {
    background-color: black;
    color: red;
    cursor: pointer;
}

#footer {
    height: 25vh;
    justify-content: center;
    gap: 5vw;
}

.quick-nav {
    list-style: none;
    padding: 0;
}

#footer .logo > img {
    max-width: 100%;
}

footer {
    margin-top: 3vh;
}

#footer h2 {
    text-transform: uppercase;
}

.footer-nav a {
    color: #666;
    text-decoration: underline;
}

.footer-nav a:hover {
    text-decoration: none;
}

.footer-nav {
    color: #666;
    background-color: #AAA;
    margin: 0 auto;
    padding: 1em 25%;
    font-size: 0.75em;
}

.footer-nav li {
    flex: 1 1 auto;
    border-right: 1px solid #666;
    text-align: center;
}

.footer-nav li.copyright, .footer-nav li:last-child {
    border: none;
}

.title-header {
    margin-left: 10em;
    text-transform: uppercase;
}

.content {
    background-color: white;
    color: black;
    padding: 1em 10em;
    line-height: 1.5em;
}

.wholesale-info address {
    margin-top: 1em;
    text-align: center;
}

.content h2 {
    margin-bottom: 0.25em;
    text-decoration: underline;
}

.content a {
    color: black;
    text-decoration: underline;
}

.content a:hover {
    text-decoration: none;
}

.yt {
    text-align: center;
}

#copy {
    bottom: 0;
    position: fixed;
    width: 100%;
}

.schedule {
    display: grid;
    grid-template: auto / auto auto auto auto auto auto auto;
    grid-gap: 0.5em;
    padding: 0.5em;
    background-color: #efefef;
}

.schedule h3 {
    text-transform: uppercase;
    margin-bottom: 0;
}

.schedule > div {
    text-align: center;
    background-color: white;
    padding-bottom: 1em;
    color: #999;
}

.schedule > .curr {
    background-color: black;
    color: white;
}

dialog {
    box-shadow: 3px 3px 10px rgba(0 0 0 / 0.5);
    background-color: black;
    border-color: red;
    border-radius: 1em;
    color: white;
}

dialog::backdrop {
    background-color: rgba(0 0 0 / 0.8);
}

dialog a {
    color: white;
    text-decoration: underline;
}

dialog button {
    background-color: red;
    border-color: red;
    border-radius: 6px;
    color: white;
    width: 10%;
    margin-top: 1em;
    width: 50%;
    padding: 1em 0;
    font-size: 1.1em;
    font-weight: 700;
}

dialog button:focus {
    outline: red;
}

dialog button:hover {
    background-color: black;
    color: red;
    cursor: pointer;
}
dialog > form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    min-height: 15vh;
}

.wheels .content h2 {
    text-decoration: none;
}

.wheels .content > img {
    max-width: 100%;
}

.wheels .content button {
    border-color: black;
    background-color: black;
    color: white;
    transition: 0.3s;
    border-radius: 6px;
    width: 45%;
    height: 3.5em;
    font-size: 1.25rem;
}

.wheels .content button:hover {
    background-color: black;
}

.wheels .content button > a {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25em;;
}

.wheels .content button:hover {
    transform: scale(115%);
}

.contact .content > div {
    display: flex;
    gap: 10em;
}

.contact .content > div address::first-line {
    font-style: normal;
    text-decoration: underline;
}

.terms .content li > ol {
    list-style: lower-alpha;
}
.terms .content li > ol > li > ol {
    list-style: lower-roman;
}

.privacy .content h3 {
    scroll-margin-top: 3em;
}

@media only screen and (max-width: 992px) {
    .banner .logo img {
        width: 100%;
    }
    .tirebrands {
        padding: 1em 6em;
    }
    #main-content {
        padding-left: 4em;
    }
    #main-content h1 {
        font-size: 3em;
    }
    .schedule {
        font-size: 0.9em;
    }
    #footer {
        font-size: 0.9em;
        justify-content: space-around;
    }
    #footer .logo > img {
        max-width: 85%;
    }
}

@media only screen and (max-width: 767px) {
    .banner {
        font-size: 1em;
    }
    .banner > div.logo {
        flex: 0 1 50%;
    }
    .tirebrands {
        padding: 1em 5em;
    }
    #main-content {
        padding-left: 2em;
    }
    #main-content h1 {
        font-size: 2em;
    }
    .wheels .content button > a {
        font-size: 0.85em;
    }
    .content {
        padding: 1em 5em;
    }
    .about .hours {
        padding: 1em 0;
    }
    .about .hours h2, .about .hours address {
        padding-left: 11vw;
    }
    .schedule {
        margin: 0 1vw;
    }
    .title-header {
        margin-left: 5em;
    }
    .contact .content > div {
        gap: 5em;
    }
    #footer {
        font-size: 0.75em;
        padding: 0 2em;
        height: 20vh;
    }
    #footer h2 {
        font-size: 0.9em;
    }
    #footer .logo > img {
        max-width: 39vw;
    }
    .footer-nav {
        padding: 1em 10vw;
    }
}

@media only screen and (max-width: 479px) {
    .banner {
        font-size:  0.75em;
    }
    .tirebrands {
        padding: 1em 2em;
    }
    .background {
        display: none;
    }
    #main-content > div {
        flex-basis: 100%;
    }
    .wheels .content button {
        width: 76%;
    }
    .schedule {
        font-size: .75em;
        grid-template: unset;
    }
    .contact .content {
        padding: 1em 3em;
    }
    .contact .content > div {
        gap: 3em;
    }
    #footer {
        flex-wrap: wrap;
        text-align: center;
        height: 30vh;
    }
    #footer .logo {
        flex: 100%;
        max-width: 100%;
        text-align: center;
    }
    .footer-nav {
        font-size: 0.5em;
    }
}

@media only screen and (max-width: 350px) {
    .banner {
        font-size:  0.5em;
    }
    .tirebrands {
        padding: 1em 0;
    }
    .contact .content {
        padding: 1em 1em;
    }
    .contact .content > div {
        gap: 1em;
    }
}