/* CUSTOM BACKGROUND FOR THE HOMEPAGE */

body {
    background-color: var(--background-color);
    background-image: var(--background-blue);
    background-repeat: repeat;
    background-position: 0 0;
    background-size: 120px;
}


/* ================ */

/* THE HOME PAGE LAYOUT */

.layout {
    width: 1000px;
    height: 1200px;
    display: grid;
    grid-gap: 10px;
    margin: 10px 0;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas:
        "header header"
        "aside main"
        "footer footer";
    gap: var(--margin);
}

/* ================ */

/* Header image */

header {
    grid-area: header;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-radius: var(--round-borders);
    padding: 0;
    border: var(--border) solid;
    border-color: #000000;
    border-radius: var(--round-borders);
}

header img {
    display: block;
    margin-top: 5px;
    height: 100%;
    width: 50%;
}

/* ================ */

/* The Horizontal navigation */

nav {
    grid-area: header;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: var(--padding);
    background: #ffffff;
    border: var(--border) solid;
    border-color: #ffffff;
    border-radius: var(--round-borders);
}

.navbar {
    align-self: start;
    height: auto;
    padding: 5px;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.navbar li {
    float: left;
    margin: 0;
    text-align: center;
}

.navbar a {
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 0;
    padding: 5px 10px;
    color: black;
    font-family: "ComicRelief", monospace;
    font-weight: 700;
    font-size: 20px;
}

.navbar a:hover {
    background-color: #00000028;
    border-radius: 5px;
}

.navbar a:active {
    background-color: #00000065;
}

/* ================ */

/* The main content */

main {
    grid-area: main;
    overflow-y: auto;
    width: auto;
    padding: var(--padding);
    background: var(--content-background-color);
    border: var(--border) solid;
    border-color: #ffffff;
    border-radius: var(--round-borders);
}

main p {
    font-family: "PlaypenSans";
    font-weight: 500;
}

main h1 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: white;
    margin: 5px 0;
    margin-bottom: 10px;
}

main h2 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: white;
    margin: 5px 0;
    margin-bottom: 10px;
}

main h3 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: white;
    margin: 10px 0;
    margin-bottom: 10px;    
}

main b {
    color: white;
    font-weight: 600;
}

main p {
    font-family: "PlaypenSans";
    font-weight: 500;
}

main li {
    font-family: "PlaypenSans";
    font-size: 16px;
    font-weight: 500;
}

a {
    font-weight: 700;
    color: white;
    text-decoration-style: dashed;
    text-decoration-color: black;
    text-underline-offset: 4px;
}

a:hover {
    color: black;
    text-decoration-style: dashed;
    text-decoration-color: white;
}


/* ================ */

/* The aside panel */

aside {
    grid-area: aside;
    width: 200px;
    padding: var(--padding);
    background: var(--content-background-color);
    border: var(--border) solid;
    border-color: var(--border-color);
    border-radius: var(--round-borders);
}

aside p {
    font-family: "PlaypenSans";
    font-weight: 500;
}

aside h1 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: white;
    margin: 5px 0;
    margin-bottom: 10px;
}

aside h2 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: white;
    margin: 5px 0;
    margin-bottom: 10px;
}

aside h3 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: white;
    margin: 10px 0;
    margin-bottom: 10px;    
}

aside b {
    color: white;
    font-weight: 600;
}

aside p {
    font-family: "PlaypenSans";
    font-weight: 500;
}

aside li {
    font-family: "PlaypenSans";
    font-size: 16px;
    font-weight: 500;
}

/* ================ */

/* statuscafe post */

.Chatbox {
    grid-area: footer;
    width: auto;
    overflow-y: auto;
    padding: var(--padding);
    background: var(--content-background-color);
    border: var(--border) solid;
    border-color: var(--border-color);
    border-radius: var(--round-borders);
}

.statuscafe-post:first-of-type {
  margin-top: 0;
}

.statuscafe-post:last-of-type {
  margin-bottom: 0;
}

.statuscafe-post {
  padding: 10px;
  border: 1px solid var(--foreground);
  border-radius: 10px;
  margin: 10px 0;
  background:#ffffff20;
  box-shadow: 0 0 3px;
  font-family: "PlaypenSans";
  font-weight: 500;
}

.statuscafe-author {  
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
  font-family: "ComicRelief";
  color: white;
}

/* ================= */