
body {
    font-family: montserrat, arial, verdana;
    background-color: #F4EBD3;
    padding: 0px;
}

#header {
    grid-area: header;
    display: grid;
    grid-template-areas: "head-nav"
                                                "title";
    width: 100%;
    height: auto;
    background-color: #98A1BC;
    color: #F4EBD3;
    border-radius: 15px;
}

#head-nav {
    grid-area: head-nav;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #555879;
    height: 5em;
    border-radius: 15px 15px 0 0;
}

#head-nav a {
    font-size: 14px;
    text-decoration: none;
    color: #F4EBD3;
    display: flex;
    flex-grow: 2;
    justify-content: space-around;
    padding: 5%;
}

#head-nav a:hover {
    text-decoration: underline;
    opacity: 0.5;
}

p {
    padding: 3%;
    text-align: center;
    margin: 1%;
}
i {
    padding: 3%;
}

#title {
    grid-area: title;
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: center;
    font-size: 30px;

}

#main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    grid-template-areas: "char-intro"
                                                "history"
                                                "history-info"
                                                "geography"
                                                "geography-info"
                                                "borough-admin"
                                                "borough-admin-info"
                                                 "police"
                                                 "police-info"
                                                 "mayor"
                                                 "mayor-info"
                                                 "council"
                                                 "council-info";
    justify-content: space-evenly;
    width: 100%;
    height: auto;
    padding-bottom: 2%;
}

#history, #geography, #borough-admin, #police, #mayor, #council {
    display: flex;
    justify-content: center;
    border-bottom: solid #98A1BC;
    color: #555879;
}

#history-info, #geography-info, #borough-admin-info, #mayor-info {
    display: flex;
    justify-content: center;
    font-size: 16px;
}

#secretary-info {
    list-style-type: none;
}

 #footer {
    grid-area: footer;
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    column-gap: 5px;
    row-gap: 2px;
    grid-template-areas: "residential permits"
                         "residential-info permits-info"
                         "footer-nav footer-nav";

    height: auto;
    width: 100%;
    margin: 0;
    background-color: #98A1BC;
    color: #F4EBD3;
    border-radius: 15px;
  }

  #residential, #permits {
      display: grid;
      justify-content: center;
      font-size: 22px;
      text-decoration: underline;
  }

  #residential-info, #permits-info {
      display: grid;
      justify-content: center;
      text-align: center;
      font-size: 16px;
  }

  ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
  }

  #footer-nav {
      grid-area: footer-nav;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      background-color: #555879;
      height: 5em;
      border-radius: 0 0 15px 15px;
  }

  #footer-nav > ul.icons {
      display: flex;
      list-style: none;
      flex-grow: 1;
      justify-content: space-around;
  }

  #footer-nav a {
      text-decoration: none;
      color: #F4EBD3;
      display: flex;
      flex-grow: 2;
      justify-content: space-around;
      padding: 2%;
  }

  #footer-nav a:hover {
      text-decoration: underline;
      opacity: 0.5;
  }

  .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
  }

  .image {
    width: 100%;
    height: auto;
    border: medium solid #555879;
    border-radius: 8px;
  }

#council-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 10px;
}

.council-list-item {
    display: grid;
    justify-items: center;
    gap: 3px;
}

#police-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 40px;
    padding-left: 25%;
    padding-right: 25%;
}

.police-list-item {
    display: grid;
    justify-items: center;
    gap: 3px;
}

#police-board {
    grid-column-start: 1;
    grid-column-end: 3;
}

#borough-admin-info {
    display: grid;
    grid-template-columns: 1fr 3fr;
    justify-items: center;
    align-items: center;
}

#secretary-info {
    display: grid;
    justify-items: center;
    gap: 5px;
}

#mayor-info {
    display: grid;
    grid-template-columns: 1fr 3fr;
    justify-items: center;
    align-items: center;
}

#mayor-contact-info {
    display: grid;
    justify-items: center;
    gap: 3px;
}



@media screen and (max-width: 600px) {
    body {
        grid-template-areas: "header"
                                                    "main"
                                                    "footer";
        grid-template-rows: 1fr;
    }
    .link-title {
        display: none;
    }
    #header {
            grid-template-columns: 1fr;
            grid-template-rows: 2em;
            rid-template-areas: "head-nav"
                                                    "title"
                                                    "main";
        }
        #char-intro {
                text-align: center;
            }
        #title {
            text-align: center;
            margin: 5%;
        }
        #main {
                column-gap: 10px;
                grid-template-columns: 1fr;
                justify-content: center;
               text-align: center;
            }
        #footer {
            grid-template-areas: "residential permits"
                                                      "residential-info permits-info"
                                                      "footer-nav footer-nav";
            grid-template-columns: 1fr;
            row-gap: 20px;
            justify-content: center;
            text-align: center;
        }
    }