* {
  /* cursor: progress; */
  font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Arial;
  -webkit-font-smoothing: none;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #008080;
}

.feedback{
  position: absolute;
  z-index: 100;
  font-size: 18px;
color: black;

}

.desktop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 35px;
  background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23c0c0c0" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.desktop-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  cursor: pointer;
  user-select: none;
}

.desktop-icon:hover {
  background-color: rgba(0, 0, 128, 0.3);
  cursor: hand;
}

.desktop-icon img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.desktop-icon span {
  font-size: 11px;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 0px black;
  max-width: 60px;
  word-wrap: break-word;
}

/* Make UI text unselectable by default; allow selection in form controls */
html, body, .desktop, .window, .title-bar, .menu, .startbar, .desktop-icon span, .profilepage, #like, #not_like, #secret, .menu-content, .dropdown-content {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+/Edge */
  user-select: none;         /* Standard */
}

/* Allow selection inside inputs, textareas and iframe content */
input, textarea, select, button, .window-content textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.desktop-icon {
  transition: all 0.2s ease;
}

/* Window animations */
.window {
  transition: opacity 0.2s ease;
}

/* Menu animations - removed for Windows 98 authenticity */

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Button hover effects */
button:hover {
  background-color: #e0e0e0 !important;
  border-top: 1px solid white !important;
  border-left: 1px solid white !important;
  border-right: 1px solid #808080 !important;
  border-bottom: 1px solid #808080 !important;
}

button:active {
  border-top: 1px solid #808080 !important;
  border-left: 1px solid #808080 !important;
  border-right: 1px solid white !important;
  border-bottom: 1px solid white !important;
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .profilepage {
    float: none !important;
    margin: 20px auto;
    max-width: 300px;
  }
  
  .desktop-icon {
    width: 60px;
    height: 60px;
  }
  
  .desktop-icon img {
    width: 24px;
    height: 24px;
  }
  
  .desktop-icon span {
    font-size: 9px;
  }
  
  .window {
    max-width: 90vw !important;
    max-height: 80vh !important;
  }
  
  #menu {
    width: 200px;
  }
  
  .startbar {
    height: 25px;
  }
  
  #startbutton {
    width: 60px;
    height: 25px;
    font-size: 12px;
  }
}

#profile-pic {
  border: 2px solid #808080;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  width: 300px; 
  height: 300px;
  object-fit: cover;
}

.noclick {
    cursor: not-allowed;
}

@media (max-width: 480px) {
  .profilepage {
    margin: 10px;
    max-width: 250px;
  }
  
  #profile-pic {
    height: 150px;
    width: 150px;
    object-fit: cover;
  }
  
  .desktop-icon {
    width: 50px;
    height: 50px;
  }
  
  .desktop-icon img {
    width: 20px;
    height: 20px;
  }
  
  .desktop-icon span {
    font-size: 8px;
  }
  
  .window {
    max-width: 95vw !important;
    max-height: 85vh !important;
  }
  
  #menu {
    width: 180px;
  }
}

/* Browser compatibility fixes */
.window-content iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* Ensure proper stacking on older browsers */
.window {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Fix for mobile touch events */
@media (hover: none) and (pointer: coarse) {
  .desktop-icon:hover {
    transform: none;
  }
  
  .desktop-icon:active {
    transform: scale(0.95);
  }
  
  #profile-pic:hover {
    transform: none;
  }
  
  #profile-pic:active {
    transform: scale(0.95);
  }
}

#profile-pic:hover {
  box-shadow: 0 0 15px rgba(0, 0, 255, 0.5);
  border-color: rgba(0, 0, 255, 0.5);
  cursor: pointer;
}

#like:hover {
  background-color: rgba(0, 128, 0, 0.5);
  cursor: help;
  padding: 1em;
  margin: -1em;
}


#not_like:hover {
  background-color: rgba(128, 0, 0, 0.3);
  cursor: not-allowed;

  padding: 1em;
  margin: -1em;
}

.title-bar p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin: 0;
}

@font-face {
    font-family: "VTT-mono";
    src: url('VT323-Regular.ttf');
}

.mono {
    font-family: "VTT-mono";
    color: transparent;
    animation: revealText 5s ease-in-out alternate infinite;
}

.large-mono {
    font-family: "VTT-mono";
    font-size: 60px;
    color: transparent;
    animation: resizeText 5s ease-in-out alternate infinite, revealText 5s ease-in-out alternate infinite;
}

/* mono animation: slowly reveal text */
@keyframes revealText {
  from {
    color: transparent;
  }
  to {
    color: rgba(255, 0, 0, 0.5);
  }
} 

@keyframes resizeText {
  from {
    font-size: 6px;
  }
  to {
    font-size: 60px;
  }
} 
