/* 1. The Master Container */
.container {
    display: flex;
    flex-direction: column; /* Stack Top Box above the Row */
    gap: 20px;              /* The 'magic' space between boxes */
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

#top-box {
    background-color: var(--box-color);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#audio-control {
    margin-left: auto;
}

/* 3. The Wrapper for the Bottom Two Boxes */
.bottom-row {
    display: flex;
    flex-direction: row;    /* Put Left and Right next to each other */
    gap: 20px;
    width: 100%;
    height: auto;          /* Let height be determined by content */
    align-items: flex-start; /* Aligns the top of the boxes */
    border-radius: 10px;
}

#left-box {
    background-color: var(--box-color);
    padding: 15px;
    border-radius: 10px;
    flex: 3;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

#right-box {
    flex: 7;                /* Takes 7 parts of the space (~70%) */
    background-color: var(--box-color);
    min-height: 500px;
    padding: 15px 15px 15px 30px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
}

body{
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* This centers your container on huge screens */
}

#img-holder img{
    border: 4px solid var(--accent-color);
    border-radius: 10px;
    max-width: 70%;
    height: auto;
}

#img-holder{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-top: 20px;
}

#image-caption {
    margin-top: 10px;
    text-align: center;
    color: var(--accent-color);
    font-family: JetBrains Mono, monospace;
    font-size: 16px;
    font-weight: 500;
}

#contact{
    text-align: center;
}

.social-icon{
    width: 40px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(90%) sepia(34%) saturate(191%) hue-rotate(108deg) brightness(95%) contrast(93%);         /* https://angel-rs.github.io/css-color-filter-generator/ */
}

.social-icon-small{
    width: 25px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(90%) sepia(34%) saturate(191%) hue-rotate(108deg) brightness(95%) contrast(93%);         /* https://angel-rs.github.io/css-color-filter-generator/ */
}

.social-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nav-icon{
    flex: 4;
    text-align: center;
    display: flex;
    justify-content: right;
    align-items: center;
    height: 100%;
    margin-right: 49px;
}







.bottom-row2{
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.sub-container{
    background-color: var(--box-color);
    padding: 10px;
    border-radius: 10px;
    flex: 10;
    min-height: 7px;
    display: flex;
    flex-direction: column;
}









/* 4. Responsive (Mobile) */
@media screen and (max-width: 768px) {
    .bottom-row {
        flex-direction: column; /* Stacks Left and Right on top of each other */
        align-items: stretch;
        height: auto; /* Let height be determined by content */
    }
    #top-box{
        height: auto; /* Let height be determined by content */
    }
    #left-box {
        min-height: auto; /* Optional: removes the 500px empty space on mobile */
        white-space: pre-wrap;     /* Keeps your JSON indents but allows wrapping */
        overflow-wrap: break-word; /* Forces long text like "Quan Hieu" to wrap to the next line */
    }

    #right-box {
        min-height: auto;
        padding-left: 15px; /* Resetting that 30px left padding you had for desktop */
    }
    .social-container{
        white-space: normal;
        display: flex;
        justify-content: center;
        gap: 20px;

    }
    .bottom-row, .bottom-row2 {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }
}

:root{
    --bg-color: #3b4a62;
    --box-color: #313e55;
    --accent-color: #fe9841;
    --action-color: #bbe9e0;
}

.text-primary {
    color: var(--accent-color);
    font-family: JetBrains Mono, monospace;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
}
.text-highlight{
    color: var(--action-color);
    font-family: JetBrains Mono, monospace;
    font-size: 18px;
    font-weight: 400;
}
.text-double-highlight{
    color: var(--action-color);
    font-family: JetBrains Mono, monospace;
    font-size: 24px;
    font-weight: 600;
}

