html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
body{line-height:1}
h1 {font-size: 1.5em;margin-bottom: 10px;}
p{font-size: 1em;line-height: 1.3em;margin-bottom: 10px;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}
ins{background-color:#ff9;color:#000;text-decoration:none}
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
del{text-decoration:line-through}
abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
table{border-collapse:collapse;border-spacing:0}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
input,select{vertical-align:middle}


#desktop {
	font-family: "Jersey 15", serif;
    font-weight: 400;
    font-style: normal;
    
    height: 100%;
    width: 100%;
    background-image: url(paper_bg.jpeg);
    background-size: contain;
	overflow: hidden;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.window {
    position: absolute;
    border: 2px solid #000;
    background: #F2DBE8;
	border-radius: 5px;
	z-index: 1000;
    resize: both;
    object-fit: contain;

    
}
.window.closed {
	display: none;
}
.window.minimizedWindow {
	display: none;
}
.window.fullSizeWindow {
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    border-radius: 0;
    bottom: 32px !important;
}
.fullSizeWindow .ui-resizable-handle {
	display: none;
}
.windowHeader {
    background-image: linear-gradient( 90deg,#7D9EF1, #D9D9D9 );
    text-align: right;
    border-bottom: 2px solid #000;
    padding: 2px;
    cursor: move;
    height: 28px;
}
.activeWindow .windowHeader {
    background-image: linear-gradient(90deg, #7D9EF1 , #D9D9D9 );
}
.windowHeader > span {
    display: inline-block;
    cursor: pointer;
    border: 2px solid #000;
    margin-left: 4px;
    font-size: 19px;
    padding: 2px 10px;
    font-family: "Arial Black", Gadget, sans-serif;
    border-radius: 5px;
    line-height: 20px;
    width: 12px;
    height: 20px;
    position: relative;
    overflow: hidden;
}
.windowHeader > span:hover {
	background: rgba(255,255,255,0.3);
}
.windowHeader > span.winclose:hover {
	background: #f15454;
}
.windowHeader > span > span {
    display: inline-block;
    height: 8px;
    width: 10px;
    position: absolute;
    top: 6px;
    left: 10px;
}
.winminimize > span {
	border-bottom: 3px solid #000;
}
.winmaximize > span {
	border: 2px solid #000;
	border-top: 3px solid #000;
}
.winmaximize > span:nth-child(2) {
	display: none;
}
.fullSizeWindow .winmaximize > span:nth-child(1) {
	margin: 2px 0 0 -4px;
}
.fullSizeWindow .winmaximize > span:nth-child(2) {
    display: inline-block;
    top: 3px;
    left: 12px;
}
.wincontent {
    padding: 10px;
    min-width: 200px;
    min-height: 140px;
    border: 2px solid #000;
    margin: 2px;
	border-radius: 0 0 5px 5px;
}
.windowHeader > strong {
    float: left;
    margin: 0px 3px 0 10px;
    line-height: 29px;
    font-size: 17px;
}
.taskbarPanel {
    display: inline-block;
    border: 2px solid #000;
    border-radius: 5px;
    line-height: 24px;
    margin: 2px 0 0 10px;
    font-size: 17px;
    padding: 0 10px;
    background: #CCC;
    font-weight: bold;
	cursor: pointer;
}
.taskbarPanel.activeTab {
	background: #FFF;
}
.taskbarPanel.minimizedTab {
	background: #AAA;	
}
.taskbarPanel.minimizedTab:hover {
	background: #DDD;
}
.taskbarPanel.closed {
	display: none;
}
#taskbar {
    position: fixed;
	height: 32px;
	border-top: 2px solid #000;
	bottom: 0;
	left: 0;
	right: 0;
	background: #EEE;
}
#icons {
	
    display: grid;
    grid-template-rows: 150px 150px 150px 150px;
    object-fit: contain;
}
#icons img{
    height: 100px
}
#icons a {
    display: block;
    cursor: pointer;
    padding: 2px 10px;
}
#icons a:hover {
	
	color: #FFF;
}
#templateLink {
    position: absolute;
    display: inline-block;
    bottom: 10px;
    right: 20px;
    font-weight: bold;
    font-size: 15px;
    color: #30478c;
}
#logo {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 300px;
    justify-content: center;
    align-items: center
    
}
#logo img{
    max-width: 100%;
    height: auto;
}


#window0 {	
    top: 300px;
    left: 240px;

}


#window .wincontent {
    width: 100%; 
    height: 100%;
    display: flex;
    overflow: hidden;
    

}

/* recipe for getting windows to size correctly */

#window0 .wincontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    font-family: "Jersey 15", serif;
    font-weight: 400;
    font-style: normal;
    overflow: scroll;
      
}
#window1 .wincontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-width: 100%;
    font-family: "Jersey 15", serif;
    font-weight: 400;
    font-style: normal;
    overflow: scroll;
      
}
#window2 .wincontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-width: 100%;
    font-family: "Jersey 15", serif;
    font-weight: 400;
    font-style: normal;
    overflow: scroll;
      
}

.window .wincontent img {
    object-fit: contain;
    width: 100%; 
    max-width: 85%; 
    max-height: 85%;
    height: auto;
}
/*grid styling for my work page*/
#grid {
    /* float:left; 
    overflow: scroll; */
	display: flex;
	flex-direction: row;
}

#grid div {
    float: left;
    width: 100%;
    text-align: center;
    	
}

#grid div img{
    max-width: 70%;
    
}


#window1 {	top: 400px; left: 120px;}
#window2 {	top: 250px; left: 300px;}
#window0 .wincontent {	width: 1000px; height: 400px;	}
#window1 .wincontent {	width: 1000px; height: 700px;	}
#window2 .wincontent {	width: 400px; height: 350px;	}

/* mobile css start */

@media screen and (max-width:768px) {
    /* Desktop background and layout */
    #desktop {
        background-size: cover;
        background-position: center;
    }
    
    /* Logo mobile adjustments */
    #logo {
        height: 200px;
        padding: 10px 0;
    }
    
    /* Mobile-friendly window positioning */
    .window {
        position: fixed !important;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 60px !important;
        width: auto !important;
        height: auto !important;
        min-width: 300px;
        min-height: 400px;
        resize: none;
        border-radius: 8px;
    }
    
    /* Full-screen windows on mobile */
    .window.fullSizeWindow {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 40px !important;
        border-radius: 0;
    }
    
    /* Window content mobile adjustments */
    .wincontent {
        padding: 15px;
        max-height: calc(100% - 40px);
        overflow-y: auto;
    }
    
    /* Mobile window headers */
    .windowHeader {
        padding: 8px;
        height: 40px;
        touch-action: none;
    }
    
    .windowHeader > strong {
        font-size: 16px;
        line-height: 24px;
    }
    
    /* Window controls for touch */
    .windowHeader > span {
        width: 30px;
        height: 30px;
        margin-left: 6px;
        font-size: 16px;
        padding: 4px;
    }
    
    /* Taskbar mobile */
    #taskbar {
        height: 50px;
        padding: 5px;
        display: flex;
        flex-wrap: wrap;
        overflow-x: auto;
        gap: 5px;
    }
    
    .taskbarPanel {
        margin: 0;
        padding: 8px 12px;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Desktop icons mobile layout - left side */
    #icons {
        position: fixed;
        top: 50%;
        left: 5px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 999;
        width: 80px;
    }
    
    #icons img {
        height: 50px;
        width: auto;
    }
    
    .openWindow {
        width: auto;
        text-align: center;
        padding: 5px;
        text-decoration: none;
        color: #000;
        font-size: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile-specific window sizes */
    #window0 .wincontent, 
    #window1 .wincontent, 
    #window2 .wincontent {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
    }
    
    /* Mobile tab improvements */
    .tab {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
        padding: 5px;
    }
    
    .tab button {
        font-size: 11px;
        padding: 6px 8px;
        min-height: 32px;
        flex: 1 1 auto;
        max-width: calc(50% - 2px);
        margin: 1px;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    /* Tab content mobile */
    .tabcontent {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Iframes mobile */
    .fp-iframe {
        height: 250px !important;
        min-height: 200px;
    }
    
    /* Images in window content */
    .window .wincontent img {
        max-width: 95% !important;
        height: auto !important;
        margin: 10px 0;
    }
    
    #grid div img {
        max-width: 90% !important;
        height: auto !important;
    }
}

@media screen and (max-width:480px) {
    /* Even smaller mobile adjustments */
    #logo {
        height: 120px;
    }
    
    .window {
        top: 50px !important;
        left: 5px !important;
        right: 5px !important;
        bottom: 80px !important;
        min-width: 280px;
        min-height: 350px;
    }
    
    #icons {
        top: 50%;
        left: 5px;
        transform: translateY(-50%);
        width: 70px;
        gap: 10px;
    }
    
    #icons img {
        height: 45px;
    }
    
    .openWindow {
        font-size: 9px;
    }
    
    .taskbarPanel {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .windowHeader {
        height: 35px;
        padding: 5px;
    }
    
    .windowHeader > strong {
        font-size: 12px;
        line-height: 25px;
    }
    
    .wincontent {
        padding: 8px;
    }
    
    .tab button {
        font-size: 10px;
        padding: 4px 6px;
        max-width: calc(50% - 1px);
    }
    
    /* Typography for mobile */
    h1 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    
    p {
        font-size: 0.9em;
        line-height: 1.4em;
        margin-bottom: 8px;
    }
    
    /* Hide footer template link on mobile */
    #templateLink {
        display: none;
    }
}


/* #work-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.filter-btn {
  border: 2px solid #000;
  background: #fff;
  font-family: "Jersey 15";
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

.filter-btn.active,
.filter-btn:hover {
  background: #F2DBE8;
} */


/* Style the tab */
.tab {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  border: 2px solid #000;
  background: #fff;
  font-family: "Jersey 15";
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  touch-action: manipulation;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px;
  border-top: 2px;
  float:left;
}
.openWindow{
    width: 80px;
}
