body {
    background-color: #faebd7;
    padding-left: 1em;
    padding-right: 1em;
    height: 100vh;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 10px;
    z-index: 100;
}

*{
    box-sizing: border-box;
}

nav ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 50px;
    justify-content: center;
    justify-items: center;
    list-style-type: none;
    margin: 0;
    background-color: #a89b8a; 
}

nav ul li {
    width: 90%;
    text-align:center;
    line-height: 50px; /*adjusting to height only centers the words but not the color*/
    padding-right: 1em;
    padding-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: #000000;
    font-family: "Roboto", Arial, Helvetica, Verdana, sans-serif;
    font-weight: 350;
    font-size: 20px;
}


nav ul :hover{
    background-color: #f0e8e0;
}

.wrapper {
    display: grid;
    grid-template-areas:
        "header header"
        "nav nav"
        "article article"
        "footer footer";
    grid-template-rows: auto auto 1fr auto;
    grid-template-columns: 1fr;
    height: 100vh;
    border-bottom: 3px solid black;
    border-top: 3px solid black;
    border-left: 3px solid black;
    border-right: 3px solid black;
    padding: 5px;
    margin: 5px;
    border-radius: 10px;
    overflow: hidden;
}

.wrapper >header {
    grid-column: 1/3;
    background-color: #1d1a45;
    border: 1px solid #000000; /* 5px width, solid style, black color */
    padding: 5px;             /* Optional: adds space between the image and the border */
    margin: 5px;              /* Optional: adds space outside the border */
    border-radius: 10px;      /* Optional: creates rounded corners */
}

.wrapper >nav {
    background-color:  #a89b8a;
    grid-column: 1/3;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    padding: 1em;
    border: 1px solid #000000; /* 5px width, solid style, black color */
    padding: 5px;             /* Optional: adds space between the image and the border */
    margin: 5px;              /* Optional: adds space outside the border */
    border-radius: 10px;      /* Optional: creates rounded corners */
}

.wrapper >article {
    display: flex;
    align-items: flex-start;
    background-color: #F5F5F5;
    padding: 1em;
    flex-direction: column;
    height:auto;
    overflow-y: auto;
    border: 1px solid #000000; /* 5px width, solid style, black color */
    padding: 5px;             /* Optional: adds space between the image and the border */
    margin: 5px;              /* Optional: adds space outside the border */
    border-radius: 10px;      /* Optional: creates rounded corners */
}

.wrapper >footer {
    background-color: #1d1a45;
    color: #f0e8e0;
    grid-column: 1/3;
    height: fit-content;
    Padding-bottom: 1.2em;
    border: 1px solid #000000; /* 5px width, solid style, black color */
    padding: 5px;             /* Optional: adds space between the image and the border */
    margin: 5px;              /* Optional: adds space outside the border */
    border-radius: 10px;      /* Optional: creates rounded corners */
}

.wrapper >aside {
    background-color: #f0e8e0;
    border-left: 5px solid #4a433a;
    border: 1px solid #000000; /* 5px width, solid style, black color */
    padding: 5px;             /* Optional: adds space between the image and the border */
    margin: 5px;              /* Optional: adds space outside the border */
    border-radius: 10px;      /* Optional: creates rounded corners */

}

/* OFF
.sidetitle {
    text-align: center;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-optical-sizing:auto;
    font-style: normal;
    font-weight: 250;
    font-size: 20px;
    padding-top: .5em;
    padding-bottom: 1.5em;
    color: black;
} 

aside ul li a{
    text-decoration: none;
    color: black;
    font-size: 18px;
}

aside ul {
    display: block;
    justify-content: left;
    justify-items: left;
    list-style-type: none;
    margin: 0;
}

aside ul :hover {
    color: #202342;
    font-weight: 300;
    font-size: 25px;
}

aside ul li {
    text-align:left;
    line-height: 5rem;
} 

*/

h1 {
    text-align: left;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-optical-sizing:auto;
    font-style: normal;
    font-weight: 500;
    font-size: 50px;
    position: sticky;
    padding-top: .5em;
    padding-left: .5em;
    color:  #F5F5F5;
}

h2 {
    text-align: center;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-optical-sizing:auto;
    font-style: normal;
    font-weight: 300;
    font-size: 35px;
    color: black;
	align-self: center;
}

.published-date {
    font-family: "Atkinson Hyperlegible", Arial, Georgia, Times 'New Roman', sans-serif;
    text-align: left;
    font-optical-sizing:auto;
    font-style: normal;
    font-weight: 260;
    font-size: 15px;
    color: black;
	padding-left: 1em;
}

.article {
    font-family: "Atkinson Hyperlegible", Arial, Georgia, Times 'New Roman', sans-serif;
}

.content {
    font-family: "Atkinson Hyperlegible", Arial, Georgia, Times 'New Roman', sans-serif;
    text-justify: center;
    font-family: "Roboto", Arial, Helvetica, Verdana, sans-serif;
    font-optical-sizing:auto;
    font-style: normal;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.5em;
    padding-left: 3em;
    padding-right: 3em;
	align-self: center;
}

.copyrighttext {
    font-family: "Atkinson Hyperlegible", Arial, Georgia, Times 'New Roman', sans-serif;
    text-align: left;
    font-optical-sizing:auto;
    font-style: normal;
    font-weight: 260;
    font-size: 15px;
    padding-left: 1em;
     color: #F5F5F5;
}



/* begin media queries*/

/*Landscape, tablet query query*/
@media screen and (max-width: 768px) {
    .wrapper {
        grid-template-columns: 1fr;
		grid-template-rows: auto;
		 grid-template-areas:
        "header"
        "nav"
        "article"
        "aside"
        "footer";
		margin 2px;
    }
	
	.wrapper > header {grid-column:1/2; grid-area: header;}
	.wrapper > nav {grid-column: 1/2;grid-area: nav;}
	.wrapper > article {grid-column: 1/2;grid-area: article; overflow-y: auto;}
	.wrapper > aside {grid-column: 1/2; grid-area: aside;}
	.wrapper > footer {grid-column: 1/2; grid-area: footer;}

    nav ul {
        grid-template-columns: repeat(3, 1fr); 
        grid-template-rows: auto; 
        height: auto;}

    nav ul li {line-height: 40px; padding: 0;}
    nav ul li a {font-size: 16px;}

    h1 {font-size: 28px; padding-top: 0.3em; padding-left: 0.3em;}

    .content {padding-left: 1em; padding-right: 1em;}

    aside ul li {line-height: 3rem;}
}

/* mobile portrait query */
@media screen and (max-width: 481px) {
    .wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "header"
            "nav"
            "article"
            "aside"
            "footer";
        margin: 2px;
    }

    .wrapper > header { grid-column: 1 / 2; grid-area: header; }
    .wrapper > nav { grid-column: 1 / 2; grid-area: nav; }
    .wrapper > article { grid-column: 1 / 2; grid-area: article; height: 100%; overflow-y: auto; }
    .wrapper > aside { grid-column: 1 / 2; grid-area: aside; }
    .wrapper > footer { grid-column: 1 / 2; grid-area: footer; }

nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    nav ul li {
        display: block;
        width: 100%;
        text-align: center;
        line-height: 44px;
        padding: 0;
        border-bottom: 1px solid #9a8d7c;
    }

    nav ul li a {
        display: block;
        width: 100%;
        font-size: 16px;
    }

    h1 { font-size: 22px; padding-top: 0.3em; padding-left: 0.3em; }
    h3 { font-size: 24px; }

    .content {
        padding-left: 0.5em;
        padding-right: 0.5em;
        font-size: 16px;
    }

    aside ul li { line-height: 2.5rem; }
    .sidetitle { font-size: 16px; }
}