/* CUSTOM BACKGROUND FOR THE HOMEPAGE */

body {
    background-color: #fff7e0;
    background-image: var(--background-yellow);
    background-repeat: repeat;
    background-position: 0 0;
    background-size: 120px;
    margin: 10px 0;
    padding: 0;
}

/* ================ */

/* THE HOME PAGE LAYOUT */

.layout {
    width: 1000px;
    margin-top: 15px;
    display: grid;
    grid-gap: 10px;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas:
        "header"
        "nav"
        "main";
    gap: var(--margin);
}

/* ================ */

/* Scrollbar Styling */
::-webkit-scrollbar {
width: 5px;
}
 
::-webkit-scrollbar-track {
background-color: #ffffff00;
-webkit-border-radius: 10px;
border-radius: 10px;
}
 
::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px;
border-radius: 10px;
background: #000000;
}

/* Header image */

header {
    grid-area: header;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: var(--padding);
    border: var(--border);
    border-radius: var(--round-borders);
}

header img {
    display: block;
    height: auto;
    width: 100%;
}

/* ================ */

/* The Horizontal navigation */

nav {
    grid-area: nav;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: var(--padding);
    background: var(--content-background-color2);
    border: var(--border) solid;
    border-color: #000000;
    border-radius: var(--round-borders);
}

.navbar {
    padding: 5px;
    align-self: start;
    height: auto;
    padding: 10px 15px;
}

.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: var(--content-background-color2-hover);
    border-radius: 5px;
}

.navbar a:active {
    background-color: var(--content-background-color2-active);
}

/* ================ */

/* The main content */

main {
    grid-area: main;
    overflow-y: auto;
    padding: var(--padding);
    background: var(--content-background-color2);
    border: var(--border) solid;
    border-color: #000000;
    border-radius: var(--round-borders);
}

main h1 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: black;
    margin: 5px 0;
    margin-bottom: 10px;
}

main h2 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: black;
    margin: 5px 0;
    margin-bottom: 10px;
}

main h3 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: black;
    margin: 10px 0;
    margin-bottom: 10px;    
}

main b {
    color: white;
    font-weight: 600;
}

main p {
    font-family: "PlaypenSans";
    font-weight: 500;
}

/* ================ */

/* Table Style */

table {
    width: 100%;
    border: 3px solid;
    border-radius: 10px;
    border-color: black;
    background-color: var(--content-background-color2);
    border-collapse: separate;
    table-layout: fixed;
    border-spacing: 5px 10px;
    overflow: hidden;
    width: 100%;
}

tr {
    background-color: var(--content-background-color2);
    margin: 10%;
}

tr a {
    text-decoration-style: dashed;
    text-underline-offset: 5px;
    text-decoration-color: black;
    color: black;

}

tr a:hover {
    text-decoration-style: dashed;
    text-underline-offset: 5px;
    text-decoration-color: white;
}

th {
    font-family: "ComicRelief";
    height: 30px;
    font-weight: 600;
}

th:nth-child(1) { width: 20%; }
th:nth-child(2) { width: 60%; }
th:nth-child(3) { width: 20%; }

td {
    font-family: "PlaypenSans";
    font-weight: 500;
}

td:nth-child(1) { text-align: center; }
td:nth-child(2) { text-align: left; }
td:nth-child(3) { text-align: center; }




/* =========== */