:root {
  --header-image: url('https://sadhost.neocities.org/images/layouts/wp.jpeg');
  --body-bg-image: url('https://scottisokay.neocities.org/Clear_Day_Bkgrd.jpg');
  --main-bg-image: url('https://scottisokay.neocities.org/yellow_dot_bg.png');
  --box-bg-image: url('https://scottisokay.neocities.org/blue_dot_bg.png');
}

body {
  font-family: 'Times New Roman', serif;
  line-height: 1.2;
  margin: 0px;
  background-color: #cbe6fc;
  background-size: 300px;
  background-image: var(--body-bg-image);
  
}

html,
body {
  height: 100%;
  min-height: 100%;
}

/* text alt styles */
.centerText {
  text-align: center;
}

.smallText {
  font-size: 0.8em;
}

.justified {
  text-align: justify;
}

@media only screen and (max-width: 600px) {
  body {
    margin-top: 20px;
  }
}

* {
  box-sizing: border-box;
}

/* layout container */
#container {
  max-width: 700px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: 40px;
}

/* links */
#container a {
  color: #6666ff;
  font-weight: bold;
}

#container a:hover {
  text-decoration: underline;
  color: #9999ff;
}

@media only screen and (max-width: 600px) {
  #container {
    padding: 0 10px; /* creates that edge gap */
  }
}

/* header */
#header {
  width: 100%;
  height: 150px;
  margin-top: 50px;
  background-size: 100%;
  overflow: visible;
  position: relative

}

#headerImage {
  position: absolute;
  top: -77px;
  left: 25%;
  transform: translateX(-60%);
  width: 300px;
  z-index: 10;
  pointer-events: none;
}

@media only screen and (max-width: 600px) {
  #headerImage {
    transform: translateY(17px) translateX(-160px);
    scale: 80%;
  }
}

/* navbar */
#navbar {
  height: 50px;
  background-color: #c7b299;
  width: 100%;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

#navbar ul {
  display: flex;
  padding: 0px;
  margin: 0;
  height: 100%;
  list-style-type: none;
  justify-content: right;
}

#navbar li {
  display: flex;
  align-items: center;
  height: 100%;
}

#navbar li a {
  color: #323232;
  font-weight: 800;
  text-decoration: none;
  padding: 6px 12px;
  border: 2px outset #99866f;
  background-color: #eee885;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: 0.1s;
  margin-right: 8px;
  line-height: 1.2;
}

#navbar li a:hover {
  color: #6f603d;
  background-color: #f3ed8c;
  bottom: 1px;
  text-decoration: underline;
}

@media (max-width: 600px) {
  #navbar ul {
    display: flex;
    padding: 0 10px;
  }

  #navbar li a {
    margin-right: 4px;
    padding: 4px 10px;
  }

  #navbar li:nth-child(2) {
    margin-right: auto;
  }
}

/* layout */
#flex {
  display: flex;
}

main {
  background-color: #eee884;
  flex: 1;
  padding: 20px;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
  background-image: var(--main-bg-image);
  min-height: 0;
}

/* footer */
#footer {
  background-color: #5f564b;
  width: 100%;
  height: 40px;
  padding: 10px;
  margin-top: 10px;
  color: white;
  margin-bottom: 40px;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.marquee-text {
  position: absolute;
  white-space: nowrap;
  animation: scrollTextDesktop 13s linear infinite;
}

@keyframes scrollTextDesktop {
  0% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

@keyframes scrollText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 600px) {
  .marquee-text {
    left: auto;
    animation: scrollTextMobile 10s linear infinite;
  }

  @keyframes scrollTextMobile {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
}

/* headings */
h1,
h2,
h3 {
  color: #009966;
}

h1 {
  font-size: 22px;
  margin-top: 0;
}

strong {
  color: #c6e6f9;
}

/* boxes */
.box {
  background-color: #ccffff;
  background-image: var(--box-bg-image);
  border: 3px double #5f564b;
  width: 40%;
  padding: 10px;
  padding-top: 60px;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.boxhomepage {
  background-color: #ccffff;
  background-image: var(--box-bg-image);
  border: 3px double #5f564b;
  float: right;
  width: 40%;
  padding: 10px;
  margin-left: 15px;
  margin-bottom: 15px;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.boxhomepage img,
.box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.box p {
  margin: 0;
  padding-top: 8px;
}

.box-wrapper {
  position: relative;
  margin-bottom: 30px;
}

.box-wrapper:first-of-type {
  margin-top: 20px;
}

.floating-image {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  z-index: 10;
}

.buttonbox {
  background-color: #ccffff;
  background-image: var(--box-bg-image);
  border: 3px double #5f564b;
  width: 100%;
  padding: 10px;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.buttonbox a:hover {
  position: relative;
  bottom: 1px;
}

/* demo section */
.demo-box {
  display: flex;
  align-items: flex-start;
  background-color: #c6b299;
  border: 3px double #5f564b;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  padding: 15px;
  margin-bottom: 20px;
  gap: 15px;
  overflow: hidden;
}

.demo-artwork {
  width: 150px;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #5f564b;
}

.demo-content {
  flex: 1;
}

/* audio player */
.custom-audio {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.custom-audio button {
  background-color: #eee885;
  border: 2px outset #99866f;
  padding: 6px 12px;
  font-weight: bold;
  margin-right: 5px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  width: 40px;
  text-align: center;
  position: relative;
  transition: 0.1s;
}

.custom-audio button:hover {
  color: #6f603d;
  background-color: #f3ed8c;
  bottom: 1px;
}

.player-label {
  font-weight: bold;
  margin-left: 10px;
  color: #323232;
}

@media (max-width: 600px) {
  .demo-box {
    flex-direction: column;
  }

  .demo-content {
    width: 100%;
  }

  .custom-audio button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;       /* scale symbol */
  width: 50px;             /* fixed square */
  height: 40px;
  padding: 0;
  color: #323232;
  font-family: Arial, sans-serif; /* optional: use a font with more even symbols */
}
}

/* changelog */

#changelog .log-entry strong {
  font-weight: bold;
  color: #60564b;
}

.log-entry {
  background-color: #ccffff;
  background-image: var(--box-bg-image);
  border: 3px double #5f564b;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.log-image {
  max-width: 250px;
  height: auto;
  display: block;
}

.log-date {
  font-weight: bold;
  color: #5f564b;
  margin-bottom: 8px;
}

.log-body {
  text-align: justify;
}

/* filter buttons */
.filter-btn,
.page-btn {
  display: inline-block;
  background-color: #c7b299;
  border: 2px outset #99866f;
  padding: 6px 12px;
  margin-right: 5px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  font-family: 'Times New Roman', serif;
  color: #423d38;
  transition: 0.1s;
  appearance: none;
  outline: none;
}

/* hover states */
.filter-btn:hover,
.page-btn:hover {
  background-color: #f3ed8c;
  color: #6f603d;
  position: relative;
  bottom: 1px;
}

.filter-btn:active,
.page-btn:active,
.filter-btn:focus,
.page-btn:focus,
.filter-btn.active,
.page-btn.active {
  background-color: #c6e6f9;
  color: #5f564b;
  position: relative;
  bottom: 1px;
}

/* layout helpers */
#filters {
  margin-bottom: 20px;
}

#pagination {
  margin-top: 20px;
  text-align: center;
}

/* final media query */
@media only screen and (max-width: 600px) {
  #flex {
    flex-wrap: wrap;
  }

  aside {
    width: 100%;
  }  

  #navbar ul {
    flex-wrap: wrap;
  }
}

