/* to prevent scrollsbars oniframes
 */

.wallpaper {
  height: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.widget {
  position: absolute;
  resize: both;

    overflow: hidden !important;
    border: 2px solid rgb(255 255 255 / 0%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 0.70rem;
    background-color: rgb(255 255 255 / 30%);
    backdrop-filter: blur(4px);
    padding: 1rem;
    min-width: 160px;
    min-height: 120px;
}

.widget::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  cursor: se-resize;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.75rem;
}

#grid-toggle-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 0.5rem;
  display: none;
  z-index: 2000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}