/* ==========================================================
   TenZees Creations - Night Sketchbook Theme (with Glow)
   ========================================================== */

/* ===== CUSTOM CURSOR ===== */
body {
  cursor: url('images/cursor.png') 4 4, auto;
}
a, button, input[type="submit"] {
  cursor: url('images/cursor-hover.png') 4 4, pointer;
}

/* ===== GLOBAL ===== */
body {
  background: #1a1425 url('images/bckground.png');
  background-size: cover;
  font-family: 'Playfair Display', serif;
  color: #e8e6f5;
  margin: 0;
  padding: 0;
  text-shadow: 0 0 4px rgba(180, 160, 255, 0.25);
}

/* ===== WRAPPER LAYOUT ===== */
#wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 40px auto;
  background: rgba(40, 30, 70, 0.6);
  border: 2px solid #8f83b8;
  box-shadow: 5px 5px 25px rgba(0,0,0,0.4);
  padding: 10px;
  backdrop-filter: blur(5px);
  border-radius: 10px;
}

/* ===== SIDEBARS ===== */
aside {
  width: 220px;
  background: #2b2440;
  border: 2px dashed #8f83b8;
  padding: 20px;
  margin: 10px;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.3);
  position: relative;
  border-radius: 8px;
}

/* Decorative tape effect */
#sidebar-left::before,
#sidebar-right::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 80px;
  height: 25px;
  background: rgba(170, 160, 210, 0.6);
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Sidebar Titles */
aside h2 {
  font-family: 'Caveat', cursive;
  font-size: 1.8em;
  color: #c3baf5;
  margin-bottom: 10px;
  border-bottom: 1px dashed #9c90cc;
  padding-bottom: 5px;
  transition: 0.3s;
}
aside h2:hover {
  text-shadow: 0 0 10px rgba(200, 190, 255, 0.7);
}

/* Sidebar Links */
aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

aside a {
  display: block;
  text-decoration: none;
  color: #dcd6ff;
  background: #352d53;
  border: 1px solid #6a5a99;
  border-radius: 6px;
  margin: 6px 0;
  padding: 8px;
  font-family: 'Gloria Hallelujah', cursive;
  transition: 0.3s;
  box-shadow: 0 0 6px rgba(160, 130, 255, 0.15);
}

aside a:hover, aside .active {
  background: #5b4a84;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(180, 160, 255, 0.6),
              inset 0 0 8px rgba(200, 180, 255, 0.3);
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
  padding: 20px 40px;
  background: rgba(30, 25, 55, 0.7);
  border-radius: 10px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-family: 'Caveat', cursive;
  font-size: 3em;
  color: #d5ccff;
  text-shadow: 0 0 12px rgba(170, 150, 255, 0.8),
               2px 2px #392c5a;
  margin: 0;
}

.subtitle {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.1em;
  color: #bfb6f5;
  text-shadow: 0 0 6px rgba(180, 170, 255, 0.4);
}

/* ===== SCRAPBOOK ELEMENTS ===== */
.paper {
  background: #2a2442 url('images/notebook-paper.jpeg');
  border: 1px solid #7d70a8;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.3),
              0 0 8px rgba(150, 130, 255, 0.15);
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  position: relative;
  color: #e9e7ff;
}

/* ===== POLAROID IMAGES ===== */
.polaroid {
  display: block;
  margin: 15px auto;
  padding: 10px;
  background: #3b3360;
  border: 2px solid #8b7bc8;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.4),
              0 0 10px rgba(160, 140, 255, 0.2);
  transform: rotate(-2deg);
  max-width: 400px;
  width: 90%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 0 20px rgba(200, 180, 255, 0.7),
              0 0 40px rgba(180, 160, 255, 0.3);
}

/* ===== MESSAGE BOX ===== */
textarea {
  width: 95%;
  height: 120px;
  padding: 10px 14px;
  border: 2px solid #7d70a8;
  border-radius: 10px;
  background: #2f284a url('images/parchment-texture.jpg');
  background-size: cover;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  color: #e8e6f5;
  resize: vertical;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #9f8fff;
  background-color: #352d56;
  box-shadow: 0 0 15px rgba(160, 140, 255, 0.7),
              inset 0 0 6px rgba(0, 0, 0, 0.2);
}

/* ===== STYLIZED BUTTON ===== */
input[type="submit"], button {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(to bottom, #6c5ba7, #55468b);
  border: 2px solid #423672;
  border-radius: 25px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  color: #eae6ff;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(200, 190, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3),
              0 0 6px rgba(160, 140, 255, 0.3);
  transition: all 0.3s ease;
}

input[type="submit"]:hover, button:hover {
  background: linear-gradient(to bottom, #7e6cc5, #6757a4);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(200, 180, 255, 0.8),
              0 0 30px rgba(170, 150, 255, 0.5);
}

input[type="submit"]:active, button:active {
  transform: translateY(1px);
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  font-family: 'Gloria Hallelujah', cursive;
  color: #c5bfff;
  margin-top: 30px;
  font-size: 0.9em;
  text-shadow: 0 0 6px rgba(190, 180, 255, 0.5);
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 1024px) {
  #wrapper {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  aside {
    width: 90%;
    margin: 10px 0;
  }

  main {
    width: 95%;
    padding: 20px;
  }

  header h1 {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  #wrapper {
    flex-direction: column;
    margin: 20px auto;
    padding: 10px;
  }

  aside {
    width: 100%;
    order: 2;
    padding: 15px;
  }

  main {
    width: 100%;
    padding: 15px;
  }

  header h1 {
    font-size: 2em;
  }

  .polaroid {
    max-width: 100%;
    width: 100%;
    transform: none;
  }

  textarea {
    width: 100%;
  }

  input[type="submit"], button {
    width: 100%;
    padding: 10px;
    font-size: 1em;
  }
}
