html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f3ded9;
  color: #8c61a9;
  font-family: "Courier New", Courier, monospace;
}


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px; /* set a fixed height */
  background-color: #d699b8;
  color: #8c61a9;
  padding: 20px;
  text-align: center;
  font-size: 2em;
  border-bottom: 2px solid #8c61a9;
  z-index: 1000;
  box-sizing: border-box;
}


nav {
  background-color: #eec6be;
  padding: 10px;
  text-align: center;
  margin-top: 60px; /* push nav below fixed header */
  border-bottom: 2px solid #8c61a9;
  position: relative;
  z-index: 999; /* stay above main content but below header */
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #8c61a9;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

.container {
  padding-top: 60px; 
  padding-bottom: 50px; 
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
  height: 100vh; 
  box-sizing: border-box;
}



aside {
  background-color: #eec6be;
  padding: 20px;
  width: 22%;      
  min-width: 200px;
  margin: 10px 10px 10px 10px;
  border-radius: 10px;        
  border: 2px solid #8c61a9;  
  box-sizing: border-box;
  position: sticky;
  top: 60px; 
  height: calc(100vh - 110px); /* total of header (60) + footer (50) */
  overflow-y: auto;
}



main {
  padding: 20px;
  flex: 1;
  background-color: #f3ded9;
  overflow-y: auto;
}



    .blog-post {
      border: 2px solid #8c61a9;
      background-color: #eec6be;
      padding: 15px;
      margin-bottom: 20px;
      border-radius: 10px;
    }

    .blog-post h2 {
      margin-top: 0;
      color: #8c61a9;
    }

    .date {
      font-size: 0.85em;
      color: #8c61a9;
    }

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px; 
  background-color: #d699b8;
  color: #8c61a9;
  padding: 6px 10px;
  text-align: center;
  font-size: 0.9em;
  border-top: 2px solid #8c61a9;
  line-height: 38px;
  box-sizing: border-box;
  z-index: 1000;
}



    #guestbook {
      border: 2px dashed #8c61a9;
      background-color: #eec6be;
      padding: 20px;
      margin-top: 40px;
      border-radius: 10px;
    }

    #guestbook h3 {
      margin-top: 0;
    }

    #guestbook form {
      margin-bottom: 15px;
    }

    #guestbook input, #guestbook textarea {
      width: 100%;
      padding: 8px;
      margin-bottom: 10px;
      font-family: inherit;
      border: 1px solid #8c61a9;
      border-radius: 5px;
      background-color: #f3ded9;
      color: #8c61a9;
    }

    #guestbook button {
      padding: 8px 15px;
      background-color: #d699b8;
      border: 1px solid #8c61a9;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
      color: #8c61a9;
    }

    #guest-entries {
      border-top: 1px solid #8c61a9;
      padding-top: 10px;
    }

    .entry {
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 1px dashed #8c61a9;
    }
    
.album-wrapper {
  position: relative;
  width: 152px;
  height: 152px;
  flex-shrink: 0;
}

.spinning-art {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  animation: spin 6s linear infinite;
  position: relative;
  z-index: 2;
}

    .note {
      position: absolute;
      font-size: 1.4em;
      color: #8c61a9;
     opacity: 1;
     pointer-events: none;
     user-select: none;
      z-index: 1; 
    }
    
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }


    @media (max-width: 768px) {
      .container {
        flex-direction: column;
      }

      aside {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #8c61a9;
      }
    }
.music-now-playing {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.custom-audio-player {
  background-color: #f3ded9;
  border: 2px solid #eec6be;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  box-shadow: 2px 2px 6px rgba(140, 97, 169, 0.2);
  font-size: 0.9em;
}

.custom-audio-player button {
  background-color: #d699b8;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: white;
  cursor: pointer;
}

.custom-audio-player .time,
.custom-audio-player .duration {
  width: 40px;
  text-align: center;
  color: #8c61a9;
}

.progress-container {
  flex-grow: 1;
  height: 8px;
  background-color: #eec6be;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

#progressBar {
  height: 100%;
  width: 0%;
  background-color: #8c61a9;
  transition: width 0.2s linear;
}
