/* ***************** generic style ***************** */

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #323232;
}

.sr-only {
    display: none;
}

.grid-container {
    margin: 1rem;
    display: grid;
}

/* ***************** typogrpahy ***************** */

h1 {
    font-size: 2.369rem;
    line-height: 3rem;
    color: #782835;
    padding: 1rem;
}

h2 {
    font-size: 1.777rem;
    line-height: 3rem;
    color: #782835;
}

h3 {
    font-size: 1.333rem;
    line-height: 3rem;
    color: #515151;
}

p {
    margin-bottom: 1.5rem;
}

/* ***************** header ***************** */

header {
    border-bottom: 1px solid rgb(222, 222, 222);
    box-shadow: 0 0 0.5rem 0 rgb(222, 222, 222);
    padding: 1rem;
    background-color:#782835;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top img {
  width: 50%;
  height: 50%;
}

.toggle-icon {
    width: 3.6rem;
    padding: 0.25rem;
}

nav {
    max-height: 0;
    overflow: hidden;
    transition: all ease-in-out 600ms;
    font-size: 1.125rem;
}

nav ul {
  flex-wrap: wrap;
}

.show-nav {
    max-height: 20rem;
}

.menu-links li {
    line-height: 50px;
}

.menu-links a {
    display: block;
    text-decoration: none;
    color: white;
}

.menu-links a:hover {
    color: black;
}



/* ***************** Body Elements ***************** */
.popular-posts ul {
  list-style: none;
}


/* ***************** footer ***************** */

footer {
    display: grid;
    grid-template-columns: 1fr -1fr;
    gap: 1rem;
}

footer div {
  align-content: baseline;
  justify-content: center;
}

label {
    display: block;
}

input {
    max-width: 10rem;
}

footer a {
  text-decoration: none;
  color: black;
}

footer ul,
.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list {
  width: max-content;
}

/* ***************** good width to show nav ***************** */
@media (min-width: 30em) {
    .toggle-icon {
        display: none;
    }

    nav {
        max-height: 50vh;
    }

    .menu-links {
        display: flex;
    }

    .menu-links a {
        padding: 0 0.5rem;
    }

    .flex-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

}


@media (min-width: 60em) {
    .grid-container {
        grid-template-columns: 2fr 1fr;
        gap: 1.5rem;
    }

    .recent-posts {
        align-self: start;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 1.5rem;
    }

    h2,
    .recent-posts div:first-of-type {
        grid-column: 1 / -1;
    }

    footer {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
    }

    input {
        max-width: 100%;
    }
}


@media (min-width: 90em) {

    .popular-posts > div {
        display: flex;
        align-items: flex-start;
    }

    .popular-posts > div img {
        max-width: 50%;
        margin-right: 1rem;
    }

    .popular-posts h3 {
        line-height: 1.5rem;
    }
}


@media (min-width: 110em) {
    .grid-container,
    .inner-container {
        max-width: 100rem;
        margin: 0 auto;
    }
}