.cardshadow {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    max-width: none;
    margin: 0;
    margin-bottom: 32px;
}

a[href^='mailto\:']::before {
    content: ''
}

a[href^='mailto\:']::after {
    content: ' 📧'
}

a[href*='resume.']::after {
    content: ' 📃'
}

a[href*='linkedin']::after {
    content: ' 💼'
}

a[href*='github']::after {
    content: ' 🖥'
}

.tags {
    font-weight: 600;
}

/* Global Body Style */

/* Floating-Head styles with mobile layout */

div.sidebar {
    margin: 16px;
}

div.sidebar>a:hover {
    text-decoration: none;
    transform: translate(0px, -5px);
}

div.sidebar h1 {
    margin-bottom: 0px;
    transition-duration: 0.3s;
    transition-property: transform;
    display: inline;
}

div.sidebar h1:hover {
    transform: translate(0px, -2px);
}

div.sidebar h2 {
    padding: 0px;
    margin-top: 0px;
    color: var(--text-muted);
    transform: 0px -5px;
    text-transform: lowercase;
    font-size: 24pt;
    display: inline;
}

div.sidebar h2::before {
    content: '/'
}

div.tags-block {
    padding: 8px;
    background-color: var(--background);
    border-radius: 8px;
    width: fit-content;
    margin-top: 8px;
    max-width: 400px;
}

div.tags-block>a {
    font-size: 16pt;
    margin: 4px;
}

div.sidebar-text {
    border-left-color: var(--scrollbar-thumb);
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 2px;
    padding-left: 8px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
    font-size: 16pt;
    margin-top: 8px;
    max-width: 400px;
}

div.sidebar-text>p {
    margin: 8px;
}

div.sidebar textarea {
    margin-left: auto;
    max-width: 75%;
}

div.sidebar input[type='submit'] {
    margin-top: 16px;
}

img.avatar {
    vertical-align: middle;
    border-radius: 20px;
    height: 150px;
    width: 150px;
    min-width: 150px;
    display: inline-block;
}

img.project_thumb {
    vertical-align: middle;
    border-radius: 20px;
    display: inline-block;
    height: auto;
    width: auto;
    max-width: 300px;
    display: inline-block;
}

/* Main content styles with layout for mobile */

div#content {
    grid-area: content;
    margin-top: 8px;
    padding: 8px;
    margin-left: 8px;
    margin-right: 8px;
}

div#projects {
    max-width: fit-content;
}

div#projects-grid {
    text-align: center;
}

div#projects-grid>a:hover {
    text-decoration: none;
}

.browsemore {
    display: block;
    grid-column: 1/-1;
    padding: 16px;
    padding-top: 0px;
    transition: 0.3s;
    transition-property: transform;
    justify-self: center;
    max-width: 60%;
    min-width: fit-content;
    width: 100%;
}

.browsemore:hover {
    transform: translate(0px, -1px);
}

/* Project Specific Stylings */

div.project {
    display: inline-block;
    width: 90%;
    max-width: 350px;
    height: 400px;
    background-color: white;
    color: black;
    border-radius: 16px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    transition-property: box-shadow, transform;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.19), 0 6px 20px 0 rgba(0, 0, 0, 0.02);
    /*cursor: pointer;*/
    margin: 16px;
    text-align: left;
}

div.project:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transform: translate(0px, -10px);
}

div.project>img {
    line-height: 0px;
    height: 150px;
    width: 100%;
    object-fit: cover;
}

div.project>.desc {
    margin: 8px;
}

div.desc>h2 {
    color: black;
    margin: 0px;
}

div.desc>h3 {
    color: slategray;
    margin: 0px;
}

.squishable {
    display: none;
}

div.center-all {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    height: 100vh;
}

div.content-text {
    border-radius: 16px;
    background-color: var(--background-alt);
    padding: 8px;
}

div.sidebar-data {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

div.sidebar-child-data {
    margin: 8px;
}


/* On screen that are tablet-size, we adjust the floating head to be bigger, 
   move the button around, and make the projects go back into grid mode */

@media only screen and (min-width: 768px) {
    /* Squishable Entries should be un-squished at this point */
    .squishable {
        display: inherit;
    }
    .squish-alt {
        display: none;
    }
    div.sidebar-text {
        font-size: 12pt;
    }
    div#projects-grid {
        display: inline-grid;
        grid-template-columns: repeat(auto-fit, 270px);
        min-width: 50vw;
    }
    /* Adjust the scale of projects to be more useful, laid out in a grid */
    div.project {
        width: 250px;
        height: 400px;
    }
    div.project>img {
        height: 200px;
        width: 350px;
    }

    img.project-thumb {
        max-width: 375px;
    }
}

/* At desktop-scale, we turn on the grid display, make the head float, and swap
   direction of the floating head text */

@media only screen and (min-width: 1185px) {
    /* Enable CSS grid display */
    div.columner {
        display: grid;
        grid-template-columns: 30% 70%;
        grid-template-rows: auto;
        grid-template-areas: "sidebar content";
    }
    /* make the head float, making it sticky! */
    div.sidebar {
        text-align: right;
        grid-area: sidebar;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        align-self: flex-start;
    }
    div.tags-block {
        margin-left: auto;
    }
    /* Swap the direction of the sidebar-text */
    div.sidebar-text {
        margin-top: 8px;
        border-right-color: var(--scrollbar-thumb);
        border-right-width: 4px;
        border-right-style: solid;
        border-left-color: var(--scrollbar-thumb);
        border-left-width: 0px;
        border-left-style: solid;
        border-radius: 2px;
        padding-right: 8px;
        padding: 4px;
        display: block;
        margin-left: auto;
    }
    div.sidebar-data {
        justify-content: flex-end;
        flex-direction: column;
        justify-items: flex-end;
        align-content: stretch;
        align-items: flex-end;
    }
    

    div.sidebar input {
        margin-left: auto;
    }

    div.sidebar h1 {
        display: block;
    }

    div.sidebar h2 {
        display: block;
    }

    /* Make me bigger, and right-aligned */
    div.sidebar img.avatar {
        display: block;
        text-align: right;
        margin-left: auto;
        width: 375px;
        height: 300px;
        object-fit: cover;
        object-position: top center;
    }
    /* Shift the bio down the page a little bit to line up with the profile
       image */
    div.content {
        grid-area: content;
        margin-top: 75px;
        padding-left: 8px;
    }
    div.content-text {
        max-width: 900px;
        padding: 16px;
    }
    div#projects-grid {
        grid-template-columns: repeat(auto-fit, 370px);
    }
    /* Adjustments to project widths, and hero images */
    div.project {
        width: 350px;
    }
    div.project>img {
        height: 200px;
        width: 350px;
    }

    div.tags-block {
        max-width: 375px;
    }
}

/* --- Water.css has an issue where it doesn't include the dialog styles. I've included them here */

dialog {
    background-color: var(--background-alt);
    color: var(--text-main);
    border: none;
    border-radius: 6px;
    border-color: var(--border);
    padding: 10px 30px;
}

dialog>header:first-child {
    background-color: var(--background);
    border-radius: 6px 6px 0 0;
    margin: -10px -30px 10px;
    padding: 10px;
    text-align: center;
}

dialog::backdrop {
    background: #0000009c;
    backdrop-filter: blur(4px);
}