

@font-face{
    font-family: 'mc-regular';
    src: url('fonts/MinecraftRegular-Bmg3.otf');
    font-weight: regular;
    font-style: normal;
}

@font-face{
    font-family: 'mc-bold';
    src: url('fonts/MinecraftBold-nMK1.otf');
    font-weight: bold;
    font-style: normal;
    
    
    
   
}

body {
  background-image: url('images/Windows-Background.png');
  background-repeat: no-repeat;
  background-attachment: fixed; 
  background-size: 100% 100%;
  font-family: 'mc-regular';
  user-select: none;
 
  
}



.portfolio {
    background-color: white;
    border: 2px solid black;
    width: 25%;
    
}


@keyframes slideOff {
    to {
      transform: translateX(150%);
      opacity: 0;
    }
}

.slide-off {
    animation: slideOff 2s forwards;
} 





.show_portfolio_work {
  position: absolute;
  top: 45%;
  left: 35%;
  
  width: 60px;  /* Fixed size instead of % */
  height: 60px;
  
  background-image: url('images/pencil-icon.png');
  background-size: contain;        /* Changed from cover to contain */
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  cursor: pointer;
  border: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-in-out;
}

#show_portfolio_work_2 {
  position: absolute;
  top: 45%;
  left: 65%;
  
  width: 60px;
  height: 60px;

  background-image: url('images/pc-icon.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  cursor: pointer;
  border: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-in-out;
}

#show_portfolio_work_3 {
  position: absolute;
  top: 35%;
  left: 50%;

  width: 60px;
  height: 60px;

  background-image: url('images/user-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  cursor: pointer;
  border: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-in-out;
}







.show_portfolio_text{
  position:absolute;
  bottom:-35px;
  font-family:"mc-bold";
  text-align: center;
  left:50%;
  transform: translateX(-50%);
  
}

.show_portfolio_work:hover,
#show_portfolio_work_2:hover,
#show_portfolio_work_3:hover {
    transform: translate(-50%, -50%) scale(1.05); /* Combine center and scale */
    cursor: url('images/cursor/HandPointer.png'), pointer;
}

.show_portfolio_work:active {
    cursor: url('images/cursor/Handsqueezed.png'), pointer
}


.portfolio-window {
    display: none; /* Hidden by default */
    position: fixed;
    top: 10%;
    left: 10%;
    width: 50%;
    height: 50%; 
    z-index: 1;  /* Default z-index */
    
}

#portfolio-window-content-1{
    position: fixed;
    top:10%;
    left: 2%;
}

#portfolio-window-content-2{
    position: fixed;
    top:10%;
    left:55%;
}

#portfolio-window-content-3{
    position: fixed;
    top:38%;
    left:30%;
    
}

.portfolio-window-title{
    font-family: 'mc-bold';
}

.portfolio-window-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  width: 40%;
  height: 50%;
  padding: 0.3%;
  gap: 0.8%;

  background: #C0C0C0;
  box-shadow:
    inset -1px -1px 0px #000000,
    inset 1px 1px 0px #FFFFFF,
    inset -2px -2px 0px #7F7F7F,
    inset 2px 2px 0px #DFDFDF;

  transition: left 0.15s ease, top 0.15s ease;
}



.portfolio-window-header{
    
    
    background-image: linear-gradient(to right,#000080, blue);
    color: white;
    padding: 0.3%;
    width:98%;
    height: 6%;
    display: flex;
    cursor: url('images/cursor/HandPointer.png'), pointer;
}

.portfolio-window-header:active{
    cursor: url('images/cursor/Handsqueezed.png'), pointer
}

.portfolio-window-body{
/* inside auto layout */
flex: 1;
overflow: auto;

padding: 2%;
gap: 1%;
background-color: #ececec; /* soft gray or beige */
box-shadow: inset -1px -1px 0px #FFFFFF, 
            inset 1px 1px 0px #808080, 
            inset -2px -2px 0px #C1C1C1, 
            inset 2px 2px 0px #000000;

align-self: stretch;
overflow-y: scroll;
margin-bottom: 0.3%;


overflow:auto; /* makes the content scrollable if it overflows */


}

.close-button {
    position: absolute;
    top: 0.8%;
    right: 1%;
    Width:4.5%;
    height: 6%;
  
    cursor: url('images/cursor/HandPointer.png'), pointer;

    transition: transform 0.1s ease-in-out; /* Smooth animation */
}

.close-button:hover {
    transform: scale(1.05); /* Slightly increase size on hover */
}

.portfolio-window-title{
        cursor: url('images/cursor/HandPointer.png'), pointer;
}

.portfolio-window-header:active{
    cursor: url('images/cursor/Handsqueezed.png'), pointer
}



*{
    box-sizing: border-box;
    cursor: url('images/cursor/Arrow.png'), auto;
}

*:hover{
    
    cursor: url('images/cursor/HandPointer.png'), pointer
}

*:active{
    cursor: url('images/cursor/Handsqueezed.png'), pointer
}

.image-row {
/* Inside auto layout */
display: flex;
gap: 10%;
flex-wrap: wrap; /* makes it responsive */
justify-content: center; /* center images horizontally */
align-items: flex-start;
gap:2%;
padding:1%;
}

.pwork-media-row {
  display: flex;
  flex-direction: row;
  gap: 2%;
  width: 100%;
  align-items: flex-start;
}
.pwork-media-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 48%;
}


.pwork-image-wrapper-a4 {
   
    display: flex;
    flex-direction: row;
    
    gap: 2%; /* space between image and text */

    font-size: 16px;
    margin: 0;
    line-height: 1.2;
   
  }

  

  

  .pwork-image-box-a4 {
    margin-bottom: 2%;
    width: 45%; 
    aspect-ratio: 1.000/1.5;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: inset -2px -2px 0px #000000, 
                inset 2px 2px 0px #FFFFFF,
                inset -4px -4px 0px #7F7F7F, 
                inset 4px 4px 0px #DFDFDF;
    transition: transform 0.1s ease-in-out;
  }
   .pwork-image-box-a4-AboutMe {
    margin-bottom: 2%;
    Height:100%;
    width: 45%; 
    aspect-ratio: 1.000/1.5;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: inset -2px -2px 0px #000000, 
                inset 2px 2px 0px #FFFFFF,
                inset -4px -4px 0px #7F7F7F, 
                inset 4px 4px 0px #DFDFDF;
    transition: transform 0.1s ease-in-out;
  }

  

  .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Gray overlay */
    color: white;
    display: flex; /* Keep it flex for centering content */
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'mc-bold';
    font-size: 18px;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.1s ease-in-out; /* Smooth fade-in effect */
    pointer-events:none; /* Prevent interaction with the overlay */
  }

/*     adds animation and hover overlay                                              */

  .pwork-image-box-a4:hover .image-overlay {
    opacity: 1; /* Fade in when hovered */
  }
  .pwork-image-box-a4-h:hover .image-overlay {
    opacity: 1; /* Fade in when hovered */
  }
  .pwork-image-box-a4-h-mediacolumn:hover .image-overlay{
    opacity: 1; /* Fade in when hovered */
  }

.pwork-image-box-a4:hover {
  transform: scale(1.05);
}
.pwork-image-box-a4-h:hover {
  transform: scale(1.05);
}
.pwork-image-box-a4-h-mediacolumn:hover{
  transform: scale(1.05);
}

.pwork-image-box-a4-AboutMe:hover {
  transform: scale(1.05);
}










  .pwork-image-box,
.image-caption {
  
    transform-origin: center;
    transition: transform 0.1s ease-in-out;
}

  .pwork-image-wrapper:hover .pwork-image-box,
  .pwork-image-wrapper:hover .image-caption {
      transform: scale(1.05);
      transition: transform 0.1s ease-in-out;
      z-index: 1;
  }


  .pwork-image-box-a4-h {
    margin-bottom:10px;
    
    width: 48%; 
    

    aspect-ratio: 1.5/1.000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Needed for z-index context */
    flex-shrink: 0; /* prevent it from shrinking */
    transition: transform 0.1s ease-in-out;
    box-shadow: inset -2px -2px 0px #000000, 
                inset 2px 2px 0px #FFFFFF,
                inset -4px -4px 0px #7F7F7F, 
                inset 4px 4px 0px #DFDFDF;
  }

  .pwork-image-box-a4-h-mediacolumn {
    margin-bottom:10px;
    
    width: 100%; 
    

    aspect-ratio: 1.5/1.000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Needed for z-index context */
    flex-shrink: 0; /* prevent it from shrinking */
    transition: transform 0.1s ease-in-out;
    box-shadow: inset -2px -2px 0px #000000, 
                inset 2px 2px 0px #FFFFFF,
                inset -4px -4px 0px #7F7F7F, 
                inset 4px 4px 0px #DFDFDF;
  }
  

  .pwork-image-a4 {
    width: 97%;
    height: 98%;
    position: absolute;
    z-index: 0;
    object-fit: cover;
    object-position: var(--object-position, center); /* Default to center */
  }

  

  .pwork-image-a4-h {
    width: 98%;
    height: 97%;

    position: absolute;
    z-index: 0;
    
    

    object-fit: cover;
    object-position: var(--object-position, center); /* Default to center */
  }

  .pwork-title {
    font-family: 'mc-bold'; /* or whatever you want */
    font-size: 24px;         /* or try 20px, 1.2em, etc */
    margin: 0;               /* optional: removes space around */
    line-height: 1.2;        /* optional: tighter vertical spacing */
  }

  .pwork-text-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap:10px;
   
  }
  
  .pwork-image {
    width: 97.5%;
    height: 96.5%;

    position: absolute;
    z-index: 0;
    

    object-fit: cover;
    object-position: var(--object-position, center); /* Default to center */
  }
  

  .portfolio-window-body::-webkit-scrollbar {
    width: 12px;
  }
  
  .portfolio-window-body::-webkit-scrollbar-track {
    /* grey/grey */
    background: #C0C0C0;
    /* Inside/4 */
    box-shadow: inset -1px -1px 0px #FFFFFF, inset 1px 1px 0px #000000, inset -2px -2px 0px #C4C4C4, inset 2px 2px 0px #808080;
  }
  
  .portfolio-window-body::-webkit-scrollbar-thumb {
    /* grey/grey */
    background: #C0C0C0;
    /* outside/2 */
    box-shadow: inset -1px -1px 0px #000000, inset 1px 1px 0px #FFFFFF, inset -2px -2px 0px #7F7F7F, inset 2px 2px 0px #DFDFDF;
  }

  .image-caption {
  background-image: linear-gradient(to right,#000080, blue);
  color: white;
  font-family: 'mc-bold';
  text-align: center;
  padding: 4px;
  font-size: 14px;
 
  box-shadow: inset -1px -1px 0px #000000, 
                inset 1px 1px 0px #FFFFFF,
                inset -2px -2px 0px #7F7F7F, 
                inset 2px 2px 0px #DFDFDF;
  
}

.pwork-image-box {
    width: 100%; /* instead of 48% */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Needed for z-index context */
  
    box-shadow: inset -2px -2px 0px #000000, 
                inset 2px 2px 0px #FFFFFF,
                inset -4px -4px 0px #7F7F7F, 
                inset 4px 4px 0px #DFDFDF;
  }
  
  

  .pwork-image-wrapper {
    display: flex;
    flex-direction: column;
    width: 48%;
    gap: 0; /* Remove the vertical space between image and caption */
  }

  .image-preview-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Grayed out background */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
    cursor: pointer;
  }
  
  .image-preview-modal.active {
    display: flex;
  }
  
  .image-preview-container {
    width: 80vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #00000088;
    overflow:hidden;
  }

 

  #preview-video {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  #preview-image {
    max-width: 500%;
    max-height: 500%;
    width: 150%;
    height: 150%;
    object-fit: contain;
  
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: all;
    transform-origin: center center;
    cursor: grab;
    transition: transform 0.1s ease-out;
  }

  
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  

  @keyframes popIn {
    0% {
      transform: scale(0.2);
      opacity: 0;
    }
    70% {
      transform: scale(1.05);
      opacity: 1;
    }
    100% {
      transform: scale(1);
    }
  }
  
  @keyframes popOut {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    100% {
      transform: scale(0.2);
      opacity: 0;
    }
  }
  
  .open-animation {
    animation: popIn 0.3s ease-out forwards;
  }
  
  .close-animation {
    animation: popOut 0.15s ease-in forwards;
  }

  #crt-canvas {
  position: fixed;
  top: -2px;
  left: -2px;
  width: calc(100vw + 4px);
  height: calc(100vh + 4px);
   pointer-events: none; /* clicks pass through */
    z-index: 9999; /* sit above everything */
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}


  
  .portret-image-box {
    width: 70%; /* instead of 48% */
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Needed for z-index context */
  
    box-shadow: inset -2px -2px 0px #000000, 
                inset 2px 2px 0px #FFFFFF,
                inset -4px -4px 0px #7F7F7F, 
                inset 4px 4px 0px #DFDFDF;
  }

  #crt-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
  


    backdrop-filter: blur(0.7px) contrast(1.1);    background-color: rgba(255, 255, 255, 0.01); /* just enough to trigger the blur */

    pointer-events: none; /* Allow interaction with elements behind canvas */
    background-image:
   

    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.4) 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0px,
      rgba(0, 0, 0, 0.1) 3px,
      transparent 2px,
      transparent 8px
    ),
    repeating-linear-gradient(
      to right,
      rgba(0, 0, 0, 0.1) 0px,
      rgba(0, 0, 0, 0.1) 2px,
      transparent 2px,
      transparent 4px
    );
  
  }

  .glow-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
  }
  
  
  
  /* Outer glow: softer, wider radius */
  .outer-glow {
    backdrop-filter: brightness(1.1) saturate(1.2);
    -webkit-backdrop-filter: brightness(1.1) saturate(1.2);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
   
  }

  @keyframes pulseGlow {
    0%, 100% {
      opacity: 0.6;
      transform: scale(1);
    }
    50% {
      opacity: 1;
      transform: scale(1.05);
    }
  }
  


  


  
  
  /* Outer glow: softer, wider radius */
  .outer-glow {
    backdrop-filter: brightness(1.1) saturate(1.2);
    -webkit-backdrop-filter: brightness(1.1) saturate(1.2);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
   
  }

  @keyframes pulseGlow {
    0%, 100% {
      opacity: 0.6;
      transform: scale(1);
    }
    50% {
      opacity: 1;
      transform: scale(1.05);
    }
  }
  


  

  
  
  
  /* Outer glow: softer, wider radius */
  .outer-glow {
    backdrop-filter: brightness(1.1) saturate(1.2);
    -webkit-backdrop-filter: brightness(1.1) saturate(1.2);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
   
  }

  @keyframes pulseGlow {
    0%, 100% {
      opacity: 0.6;
      transform: scale(1);
    }
    50% {
      opacity: 1;
      transform: scale(1.05);
    }
  }



  .screen-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* border: 2vh solid #D9D9D9; /* Grey border */
  
    box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events:none;
    z-index:9999;
}

/* Taskbar Styling */
.taskbar {
    height: 5%;
    background-color: #b1b1b1;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    pointer-events: all;
}



.start-button {
  font-family:'mc-bold';
  display: flex;           
  align-items: center;        
  justify-content: center; 
  background-color: #b1b1b1;
  font-size: 24px;
  gap: 10px;
   
    box-shadow: inset -2px -2px 0px #000000, 
                inset 2px 2px 0px #FFFFFF,
                inset -3px -3px 0px #7F7F7F, 
                inset 3px 3px 0px #DFDFDF;

    width:9%;
    height:100%;
}

.start-button:hover {
    transform:scale(1.05);
}

.taskbar-clock {
  
  display: flex;           
  align-items: center;        
  justify-content: center; 
  background: #C0C0C0;
  font-size: 24px;
  gap: 15px;
   
  box-shadow: inset -3px -3px 0px #FFFFFF, inset 3px 3px 0px #808080;

    width:10%;
    height:90%;
}


.clock-icon{
  width: 30px;
  height: 30px;
}

.start-icon{
  width: 28px;
  height: 28px;
}

#container { display:block; }


.start-menu {
  pointer-events: auto;

  display: none;
  position: fixed;
  bottom:0%;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform-origin: bottom left;
}


/* Pop In */
.start-menu.pop-in {
  display: block;
  animation: popIn 0.27s ease-out forwards;
}

/* Pop Out */
.start-menu.pop-out {
  display: block; /* keep visible until animation ends */
  animation: popOut 0.2s ease-in forwards;
}



.start-menu-content{
  pointer-events: auto;
  display: flex;
flex-direction: column;
align-items: flex-start;
bottom: 6.9%;
left: 0.65%;
padding: 4px;
gap: 4px;
position: absolute;
width: 20%;
height: 60%;
background: #C0C0C0;
box-shadow: inset -1px -1px 0px #000000, inset 1px 1px 0px #FFFFFF, inset -2px -2px 0px #7F7F7F, inset 2px 2px 0px #DFDFDF;

 transform-origin: center center;
  transition: transform 0.3s ease-in-out; /* Smooth animation */

}

.start-menu-header{
  background-color: #000080;
  color: white;
  padding: 5px;
  width:99.8%;
  height: 28px;
  display: flex;
  cursor: url('images/cursor/HandPointer.png'), pointer;
}

.start-menu-title{
  font-family: 'mc-bold';
}


.start-menu-body{
  /* inside auto layout */
  flex: 1;
  overflow: auto;
  
  padding: 15px;
  gap: 15px;
  background-color: #808080,; /* soft gray or beige */
  box-shadow: inset -1px -1px 0px #FFFFFF, 
              inset 1px 1px 0px #808080, 
              inset -2px -2px 0px #C1C1C1, 
              inset 2px 2px 0px #000000;
  
  align-self: stretch;
  overflow-y: scroll;
  margin-bottom: 4px;
  
  
  
  overflow:auto; /* makes the content scrollable if it overflows */
  
 
 
  }

  .taskbar-apps {
    display: flex;
    gap: 4px;
    flex: 1; /* fills available space */
    align-items: center;
    padding: 0 6px;
  }
 
  .taskbar-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #000;
    cursor: pointer;
    height: 100%; /* match taskbar height */
    font-family: 'mc-bold';
    white-space: nowrap;
  }

  .taskbar-icon {
    width: auto;
    height: 70%; /* keep proportion inside button */
  }

@keyframes taskbarPopIn {
  0% { transform: scale(0.6); }
  100% { transform: scale(1); }
}

@keyframes taskbarPopOut {
  0% { transform: scale(1);  }
  100% { transform: scale(0.6); }
}

.taskbar-button.removing {
  animation: taskbarPopOut 0.2s ease-in-out;
}
  
  .taskbar-button.active {
    background: #808080;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #000;
  }
  

  

 





#mobile-rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000080;
  z-index: 99999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  font-family: 'mc-bold';
  text-align: center;
  isolation: isolate;
  opacity: 0; /* Start invisible */
}

#mobile-rotate-overlay.visible {
  display: flex;
}

.rotate-tip {
  font-size: 13px;
  opacity: 0.65;
  margin-top: -10px;
  margin-bottom: 10px;
  font-family: 'mc-regular';
}

.rotate-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.rotate-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.rotate-sub {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.rotate-arrow {
  font-size: 64px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



