body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.window-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #a0a3ae 0%,
    #b4b7c3 50%,
    #a0a3ae 100%
  );
  z-index: 2;
  pointer-events: none;
}

.window-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30vw;
  height: calc(30vw * 1.4); /* 10:14 ratio (14/10 = 1.4) */
  background-color: transparent;
  border: 40px solid rgba(210, 213, 225, 0.9);
  border-radius: 360px;
  z-index: 3;
  pointer-events: none;
}

.window-cutout {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 90%;
  background-color: transparent;
  z-index: 2;
  pointer-events: none;
}

.toggle-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 4;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #2196F3;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.night-mode-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.night-mode-overlay.active {
  opacity: 0;
}

/* Media queries for different screen sizes */
@media screen and (max-width: 1200px) {
  .window-frame {
    width: min(40vw, 500px);
    height: calc(min(40vw, 500px) * 1.4);
  }
}

@media screen and (max-width: 768px) {
  .window-frame {
    width: min(80vw, 300px);
    height: calc(min(80vw, 300px) * 1.4);
  }
  
  .toggle-container {
    top: 15px;
    right: 15px;
  }
  
  .toggle-switch {
    width: 50px;
    height: 28px;
  }
  
  .toggle-slider:before {
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
  }
  
  input:checked + .toggle-slider:before {
    transform: translateX(22px);
  }
}

@media screen and (max-width: 480px) {
  .window-frame {
    width: min(90vw, 250px);
    height: calc(min(90vw, 250px) * 1.4);
  }
  
  .toggle-container {
    top: 10px;
    right: 10px;
  }
}