@font-face {
    font-family: SourceCodePro;
    src: url('SourceCodePro-VariableFont_wght.ttf') format('opentype');
}

body {
    font-family: SourceCodePro, monospace;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    min-height: 100vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dark-mode-toggle {
    position: fixed; 
    display: flex;
    margin: auto;
    top: 10px; 
    right: 10px; 
    z-index: 1000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color:rgb(43, 43, 43)
}

#resume-button {
    position: fixed; 
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: medium;
    font-weight: bold;
    margin: auto;
    top: 10px; 
    left: 10px; 
    z-index: 1000;
    border: none;
    width: 110px;
    height: 50px;
    border-radius: 25px;
    background-color:rgb(43, 43, 43)
}

#download-img {
  max-width: 24px; 
  max-height: 24px;  
  padding-left: 4px;
  height: auto;     
  display: block;  
}

body.dark-mode #resume-button {
    color: rgb(43, 43, 43);
    background-color:rgb(209, 209, 209)
}

#download-img {
  max-width: 24px; 
  max-height: 24px;  
  padding-left: 4px;
  height: auto;     
  display: block;  
}

body.dark-mode #dark-mode-toggle {
    position: fixed; 
    display: flex;
    margin: auto;
    top: 10px; 
    right: 10px; 
    z-index: 1000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color:rgb(209, 209, 209)
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.landing {
    transition: background-color 0.3s ease;
}

#dark-mode-toggle img {
    width: 100%;
    margin: auto;
}

body.dark-mode {
    font-family: SourceCodePro, monospace;
    margin: 0;
    padding: 0;
    background-color: #202020;
    color: white;
    min-height: 100vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.landing {
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .landing {
    background-color: rgb(43, 43, 43);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* DESKTOP */
@media (min-width: 601px) {
    .content {
        width: 100%;
        padding: 50px;
        box-sizing: border-box;
        margin: auto;
    }


    .landing {
        display: flex;
        text-align: left;
        width: 70%;
        min-width: 800px; 
        margin: auto;
        line-height: 1.5;
    }

    body.dark-mode .landing {
        display: flex;
        text-align: left;
        width: 70%;
        min-width: 800px; 
        margin: auto;
        line-height: 1.5;
    }

    .text {
        width: 55%;
        padding: 10px;
    }

    h1 {
        font-size: 36px;
        font-weight: bold;
        margin: 0;
        text-transform: lowercase;
    }

    .subtitle {
        font-size: 18px;
        color: gray;
        margin: 10px 0;
    }

    body.dark-mode .subtitle {
        font-size: 18px;
        color: rgb(211, 211, 211);
        margin: 10px 0;
    }

    .description {
        font-size: 14px;
        color: #333;
    }

    body.dark-mode .description {
        font-size: 14px;
        color: #dbdbdb;
    }

    .links > a {
        color: black;
        text-decoration: underline;
        font-weight: bold;
        font-size: 14px;
    }

    body.dark-mode .links > a {
        color: rgb(210, 210, 210);
        text-decoration: underline;
        font-weight: bold;
        font-size: 14px;
    }

    .links > a > img {
        width: 16px;
        text-decoration: none;
    }

    .links > a:hover {
        font-size: 15px;
    }
    
    .headshot {
        width: 45%;
        position: relative;
        overflow: hidden;
    }

    .headshot img {
        width: 115%;
        height: 130%;
        object-fit: cover; 
        object-position: 40% -100px;
    }

    .mobile-headshot {
        display: none;
    }

    .name {
        display: flex;
    }

    #cursor {
        margin: auto;
        margin-left: 15px;
        object-fit: cover;
        height: 44px;
        width: 20px;
    }

    /* PROJECTS */
    .project_page {
        box-sizing: border-box;
        padding: 10px;
        width: 100%;
    }

    .project {
        width: 100%;
        display: flex;
        flex-direction: row;
        height: auto;
        min-height: 250px;
    }

    body.dark-mode .project a {
        color: #589eff
    }

    .project_desc {
        width: 60%;
    }

    .project_desc > .subtitle {
        color: black;
        margin-bottom: 0;
    }

    body.dark-mode .project_desc > .subtitle {
        color: rgb(210, 210, 210);
        margin-bottom: 0;
    }

    .date {
        color: gray;
        margin-top: 2px;
    }

    body.dark-mode .date {
        color: rgb(178, 178, 178);
        margin-top: 2px;
    }

    .project_img {
        margin: auto;
        width: 40%;
    }

    #project_separator {
        width: 100%;
        border-width: 0;
        height: 1.5px;
        color: black;
        background-color: black;
    }

    body.dark-mode #project_separator {
        width: 100%;
        border-width: 0;
        height: 1.5px;
        color: rgb(236, 236, 236);
        background-color: rgb(236, 236, 236);
    }

    .img_container {
        max-width: 250px;
        max-height: 250px;
        margin: auto;
    }

    .img_container > img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }

    /* BLOG */

    .blog_page {
        padding: 10px;
    }

    .blog {
        display: flex;
        width: 100%;
        flex-direction: row;
        height: auto;
    }

    .blog_desc {
        width: 60%;
    }

    .blog_desc > .subtitle {
        color: black;
    }

    body.dark-mode .blog_desc > .subtitle {
        color: rgb(236, 236, 236);
    }

    #no-underline {
        text-decoration: none;
    }

    #no-underline:hover > img {
        text-decoration: none;
        width: 18px;
    }

    .blog_button_side {
        width: 40%;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .blog_button {
        margin: auto;
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 15px;
        background-color: #9e9e9e;
        text-decoration: none;
        color: black;
    }

    .blog_button {
        margin: auto;
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 15px;
        background-color: #434343;
        text-decoration: none;
        color: rgb(236, 236, 236);
    }

    .blog_button:hover {
        background-color: #6f6f6f;
        color: white;
    }

    body.dark-mode .blog_button:hover {
        background-color: #a1a1a1;
        color: rgb(22, 22, 22);
    }

    /* WORK */
    .work_page {
        padding: 10px;
        width: 100%;
    }

    .work {
        display: flex;
    }

    .work_title {
        width: 40%;
        overflow: hidden;
        font-weight: bold;
    }

    .work_desc_side {
        width: 60%;
        padding: 10px;
        box-sizing: border-box;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .work_desc_side > .descripiton {
        margin: auto;
    }

    .work_title > .subtitle {
        color: black;
        margin-bottom: 0;
    }

    body.dark-mode .work_title > .subtitle {
        color: rgb(236, 236, 236);
        margin-bottom: 0;
    }

    .work_title > img {
        max-width: 50%;
        margin: auto;
    }

    .projects-icon {
        width: 16px;
        height: 16px;
        padding-right: 10px;
    }

    .projects-btn {
        display: inline-flex;
        flex-direction: row;
        padding: 4px;
        align-items: center;
        border-radius: 10px;
        background-color: rgb(232, 232, 232);
        width: auto;
        text-decoration: none;
        color: black;
    }

    .projects-btn:hover {
        display: inline-flex;
        flex-direction: row;
        padding: 4px;
        align-items: center;
        border-radius: 10px;
        background-color: rgb(211, 211, 211);
        width: auto;
    }

}



/* MOBILE */
@media (max-width: 600px) {
    .body {
        width: 100%;
    }
    .content {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        margin: auto;
    }

    .landing {
        padding: 10px;
    }

    .text {
        padding: 5px;
    }

    .name {
        display: flex;
    }

    .name > h1 {
        font-size: 30px;
    }

    #cursor {
        margin: auto;
        margin-left: 15px;
        object-fit: cover;
        height: 40px;
        width: 18px;
    }

    .subtitle {
        font-size: 18px;
        color: gray;
        margin: 0 0;
    }

    body.dark-mode .subtitle {
        font-size: 18px;
        color: rgb(89, 89, 89);
        margin: 0 0;
    }

    .description {
        font-size: 14px;
        color: #333;
    }

    body.dark-mode .description {
        font-size: 14px;
        color: #cdcccc;
    }

    .links > a {
        color: black;
        text-decoration: underline;
        font-weight: bold;
        font-size: 14px;
    }

    body.dark-mode .links > a {
        color: rgb(226, 226, 226);
        text-decoration: underline;
        font-weight: bold;
        font-size: 14px;
    }

    .links > a:hover {
        text-decoration: none;
        font-size: 15px;
    }

    img {
        max-width: 100%;
    }

    .links > a > img {
        max-width: 20px;
    }

    #no-underline {
        text-decoration: none;
    }


    .work_title > img {
        width: 50%;
        align-self: center;
    }
    
    .project_img > .img_container > img {
        width: 50%;
    }

    #mobile-headshot {
        padding-top: 10px;
    }

    .projects-icon {
        width: 16px;
        height: 16px;
        padding-right: 10px;
    }

    .projects-btn {
        display: inline-flex;
        flex-direction: row;
        padding: 4px;
        align-items: center;
        border-radius: 10px;
        background-color: rgb(232, 232, 232);
        width: auto;
        text-decoration: none;
        color: black;
    }

    .projects-btn:hover {
        display: inline-flex;
        flex-direction: row;
        padding: 4px;
        align-items: center;
        border-radius: 10px;
        background-color: rgb(211, 211, 211);
        width: auto;
    }

}