/* style.css */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #a5d6a7; /* soft green */
  background-image: url('https://www.transparenttextures.com/patterns/green-dust-and-scratches.png');
  color: #2e5d34;
}

.desktop {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 80px;
  text-align: center;
  font-size: 0.9rem;
}

.icon img {
  width: 48px;
  height: 48px;
}


.modal h2 {
  margin-top: 0;
}
.taskbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #2e7d32;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* This keeps start button on left, clock on right */
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
}
.start-menu {
  position: fixed;
  bottom: 60px;
  left: 20px;
  width: 240px;
  background: rgba(25, 25, 25, 0.75); /* much darker glass */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  padding: 10px;
  font-family: "Segoe UI", sans-serif;
  z-index: 1000;
}

.start-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.start-menu ul li {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 15px;
  font-weight: 500;
}

.start-menu ul li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.start-menu a {
  color: #000000; /* black text for readability */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.start-menu a:hover {
  text-decoration: underline;
}

.start-menu hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}
.taskbar button {
  background: #a5d6a7;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.widget.clock-widget {
  position: fixed;
  top: 10px;
  right: 20px;
  background: #e8f5e9;
  border: 2px solid #81c784;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
}
.modal {
  position: absolute;
  z-index: 10;
  background-color: #f0f0f0;
  border: 2px solid #999;
  border-radius: 5px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  width: 500px;
  min-width: 200px;
  min-height: 150px;
  resize: both;
  overflow: hidden;
}

.modal-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #e4e4e4, #cfcfcf);
  padding: 2px 8px;
  height: 28px;
  font-size: 13px;
  color: black;
  border-bottom: 1px solid #aaa;
  box-shadow: inset 0 1px 0 #fff;
  cursor: move;
}

.window-title {
  flex-grow: 1;
  user-select: none;
  font-weight: bold;
}

.window-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}

.window-controls button {
  background: #ddd;
  border: 1px solid #999;
  color: black;
  font-weight: bold;
  font-size: 13px;
  height: 22px;
  width: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 20px;
}

.window-controls button:hover {
  background: #bbb;
}

.modal-content {
  padding: 10px;
  height: calc(100% - 28px);
  overflow-y: auto;
}
.modal-content a,
.start-menu a {
  color: #000000 !important; /* force black text */
  text-decoration: none;
}

.modal-content a:hover,
.start-menu a:hover {
  text-decoration: underline;
  background-color: rgba(0, 0, 0, 0.05);
}
#secret-frog {
  color: #000000 !important;
}
/* Make all modal headers and buttons readable */
.modal-titlebar,
.modal-titlebar button,
.modal-titlebar .window-controls button,
.start-menu,
.start-menu * {
  color: #000 !important;
}

/* Force dark text for all links in the start menu */
.start-menu a {
  color: #000 !important;
}

/* Fix button hover if needed */
.modal-titlebar button:hover,
.modal-titlebar .window-controls button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
body,
.desktop,
.modal,
.start-menu,
button,
a,
* {
  cursor: url('https://github.com/Aloemoonflwr/website/raw/refs/heads/main/frog.cur'), auto !important;
}
.welcome-modal {
  width: 300px;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}
.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track img {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffffcc;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: #4f8f6b;
  z-index: 10;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: #c6efd2;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}
.modal-content .carousel {
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .modal {
    width: 90vw !important;
    height: 90vh !important;
    left: 5vw !important;
    top: 5vh !important;
    transform: none !important;
  }
}
  .modal-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
  }

  .modal-titlebar {
    font-size: 1rem;
  }

  .carousel img {
    width: 100%;
    height: auto;
  }

   .taskbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .taskbar button:not(.start-btn) {
    flex: 1 1 45%;
    margin: 0.25rem;
    width: auto;
  }

  .start-btn {
    flex: none;
    width: auto;
    margin: 0.25rem;
  }
}
#weather-widget img {
  vertical-align: middle;
  margin-right: 5px;
}
/* Desktop icons container */
.icon {
  position: relative;
  z-index: 1;
}

/* Start menu container */
#start-menu, .start-menu {
  position: absolute; /* or fixed, depending on how you're using it */
  bottom: 40px; /* adjust based on your layout */
  left: 10px;
  z-index: 9999; /* high value to ensure it's on top */
}
.icon {
  pointer-events: auto; /* default */
}

.start-menu {
  pointer-events: auto; /* default */
}
#start-menu {
  position: fixed; /* ensures it's on top of everything and not affected by parents */
  bottom: 50px; /* adjust based on your taskbar height */
  left: 20px;
  z-index: 9999; /* max stacking */
  background: var(--window-bg, #d8f3dc); /* optional fallback background */
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 10000; /* higher than icons, potentially equal to or higher than start menu */
}
@media (max-width: 768px) {
  /* For tablets and smaller screens */
  .desktop-icon {
    transform: scale(0.8);
    left: auto;
    right: auto;
  }

  #start-menu {
    width: 90%;
    left: 5%;
  }

  .modal {
    width: 95vw;
    height: auto;
    font-size: 0.9rem;
  }

  .taskbar {
    height: 50px;
    font-size: 0.9rem;
  }
}
body, html {
  overflow-x: hidden;
  max-width: 100vw;
}
