@font-face {
    font-family: monocraft;
    src: url('../fonts/Monocraft-ttf/weights/Monocraft-SemiBold.ttf');
}

body {
    background-attachment: fixed;
    background-image: url('../media/wallpaper.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: url('../media/cursor2.png'), default;
    min-height: 100vh;
}


#About img {
    border-radius: 5px;
    display: block;
    height: auto;
    margin-bottom: 5px;
    max-width: 100%;
    width: 300px;
}

#browser-label {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}

#about-content-wrapper {
    /* Enables Flexbox layout */
    display: flex;
    /* Aligns items vertically in the center */
    align-items: center; 
    /* Adds a little space between the image container and the text container */
    gap: 20px; 
}

#chat {
    background-color: #CFE4FF;
    border-radius: 10px;
    bottom: 10px; 
    height: 500px;
    position: fixed;
    right: 10px; 
    width: 500px;
}

#chat h3 {
    background: rgba(128, 150, 178, 0.80);
    border-radius: 10px;
    font-family: monocraft;
    height: 30px;
    opacity: 80%;
    padding-top: 10px;
    text-align: center;
    width: 500px;
}

#chat img {
    height: auto;
    max-width: 400px;
}

#close-btn {
    flex-shrink: 0; 
}

#cont {
    flex-grow: 1; 
    padding-right: 10px; /* To prevent scrollbar from touching text */
}

#files {
    max-height: 150px;
    max-width: 150px;
}

#img-cont {
    /* Set a fixed size for the image container */
    flex-shrink: 0; /* Prevents it from shrinking */
    text-align: center; /* To center the p tag content below the image */
    width: 300px; 
}

#msg {
    /* Sizing and Centering */
    background-color: #cdced4;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: url('../media/cursor.png'), default;
    display: block;
    font-family: "Nunito", sans-serif;
    font-size: 20px;
    margin: 15px auto;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    width: 70%;
}

#pfp {
    /* Original styles for pfp */
    background: url("../media/pfp.jpg") lightgray 50% / cover no-repeat;
    border-radius: 100px;
    height: 50px;
    margin-left: 10px;
    width: 50px;
}

#runaway-btn {
    background-color: #97a8be;
    border: none;
    border-radius: 10px;
    cursor: url('../media/cursor.png'), default;
    font-size: 16px;
    left: 50px;
    outline: none;
    padding: 10px 20px;
    position: fixed;
    top: 500px; 
    transition: top 0.5s ease-out, left 0.5s ease-out;
}

#runaway-btn a {
    color: #485f7c;
    text-decoration: none;
}

#tab-panel {
    /* Tab Panel RESIZE/Position */
    display: none;
    left: 50%;
    max-width: 800px; /* RESIZED */
    position: fixed;
    top: 100px;
    transform: translateX(-50%);
    width: 90%; 
    z-index: 40;
}

#taskman {
    bottom: 50px;
    left: 20px;
    position: absolute;
}
#taskman img {
    max-height: 500px;
    max-width: 300px;
}

#toggle-icon{
    border-radius: 4px;
    display: block;
    max-height: 100px;
    max-width: 100px;
    margin-bottom: 5px;
}

#toggle-tab-btn {
    background-color: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    cursor: url('../media/cursor.png'), default;
    left: 50%;
    padding: 0;
    position: fixed;
    text-align: center;
    top: 30%;
    transform: translateX(-50%);
    z-index: 50;
}

/* --- Tab Styles (Alphabetical) --- */

.dropbtn {
    background-color: #818080;
    border: none;
    cursor: url('../media/cursor.png'), default;
    font-family: monocraft;
    font-size: 15px;
    color: white;
    padding: 12px;
}

.dropup {
    background-color: #767474;
    border-radius: 10px;
    bottom: 50px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    display: none;
    min-width: 160px;
    position: absolute;
    z-index: 101;
}

.dropup a {
    color: black;
    cursor: url('../media/cursor.png'), default;
    display: block;
    font-family: monocraft;
    padding: 12px 16px;
    text-decoration: none;
}

.date {
    font-family: monocraft;
    font-weight: bold;
    margin-left: auto;
    min-width: 100px;
    text-align: right;
}

.log {
    background-color: #767474;
    border-radius: 10px;
    bottom: 50px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    display: none;
    min-width: 160px;
    position: absolute;
    z-index: 101;
}

.log a {
    color: black;
    cursor: url('../media/cursor.png'), default;
    display: block;
    font-family: monocraft;
    padding: 12px 16px;
    text-decoration: none;
}

.log a:hover {
    background-color: #ddd;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    cursor: url('../media/cursor.png'), default;
    display: block;
    padding: 0;
}

.logout-btn img {
    max-height: 30px;
    max-width: 30px;
}

.logout-container, .up, .date {
    align-items: center;
    display: flex;
    position: relative;
}

.tab {
    align-items: stretch;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    width: 100%;
}

.tab > div {
    display: flex;
    flex-wrap: wrap; 
}

.tab button {
    background-color: inherit;
    border: none;
    cursor: pointer;
    cursor: url('../media/cursor.png'), default;
    float: left;
    font-family: monocraft;
    font-size: 17px;
    outline: none;
    padding: 14px 16px;
    transition: 0.3s;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #ccc;
}

.tabcontent {
    background: rgb(224, 235, 248);
    border: 2px solid rgb(184, 195, 209);
    border-top: none;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 400px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 6px 12px;
    width: 100%;
    overflow-y: hidden; 
}
.tabcontent h3 {
    background: none;
    font-family: monocraft;
    height: auto;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
    width: auto;
    align-items: center;
}

.up {
    margin-left: 8px;
}

.up a:hover {
    background-color: #ddd
}

footer {
    /* Fixed Footer */
    align-items: center;
    background-color: #818080;
    bottom: 0;
    box-sizing: border-box;
    color: rgb(214, 200, 200);
    cursor: url('../media/cursor.png'), default;
    display: flex;
    height: 50px;
    justify-content: space-between;
    left: 0;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    z-index: 100;
}

/* --- Media Queries (Alphabetical by Breakpoint) --- */

@media (max-width: 768px) {
    /* Mobile/Small Screen Overrides */
    
    #About img {
        margin-left: auto;
        margin-right: auto;
    }

    #about-content-wrapper {
        flex-direction: column; /* Stack image and text vertically */
    }
    
    #close-btn {
        padding: 5px 10px;
        position: absolute;
        right: 0;
        top: 0;
        width: auto; 
    }
    
    #img-cont {
        margin-bottom: 10px;
        width: 100%;
    }
    
    #tab-panel {
        top: 50px;
        width: 95%;
    }
    
    #toggle-icon {
        max-height: 70px;
        max-width: 70px;
    }
    
    #toggle-tab-btn {
        left: 50%;
        top: 20%;
    }

    .date {
        font-size: 0.9em;
        margin: 5px 0;
        order: -1; 
        text-align: center;
        width: 100%;
    }

    .dropbtn, .logout-btn {
        font-size: 14px;
        padding: 5px;
    }

    .dropup, .log {
        bottom: 40px; 
    }
    
    .tab {
        align-items: stretch;
        flex-direction: column;
    }

    .tab button {
        box-sizing: border-box;
        font-size: 14px;
        padding: 10px;
        width: 100%; 
    }
    
    .tabcontent {
        max-height: 85vh; 
    }

    footer {
        flex-wrap: wrap; 
        height: auto;
        justify-content: space-around;
        padding: 5px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    #tab-panel {
        width: 90%;
    }
    .tab button {
        font-size: 15px;
    }
}