:root {
  --background-purple: #FFBEEB;
  --underline-color: rgb(68, 0, 255);
  --main-nav: rgb(143, 77, 229);
  --main-head: rgba(143, 77, 229, 0.8);
  --main-boxes: rgba(143, 77, 229, 0.7);
  --main-light: rgba(143, 77, 229, 0.5);
  --insta-color: rgb(244, 99, 58);
  --bandcamp-color: rgba(23, 160, 196);
}

@font-face {
  font-family: 'Michroma';
  src: url('fonts/Michroma-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-size: 16px;
  font-family: 'Michroma', sans-serif;
  line-height: 1.6;
  margin: auto;
  padding: 2em;
  background-color: var(--background-purple);
}



header {
  display: flex;
  align-items: center;
  justify-content: center; /* This will now truly center the title */
  width: 100%;
  position: relative;     /* This allows the flags to anchor to this container */
}
.title-container {
  /* This allows the container to take up all available space, 
     allowing the text inside it to be truly centered relative to the screen */
  flex-grow: 1;
  text-align: center;
}

.flag-container {
  display: flex;
  gap: 5px;
  position: absolute;    /* Removes flags from the space calculation */
  right: 0;              /* Pins them to the far right of the header */
}

a {
  color: #000;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--underline-color);
}

nav {
  background-color: #fff;
  color: #ccc;
  padding: 1em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 1em;
}

nav ul li a {
  color: #555;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #ccc;
}

blockquote {
  margin-left: 2em;
  padding-left: 1em;
  border-left: 3px solid #ccc;
  color: #555;
}

hr {
  margin: 2em 0;
}

sup a {
  text-decoration: none;
}

.postscript {
  border-top: 1px solid #ccc;
  margin-top: 3em;
  padding-top: 1em;
}

.footnotes {
  border-top: 1px solid #ccc;
  margin-top: 3em;
  padding-top: 1em;
  font-size: 0.9em;
}

.footnotes ol {
  padding-left: 1.2em;
}

.footnotes li {
  margin-bottom: 0.8em;
}

.comment {
  border-radius: 25px;
  border: 2px solid #ccc;
  padding: 20px;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 20px;
}

.purplebutton {
  background-color: rgb(227, 138, 209); color: rgb(53, 0, 196);
  border: none;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 16px;
}

#backToTopBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed position in the viewport */
  bottom: 30px;
  /* Distance from the bottom of the screen */
  right: 30px;
  /* Distance from the right of the screen */
  z-index: 99;
  /* Ensure it stays above other content */
  background-color: #555;
  /* Purple background */
  color: white;
  /* White text */
  border: none;
  padding: 15px 20px;
  /* Padding around the button */
  border-radius: 50px;
  /* Rounded button */
  font-size: 18px;
  /* Button text size */
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Shadow effect */
  transition: opacity 0.3s ease-in-out;
  /* Smooth transition */
}

#backToTopBtn:hover {
  background-color: #ccc;
  /* Darker purple when hovered */
}

/* Make the button visible when scrolling */
#backToTopBtn.show {
  display: block;
  opacity: 1;
}

#backToTopBtn.hide {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#avatar {
    /* This makes the image take up 80% of the screen width on small devices */
    width: 80%; 
    
    /* This prevents it from ever getting larger than 300px */
    max-width: 400px; 
    
    /* This ensures the image stays centered and maintains its shape */
    display: block;
    margin: 0 auto; 
    height: auto;
      border-radius: 16px;

}

.artwork-container {
    margin-bottom: 20px;
}

.artwork-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: normal;
    text-align: left;
}

h1 {
  margin: 0;
  /* Resets default heading margin for better alignment */
font-weight: normal;
color: #903FC3;
}
h2 {
  margin: 0;
  /* Resets default heading margin for better alignment */
font-weight: normal;
}

.img-bordered {
  border: 2px solid blue;
}

.social-icons {
  display: flex;
  flex-direction: column;
  align-items: left
}

.waterfall {
    column-count: 3;
    column-gap: 20px;
}

.waterfall .artwork-container {
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
}

/* Make waterfall responsive for mobile devices */
@media screen and (max-width: 768px) {
    .waterfall {
        column-count: 1;
        column-gap: 15px;
    }
    
    .waterfall .artwork-container {
        margin-bottom: 15px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .waterfall {
        column-count: 2;
        column-gap: 15px;
    }
    
    .waterfall .artwork-container {
        margin-bottom: 15px;
    }
}

/* Restore 3 columns for larger screens */
@media screen and (min-width: 1025px) {
    .waterfall {
        column-count: 3;
        column-gap: 20px;
    }
    
    .waterfall .artwork-container {
        margin-bottom: 20px;
    }
}



/* Ensure consistent sizing for waterfall effect */
.waterfall .photo {
    width: 100%;
    height: auto;
    display: block;
}

.artwork-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: normal;
    text-align: left;
}

.photo {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    /* Ensure images can be clicked */
    cursor: pointer;
    /* Prevent text selection when clicking */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Ensure the lightbox modal appears properly */
dialog {
    z-index: 1000;
}

.youtube-videos {
    display: flex;
    gap: 20px;
}

.youtube-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.youtube-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .youtube-videos {
        flex-direction: column;
    }
}