body {
    font-family: "Gill Sans", sans-serif;
    background-color: black;
    margin: 0;
    padding: 0;
    color: white;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent; /* Remove background color */
}

.nav-item {
    position: relative;
    display: flex;
}

.nav-item button {
    background-color: rgb(65, 105, 225, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 40px; /* Adjust size for mobile */
    height: 40px; /* Adjust size for mobile */
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
}

.nav-item button:hover {
    background-color: rgb(233, 205, 49);
}

.nav-links {
    display: none;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    width: auto;
}

.nav-links a {
    background-color: black;
    color: white;
    text-decoration: none;
    display: inline-block;
    padding: 12px 16px;
    text-align: left;
}

.nav-links a:hover {
    color: rgb(255, 0, 0, 0.5);
    text-decoration: line-through;
}

.nav-links a.special-link {
    font-family: Consolas, monospace;
    font-size: 15px;
}

.nav-links a.special-link:hover {
    color: rgb(252, 122, 0);
    text-decoration: none;
}

.content {
    display: none;
    text-align: center;
    color: white;
}

.content.active {
    display: block;
}

#portfolio {
    border: 2px ridge rgba(1, 1, 1, 0.5);
    padding: 5px;
    margin: 10px auto;
    max-width: 421px;
}

.post {
    padding: 5px;
    margin-bottom: 20px;
    /* border: 1px ridge rgba(255, 105, 180, 0.5); */
}

.post-header {
    border-bottom: 1px solid rgb(165, 0, 162, 0.5);
    padding: 2px;
    margin-bottom: 10px;
    background-color: black;
}

#portfolio h1 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 1px;
    color: rgb(65, 105, 225, 0.7);
    text-align: left;
}

#portfolio h2 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: rgb(135, 206, 250, 0.6);
    text-align: left;
}

#portfolio p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: darkgrey;
    text-align: left;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    grid-template-rows: repeat(4, 1fr); /* 4 rows */
    gap: 0; /* No gap between items */
    width: 600px;
    height: 600px;
    margin: 0 auto;
}

.grid-item {
    width: 150px;
    height: 150px;
}

#contact form {
    max-width: 600px;
    margin: 20px auto;
}

#contact label {
    display: inline-block;
    width: 100px;
}

#contact input,
#contact textarea {
    background-color: black;
    color: darkgrey;
    border: 2px solid rgba(65, 105, 225, 0.7);
    width: 400px;
    padding: 8px;
    box-sizing: border-box;
}

#contact textarea {
    height: 150px;
}

#contact button {
    background-color: rgba(65, 105, 225, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

#contact button:hover {
    background-color: lightskyblue;
}

/* Mobile Styling */
@media (max-width: 700px) {
    #contact form {
        width: 95%;
    }

    #contact input,
    #contact textarea {
        width: 100%;
        margin-bottom: 10px;
    }

    #contact label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }

    p {
        width: 100%;
    }

    .nav-links {
        display: none;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        flex-direction: column;
        align-items: center;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .nav-item button {
        width: 40px; /* Adjust size for mobile */
        height: 40px; /* Adjust size for mobile */
        aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
        animation: blink 3s infinite;
    }

    #home, #portfolio, #bio, #contact {
        width: 100%;
        border: 0;
        /* padding: 10px; */
    }

    .post {
        width: 100%;
        border: 0;
    }

    .grid-container {
        width: 100%;
        height: auto;
    }

    .grid-item {
        width: 100%;
        height: auto;
    }
}

@keyframes blink {
    0%, 100% {
        background-color: rgb(65, 105, 225, 0.7);
    }
    50% {
        background-color: rgb(233, 205, 49);
    }
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: rgb(255, 0, 0, 0.5);
    text-decoration: line-through;
}
