html {
    scroll-behavior: smooth;
}

ul {
    padding-left: 0px;
}

li {
    font-size: 18px;
}

h1 {
    text-align: left;
    font-weight: 600;
}

img{
    /* Disable image highlight */
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

#content {
    position: relative; 
    z-index: 1;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

#sketch-canvas {
    width: 100%;
    height: 50px;
    z-index: -1;
}

#sketch-canvas-astroid {
    width: 100%;
    height: 400px;
}

#sketch-canvas-astroid canvas {
    border: var(--fg-color) 3px solid;
    border-radius: 26px;
    filter: brightness(50%);
    transition: transform 0.3s ease;
}

#sketch-canvas-astroid canvas:hover {
    filter: brightness(100%);
    transform: scale(1.01);
    /* border: none; */
}

#profile-pic {
    border-radius: 50%; 
    width: 150px; 
    margin-top: 50px;
    margin-bottom: 50px;
    z-index: 1;
}

#intro-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-entry {
    margin-top: 0px; 
    margin-bottom: 0px; 
    font-size: 18px;
}

.centered { 
    display: flex;
    justify-content: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 16px;
}

.card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card > img {
    border-radius: 26px;
    filter: brightness(50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border: var(--fg-color) solid 3px;
}

.card:hover > img {
    filter: brightness(100%);
    transform: scale(1.05);
    border: none;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.card:hover > .card-overlay {
    /* display: none; */
    opacity: 0;
}

.card-title { 
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 6px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--tag-color, var(--fg-color)); /** #e91e63;*/
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 15px;
    color: black;
}

.sub-tag {
    background: grey; /** #e91e63;*/
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--tag-color, white);
    font-style: italic;
}

.details {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(55, 55, 55, 0.75); /** rgba(255, 255, 255, 0.75)*/
    padding: 40px;
    display: none;
    z-index: 100;
    cursor: default;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.detail-content {
    position: relative;
    max-width: 1350px;  /* 1350px; /* 600px */
    margin: auto;
    background: black; /* Change this */
    padding: 20px;
    display: flex;
    align-items: center;
    flex-wrap: center;
    gap: 20px;
    border-radius: 20px;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.detail-header {
    border-bottom: var(--fg-color) 1px; 
    border-top: 0px; 
    border-left: 0px; 
    border-right: 0px; 
    border-style: dotted;
    margin-top: 25px;
    margin-bottom: 0px
}

.detail-content p,
.detail-content li,
.detail-content li a,
.detail-content p a {
    font-size: 20px;
}

.detail-content-container {
    flex: 1; 
    padding: 30px;
}

li a, p a {
    font-size: 20px;
}

.fullscreen-button {
    font-size: 24px;
    color: darkgrey;
    text-decoration: none;
}

.fullscreen-button:hover {
    color: var(--link-color);
    cursor: pointer;
}

.inline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;   
    justify-content: center;
}

.padded {
    max-width: 70%;
}

.row {
    display: flex;
    justify-content: center;
}

.button {
    margin: 1rem;
}

.title-tagline { 
    text-align: left;
    margin-top: 12px;
}

#cv-embed {
    width: 80%;
}

#about-section {
    margin-bottom: 50px;
}

.header-marker {
    color: grey;
    font-size: 24px;
    vertical-align: center;
    margin-right: 12px;
}

.section-start {
    margin-top: 200px;
}

.button {
    font-size: 14pt;
    text-align: center;
    text-decoration: none;
    color: var(--fg-color);
    background-color: var(--bg-color); 
    border: 1px solid var(--fg-color);
    padding: 15px 72px;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    #content { 
        padding: 0px;
    }

    .card-grid {
        grid-template-columns: repeat(1, minmax(300px, 1fr));
        gap: 32px;
    }

    .detail-content {
        display: block;
    }

    .detail-image {
        display: none;
    }

    .details {
        padding-left: 0px;
        padding-right: 0px;
    }

    .detail-content-title h1 {
        margin-top: 0px;
        text-align: center;
    }

    .inline-list {
        flex-wrap: wrap;
    }

    .card-title {
        font-size: 25px;
        text-align: center;
    }

    .tags {
        gap: 6px;
        margin-top: 5px;
        justify-content: center;
    }

    .tag, .sub-tag {
        font-size: 14px;
    }

    .close-btn {
        top: -5px;
        font-size: 45px;
    }

    .padded {
        max-width: 100%;
    }

    .row {
        display: flex;
        flex-direction: column;
    }

    .button {
        margin: auto;
        margin-top: 20px;
    }

    #cv-embed {
        width: 100%;
    }

    #contact-section {
        text-align: left;
    }

    .detail-content-container {
        padding: 10px;
    }

    #intro-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #profile-pic {
        width: 92px;
        margin-bottom: 20px;
    }
    
    .section-start {
        margin-top: 60px;
    }
}