/* 
© 2026 Not Found Pages · 404-retro-macos-window
Released under the MIT License

Repository → https://github.com/notfoundpages/404-retro-macos-window
Live Preview → https://notfoundpages.github.io/404-retro-macos-window

Discover the full collection → https://notfoundpages.github.io
*/

:root {
  --bg-color: #2b7fff;
  --window-bg: #f9f9f9;
  --border-color: #000000;
}

body {
  margin: 0;
  padding: 20px;
  background-color: var(--bg-color);

  /* Parent Background Lines */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  background-attachment: fixed;

  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Space Mono', monospace;
  transition: background-color 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.window-wrapper {
  position: relative;
  background-color: var(--window-bg);

  /* Inherited Background Lines Effect */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  background-attachment: fixed;
  /* Keeps the grid perfectly aligned with the parent */

  border: 3px solid var(--border-color);
  border-radius: 24px;
  /* Added border radius to top AND bottom */
  width: 100%;
  max-width: 620px;
  box-shadow:
    12px 12px 0px -3px var(--bg-color),
    12px 12px 0px 0px var(--border-color),
    24px 24px 0px -3px var(--bg-color),
    24px 24px 0px 0px var(--border-color);
  transition: box-shadow 0.3s ease;
}

.title-bar {
  background: var(--border-color);
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  /* Inner top radius calculated to fit perfectly inside the 3px border (24px - 3px = 21px) */
  border-radius: 21px 21px 0 0;
}

.controls {
  display: flex;
  gap: 10px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.15s;
}

.color-dot:hover {
  transform: scale(1.2);
}

.red {
  background-color: #ff5f56;
}

.yellow {
  background-color: #ffbd2e;
}

.green {
  background-color: #27c93f;
}

.error-label {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 400;
}

.content {
  padding: 80px 40px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sad-face {
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -2px;
}

.sub-text {
  font-size: 12px;
  margin-top: 15px;
  letter-spacing: 1px;
  opacity: 0.8;
  text-transform: uppercase;
}

.home-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  border: 1.5px solid var(--border-color);
  padding: 6px 16px;
  font-size: 12px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  text-transform: uppercase;
  background-color: var(--window-bg);
  transition: all 0.2s ease;
}

.home-btn:hover {
  background-color: var(--border-color);
  color: white;
}

@media (max-width: 768px) {
  .content {
    padding: 60px 20px;
  }

  .home-btn {
    position: static;
    display: block;
    margin: 40px auto 0;
    width: fit-content;
  }

  .window-wrapper {
    box-shadow: none;
  }
}