.window {
    position: fixed;
    top: 12.5%;
    left: 12.5%;
    /*transform: translate(-50%, -50%);*/

    border-radius: 11px;
    
    color: #eae3d0; 

    width: 75%;
    height: 75%;
    background-color: #f0ebe2;
    font-size: 16px;

    flex-direction: column;
    overflow: hidden;
    display: none;
    z-index: 2;
}

@media (max-width: 600px) {
    .infobar  {
        display: none !important;
    }
    .window {
        width: 100% !important;
        height: 85% !important;
        left: 0;
        top: 11.25%;
    }
    .actionbar img {
        padding-left: 1px !important;
        padding-right: 1px !important;
    }
    .content {
        overflow-x: auto !important;
        font-size: 14px !important;
    }
}

.titlebar {
    min-height: 2em;

    align-items: center;
    display: flex;

    background: linear-gradient(0deg,rgba(60, 59, 55, 1) 0%, rgba(60, 59, 55, 1) 45%, rgba(71, 70, 66, 1) 57%, rgba(71, 70, 66, 1) 100%);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    user-select: none;
}

.titlebar .win_title {
    font-size: 15px;
    font-weight: bold;
    background: inherit; 
    border-top-right-radius: inherit;
    border-top-left-radius: 9px; /* this sucks */
    padding-left: 10px;
}

.titlebar .buttons {
    background-color: #3b3a36;
    margin-left: 5px;
    border-radius: 10px;
}

.menubar {
    background-color: #3c3b37;
    font-size: 14px;
    padding: 4px;

    word-spacing: 3px;

    box-shadow: inset 0 -1px 0 0 #42413c;
}

.actionbar {
    background-color: #f0ebe2;
    height: 2.25em;

    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.actionbar img {
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
    object-fit: contain;
}

.actionbar div {
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 14px;
    color: #3c3b37;
}

.tab_container {
    height: 1.75em;
    display: flex;
    flex-direction: row;
    z-index: 3;
    box-shadow: inset 0 -1px 0 0 #ccbfa9;
}

.tab-link {
    color: #4c4c4c;
    background-color: #cdc1ab;
    
    display: flex;
    align-items: center;
    justify-content: center;
        
    font-size: 14px;

    border-top-left-radius: 5px;
    border-top-right-radius: 5px;

    box-shadow: inset 0 1px 0 0 #ccbfa9,  /* Top */
                inset 1px 0 0 0 #ccbfa9,  /* Left */
                inset -1px 0 0 0 #ccbfa9; /* Right */

    text-decoration: none;
    max-height: 2em;
    padding: 2px;
}

.tab img, .infobar img, .tab-link img, .icon_view img {
    height: 70%;
    width: 24px;
    box-sizing: border-box;
    object-fit: contain;
}

.icon_view_idk {
    background: linear-gradient(0deg,rgba(182, 167, 146, 1) 45%, rgba(227, 220, 207, 1) 100%);
    padding: 5px !important;
    padding-right: 6px !important;
    width: 8px !important;
    height: 100% !important;
    border: 1px solid #a19583;
    border-right: none;
    overflow: hidden;
}

.icon_view_idk img {
    padding: 0px;
}

.infobar img {
    height: 100%;
}

.content-container {
    flex: 1;
    min-height: 0;
    display: flex;
}

.content {
    color: #4c4c4c;
    background-color: #ffffff;
    flex: 1;
    min-height: 0;
    
    box-shadow: inset 0 0 0 2px #f7f6f6;
        
    display: none;
    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #f07746 #ffffff;

    margin: 4px;
    padding: 3px;
    box-shadow: 
    0 0 0 2px #f0ebe2,   /* Inner Color */
    0 0 0 3px #ccbfa9;  /* Outer Color */
}

/* webkit shit */
.scrollable-div::-webkit-scrollbar {
  width: 8px;               /* Width of vertical scrollbar */
  height: 8px;              /* Height of horizontal scrollbar */
}

/* The background track */
.scrollable-div::-webkit-scrollbar-track {
  background: #ffffff; 
  border-radius: 4px;
}
 
/* The draggable handle/thumb */
.scrollable-div::-webkit-scrollbar-thumb {
  background: #f07746; 
  border-radius: 4px;
}

/* The handle on hover */
.scrollable-div::-webkit-scrollbar-thumb:hover {
  background: #f07746; 
}

.infobar, .file_infobar {
    color: #4c4c4c;
    background-color: #f0ebe2;
    height: 1em; 

    display: flex;
    font-size: 14px;
    margin: 2px;
    padding-right: 30px;
    padding-bottom: 7px;
}

.infobar {
    justify-content: flex-end;
}

.info_spacer {
    width: 20px;
}

/* tab switcher */

.content:target {
  display: block;
}

.content-container:not(:has(:target)) #home {
  display: block;
}

.window:not(:has(:target)) .link-home {
    background: linear-gradient(0deg,rgba(240, 235, 225, 1) 80%, rgba(250, 249, 246, 1) 100%);
}

.window:has(#home:target) .link-home,
.window:has(#about:target) .link-about,
.link-blog {
    background: linear-gradient(0deg,rgba(240, 235, 225, 1) 80%, rgba(250, 249, 246, 1) 100%);
    position: relative;
    z-index: 2;
}

.path-bar {
    height: 2em;
    background-color: #f0ebe2;
    display: flex;
    align-items: center;
}

.path-elem, .path-elem-final {
    background: linear-gradient(0deg,rgba(167, 151, 128, 1) 0%, rgba(210, 198, 181, 1) 100%);
    color: #3c3b37;
    border: 1px solid #938673;
    border-radius: 5px;
    padding: 2px;
    height: 65%;
    display: flex;
    align-items: center;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 7px;
    font-size: 14px;
}

.path-elem img, .path-elem-final img {
    height: 75%;
    margin: 3px;
    padding-right: 5px;
}

.path-elem-final {
    font-weight: bold;
}

.files {
    background-color: #ffffff;
    flex: 1;
    min-height: 0;
    margin: 3px;
    box-shadow: 
    0 0 0 2px #f0ebe2,   /* Inner Color */
    0 0 0 3px #ccbfa9;  /* Outer Color */

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.files div {
    align-items: flex-start;
    align-content: flex-start;
    height: 4em;
    color: #4c4c4c;
}

.icon_view {
    background: linear-gradient(0deg,rgba(167, 151, 128, 1) 45%, rgba(210, 198, 181, 1) 100%);
    margin: 5px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 5px;
    border: 1px solid #a19583;
    overflow: hidden;
    height: 1.5em;
}

.icon_view_text {
    padding-left: 5px;
    padding-right: 40px;
}

.blog-link {
    height: 4em;
    position: relative;
    display: inline-block;
}

.trigger-label {
    pointer-events: none;
}

body:has(:target[id="blog1"]) .trigger-label[id^="blog1"] {
    pointer-events: auto;
}

body:has(:target[id="blog2"]) .trigger-label[id^="blog2"] {
    pointer-events: auto;
}
