:root {
    --white: rgb(255, 255, 255);
    --black: rgb(0, 0, 0);
    --pdf-grey: rgb(50, 54, 57);
    --dark-grey: #292B2E;
    --grey: rgb(70, 74, 77);
    --light-purple: #CCB2FF;
    --dark-purple: #330099;
}

@font-face {
    font-family: "dos";
    src: url(./resources/ModernDOS9x16.ttf);
}


body {
    font-family: monospace;
    background-color: var(--pdf-grey);
    text-align: left;
    color: var(--white);
    margin: 0;
}

/* .page_title {
    height: fit-content;
}

.banner {
    height: 10px;
} */

.navbar {
    width: 100%;
    background-color: var(--dark-grey);
    font-family:'dos', Courier, monospace;
    z-index: 30;
    height: fit-content;
    margin-bottom: 0;
    padding-bottom: 0;
    position: fixed;
  }

.navbar a {
    float: left;
    font-size: 16px;
    color: var(--light-purple);
    text-align: center;
    font-size: 20px;
    padding: 14px 16px;
    text-decoration: none;
    z-index: 400;
}

.gradient-line {
    background-image: linear-gradient(to right, var(--light-purple) 0%, var(--dark-purple) 100%);
    width: 100%;
    height: 4px;
    z-index: inherit;
    position: absolute;
    bottom: 0;
}

/* .dropdown {
    float: left;
    overflow: hidden;
    background-color: var(--grey);
}

.dropdown .dropbtn {
    font-size: 16px;  
    border: none;
    outline: none;
    color: var(--light-purple);
    padding: 14px 16px;
    background-color: var(--black);
    font-family: inherit;
    margin: 0;
} */

.navbar a:hover, .dropdown:hover .dropbtn {
    background-color: var(--grey);
}

/* .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--grey);
    min-width: 160px;
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: var(--light-purple);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    background-color: var(--grey);
    border-style: solid;
    border-width: 2px;
    border-color: var(--grey);
}

.dropdown-content a:hover {
    background-color: var(--pdf-grey);
}

.dropdown:hover .dropdown-content {
    display: block;
} */

nav {
    width: max-content;
    padding: 5px;
}

nav button:hover {
    background-color: var(--pdf-grey);
}

button {
    font-weight: normal;
}

a {
    font-weight: normal;
    font: monospace;
    color: var(--light-purple);
}

.sidenav {
    height: fit-content;
    width: 8%;
    position: fixed; 
    z-index: 1; 
    top: 25.1%;
    right: 3px;
    background-color: var(--black);
    overflow-x: hidden;
    border-radius: 0px;
    border-width: 3px;
    border-color: var(--dark-purple);
    border-style: solid;
}

.sidenav button {
    padding: 8px 8px 8px 8px;
    text-decoration: none;
    font-size: 18px;
    background-color: var(--black);
    color: var(--white);
    border: var(--black);
    width: 100%;
    border-radius: 0px;
}

.sidenav button:hover {
    background-color: var(--pdf-grey);
}

h1 {
    font-family: 'dos', Courier, monospace;
    background-color: var(--black);
    text-align: center;
    color: var(--white);
    margin-bottom: 0px;
    margin-top: 0px;
    padding: 20px;
    border-style: solid;
    letter-spacing: 1px;
    font-size: 40px;
}

h2 {
    font-family: 'dos', Courier, monospace;
    font-size: 30px;
    color: var(--white);
}

h3 {
    font-family: 'dos', Courier, monospace;
    font-size: 30px;
    color: var(--white);
}

p {
    font-family: monospace;
}

.frontpage-subtitle{
    font-size: 20px;
    color: var(--light-purple);
    font-family: 'dos', Courier, monospace;
}

.frontpage-large-text{
    font-size: 40px;
    color: var(--light-purple);
    font-family: 'dos', Courier, monospace;
    font-weight: normal;
}

.frontpage-body{
    width: 70%;
    padding-left: 15%;
    text-align: center;
}

.frontpage-text{
    font-size: 20px;
    color: var(--white);
    font-family: monospace;
}

.frontpage-link{
    font-size: 20px;
    color: var(--light-purple);
    font-family: monospace;
    font-style: italic;
}



/* .clicker {
    background-color: var(--dark-purple);
    padding: 8px 8px 8px 8px;
    text-decoration: none;
    font-size: 18px;
    color: var(--white);
    border: var(--black);
    width: auto;
    border-radius: 0px;
} */

.project_title {
    background-color: var(--black);
    color: var(--light-purple);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.project_title.collapsed:after {
    content: " ⏷";
}
.project_title:not(.collapsed):after {
    content: " ⏵";
}
.project_title:not(.collapsed)+div {
   display:none;
}

.project {
    width: 100%;
    border-width: 3px;
    border-color: var(--dark-purple);
    border-style: solid;
    background-color: var(--pdf-grey);
}

.description-area {
    margin: auto;
    margin-right: 8%;
    overflow: hidden;
    padding: 10px;
}

.description {
    margin: auto;
    width: 100%;
    background-color: var(--pdf-grey);
    text-align:center;
}

.description p {
    width: auto;
    margin-right: 10px;
    margin-left: 10px;
    text-align: center;
}

.description embed {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    height: 300px;
    padding: 10px;
}

.description video {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    height: 300px;
    align-items: center;
    padding: 10px;
}

link {
    display: none;
    font: monospace;
}

object {
    margin: 5px;
}

.resume {
    padding-top: 55px; /* for the header */
    width: 60%;
    margin-left: 20%;
    height: 1200px;
}

/* Portfolio filtering */
.filter_header {
    width: 100%;
    display: inline-block;
    padding: 0;
    padding-left: 5%;
    position: fixed;
    top: 48px; /* Adjusted top value to match the navbar height */
    z-index: 100;
    background-color: var(--pdf-grey);
    margin-top: 0; /* Ensure no margin at the top */
}

.filters {
    width: 84vw;
    margin: 0 0;
    float: left;
}

.filters ul {
    margin-block-start: 0;
    margin-block-end: 0;
}

.filters ul li {
    list-style-type: none;
    display: inline-block;
    margin: 10px 20px 10px 0;
}

.filters ul li p {
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 20px;
    color: var(--white);
}

.filters ul li a {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 1px;
    text-decoration: none;
    display: inline-block;
    font-weight: normal;
    font-size: 20px;
    color: var(--light-purple);
    background-color: var(--pdf-grey);
}

.filters ul li .border {
    border: 1px solid var(--light-purple);
    border-radius: 20px;
    overflow: hidden;
}

.filters ul li a:hover, .filters ul li a:active {
    background-color: var(--grey);
    font-weight: bold;
}

.cards_container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 15px 0;
    padding-left: 5%;
    padding-top: 8%;
    z-index: 0;
    height: auto;
}

.card {
    width: 20vw;
    min-width: 190px;
    height: fit-content;
    margin: 0 1% 2%;
    content: "";
    border-radius: 30px;
    white-space: nowrap;
    overflow: hidden;
}

.card:hover {
    background-color: var(--dark-grey);
}

.card:hover:before {
    background: linear-gradient(180deg,var(--light-purple),var(--dark-purple));
    mask: 
        linear-gradient(#000 0 0) exclude, 
        linear-gradient(#000 0 0) content-box;
}

.card:before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 4px; /* the border thickness */
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--light-purple) 0%, var(--light-purple) 100%);
    mask: 
        linear-gradient(#000 0 0) exclude, 
        linear-gradient(#000 0 0) content-box;
}

.card-img-container {
    text-align: center;
}

.card-img {
    max-height: 300px;
    height: auto;
    max-width: 100%;
    width: auto;
    z-index: 4;
}

.card-description {
    color: var(--white);
    width: 80%;
    padding-left: 10%;
    text-align: center;
    text-wrap: wrap;
}

.card-tags {
    max-width: 100%;
    width: fit-content;
    padding-bottom: 5px;
    text-align: center;
}

.card-tags ul {
    margin-block-start: 0;
    margin-block-end: 0;
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    max-width: 100%;
    width: auto;
}

.card-tags ul li {
    display: inline-block;
    list-style-type: none;
    max-width: 100%;
    width: auto;
    padding-left: 10px;
    padding-bottom: 5px;
}

.card-tags ul li .border {
    border: 1px solid var(--light-purple);
    border-radius: 20px;
    line-height: 1px;
}

.card-tags ul li .border p {
    padding-left: 5px;
    padding-right: 5px;
    display: inline-block;
}

figcaption {
    padding: 5px 15px;
    text-wrap: wrap;
    text-align: left;
    text-decoration: none;
    z-index: 3;
}

.card h3 {
    margin-block-start: 3px;
    margin-block-end: 3px;
    font-family:'dos', Courier, monospace;
    font-size: 1.25em;
    line-height: 1.25em;
    color: var(--white);
    font-weight: normal;
    text-decoration: none;
}

.date {
    font-size: 1em;
    text-align: right;
}

.portfolio-modal {
    position: fixed;
    z-index: 10;
    top: 2em;
    bottom: 0;
    left: 12em;
    right: 12em;
    background: white;
    box-shadow: 0px 0px 30px 2em rgba(0, 0, 0, 0.5);
    overflow-y: scroll;
    overflow-x: hidden;
    overflow: overlay;
    cursor: default;
    display: none;
}

.portfolio-modal.is-open {
    display: block;
}

.portfolio-header:nth-of-type(1) {
    background-image: url(./resources/background.png);
    background-size: cover;
    background-position: center;
}

.portfolio-title-box {
    background: rgba(#54a4db, 0.75);
    padding: 3em 0 3em 3em;
    color: white;
    width: 70%;
}

.portfolio-title {
    font-size: 3em;
    white-space: normal;
    overflow: auto;
}

.portfolio-subtitle {
    font-size: 2em;
    white-space: normal;
    overflow: auto;
}

.portfolio-content {
    text-align: left;
    width: 85%;
    margin: 0 auto;
    padding-bottom: 2em;
    white-space: normal;
    overflow: auto;
}

.text-box:first-child {
    margin-top: 1em;
}

.portfolio-full-width {
    width: 100%;
    max-width: initial;
    object-fit: cover;
}

.multiple-pictures {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.modal-close {
    background: transparent;
    position: fixed;
    cursor: pointer;
    left: calc(14.5em + 0.375vw);
    top: calc(3em + 0.375vw);
    border: 0;
    scale: 80%;
}

.close-svg {
    width: 3vw;
    height: auto;
    max-width: 2em;
    min-width: 1.5em;
}

.portfolio-link {
    z-index: 200;
    text-align: center;
}

/* Project Pages */
.project-page-container{
    padding-top: 55px; /* accounting for the nav bar */
    width: 100%; 
    overflow: hidden; 
    text-align: center;
}

.project-title{
    font-family:'dos', Courier, monospace;
    color: var(--light-purple);
    font-size: 40px;
}

.project-subtitle{
    font-size: 20px;
    color: var(--light-purple);
    font-family: monospace;
}

.project-page-body{
    width: 70%;
    padding-left: 15%;
    text-align: center;
}

.project-page-text{
    font-size: 20px;
    color: var(--white);
    font-family: monospace;
    text-align: left;
}

.project-page-img{
    height: 300px;
    width: auto;
    max-width: 100%;
}

.project-page-vid{
    height: 300px;
    width: auto;
    max-width: 100%;
}

.small-project-headline{
    color: var(--light-purple);
    font-family: monospace;
}

