/* =================================
   Global & Main Portfolio Styles
   ================================= */
body {
    margin: 0;
    padding: 0;
    font-family: monospace;
    font-weight: 600;
    text-align: center;
}

#InformationAboutMe {
    padding: 20px;
    text-align: center;
}

.MyNameInformation {
    text-align: center;
    margin: 0 auto; 
    font-size: 16px;
}

.aboutcontainer {
    display: flex;
    align-items: center;
    justify-content: center; 
    flex-wrap: wrap;
    padding: 20px;
    max-width: 80%;
    margin: 0 auto;
    box-sizing: border-box;
}

.wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.infobox {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    align-self: center; 
    box-sizing: border-box;
    text-align: center; 
}

.text h4 {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center; 
}

.buttongroup {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
    margin-top: 10px;
    width: 100%; 
}

/* Reusable Button Styles */
.buttongithub, .buttoncv {
    padding: 8px 12px;
    text-decoration: none;
    color: rgb(57, 59, 212);
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border 0.3s;
    font-weight: bold;
    margin: 5px;
    font-family: monospace;
    background: transparent;
    cursor: pointer;
}

.buttongithub:hover, .buttoncv:hover {
    border: 2px solid black;
}

/* Project Section on Main Page */
.ProjectHeader, .ContactHeader {
    text-align: center;
    margin: 0 auto; 
    font-size: 18px;
    padding: 20px;
}

.ProjectNumberOne, .ProjectNumberTwo, .ProjectNumberThree {
    text-align: center;
    margin: 0 auto; 
    font-size: 18px;
    padding: 20px;
    max-width: 600px;
    width: auto;
    box-sizing: border-box;
}

.ProjectText {
    display: none;
    padding: 10px;
    background: white;
    border-top: 1px solid #ccc;
    margin-top: 10px;
    line-height: 1.5;
    width: auto;
    max-width: 100%;
    font-size: 13px;
    box-sizing: border-box;
    overflow-wrap: break-word;
    text-align: center; 
}

/* Contact Section on Main Page */
.ContactInformation {
    text-align: center;
    margin: 0 auto; 
    font-size: 18px;
    padding: 20px;
}

.ContactText {
    display: none;
    text-align: center;
    padding: 10px;
    background: white;
    border-top: 1px solid #ccc;
    margin-top: 10px;
    line-height: 1.5;
    width: 100%;
    font-size: 13px;
}


/* =================================
   New Styles for Showcase Pages (e.g., logthread.html)
   ================================= */
.showcase-container h1, .showcase-container h2 {
    text-align: center; /* Centrerar texten */
    color: #000;
}

.back-link {
    display: block; 
    text-align: left; 
    margin-bottom: 20px; 
    float: none !important; 
}

/* Denna regel kan du behålla som den är */
.showcase-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: left; 
    color: #333; 
}

.showcase-section {
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 14px;
}

.showcase-section img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tech-stack-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}

.tech-stack-table th, .tech-stack-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.tech-stack-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    float: left; /* Placerar den snyggt till vänster */
}


/* =================================
   Responsive Media Queries (Unchanged)
   ================================= */
@media (max-width: 1024px) {
    .aboutcontainer {
        flex-direction: column;
        align-items: center;
        max-width: 90%;
    }
    
    .buttongroup {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .MyNameInformation {
        text-align: center;
        margin: 0 auto;
    }
    
    .aboutcontainer {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }
    
    .wrapper {
        align-items: center;
        width: 100%;
    }
    
    .infobox {
        max-width: 100%;
        text-align: center;
    }
    
    .buttongroup {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .MyNameInformation {
        text-align: center;
        margin: 0 auto;
    }
    
    .aboutcontainer {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }
    
    .buttongroup {
        flex-direction: column;
        align-items: center;
    }
    
    .wrapper {
        align-items: center;
        width: 100%;
    }
    
    .infobox {
        max-width: 100%;
        text-align: center;
    }
}
