:root {
    --canvasBackground: rgb(242, 239, 229);
    --contentBackground: rgb(227, 225, 217);
    --textColour1 : #000000;
    --textColour2 : #000000;


    --header-margin-top: 2%;
    --header-top: 0%;
    --header-height: 10%;

    --content-margin-top: 2%;
    --content-top: 12%;
    --content-height: 84%;
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    color: var(--textColour1);
}

canvas#canvasBackground {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1; 
    background-color: var(--canvasBackground);
}

.links a {
    margin-left: 10px; 
    color: #000; 
    text-decoration: none;
}

.links a:hover {
    color: #555; 
}

.fab, .fas {
    font-size: 24px; 
}

.central{
    position: absolute;
    width: 100%;
    max-width: 1000px;
    z-index: 1;
    padding-left: 20px;
    padding-right: 20px;
    background-color: var(--canvasBackground);
    box-sizing: border-box;
    left: 50%; /* Add this */
    transform: translateX(-50%); /* Add this */
}

.header {
    margin-top: var(--header-margin-top);
    top: var(--header-top);
    height: var(--header-height);
    font-size: larger;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    border-bottom: 4px solid #000;
    border-bottom-style: dotted;
    
}

.content {
    margin-top: var(--content-margin-top);
    top: var(--content-top);
    height: var(--content-height);
    overflow-y: auto;
    scrollbar-width: none;
}

.content::-webkit-scrollbar {
    display: none;
}

#projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); 
    gap: 20px;
}

.project {
    background-color: var(--contentBackground);
    text-decoration: none;
    border-radius: 5px;
}

.project-title {
    color: var(--textColour2);
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 0px;
    margin-top: 5px;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 5px;
}

.project-container {
    margin: 0;
    padding: 10px;
    border-radius: 5px;
}
