@font-face {
    font-family: "White Rabbit";
    src: url('fonts/whitrabt.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: "Meslo";
    src: url('fonts/MesloLGLNerdFont-Regular.woff') format('woff');
    font-display: swap;
}

:root {
    --header-text: 20pt;
    --primary-font: "Roboto Mono", sans-serif;
    --title-font: "Roboto", sans-serif;
    --header-font: "Meslo", sans-serif;
    --p-font: "Meslo", sans-serif;
    --site-title-font: "White Rabbit", sans-serif;
}

/*
* {
    border: solid 1px red;
}
*/

* {-webkit-font-smoothing: antialiased;}

body, html {
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: rgb(14, 14, 14);
    min-height: 100vh;
    color: rgb(215, 215, 215);
    font-family: var(--primary-font);
    overflow-x: hidden;
}

.all {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    flex-grow: 1;
}

h1 {
    color: rgb(0, 176, 0);
}

h2 {
    font-family: var(--title-font);
    font-size: 36px;
    color: #4758de;
}

h3 {
    color: rgb(215, 215, 215);
}

a, a:visited, a:active, a:hover {
    font-size: 1.05rem;
    font-family: var(--primary-font);
    color: rgb(71, 88, 222);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    font-family: var(--p-font);
    color: rgb(215, 215, 215);
    font-size: 1.05rem;
    line-height: 1.8;
    word-spacing: -2px;
    
}

ul {
    font-family: var(--p-font);
    color: rgb(215, 215, 215);
    font-size: 16px;
    line-height: 1.6;
    word-spacing: -4px;

}

blockquote > p {
    color: rgb(0, 176, 0);
}

footer {
    margin-top: auto;
    font-size: 15px;
    text-align: center;
    color: rgb(0, 176, 0);
    padding: 200px 0px 40px 0px;
    width: 100%;
}

/* 
----------------------------------------------------------------
Site Header Styling
----------------------------------------------------------------
*/

.all {
    max-width: 100%;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 5px;
}

.site-title {
    display: flex;
    gap: 5px;
    align-self: center;
    font-family: var(--site-title-font);
    padding: 10px;
    padding-left: 3%;
}

.web-name {
    font-size: 1.4rem;
    color: rgb(0, 176, 0);
}

.search-field {
    margin-top: 0px;
}

.site-controls {
    display: flex;
    align-self: center;
    gap: 20px;
    font-family: var(--site-title-font);
    padding-right: 3%;
}

.hamburger-menu {
    display: none;  
}

.close-menu {
    display: none;
}

input[type=search] {
    background-color: rgba(0, 0, 0, 0);
    color: rgb(0, 176, 0);
    width: 220px;
    font-size: 1.4rem;
    font-family: var(--site-title-font);
    border: none;
}

input:focus {
    outline: none;

    &::placeholder {
        color: transparent;
    }
}

::-webkit-input-placeholder {
    color: rgb(0, 176, 0);
}

.top-link, .top-link:visited {
    color: rgb(0, 176, 0);
    font-size: 1.4rem;
    font-family: var(--site-title-font);
    border: none;

    &:hover {
        color: rgb(71, 88, 222);
        font-size: 1.4rem;
        font-family: var(--site-title-font);
        text-decoration: none;
        border: none;
    }
}

/* 
----------------------------------------------------------------
-Help Popup
----------------------------------------------------------------
*/

.line-1 {
    margin-top: 0px;
}

.line-2 {
    margin-top: -25px;
    margin-bottom: 1px;
}

.line-3 {
    margin-top: -25px;
    margin-bottom: 0;
}

.help-popup {
    display: flex;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    background-color: rgba(8, 11, 67, 0.8);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 10px;
    position: fixed;
    right: 50px;
    top: 80px;
    z-index: 1000; 
    width: 330px;
    height: 230px;
    flex-direction: column;
    justify-content: space-between;
}

.help-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.close-popup {
    background-color: black;
    color: rgb(0, 176, 0);
    border: solid 1.3px;
    border-color: black;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: -15px;
    font-size: 12px;
    font-family: var(--primary-font);
    align-self: center; 

    &:hover {
        cursor: pointer;
        border: solid 1.3px;
        box-shadow: 0px 0px 5px rgb(71, 88, 222);
        border-color: rgb(71, 88, 222);
        animation: border-fade-in-btn 0.4s forwards, glow-in-btn 0.4s forwards;
    }
}

#help {
    color: rgb(0, 176, 0);
    border: none;
    margin-left: -7px;
    background: none;
    font-size: 1.4rem;
    font-family: var(--site-title-font);
    cursor: pointer;
}

#help:hover {
    color: rgb(71, 88, 222);
}

#help.active {
    color: rgb(71, 88, 222);
}

/* 
----------------------------------------------------------------
Blog Home Page
----------------------------------------------------------------
*/

.posts-header {
    text-align: center;
    font-family: var(--title-font);
    font-size: 24px;
    letter-spacing: 2px;
}

.posts-container {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.posts {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: -2px;
}

.post {
    display: flex;
    gap: 40px;
    padding-left: 25px;
    padding-right: 25px;
    background-color: rgb(0, 0, 0);
    border: solid 1.5px;
    border-color: black;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
    width: 700px;
    height: 285px;
    overflow: hidden;

    &:hover {
        cursor: pointer;
        border: solid 1.5px;
        outline: none;
        box-shadow: 0px 0px 8px rgb(0, 176, 0);
        border-color: rgb(0, 176, 0);
        animation: border-fade-in 0.5s forwards, glow-in 0.5s forwards;
    }
}

.thumbnail {
    width: 50%;
    align-content: center;
}

.post-thumbnail {
    width: 100%;
    height: 85%;
    padding-top: 5px;
    border-top-left-radius: 11px;
    border-bottom-left-radius: 6px;
    object-fit: cover;
}

.post-info {
    display: flex;
    flex-direction: column;
    align-self: center;
    width: 55%;
    gap: 20px;  
}

.post-title-home {
    color: rgb(71, 88, 222);
    margin: 0;
    font-size: 1.5rem;
    font-family: var(--title-font);
    line-height: 1.3;
    letter-spacing: 1px;
    word-spacing: 2px;
}

.blurb {
    font-size: 0.85rem;
    font-family: var(--p-font);
    line-height: 1.4;
    color: rgb(196, 196, 196);
    margin-top: -5px;
}

.post-meta-home {
    color: rgb(165, 165, 165);
    font-size: 0.8rem;
}


/* 
----------------------------------------------------------------
Projects Content
----------------------------------------------------------------
*/

.github-container {
    display: flex;
    justify-content: center;
}

.github-bg {
    position: relative;
    background-image: url("images/bgs/grid-new.svg");
    text-align: center;
    background-size: cover;
    background-position: center;
    width: 76.5rem;
    margin-top: -35px;
    padding: 20px;
    overflow: hidden;
}

.github-header {
    padding-top: 40px;
    text-align: center;
    font-family: var(--title-font);
    font-size: 24px;
    padding-top: 45px;
    letter-spacing: 2px;
}

.github {
    display: grid;
    justify-content: center;
    justify-items: center;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 40px;
    row-gap: 25px;
    max-width: 100%;
    width: 700px;
    margin: 40px auto;
}

.inside-bk {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(8, 8, 8);
    z-index: 1;
    border-radius: 3px;
    padding: 5px;
    border-top: 20px solid rgb(4, 4, 4);
    border-left: 20px solid rgb(5, 5, 5);
    border-right: 20px solid rgb(5, 5, 5);
    border-bottom: 20px solid rgb(4, 4, 4);
    border-radius: 8px;
}

.gh-box1 {
    position: relative;
    background-color: black;
    text-align: center;
    grid-column: 1;
    width: 320px;
    height: 200px;
    padding: 15px;
    border-radius: 8px;
    z-index: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.gh-box2 {
    position: relative;
    background-color: black;
    text-align: center;
    grid-column: 2;
    width: 320px;
    height: 200px;
    padding: 15px;
    border-radius: 8px;
    z-index: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.gh-box3 {
    position: relative;
    grid-column: 1 / span 2;
    background-color: black;
    text-align: center;
    justify-items: center;
    width: 320px;
    height: 200px;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    z-index: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.gh-box1:hover, .gh-box2:hover, .gh-box3:hover { 
    border: solid 1.5px;
    outline: none;
    cursor: pointer;
    box-shadow: 0px 0px 8px rgb(0, 176, 0);
    border-color: rgba(0, 176, 0);
    animation: border-fade-in 0.5s forwards, glow-in 0.5s forwards;
}

.glow {
    border: solid 1.5px;
    box-shadow: 0px 0px 8px rgb(0, 176, 0);
    border-color: rgba(0, 176, 0);
    animation: border-fade-in 0.5s forwards, glow-in 0.5s forwards;
}

.gh-title {
    font-family: var(--primary-font);
    font-size: 20px;
    margin: 0;
    color:rgb(71, 88, 222);
}

.gh-blurb {
    font-family: var(--primary-font);
    font-size: 0.85rem;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 1.5;
    margin: 0;
}

.lang-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding-top: 0;
}

.code-logo {
    width: 23px;
    height: 23px;
}

.code-logo-ps {
    width: 23px;
    height: 23px;
}

.code-logo-js {
    width: 30px;
    height: 30px;
}

.code-logo-web {
    width: 23px;
    height: 23px;
}

/* 
----------------------------------------------------------------
Contact Form
----------------------------------------------------------------
*/

.contact-container {
    display: flex;
    justify-content: center;
}

.contact-bg {
    background-image: url(images/bgs/world.png);
    background-size: cover;
    background-position: 50% -35%;
    width: 80rem;
}

.contact-header {
    font-size: 24px;
    font-weight: bold;
    color: rgb(0, 176, 0);
    text-align: center;
    margin-bottom: 30px;
}

.contact-form-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact {
    width: 600px;
}

.email-form {
    text-align: left;
}

.form-content {
    display: flex;
}

#message-name {
    width: 40%;
    height: 50px;
    box-sizing: border-box;
    border: none;
    outline: none;
    margin-right: 10px;
    font-family: var(--primary-font);
    font-size: 16px;
    color: rgb(0, 176, 0);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);

    &:focus {
        border: solid 1.3px;
        box-shadow: 0px 0px 5px rgb(71, 88, 222);
        border-color: rgb(71, 88, 222);
        animation: border-fade-in-btn 0.4s forwards, glow-in-btn 0.4s forwards;
    }
}

#email-addr {
    width: 56.5%;
    height: 50px;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-family: var(--primary-font);
    font-size: 16px;
    color: rgb(0, 176, 0);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);

    &:focus {
        border: solid 1.3px;
        box-shadow: 0px 0px 5px rgb(71, 88, 222);
        border-color: rgb(71, 88, 222);
        animation: border-fade-in-btn 0.4s forwards, glow-in-btn 0.4s forwards;
    }
}

#email-message {
    display: block;
    width: 100%;
    height: 250px;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: var(--primary-font);
    color: rgb(0, 176, 0);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);

    &:focus {
        border: solid 1.3px;
        box-shadow: 0px 0px 5px rgb(71, 88, 222);
        border-color: rgb(71, 88, 222);
        animation: border-fade-in-btn 0.4s forwards, glow-in-btn 0.4s forwards;
    }
}

#submit-button {
    margin-bottom: 60px;

}

.email-btns {
    display: flex;
    justify-content: center;
    margin-top: -15px;
}

.form-status {
    font-size: 40px;
    color: rgb(0, 176, 0);
    text-align: center;
    height: 200px;
    padding: 100px;
    margin-bottom: 58px;
    margin-top: -10px;
    font-family: var(--site-title-font);
}

.load {
    display: none;
	width: 30px;
	height: 30px;
    margin-top: 50px;
    margin-bottom: 53px;
	border:solid 5px rgb(71, 88, 222);
	border-radius: 50%;
	border-right-color: transparent;
	border-bottom-color: transparent;
	 -webkit-transition: all 0.5s ease-in;
    -webkit-animation-name:             rotate; 
    -webkit-animation-duration:         1.0s; 
    -webkit-animation-iteration-count:  infinite;
    -webkit-animation-timing-function: linear;
    	
    	 transition: all 0.5s ease-in;
    animation-name:             rotate; 
    animation-duration:         1.0s; 
    animation-iteration-count:  infinite;
    animation-timing-function: linear; 
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to { 
        transform: rotate(360deg);
    }
}
 

 @-webkit-keyframes rotate {
    from {
        -webkit-transform: rotate(0deg);
    }
    to { 
        -webkit-transform: rotate(360deg);
    }
}


/* 
----------------------------------------------------------------
Blog Posts
----------------------------------------------------------------
*/

.container-container {
    display: flex;
    justify-content: center;
}

.container {
    width: 53rem;
    padding-left: 14%;
    padding-right: 14%;
    margin-left: 10%;
    margin-right: 10%;  
}

.post-title {
    font-size: 26px;
    color: rgb(0, 176, 0);
    font-family: "Roboto", sans-serif;
    font-weight: 700;
}

.post-body img {
    display: block;
    max-height: 500px;  
    width: auto;
    margin: 20px auto;
    text-align: center;
}

.post-meta {
    margin-top: 60px;
}

.post-meta p {
    color: rgb(197, 197, 197);
    font-size: 15px;
    margin-top: -10px;
}

/*
----------------------------------------------------------------
Blog Comments
----------------------------------------------------------------
*/

.comment-title {
    font-size: 30px;
    color: rgb(0, 176, 0);
    font-family: var(--primary-font);
    font-weight: bold;
}

.btn-submit-comment, .btn-cancel-comment, .btn-add-comment {
    background-color: black;
    color: rgb(0, 176, 0);
    border: solid 1.3px;
    border-color: black;
    border-radius: 8px;
    padding: 10px 15px;
    margin-left: 5px;
    font-size: 14px;
    margin-top: 25px;
    margin-bottom: 30px;
    font-family: var(--primary-font);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);

    &:hover {
        cursor: pointer;
        background-color: black;
        color: rgb(0, 176, 0);
        border-radius: 10px;
        padding: 10px 15px;
        border: solid 1.3px;
        box-shadow: 0px 0px 5px rgb(71, 88, 222);
        border-color: rgb(71, 88, 222);
        animation: border-fade-in-btn 0.4s forwards, glow-in-btn 0.4s forwards;
    }
}

.comment-field{
    margin-top: 30px;
}

.input-field-small {
    background-color: black;
    color: rgb(0, 176, 0);
    border: none;
    border-radius: 10px;
    height: 20px;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 15px;

    &:focus {
        border: solid 1.3px;
        box-shadow: 0px 0px 5px rgb(71, 88, 222);
        border-color: rgb(71, 88, 222);
        animation: border-fade-in-btn 0.4s forwards, glow-in-btn 0.4s forwards;
    }
}

.input-field-text {
    background-color: black;
    color: rgb(0, 176, 0);
    border: none;
    border-radius: 10px;
    height: 100px;
    padding: 10px;
    font-family: sans-serif;
    font-size: 15px;

    &:focus {
        border: solid 1.3px;
        box-shadow: 0px 0px 5px rgb(71, 88, 222);
        border-color: rgb(71, 88, 222);
        animation: border-fade-in-btn 0.4s forwards, glow-in-btn 0.4s forwards;
    }
}

.comments-container {
    margin-top: 30px;
    padding-top: 20px;
}

.comments {
    background-color: black;
    width: 500px;
    border-radius: 10px;
    border-style: solid;
    border-width: 1.5px;
    border-color: rgb(71, 88, 222);
    padding: 20px;
    margin-bottom: 30px;
    font-family: var(--primary-font);
}

.comment-name {
    font-weight: bold;
    font-size: 15px;
}

.comment-body {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-left: 20px;
    font-size: 15px;
}

.comment-field {
    display: none;
}

/*
----------------------------------------------------------------
Category Filter 
----------------------------------------------------------------
*/

.categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.categories {
    display: flex; 
    gap: 15px;
    justify-content: center; 
    align-items: center;
    text-align: center;
    max-width: 47rem;
    padding-top: 50px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    margin-left: 10%;
    margin-right: 10%;
}

.category-btn {
    background-color: black;
    box-shadow: 0px 0px 3px rgba(71, 89, 222, 0.373);
    color: rgba(0, 176, 0, 0.684);
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: var(--primary-font);
    white-space: nowrap;

    &:hover {
        cursor: pointer;
    }
}

.category-btn.active {
    background-color: black;
    color: rgb(0, 176, 0);
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: var(--primary-font);
    border: solid 1.3px;
    outline: none;
    box-shadow: 0px 0px 5px rgb(71, 88, 222);
    border-color: rgb(71, 88, 222);
}

/*
----------------------------------------------------------------
ls page
----------------------------------------------------------------
*/

.ls-page-container {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

.ls-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; 
    margin-top: 100px;
}

.ls-page-link {
    text-decoration: none;
    color: rgb(71, 88, 222);
    font-size: 30px;
    margin-top: 20px;
}

/*
----------------------------------------------------------------
about page
----------------------------------------------------------------
*/
.whoami {
    font-size: 50px;
    font-family: "White Rabbit", monospace;
    color: rgb(0, 176, 0);
    border-right: 5px solid green;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: 
        typing 1s steps(6, end), 
        cursor 1s step-end infinite 1s; 
}

.about-me {
    margin-top: -60px;
    margin-bottom: 80px;
}

@keyframes typing {
    from { width: 0ch; } 
    to { width: 6ch; }
}

@keyframes cursor {
    50% { border-color: transparent; }
}



/*
----------------------------------------------------------------
Buttons
----------------------------------------------------------------
*/

.view-all {
    text-align: center;
}

.btn-view-all {
    background-color: black;
    color: rgb(0, 176, 0);
    border: solid 1.3px;
    border-color: black;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    margin-top: 40px;
    margin-bottom: 30px;
    font-family: var(--primary-font);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);

    &:hover {
        cursor: pointer;
        background-color: black;
        color: rgb(0, 176, 0);
        border-radius: 10px;
        padding: 10px 15px;
        border: solid 1.3px;
        box-shadow: 0px 0px 5px rgb(71, 88, 222);
        border-color: rgb(71, 88, 222);
        animation: border-fade-in-btn 0.4s forwards, glow-in-btn 0.4s forwards;
    }
}

.bk-to-top-div {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 50px; 
    z-index: 1000; 
}

.bk-to-top-btn {
    background-color: transparent;
    border: none;
    color: rgb(0, 176, 0);
    padding: 15px 15px;
    font-size: 35px;
    margin-top: 25px;
    font-family: var(--site-title-font);

    &:hover {
        cursor: pointer;
    }
}

/*
----------------------------------------------------------------
Animations
----------------------------------------------------------------
*/

@keyframes glow-in {
    0% {
        box-shadow: 0px 0px 0px rgb(0, 176, 0); 
    }
    50% {
        box-shadow: 0px 0px 5px rgb(0, 176, 0); 
    }
}

@keyframes border-fade-in {
    0% {
        border-color: transparent;
    }
    100% {
        border-color: rgba(0, 176, 0, 1); 
    }
}

@keyframes glow-in-btn {
    0% {
        box-shadow: 0px 0px 0px rgb(71, 88, 222);
    }
    50% {
        box-shadow: 0px 0px 5px rgb(71, 88, 222);
    }
}

@keyframes border-fade-in-btn {
    0% {
        border-color: transparent;
    }
    100% {
        border-color: rgb(71, 88, 222);
    }
}

@media screen and (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    footer {
        overflow-x: hidden;
    }

    h2 {
        font-size: 28px;
    }

    input[type="search"] {
        width: 100px;
    }

    .site-header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .site-title {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        align-self: center;
      }

    .site-controls {
        justify-content: center;
        align-self: center;
    }

    /*
    ----------------------------------------------------------------
    Home Page
    ----------------------------------------------------------------
    */
    .posts {
        margin-left: 10%;
        margin-right: 10%;
    }

    .post {
        width: 100%;
        height: 80%;
        flex-direction: column;
    }

    .thumbnail {
        width: 100%;
    }

    .post-info {
        width: 100%;
        margin-top: -25px;
        margin-bottom: 25px;
    }

    .post-title-home {
        font-size: 22px;
        margin-bottom: -2px;
    }

    .blurb {
        font-size: 13px;
    }

    .post-thumbnail {
        width: 100%;
        height: 250px;
        padding-top: 20px;
        object-fit: cover; 
    }

     /*
    ----------------------------------------------------------------
    Blog Post
    ----------------------------------------------------------------
    */
    
    .container {
        margin-left: 5%;
        margin-right: 5%;
        padding-left: 0;
        padding-right: 0;
    }

    .post-title {
        font-size: 20px;
        color: rgb(0, 176, 0);
    }

    .post-body img {
        width: auto;
        height: 400px;
    }

   p {
        font-size: 15px;
   }

   a {
    font-size: 16px;
   }

     /*
    ----------------------------------------------------------------
    Projects
    ----------------------------------------------------------------
    */

    .github {
        display: flex;
        flex-direction: column;
        justify-content: center;
        justify-items: center;
        align-items: center;
        gap: 30px;
        max-width: 100%;
    }

     /*
    ----------------------------------------------------------------
    Contact  
    ----------------------------------------------------------------
    */

    .contact-bg {
        background-image: none;
        width: 30rem;
    }

    #email-addr {
        width: 53%;
    }

    #message-name {
        width: 42%;
    }

    #message-body {
        width: 100%;
    }

    /*
    ----------------------------------------------------------------
    Category Filter 
    ----------------------------------------------------------------
    */

    .categories {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-left: 10%;
        margin-right: 10%;
        padding-top: 50px;
        padding-bottom: 10px;
    }
    
    .category-btn {
        font-size: 13px;
    }
    
    .category-btn.active {
        font-size: 13px;
    }

    .whoami {
        font-size: 40px;
    }
}

@media screen and (max-width: 590px) {
    p {
        line-height: 1.6;
    }

    footer {
        margin-left: 10px;
        margin-right: 10px;
    }

    .web-name {
        font-size: 24px;
    }

    input[type=search] {
        display: none;
    }

    .help-btn {
        display: none;
    }

    .popup-container {
        width: 100%;
        justify-content: center;
    }

    .posts {
        margin-left: 14%;
        margin-right: 14%;
    }

    .blurb {
        margin-top: -10px;
        font-size: 13px;
    }

    .container-container {
        margin-left: 6%;
        margin-right: 6%;
    }

    .container {
        width: 100%; 
    }

    .github-bg {
        overflow-x: hidden;
        background-image: none;
    }

    .gh-box1, .gh-box2, .gh-box3 {
        width: 88%;
        height: 13rem;
    }

    .github-header {
        font-size: 20px;
        margin-top: -20px;
        margin-bottom: -10px;
    }

    .posts-header {
        font-size: 20px;
        margin-bottom: -10px;
    }

    #home, #blog, #about, #help {
        font-family: var(--site-title-font);
        font-size: 30px;
        color: rgb(71, 88, 222);
        margin-top: 0px;
    }

    .contact-bg {
        background-image: none;
        width: 23rem;
        margin: 0 auto; /* Center the container */
    }
    
    .contact {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center; 
    }
    
    #contact-form {
        width: 100%;
        display: flex;
        flex-direction: column; 
        align-items: center;
    }
    
    #form-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #email-addr, #message-name {
        width: 75%;
        margin-right: 0;
    } 
    
    #email-message {
        width: 90%; 
    }
    
    .email-btns {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .site-header {
        flex-direction: row;
        background-color: black;
        justify-content: space-between;
        padding-bottom: 5px;
        padding-top: 5px;
        align-items: center;
        position: relative; 
    }
    
    .site-controls {
        position: fixed;
        top: 0;
        right: -110vw; /* Start completely off-screen */
        height: 100vh; /* Full screen height */
        width: 90vw;  /* Full screen width */
        background-color: rgba(0, 0, 0); /* Solid background */
        flex-direction: column;
        padding: 20px;
        transition: right 0.3s ease-in-out; /* Transition for sliding effect */
        z-index: 1000;
        align-items: center;
        justify-content: center;
        padding-top: 20px;
    }
    
    .site-controls.active {
        right: 0; 
        padding-top: 50px;
    }
    
    .hamburger-menu {
        display: block;
        cursor: pointer;
        padding-right: 20px;
        color: white;
        background: none;
        border: none;
    }

    .close-menu {
        display: block;
        font-size: 40px;
        background: none;
        border: none;
        color: rgb(0, 176, 0);
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
    }
    
    /* Ensure that the rest of the site doesn't shift when menu is opened */
    body.menu-open {
        overflow: hidden;
    }

    .container {
        padding-top: 0;
    }

    .categories {
        padding-top: 30px;
    }

}