/* load google font */
@font-face {
  font-family: 'Xanh Mono';
  src: url(XanhMono-Regular.ttf);
}

/* reset defaults */
* {
  box-sizing: border-box;
  margin: 0;
}

/* css variables */
:root {
  --desktop-color: #ff78f0;
  --desktop-text-color: #ffffff;

  --title-bar-color: #cccccc;
  --title-bar-text-color: #333333;
  --title-bar-highlight-color: #27F5B7;
  --title-bar-height: 32px;

  --pane-content-background-color: url(https://firefly-lanterns.neocities.org/FA_Wing/practice_4.png) repeat;

  --pane-default-width: 320px;
  --pane-default-height: 360px;
  --pane-border-radius: 8px;
}

body {
  background: url(https://firefly-lanterns.neocities.org/FA_Wing/Untitled%20design.png) repeat;
           background-attachment: fixed;
           font-family: 'CustomFontHeader', sans-serif;
           color: white;

  /* if outside of the window, clip */
  height: 100vh;
  overflow: clip;
}

h1 {
  color: var(--desktop-text-color);
  padding: 32px;
  font-size: 1.5rem;
}

.pane {
  position: absolute;
  width: var(--pane-default-width);
  height: var(--pane-default-height);

  display: grid;
  grid-template-rows: var(--title-bar-height) 1fr;

  border-radius: var(--pane-border-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);

  overflow: clip;

  min-width: 160px;
  min-height: 160px;
}

.pane .title {
  cursor: move;

  display: flex;
  align-items: center;
  justify-content: center;

          
          justify-content: space-between;
          background: rgba(39, 245, 238, 0.15); 
          backdrop-filter: blur(10px); 
          -webkit-backdrop-filter: blur(10px); 
          border-radius: 25px; 
          border: 5px solid rgba(255, 255, 255, 0.2); 
          box-shadow: 0 8px 32px 0 rgba(39, 245, 238, 0.77); 
          color: white;
          padding: 20px;
}

.pane h2 {
  font-size: 1rem;
  font-weight: 400;
}

.pane .content {
  position: relative;
  background-color: var(--pane-content-background-color);
}

/* make image fill the space */
.pane .content img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;

  object-fit: cover;

  -webkit-user-drag: none;
  user-drag: none;
}

/* add a corner in bottom right */
.pane .corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;

  /* north west to south east */
  cursor: nwse-resize;

  /* background-color: red; */
}

.pane.is-dragging .title {
  background-color: var(--title-bar-highlight-color);
}
