@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');
:root{
    margin: 0;
    padding: 0;
    border: 0;
}
body {
    background-image: url("/images/bglight.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #232629;
}
h1,h2,h3,h4,h5,h6 {
    margin: 0;
}
.app {
    width: 60vw;
    min-width: 800px;
    min-height: 90vh;
    max-width: 1000px;
    background-color: #fcfcfc;
    margin: 10vh auto 0;
    opacity: 0;
    transition: opacity 100ms ease-in-out;
}

.app.visible {
    opacity: 1;
}
.capp {
    width: 60vw;
    min-width: 400px;
    min-height: 40vh;
    max-width: 1000px;
    background-color: #fcfcfc;
    margin: auto;
    border: 0;
}
.window {
    border-radius: 5px 5px 0px 0px;
}
.fwindow {
    border-radius: 5px;
}
.title-bar{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0.5rem;
}

.title-bar-text{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 10rem);
}

.title-bar-controls{
    display: flex;
    gap: 0.25rem;
}

.title-bar-controls button{
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
}
.header{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
}
.profile-pic {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    object-fit: cover;
}
#socials{
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}
.content {
    padding: 0 1.2rem 1.2rem 1.2rem;
}
.card{
    background-color: #eff0f1;
    border-radius: 5px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
}
.project-detail-button,
.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 4px;
    background-color: #232629;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease-in-out;
}
.project-detail-button:hover,
.project-button:hover {
    background-color: #000;
}
.project-detail-image {
    width: 100%;
    max-height: 18rem;
    object-fit: cover;
    border-radius: 5px;
    margin: 0.75rem 0;
}
.project-detail-buttons {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}
dialog{
    padding: 0;
    margin: 0;
    border: none;
}
dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

#site-footer {
    text-align: center;
    font-size: 0.8em;
    opacity: 0.75;
    color: inherit;
    margin: 1rem auto 2rem;
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}
#post{
    background: #000;
    position: fixed !important;
    inset: 0 !important; /* top:0; right:0; bottom:0; left:0; */
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box;
    margin: 0;
    overflow: hidden;
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #fff;
    padding: 0.7rem;
}
#post img {
    height: 30vh;
    max-height: 150px;
    width: auto;
}
#post p {
    margin-top: 0;
    margin-bottom: 0;
}

#socialmodal {
    opacity: 0;
    transition: opacity 100ms ease-in-out;
    pointer-events: none;
}

#socialmodal.visible {
    opacity: 1;
    pointer-events: auto;
}

#socialmodal::backdrop {
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 100ms ease-in-out;
}

#socialmodal.visible::backdrop {
    opacity: 1;
}

@media (prefers-color-scheme: dark) {
    body {
        background-image: url("/images/bgdark.webp");
        color: #fcfcfc;
    }
    .app, .capp {
        background-color: #232629;
        color: #fcfcfc;
    }
    .card {
        background-color: #1b1e20;
    }
}

@media (max-width: 930px) {
    .app {
        margin-top: clamp(0px, calc((100vw - 800px) / 1.3), 10vh);
    }
}

@media (max-width: 800px) {
    .app, .capp {
        width: 100%;
        min-width: 0;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    #main {
        border-radius: 0;
    }
    .content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}