/* ---- Layout --------------------------------------------------- */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #fafafa;
    color: #333;
}

header,
footer {
    background: #004d40;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* ---- Main sections ------------------------------------------- */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2rem;
    gap: 2rem;
}

/* Preview pane */
.preview {
    flex: 1 1 300px;
    border: 2px solid #004d40;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
}

/* Editor pane */
.editor {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Textarea styling */
#css-input {
    width: 100%;
    font-family: monospace;
    font-size: 0.95rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Buttons */
button {
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 4px;
    background: #00796b;
    color: #fff;
    transition: background 0.2s ease;
}
button:hover {
    background: #005a4f;
}

/* Sample button inside preview */
.sample-btn {
    background: #ff9800;
}
.sample-btn:hover {
    background: #e68900;
}

/* Footer */
footer p {
    margin: 0;
    font-size: 0.85rem;
}
  /* -------------------------- Weird Footer ----------------------*/
   :root {
      --lightness: 50%;
      --code-background: #ddd;
  }
   footer {
          /* position: absolute; */
          left:0;
          bottom:0;
          background: #FFF;
          text-align: center;
          clear: both;
          display: block;
          padding:10px;
          border: 2px dashed red;
          z-index: 20;
      }
  footer a:hover {
      display: inline-block;
      animation: 0.2s infinite alternate linear wiggle;

      background: linear-gradient(in hsl longer hue 45deg, hsl(0deg, 75%, var(--lightness)) 10%, hsl(0deg, 75%, var(--lightness)) 90%);
      background-clip: text;
      color: transparent;
  }
      @keyframes wiggle {
          from {
              transform: skewX(-8deg);
          }
          to {
              transform: skewX(8deg);
          }
      }