* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    /* Colour variables */
    /* Variables are selected based on colour theme */
    --bg-primary: #ffffffad;
    --bg-d-primary: #455A64ad;
    --black-0: #222222;
    --white-0: #ECEFF1;
    --orange-0: #ffa500;
    --shadow-black: #000000bf;
    --shadow-white: #a3a3a367;
}

body {
    background: var(--bg);
    color: var(--text);
    background-image: url(img/wood0.jpg);
    background-repeat: repeat;
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

main {
    min-height: 80vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
}

.textWrap {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: var(--bg);
    border: 2px solid var(--text);
    padding: 50px 10px 50px 10px;
    margin-top: 30px;
    box-shadow: 0px 0px 20px 6px var(--shadow);
}

.aboutTextWrap {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: var(--bg);
    border: 2px solid var(--text);
    padding: 20px 10px 20px 10px;
    margin-top: 30px;
    box-shadow: 0px 0px 20px 6px var(--shadow);
    margin-bottom: 30px;
}

.contactTextWrap {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: var(--bg);
    border: 2px solid var(--text);
    padding: 20px 10px 20px 10px;
    margin-top: 30px;
    box-shadow: 0px 0px 20px 6px var(--shadow);
    margin-bottom: 30px;
}

.guessingWrap {
    background-color: #232323;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border: 2px solid var(--white-0);
    padding: 5px 5px 20px 5px;
    margin-top: 30px;
    box-shadow: 0px 0px 20px 6px var(--shadow);
    margin-bottom: 30px;
}

.textWrap h1 {
    font-weight: 400;
    font-size: 2rem;
}

hr {
    margin: 30px;
}

.textWrap h2 {
    font-weight: 200;
    font-size: 1rem;
}

img {
    max-width: 482px;
    height: auto;
    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
    box-shadow: 0px 0px 20px 6px var(--shadow);
}

#photo {
    display: none;
}

.aboutTxt p {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.techLi li {
    list-style-type: none;
}

.colorGame {
    background: #232323;
}

p.colorImgTxt {
    font-size: 1rem;
}

.color {
    color: var(--text);
}

.contactTextWrap h1 {
    font-weight: 400;
}


/* Animations */

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.fadeIn {
    animation-name: fadeIn;
    animation-duration: 1s;
}


/* ===== Scrollbar CSS ===== */


/* Firefox */

* {
    scrollbar-width: auto;
    scrollbar-color: var(--bg);
}


/* Chrome, Edge, and Safari */

*::-webkit-scrollbar {
    width: 16px;
}

*::-webkit-scrollbar-track {
    background: inherit;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--bg);
    border: 1px solid var(--text);
}


/* ********************************************* */


/* navbar styling */

.navbar {
    background-color: var(--bg);
    font-size: 1.3rem;
    box-shadow: 0px 0px 20px 6px var(--shadow);
    border: 1px solid var(--text);
    padding-bottom: 10px;
}


/* ul element for entire nav */

.main-nav {
    list-style-type: none;
    display: none;
}

.nav-link,
.logo {
    text-decoration: none;
    color: var(--text);
}

.main-nav li {
    text-align: center;
    margin: 15px auto;
}

.logo {
    display: inline-block;
    font-size: 1.6rem;
    margin-top: 10px;
    margin-left: 20px;
    font-weight: 100;
}

.navbar-toggle {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    color: var(--text);
    font-size: 1.6rem;
}

.active {
    display: block;
}

.backPortfolio {
    float: left;
    text-align: left;
    margin-bottom: 5px;
}

.backPortfolio a {
    display: block;
    text-decoration: none;
    color: var(--text);
    background-color: var(--bg);
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    padding: 5px;
}

.guessingWrap h1 {
    display: inline-block;
}

.contactInfo a:link,
.contactInfo a:visited {
    color: var(--text);
}

.contactInfo a:hover {
    font-weight: bold;
}


/* ************************************************ */


/* media queries */

@media screen and (min-width: 820px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        padding-bottom: 0;
        height: 70px;
        align-items: center;
    }
    .main-nav {
        display: flex;
        margin-right: 30px;
        flex-direction: row;
        justify-content: flex-end;
    }
    .main-nav li {
        margin: 0;
    }
    .nav-link {
        margin-left: 40px;
    }
    .logo {
        margin-top: 0;
    }
    .navbar-toggle {
        display: none;
    }
    .logo:hover,
    .nav-link:hover {
        /* text-decoration: underline solid var(--text); */
        text-shadow: 2px 2px 2px var(--text);
        transition: all 0.2s;
        /* font-weight: bold; */
    }
    .textWrap h1,
    .aboutTextWrap h1 {
        font-weight: 400;
        font-size: 5rem;
        padding-bottom: 10px;
    }
    .textWrap h2,
    .aboutTextWrap h2 {
        font-weight: 200;
        font-size: 3rem;
    }
    img {
        max-width: 300px;
        max-height: 482px;
        width: auto;
        height: auto;
        display: inline-block;
    }
    .aboutContent {
        display: flex;
        justify-content: space-around;
        margin: 20px 30px 20px 30px;
    }
    .aboutTxt {
        max-width: 600px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        font-size: 1.2rem;
        padding-right: 10px;
    }
    .projects {
        display: grid;
        row-gap: 10px;
    }
    .project {
        display: inline-grid;
        grid-template-columns: auto auto;
        margin-bottom: 10px;
    }
    .project .imgTxt {
        max-width: 400px;
        margin-top: auto;
        margin-bottom: auto;
        justify-self: center;
    }
    .project a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .guessingWrap h1 {
        display: block;
    }
    p.imgTxt {
        font-size: 1.5rem;
    }
    .color {
        font-size: 1.2rem;
    }
    .photo:hover {
        border: 3px solid var(--text);
        box-sizing: border-box;
        transition: all 0.2s;
    }
    #photo {
        display: inline-block;
    }
}

p.imgTxt {
    margin-top: 15px;
    margin-bottom: 15px;
}


/* light theme */

.light {
    --bg: var(--bg-primary);
    --text: var(--black-0);
    --text-alt: var(--orange-0);
    --shadow: var(--shadow-black);
}


/*  dark theme */

.dark {
    --bg: var(--bg-d-primary);
    --text: var(--white-0);
    --text-alt: var(--orange-0);
    --shadow: var(--shadow-black);
}