
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;
}

h2{
    font-size: 30px;
    text-decoration: underline;
}

p {
    padding: 3%;
    text-align: center;
    justify-content: center;
    align-content: center;
}

i {
    padding: 3%;
    align-items: center;
}

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

#main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    grid-template-areas: "ordinances"
                                                "ordinances-info"
                                                "events"
                                                "events-info"
                                                "notices"
                                                "notices-info"
                                                "minutes"
                                                "minutes-info";
    justify-content: space-evenly;
    width: 100%;
    height: auto;
    padding-bottom: 2%;
}


#ordinances, #events, #notices, #minutes {
    display: flex;
    justify-content: center;
    color: #555879;
}

#ordinances-info, #events-info, #notices-info, #minutes-info {
    display: grid;
    justify-content: center;
    font-size: 16px;
    grid-template-rows: 1fr;
}

#form {
    display: grid;
    justify-content: center;
    align-items: center;
    padding: 3%;
}

.submit {
    background-color: #98A1BC;
    color: #F4EBD3;
}

.posts{
    display: grid;
    text-align: center;
    width: 100%;
    height: auto;
    border: solid #98A1BC;
    border-radius: 15px;
}
.title {
    color: #555879;
    font-size: 25px;
    font-weight: bold;
}
.date{
    font-size: 14px;
    font-style: italic;
}
.information {
}

.form-button {
    display: grid;
    grid-template-areas:
                             "delete-button edit-button";
}
.delete-button, .edit-button {
    background-color: #98A1BC;
    color: #F4EBD3;
}

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

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

  #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 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;
    }





@media all 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";
        }
        #title {
            text-align: center;
            margin: 5%;
        }
        #main {
                column-gap: 10px;
                grid-template-columns: 1fr;
                justify-content: center;
               text-align: center;
            }
        #footer {
            grid-template-areas: "footer-nav";
            grid-template-columns: 1fr;
            row-gap: 20px;
            justify-content: center;
            text-align: center;
        }
    }