@import "./styles.css";


:root{
    --h-title-color:#111111;
    --nav-accent-color:#d8dadd;
    --muted-code-color:#6c757d;
}

.header {
    border-bottom: solid 2px var(--nav-accent-color) !important;
    z-index: 10000;
}

#mainNav .navbar-brand:hover,
#mainNav .navbar-brand:active,
#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
    color: var(--nav-accent-color) !important;
}

.bg-bottom {
    background-color: var(--h-title-color);
}

.top-section {
    position: relative;
    padding: 5rem 0;
    background-position: center;
    background-size: cover;
    height: 12.5rem;
}

.top-section h2 {
    font-weight: 400;
}

.top-section .top-section-content {
    position: relative;
    z-index: 1;
}

.top-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

section header h2{
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    color: var(--h-title-color);
    font-size: 1.8rem;
    line-height: 2.4rem;
}

section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

#home {
    padding-top: 5.25rem;
}

section .main-body{
    font-size: 1.1rem;
    font-weight: 200;
    line-height: 1.7rem;
}

section .main-body p {
    margin-bottom: 0.75rem;
}

section .main-body code {
    color: var(--muted-code-color) !important;
}

section .main-body h3 {
    font-size: 1.3rem;
}

section .main-body h4 {
    font-size: 1.15rem;
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
        "title ."
        "overview details";
    gap: 2.5rem;
    row-gap: 0;
    align-items: start;
}

.home-grid h2 {
    color: var(--h-title-color);
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.8rem;
    line-height: 2.4rem;
    margin-bottom: 0.75rem;
}

.home-grid h4:first-child {
    margin-top: 0;
}

.home-title {
    grid-area: title;
}

.home-overview {
    grid-area: overview;
}

.home-details {
    grid-area: details;
}


.bg-gradient-primary-to-secondary-light {
    background: linear-gradient(45deg, #fcfcfc, #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background: linear-gradient(45deg, #f0f0f0, #f1f1f1) !important;
}



.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: fill;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}


#avatar {
    position: relative;
    height: 0;
    top:min(-65px,max(-100px,calc(-1*100vw/12)));
    max-width: 55em;
    margin: 0 1.5rem 0 0;
    float: right;
    z-index: 9000;
}

#avatar img {
    height: max(130px,min(200px,calc(100vw/6)));
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 991px) {
    #avatar {
        margin: 0;
    }

    #home {
        padding-top: 4.25rem;
    }

    .home-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "overview"
            "details";
        gap: 0.75rem;
    }
}


