body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
	background-color: #F7F2E7;
	background-image: url("data:image/svg+xml,%3Csvg width='120' height='24' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%23e8d8d1' fill-opacity='0.42' fill-rule='evenodd'/%3E%3C/svg%3E");
	background-attachment: fixed;
	scroll-behavior: smooth;
}

header {
    height: 5rem;
    width: 100%;
    background-color: #102F25;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* hamburger left, donate right */
    position: fixed;  /* needed for absolute centering of title */
    z-index: 10;
    box-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.8);
    user-select: none;
}


.header-logo {
    max-height: 4rem; /* Slightly smaller than the header height */
    object-fit: contain; /* Ensures the aspect ratio is maintained */
	pointer-events: none;
}

.page-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .5rem; /* spacing between logo and text */
	font-size: 3rem;
}

.hamburger-wrapper {
    display: flex;
    align-items: center;
    z-index: 11; /* above title if overlapping */
	margin-left: 1rem;
}

.hamburger {
    font-size: 2.2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-out;
}

.hamburger:hover {
    color: #DAAE3F;
}

.hamburger.opened {
    color: #DAAE3F;
}

.floating-menu {
    position: fixed;
    top: 5rem;
    left: -100%;
    width: 200px;
    height: 100vh;
    background-color: white;
    z-index: 9;
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    transition: left 0.5s ease;
    box-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.5);
}

.floating-menu.open {
    left: 0;
}

.floating-menu .close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: black;
    margin-bottom: 1rem;
    transition: color 0.3s ease-out;
}

.floating-menu .close-menu:hover {
    color: grey;
}

.floating-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floating-menu ul li {
    padding: .75rem 0.5rem;
    border-bottom: 1px solid gainsboro;
    font-size: 1.3rem;
    transition: 0.3s ease-out;
}

/* Hover effect only for li that contains a link */
.floating-menu ul li:has(a):hover {
    background-color: whitesmoke;
    cursor: pointer;
}

/* Disabled look for li without a link */
.floating-menu ul li:not(:has(a)) {
    color: gray;
    cursor: not-allowed;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

/* Style the link itself to fill the li */
.floating-menu ul li a {
    text-decoration: none;
    color: black;
    display: block;
}
.floating-buttons {
    position: fixed;
    right: 0;          
    bottom: 5%;          
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 1.5rem; 
    z-index: 10;
	line-height: 1;
	font-size: 2rem;

}

/* Question button */
.floating-buttons .question,
.floating-buttons .scroll {
    height: auto;
	width: 30px;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
	flex-direction: column;
    justify-content: left;
    border-radius: 2rem 0 0 2rem;
    color: white;
    box-shadow: 0 0.1rem 0.6rem rgba(0,0,0,0.5);
    transition: 0.3s ease;
	padding: 1rem;
	gap: 1rem;
}

.floating-buttons .scroll {
    background-color: #DAAE3F;
}

.floating-buttons .share {
    width: 275px;
    height: auto;
    background-color: #9C2877;
    display: flex;
    align-items: right;
    justify-content: space-between;
    border-radius: 2rem 0 0 2rem;
    color: white;
    box-shadow: 0 0.1rem 0.6rem rgba(0,0,0,0.5);
    position: relative;        /* relative for sliding */
    right: -245px;             /* hidden position */
    transition: right 0.3s ease;
	padding: 1rem;
}

.floating-buttons .share.open {
    right: 0;
}

.floating-buttons .question i,
.floating-buttons .scroll i,
.floating-buttons .share i {
    cursor: pointer;
    transition: .4s ease;
}

.floating-buttons .question i:hover {
	color: rgba(0,0,0,0.6)
}

.scroll i:hover,
.scroll i.active,
.scroll i.active:hover {
	color: #917429;
}

.share a {
    font-size: 2rem;
    cursor: pointer;
	color: white;
}

.share a:hover,
#open-socials:hover,
#open-socials.opened {
    color: #640746; /* Change to red or any color you prefer */
}

.content {
    width: 100%;
	max-width: calc(1920px * .5);
	height: auto;
    background: white;
    margin: 6.5rem auto 1.5rem auto;
    padding: 4rem;
    box-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.5);
    border-radius: 18px;
    text-align: center;
	position: relative;
	z-index: 2;
}

.content p, ul {
    font-family: 'Lato', sans-serif;
	font-size: 1.2rem;
	line-height: 1.6rem;
	text-align: justify;
	padding: 0;
	user-select: none;
}

.content, ul {
    user-select: none;
}

.content a {
    color: #640746;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	transition: .3s ease;
}

.content a:hover {
    color: grey;
}

.content h2 i {
	margin-right: .5rem;
}
.content h2 {
    font-family: 'Lato', sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1.6rem;
	text-align: left;
	color: #102F25;
}

.copyright {
	font-family: 'Lato', sans-serif;
	font-size: 0.8rem;
	text-align: center;
	padding-bottom: 1.5rem;
	color: rgba(0, 0, 0, 0.8);
	user-select: none;
}


.license {
    font-family: 'Lato', sans-serif;
	font-size: 0.8rem;
	text-align: center;
	padding-top: 1.5rem;
	display: block;
	transition: .3s ease;
}

.license a {
	color: #9C2877;
	text-decoration: underline;
	text-decoration-style: dotted;
}

.license a:hover {
	color: grey;
	cursor: pointer;
}

.content-header {
    font-family: 'Libre Baskerville', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
	font-style: normal;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    width: 100%;
	height: auto;
    max-width: 100%;
}


.play-pause-container {
    position: relative;
    width: 80%;
    background: none;
    border-radius: 50px;
    overflow: hidden;
    }
	
.progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: gainsboro;
	width: 0%;
	transition: width 0.3s linear;
}

.controls {
    position: relative;
	display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    justify-items: center;  /* center each item horizontally */
    align-items: center;    /* center each item vertically */
    height: 100%;
    font-size: 1.4rem;
    padding: .5em .5em;
}

.controls i {
	cursor: pointer;
    transition: 0.3s ease;
}

.controls i:hover {
    color: rgba(0, 0, 0, 0.5);
}


.title-piece {
    display: flex;
    justify-content: center;
    font-size: 1.3rem;
    color: black;
	letter-spacing: 1px;
    font-family: 'Libre Baskerville', serif;
}

.title-piece h1 {
    font-weight: 700;
}

.header-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 2.2rem 0;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    font-weight: 400;
	
}

.star-rating-container {
    display: flex;
    justify-content: center;
    gap: 0 0.3rem;
    font-size: 1.5rem;
    color: black;
}

.composer-container {
    text-align: right;
}

.tuning-container {
    text-align: left;
	font-style: italic;
}

.tuning-container i {
	margin-right: 10px;
}

.svg-container {
    display: contents;
    justify-content: center;
	height: 100%;
    overflow: hidden;
    width: 100%;
    background-color: white;
	flex-shrink: 0;
}

.svg-container img {
    object-fit: contain;
    pointer-events: none;
	width: 100%;
	height: 100%;
    padding-bottom: 1.5rem;
}

.hidden {
    display: none; /* This will hide both the container and the content */
}

div#youtube-container {
  aspect-ratio: 16/9;
}

#youtube-container {
  display: none; /* hide by default */
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  margin-top: 1.5rem;     /* top padding */
  border: 4px solid gainsboro;
box-sizing: border-box;
}

#youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#next-piece-timer-container {
  text-align: center;
	background-color: rgba(220,220,220,.5);
  padding: 1.5rem;
}

#next-piece-timer-container span {
  display: block;
  margin-bottom: .8em;
  font-size: 1.5em;
  font-weight: bold;
}

.timer-blocks {
  display: flex;
  justify-content: center;
  gap: 1.3em;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5em 1em;
  min-width: 60px;
  background-color: rgba(0, 0, 0, 0.5);
  transition: .3s ease;
}

.time-block:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.time-label {
  font-size: .8em;
  font-weight: 400;
  margin-bottom: .2rem;
  text-transform: uppercase;
  color: white;
 }

.time-value {
  font-size: 2em;
  font-weight: 600;
  color: white;
}

.support {
    width: 100%;
    display: block;
	border: 4px solid gainsboro;
	padding: 0 1.5rem;
	margin: 1.5rem 0;
	box-sizing: border-box;
}

.support ul {
	list-style: none;
}
	
.support ul li i {
	color: inherit;
	margin-right: 1rem;
}

div.notes {
	font-family: system-ui, sans-serif; /* fallback */
	font-display: swap; /* als custom font */
}

.notes {
	letter-spacing: 0.02em;
	position: relative;	
	text-align: left;
    width: 100%;
    display: block;
	background-color: LemonChiffon;
    box-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.5);
}

.notes h2 {
	padding: 1.5rem 0 0 1.5rem;
	font-family: 'Handlee', cursive;
	font-size: 1.5em;
	color: Maroon;
	font-weight: 400;
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.notes #performance-notes {
	font-size: 1.4rem;
	padding: 0 1.5rem 1.5rem 1.5rem;
	line-height: 1.8rem;
	font-family: 'Handlee', cursive;
	color: midnightblue;
}

	
.donate-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 11; /* above title if overlapping */
	margin-right: 1.5rem;
}

.donate-text {
    color: white;
    font-size: 1.4rem;
    font-family: 'Handlee', regular;
	letter-spacing: 0.02em;
}

.donate-button {
	background-color: #DAAE3F;
    color: #102F25;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: 0.3s ease-out;
}

.donate-button:hover {
    transform: scale(1.1);
}

/* Stemvork icoon */
@font-face {
  font-family: 'icomoon';
  src: url('../fonts/icomoon.woff2?6mw2xy') format('woff2'),
       url('../fonts/icomoon.woff?6mw2xy') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: middle; 

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-tuning-fork:before {
  content: "\e900";
}

.icon-autoscroll:before {
  content: "\e901";
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: left;
	flex-direction: column;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
}

.overlay strong{
	color: #DAAE3F;
}

.overlay.show {
	opacity: 1;
	visibility: visible;
	backdrop-filter: blur(10px);
}

.overlay-content {
	max-width: 70%;
	padding: 20px 25px;
    background-color: rgba(0, 0, 0, 0); /* subtle box overlay */
	backdrop-filter: blur(3px); /* nice glass effect */
	border-radius: 18px;
	transform: scale(0.8);
	transition: transform 0.5s ease;
    font-family: 'Lato', sans-serif;
	font-size: 1.2rem;
	line-height: 1.6rem;
	user-select: none;
	overflow: auto;
	margin: 1.5em 0;
}

.overlay-content i {
	font-size: 1.3rem;
	vertical-align: baseline;
	margin: 0 3px;
}

.overlay-content p {
	font-family: 'Lato', sans-serif;
	font-size: 1.2rem;
	line-height: 1.6rem;
	text-align: justify;
	padding: 0 10px;
}

.overlay-content table, td {
	border-bottom: 0px solid white;
	border-collapse: collapse;
	padding: 10px 10px;
	vertical-align: top;
}

.overlay-content td:first-child {
	text-align: center;
}

.overlay-content td:nth-child(2) {
	width: auto;
	text-transform: capitalize;
}

.overlay-content td:nth-child(3) {
	font-style: italic;
}

.overlay-content tr:nth-child(even){
	background-color: rgba(255, 255, 255, 0.06);
}

.overlay-content table {
	max-width: calc(100% - 20px);
	width: 100%;
	margin: 20px 10px;
}

.overlay-content h2 {
	font-size: 1.8rem;
	text-transform: capitalize;
}

.overlay-content h2 i {
	font-size: 2.2rem;
	margin-right: 10px;
}

.overlay-content h3 {
	border-bottom: 2px solid white;
	border-width: 100%;
	line-height: 2rem;
	padding-left: 10px;
	text-transform: capitalize;
}

.overlay.show .overlay-content {
	transform: scale(1);
}

.close {
	position: absolute;
	top: 20px;
	right: 20px;
	cursor: pointer;
    transition: color 0.3s ease-out;
}

.close:hover {
	color: grey;
}

.close i {
	font-size: 1.8rem;
}
 /* Composer list */

#list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	align-items: start;
	list-style-type: none;
}

#list p {
	user-select: none;
	margin-bottom: 0;
}

.card {
	display: flex;
    flex-direction: column;
	justify-content: space-between;
	min-height: 200px;
	padding: 10px;
    transition: 0.3s ease-out;
	border: 1px solid gainsboro;
	flex-grow: 1;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

.card:hover {
	background-color: whitesmoke;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card composer-name {
    font-size: 1.2em;
    font-weight: bold;
    text-transform: capitalize;
	display: flex;
    justify-content: space-between;
}

.flag-circle {
    width: 1em; /* Adjust size of circle */
    height: 1em;
    border-radius: 50%; /* Make it a circle */
    overflow: hidden;
    background-color: #fff; /* You can set this to a color or remove it */
	border: 2px solid gainsboro;
	vertical-align: text-bottom;
}

.flag-circle img {
    width: 100%; /* Ensure the flag fits the circle */
    height: 100%;
    object-fit: cover; /* Ensures the flag doesn't distort */
	user-select: none;
	pointer-events: none;
}

.card p {
	font-size: .9em;
}

.social-links {
	padding-top: 10px;
    display: flex;
    gap: 15px;
    margin-top: auto;
	justify-content: flex-start;
}

.social-icon {
    font-size: 1em;
    text-decoration: none;
    color: grey;
    transition: 0.3s;
}

.social-icon:not([href]) {
    opacity: 0.3; /* Make it appear faded */
    pointer-events: none; /* Prevent clicking */
    cursor: default; /* Change cursor */
}

.social-links a {
    color: black;
}

.social-icon:hover {
    color: grey; /* Blue hover effect */
}

.composer-search {
    position: relative;
    width: 38.2%; /* Adjust as needed */

}

.composer-search input {
    padding: 10px 0 10px 10px; /* Adds space for the icon */
    width: 100%;
    font-size: 1.2em;
    border: 2px solid grey;
    font-family: 'Lato', sans-serif;
}

::placeholder {
	color: grey;
}

.search-icon {
    position: absolute;
    right: 0px;
	top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em; /* Adjust the size of the magnifying glass */
	color: grey;
}


#screen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 9999;
  backdrop-filter: blur(3px);
  font-size: 18px;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#screen-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.screen-overlay-content {
	max-width: 80%;
	line-height: 1.8em;
	font-size: 1.2em;
	font-weight: 400;
}

.screen-overlay-content i {
	font-size: 8.5rem;
	display: inline-block;
	animation: rotate-interval 4s ease-in-out infinite;
  	color: white;
}

.screen-overlay-content strong {
	font-weight: 600;
	color: #DAAE3F;
}

@keyframes rotate-interval {
  0% {
    transform: rotate(0deg);
  }
  60% {
    transform: rotate(90deg);
  }
  90% {
    transform: rotate(90deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
	
#close-overlay {
  background: #DAAE3F;
  border: none;
  color: black;
  font-weight: 600;
  margin-top: 1.5rem;
  padding: .5rem 6rem;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.2em;
  line-height: 1.8em;
  transition: .5s ease;
}

#close-overlay i {
	color: black;
	position: relative;
	font-size: 1em;
	animation: none;
}

#close-overlay:hover {
  background: white;
}

/* Tablet view */
@media (max-width: 1180px) {
    .content {
        width: calc(1180px * .75);
    }

	.donate-text {
		display: none;
	}
}

@media (max-width: 1024px) {
	html {
		font-size: 13px; 
	}

    .content {
        width: calc(1024px * .75);
    }
	
		.overlay-content {
		font-size: 16px;
	}

}

/* Mobile-first responsive design */
@media (max-width: 896px) {
	html {
		font-size: 11px; 
	}
 
      .content {
        width: calc(896px * .75);
    }
	
		.overlay-content {
		font-size: 16px;
	}

}

@media (max-width: 768px) {
	html {
		font-size: 11px; 
	}
 
      .content {
        width: calc(768px * .72);
    }
	

}

@media (max-width: 690px) {
    .content {
        width: calc(690px * .75);
    }
}

@media (max-width: 425px) {
	.page-title {
		font-size: 25px;
	}
	
	.donate-button {
		font-size: 0;
	}
	.donate-button i {
    font-size: 1.2rem;
	}
	
	.play-pause-container {
		visibility: hidden;
	}
	
	.progress-bar,
	.controls {
		display: none;
	}

	.title-piece {
		font-size: 10px;
	}
	
	.header-bottom {
		font-size: 10px;
	}
	
	.star-rating-container {
		font-size: 1rem;
	}
	
	
	.content {
        width: calc(425px * .75);
    }
}
@media (max-width: 375px) {
		.page-title {
		font-size: 20px;
	}
	.content {
        width: calc(375px * .75);
    }
	
	.time-block {
		padding: .1em .1em;
	}
	
}
@media (max-width: 320px) {
		.page-title {
		font-size: 20px;
	}
	.content {
        width: calc(320px * .7);
    }
}

@media print {
	body * {
	  display: none !important;
	}

	body::before {
		content: "Dear uke enthusiast,\A\APrinting has been intentionally disabled for this project. Although the CC BY-NC-ND 4.0 license allows printing, we choose to reduce paper use and encourage digital reading instead. Thank you for respecting both the license and the planet.\A\A Enjoy Uke Odyssey online!";
		display: block;
		white-space: pre-line;
		padding: 20vh 2cm 0 2cm;
		text-align: justify;
		line-height: 1.8em;
		font-size: 14px;
		width: 60%;
	}
}

.projectProgressContainer {
  width: 100%;
  position: relative;
  margin-bottom: 2rem;
}

#goalPieces {
  font-weight: bold;
  text-align: right;
  margin-bottom: .2rem;
  margin-right:1.2rem;
}

.projectProgress {
  width: 100%;
  height: 2.4rem;
  background: gainsboro;
  border-radius: 1.2rem;
  overflow: hidden;
  position: relative;
}

#progressFill {
  height: 100%;
  background: #DAAE3F;
  width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1.2rem;
  box-sizing: border-box;
  transition: width 2s ease;
  font-weight: bold;
}

.text-box {
    width: 100%;
	background-color: rgba(220,220,220,.5);
    display: block;
	padding: .4rem 1.5rem;
	margin-top: 1.5rem;
	box-sizing: border-box;
}

.text-box .donate-button {
	width: 25%;
	margin-bottom: 1.2em;
}
