/***********/
/* GENERAL */
/***********/

html {
    margin: 0;
}

body {
    margin: 0;
    background: #0F0E14;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #526A6D #0F0E14;
}

/*chromium*/
body::-webkit-scrollbar {
    width:0.2vw;
    background-color: #0F0E14;
}

body::-webkit-scrollbar-track {
    background-color: #526A6D;
    }

body::-webkit-scrollbar-thumb {
    background-color: #526A6D;
}

.all_content{
    margin-top:2.3vw;
    margin-bottom:3vw;
    margin-left:5vw;
    margin-right:5vw;
    display: flex;
    justify-content: center;

    /*background: green;*/
}

/***************/
/* TYPOGRAPHY  */
/***************/

.micro-5-regular { font-family: "Micro 5", sans-serif; font-weight: 400; font-style: normal; }

.dm-mono-light { font-family: "DM Mono", monospace; font-weight: 300; font-style: normal; }

.dm-mono-regular { font-family: "DM Mono", monospace; font-weight: 400; font-style: normal; }

.dm-mono-medium { font-family: "DM Mono", monospace; font-weight: 500; font-style: normal; }

.dm-mono-light-italic { font-family: "DM Mono", monospace; font-weight: 300; font-style: italic; }

.dm-mono-regular-italic { font-family: "DM Mono", monospace; font-weight: 400; font-style: italic; }

.dm-mono-medium-italic { font-family: "DM Mono", monospace; font-weight: 500; font-style: italic; }


/****************/
/* COMMON TAGS  */
/****************/

h1 {
    display:flex;
    align-items: center;
    height:2.5vw;
    margin: 0;


    color: #E6FCFF;
    font-family: "Micro 5";
    font-size: 1.7vw;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    cursor: default;

    /*background: red;*/
}

h2 {
    margin: 0;
    max-width:22vw;
    padding: 0.6vw 1vw;

    color: #526A6D;
    text-align: center;
    font-family: "Micro 5";
    font-size: 1.5vw;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    /*background: magenta;*/
}

h3 {
    margin: 0;
    padding: 0.3vw 1vw;

    color: #526A6D;
    text-align: left;
    font-family: "Micro 5";
    font-size: 1.5vw;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    text-decoration: none;
}

h4 {
    color: #E6FCFF;
    font-family: "Micro 5";
    font-size: 1.3vw;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

p {
    margin: 0;
    padding: 0.8vw 1vw;
    display: grid;

    color: #526A6D;
    font-family: "DM Mono";
    font-size: 0.9vw;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    /*background: pink;*/
}

/********/
/* LEFT */
/********/
.profile {
    gap:1.4vw;
    margin-right:0.7vw;
    display: grid;
    justify-content: center;
    align-content: center;

    /*background: orange;*/
}

.pfp {
    margin: 0;
    padding: 0;
    gap: 0;

    border: 2px solid #526A6D;

    /*background: yellow;*/
}

.pfp img {
    margin: 0;
    padding: 0;
    gap: 0;
    width: 100%;
    max-width:22vw;
}

.pfp h1 {
    justify-content: right;
    max-width:22vw;
    padding: 0.1vw 1vw;
    text-align: right;
    border-top: 2px solid #526A6D;
}

.about {
    margin: 0;
    padding: 0;
    max-width:22vw;
    border: 2px solid #526A6D;
    /*background: yellowgreen;*/
}

.about h1 {
    padding: 0.01vw 1vw;
    justify-content: right;
    text-align: right;

    border-bottom: 2px solid #526A6D;
}

.last_update {
    height:2.5vw;
    display:flex;
    align-items: center;
    max-width:22vw;

    border: 2px solid #526A6D;
    /*background: yellowgreen;*/
}

.last_update h2 {
    width:50%;
    display: flex;
    justify-content: center;
    max-height: 60%;

    border-right: 2px solid #526A6D;
}

.last_update p {
    width:50%;
    display: grid;
    place-items: center;
}

/* PFP BUTTONS */
.pfp_button_container {
    display:flex;
    justify-content: center;
    margin: 0;
    gap:0.5vw;
    /*background: yellow;*/
}

.pfp_button {
    display:flex;
    align-items: center;
    justify-content: center;
    margin:0;
    width:40%;
    height:2.5vw;

    background: #0F0E14;
    border: 2px solid #7DFDA1;

    text-align: center;
    padding:0.8vw;
    cursor: pointer;
}

.pfp_button:hover h1{
    color:#7DFDA1;
    cursor: pointer;
}

.pfp_button:active {
    border: 2px solid #7DFDA1;
    background: #7DFDA1;
}

.pfp_button:active h1 {
    color:#0F0E14;
}

/*********/
/* RIGHT */
/*********/
.navigation {
    gap:1.4vw;
    margin-left:0.7vw;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /*background: blue;*/
}

header {
    display:flex;
    justify-content: center;
    /*background: red;*/
}

.header_button_a {
    display:flex;
    justify-content: center;
    height:4vw;
    width:40%;

    text-decoration: none;
}

.header_button {
    display:flex;
    justify-content: center;
    align-items: center;
    height:100%;
    width:100%;

    background: #0F0E14;
    border: 2px solid #7DFDA1;
    cursor: pointer;
}

.header_button_a:hover h1{
    color:#7DFDA1;
    cursor: pointer;
}

.header_button:active {
    background: #7DFDA1;
    border: 2px #7DFDA1;
    color: #0F0E14;
}

.header_button:active h1 {
    color: #0F0E14;
}

/* MAIN CONTAINER */

.main_container {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;

    max-height:35.2vw;
    width:50vw;
    flex-grow:1;

    overflow-y: scroll;
    
    border: 2px solid #526A6D;

    /*background: goldenrod;*/
}

/* MAIN CONTAINER CONTENT */

.container_content {
    display:flex;
    justify-content: center;
    flex-wrap: wrap;

    /*background: goldenrod;*/
}

.blog_post {
    margin: 0;
    padding: 0;
    gap: 0;
    height: 6vw;
    width:100%;

    border-top: 1px solid #526A6D;
    border-right:2px solid #526A6D;
    border-left:none;
    border-bottom:1px solid #526A6D;
    background: #0F0E14;
    flex-shrink: 0;
    cursor: pointer;
    text-align: left
}

.blog_post:hover {
    border:2px solid #7DFDA1;
}

.blog_post:hover h1 {
    color: #7DFDA1;
}

.blog_post:active {
    background:#7DFDA1;
    border: 2px #7DFDA1;
}

.blog_post:active h1,.blog_post:active p {
    color: #0F0E14;
}

.blog_post h1 {
    padding: 0.01vw 1vw;
    align-items: flex-start;

    cursor: pointer;
}

.blog_post p {
    text-align: left;
    padding: 0.1vw 1vw;
}

.blog_post_title{
    display:flex;
}

.blog_post_title p {
    display:flex;
    margin-top:0.4vw;
    justify-content: right;

}

/* --- .folder desktop defaults --- */
.folder {
    display:block;
    align-content: center;
    margin: 1.5vw;
    padding: 0;
    gap: 0;

    background:#0F0E14;
    border: 2px solid #526A6D;

    height: 14vw;
    width: 12vw;
    cursor: pointer;
}

.folder h1 {
    padding: 0vw 1vw;
    border-top: 2px solid #526A6D;
    cursor: pointer;
}

.folder img {
    display:block;
    margin:0;
    padding:0;
    gap:0;
    width:100%;
}

.folder:hover {
    border: 2px solid #7DFDA1;
}

.folder:hover h1 {
    color:#7DFDA1;
}

.folder:active {
    background:#7DFDA1;
    border: 2px solid #7DFDA1;
}

.folder:active h1 {
    color:#0F0E14;
    border-top:#7DFDA1;
}

/* --- Guestbook styles desktop defaults --- */
.message {
    margin-top:1vw;
    margin-right:7vw;
    margin-left:7vw;
    padding:0;
    gap:0;

    border:2px solid #526A6D;
}

.message h1 {
    padding: 0.01vw 1vw;
}

.guestbook h1 {
    margin-top:1vw;
    margin-right:7vw;
    margin-left:7vw;
}

.send_button {
    display:flex;
    justify-content: center;
    align-items: center; /* FIX: Added vertical centering */

    margin-top:1vw;
    margin-right:7vw;
    margin-left:7vw;
    width: 7vw;
    color: #E6FCFF;
    font-family: "Micro 5";
    font-size: 1.7vw;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    height:2.5vw;

    background: #0F0E14;
    border: 2px solid #7DFDA1;


    cursor: pointer;
}

.send_button:hover {
    color: #7DFDA1;
}

.send_button:active {
    background:#7DFDA1;
    color:#0F0E14;
}

.send_button:active h1 {
    color:#0F0E14;
}

.page_buttons {
    display:flex;
    margin-top:1vw;
    margin-right:7vw;
    margin-left:7vw;
    gap: 1vw;

    width:1vw;
    text-align:center;
    
    cursor: pointer;
}

.page_number { 
    text-decoration: none;
}

.page_number h1 {
    cursor: pointer;
    text-decoration: none;
}

.page_number:hover h1{
    color:#7DFDA1;
}

input,
input[type="text"] { /* ADDED input[type="text"] */
    box-sizing: border-box;
    font-family: "DM Mono", monospace;
    font-size: 0.9vw;
    color: #E6FCFF;
    border: 2px solid #526A6D;
    resize: none;
}

.narrow,
.message_box {
    margin-top:1vw;
    margin-right:7vw;
    margin-left:7vw;
    
    width: 71.4%; 
    padding: 0.5vw 1vw;

    background: #0F0E14;
    }

.narrow {
    height:1.7vw;
}

.message_box {
    height: 6vw;
}

/******************************/
/* MOBILE RESPONSIVENESS LEFT */
/******************************/
@media (max-width: 768px) {
    .all_content {
        flex-direction: column;
        margin-top: 5vw;
        margin-bottom: 5vw;
        margin-left: 3vw;
        margin-right: 3vw;
        padding: 0;
    }

    .profile {
        width: 100%;
        margin-right: 0;
        gap: 5vw;
        padding-bottom: 5vw;
    }

    .pfp, .about, .last_update {
        max-width: 100%;
    }

    .pfp img {
        max-width: 100%;
    }

    h1 {
        font-size: 1.5rem;
        height: auto;
    }

    .pfp h1 {
        font-size: 1.7rem;
        padding: 1rem 1rem;
        height: auto;
        justify-content: left;
        text-align: left;
        max-width: 100%;
    }

    h2, h3 {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
        padding: 1rem 1rem;
    }

    .pfp_button_container {
        flex-direction: column;
        gap: 1rem;
    }

    .pfp_button {
        width: 100%;
        height: 3.5rem;
        padding: 0;
    }

    .pfp_button h1 {
        font-size: 1.4rem;
        height: 100%;
        width: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .last_update {
        height: auto;
        display: flex;
        align-items: stretch;
    }
    .last_update h2, .last_update p {
        width: 50%;
        font-size: 1rem;
        padding: 1rem 0.5rem;

        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

/* --- NEW NAVIGATION RESPONSIVENESS --- */

header {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem; 
    justify-content: space-between;
}

.header_button_a {
    width: calc(25% - 0.4rem); 
    height: 3.5rem; 
}

.header_button h1 {

    font-size: 1.1rem;
    height: 100%;
    align-items: center;
}

.main_container {
    width: 100%;
    max-height: 80vh;
    border: 2px solid #526A6D;
}

/* Blog Posts */
.blog_post {
    height: auto; 
    min-height: 4rem;
}
.blog_post h1 {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
}
.blog_post p {
    font-size: 0.8rem;
    padding: 0.1rem 1rem 0.5rem 1rem;
}

    /* .folder - Two per row on mobile */
    .folder {
        margin: 0.5rem;
        width: calc(50% - 1rem); /* 2 per row, accounting for 0.5rem margin on left/right of each */
        height: auto;
        min-height: 12rem;
        flex-grow: 0;
    }
    .folder h1 {
        font-size: 1.2rem;
        padding: 0.5rem 0.5rem;
        height: auto;
    }

    /* .guestbook form elements and messages */
    .guestbook h1 {
        margin-top: 1.5rem;
        margin-right: 1.5rem;
        margin-left: 1.5rem;
        font-size: 1.5rem;
    }

    .message {
        margin-top: 1rem;
        margin-right: 1.5rem;
        margin-left: 1.5rem;
        width: auto;
        padding-bottom: 0.5rem;
    }

    .message h1 {
        font-size: 1.4rem;
        padding: 0.5rem 1rem 0.1rem 1rem;
        height: auto;
    }
    .message h3 {
        font-size: 1.0rem;
        padding: 0.1rem 1rem 0.1rem 1rem;
    }
    .message p {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Inputs */
    input,
    input[type="text"] {
        font-size: 1rem;
    }

    .narrow,
    .message_box {
        margin-top: 1rem;
        margin-right: 1.5rem;
        margin-left: 1.5rem;
        width: calc(100% - 3rem - 4px);
        padding: 0.8rem 1rem;
        box-sizing: border-box;
    }

    .narrow {
        height: 3rem;
    }

    .message_box {
        height: 10rem;
    }

    .send_button {
        width: 60%;
        height: 3.5rem;
        font-size: 1.6rem;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
}
