body {
    margin: 0;
    overflow: hidden;
    display: flex; /* Use flexbox for flexible layout */
    flex-direction: column; /* Stack elements vertically */
    width: 100%;
    height: 100vh; /* Take up the entire viewport height */
    font-family:"assistant";
    text-shadow: -1px 2px 5px #00000042;
    margin: 0;
    overflow: hidden; /* Avoid scrollbars */
    background-image: url("Background.jpg");

}

.topHeader {
    background-color: #ecc9c8; /* Pink header */
    display: none;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    text-align: center;
}

.middleHeader {
    display: block;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 70%;
}

header {
    background-color: #ecc9c8; /* Pink header */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: white;
    text-shadow: -1px 2px 5px #00000042;
    margin: 0;
    font-size: 2.5em;
}

#taskbar { 
    background-color: #dfa5a4; /* Pink header */
    width: 100%;
    height: 45px;
    text-align: center;
    margin-top: 30px;
}

.folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.folder p {
    margin: 10px 0 0;
    color: #ffffff; /* Or any color you prefer */
    font-size: 1em;
    font-family: 'Quicksand', sans-serif; /* Quicksand font */
}

.folderContainer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Subtract header height */
    width: 100%;
    overflow: hidden; /* Add scroll if content overflows */
}

.folder-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    max-height: 175px;
    max-width: 200px;
}

.folder-button img {
    max-height: 100%;
    /* width: auto; */
}

.folder-button:hover {
    background-color: transparent; /* Remove the grey background */
    outline: 9px solid #ecc9c8; /* Increase the outline thickness */
    border-radius: 10px; /* Rounded corners for the outline */
}


.window {
    flex: 1;
    flex-direction: column;
    border: 2px solid rgb(131, 131, 131);
    position: fixed;
    top: 50px;
    left: 50px;
    background-color: #2b2a33;
    resize: both; /* Ensure this is set to allow resizing */
    overflow: hidden;
    display: none;
    z-index: 9;
    box-sizing: border-box; /* New addition to include padding and border in the width and height */
    min-width: 200px; /* Set the minimum width for the window */
    min-height: 100px; /* Set the minimum height for the window */
    max-width: 100%; /* Constrain the width to fit within the container */
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.368);

    /* width and height in here do nothing change it in js */
}
.container {
    flex: 1; /* Allow the container to grow and take up available space */
    display: flex;
    overflow: hidden;
    min-height: 0; /* Resets any minimum height */
    height: 100vh;
    position: relative; /* or 'fixed', 'absolute', depending on your layout */
}
.generated-container {
    flex: 1; /* Allow the container to grow and take up available space */
    display: none;
    overflow: hidden;
    min-height: 0; /* Resets any minimum height */
    height: 100vh;
    position: relative; /* or 'fixed', 'absolute', depending on your layout */
}
p{
    color: rgb(255, 255, 255);
    padding: 10px;
}
.title-bar {
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e30000;
    padding: 5px;
    cursor: move;
    text-shadow: -1px 2px 5px #00000042;
    box-shadow: inset 0px 0px 5px #ffffff75;
    background: #dfa5a4;
}

.title-bar h3 {
    color: white;
    margin: 0;
    overflow: hidden; /* Prevent text overflow */
    white-space: nowrap; /* Prevent text from wrapping */
    text-overflow: ellipsis; /* Show ellipsis (...) for overflowed text */
    padding-right: 5px;
    padding-left: 5px;
}
iframe{
    height: 100%;
    width: 100%;
}


.title-bar{
    display: flex;
    gap: 5px;
}

.buttons{
    display: flex;
    gap: 5px;
}
/* Style for the maximized window */
.maximized {
    resize: none; /* Prevent resizing when maximized */
    border-radius: 0px;
}
.dot {
    float: right;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: pointer;
}

.categoryButtons {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
    gap: 30px; /* Adjusted gap between grid items */
    font-family: 'Quicksand', sans-serif;
    min-width: min-content;
}

.categoryButtons button {
    font-family: inherit; /* Inherits from parent for consistency */
    padding: 0; /* Removes default padding */
    width: 100%; /* Ensures button width matches grid column */
    aspect-ratio: 1; /* Square buttons */
    max-width: 10vh;
}

.category-block {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
    gap: 30px; /* Adjusted gap between grid items */
    font-family: 'Quicksand', sans-serif;
    min-width: min-content;
}

.category-block-folder{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: inherit; /* Inherits from parent for consistency */
    padding: 0; /* Removes default padding */
    width: 100%; /* Ensures button width matches grid column */
    aspect-ratio: 1; /* Square buttons */
    max-width: 10vh;
}

.category-block button {
    font-family: inherit; /* Inherits from parent for consistency */
    padding: 0; /* Removes default padding */
    width: 100%; /* Ensures button width matches grid column */
    aspect-ratio: 1; /* Square buttons */
    max-width: 10vh;
}

.close { background-color: #ff605c; }
.maximize { background-color: #ffbd44; }
.minimize { background-color: #00ca56; }



.animated {
    transition: width 0.4s, height 0.4s, top 0.4s, left 0.4s; /* Smooth transition for size changes */
}
.animateFade {
    transition: opacity 0.1s; /* Smooth transition for size changes */
}

/* potentially issues here atm on really thin mobile devices where when its horizontal it has the task bar on the bottom still */
.mobile-vertical{
    
    .main-container {
        flex-direction: column-reverse; /* Moves the header to the bottom */
    }

    .window {
        width: 100%; /* Full width windows on small screens */
        height: auto; /* Adjust height automatically */
        position: relative; /* Change from fixed to relative */
        top: auto; /* Remove top positioning */
        border-radius: 0; /* Optional: Remove border radius for a more 'mobile' feel */
        top: 0px;
        left: 0px;
    }

    .middleHeader{display: none;}
    .topHeader{display: block;}

    .folderContainer {
        display: flex;
        flex-wrap: wrap;
        justify-content: fle;
        flex-direction: column;
        gap: 20px;
        height: 100%;
    }
    .folder
    {
        height: auto; /* Adjust based on your design needs */
    }
    .folder-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto; /* Adjust based on your design needs */
        max-width: 100%; /* Make sure button does not exceed the container width */
        width: 25vw; /* Width relative to the viewport width */
    }
    
    .folder-button img {
        width: 100%; /* Make the image inside the button scale with the button */
        height: auto; /* Keep the image aspect ratio */
    }
    .maximize { 
        background-color: #ffbd44; 
        display: none;
    }
    .minimize { 
        background-color: #00ca56; 
        display: none;
    }
}

.mobile-horizontal {

    .middleHeader {
        padding-top: 0px;
        padding-bottom: 0px;
        margin-bottom: 0px;
    }
    .maximize { 
        background-color: #ffbd44; 
        display: none;
    }
    .minimize { 
        background-color: #00ca56; 
        display: none;
    }
}