@font-face {
	font-family: "Niagara Solid";
	src: url("/assets/fonts/NIAGSOL.woff2") format("woff2"),
	url("/assets/fonts/NIAGSOL.woff") format("woff");
	font-display: swap; /* important for fast loading */
}

* {
  box-sizing: border-box;
}

/*html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  background: #111;
  font-family: "Merriweather", serif;
}*/

html, body {
  margin: 0;
  padding: 0;
  background: #111;
  font-family: "Merriweather", serif;
}

h1,
h2,
h3 {
  font-family: "Niagara Solid", "Merriweather", serif;
  font-weight: 100;
}

h1 {
  font-weight: 100;
  font-size: 56px;
}

h2 {
  font-weight: 100;
  font-size: 48px;
}

h3 {
  font-weight: 100;
  font-size: 32px;
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

h4 {
	font-family: "Merriweather", serif;
	font-weight: 400;
	font-size: 1em;
	display: flex;
	align-items: center;
	gap: 1em;
	color: white;
	cursor: pointer;
	transition: color 0.3s ease;
	margin: 1rem 0;
}

h4:hover {
  color: rgba(241, 90, 36, 1); /* orange */
}

.icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

h4:hover .icon {
  transform: scale(1.1);
}

p {
  padding-top: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 1rem;
  padding-left: 0.5rem;
  font-size: .8em;
  font-weight: 100;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
}

canvas#highlight-canvas {
  z-index: 1001;
  pointer-events: none;
}

#circle-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* or .layout-right = flex-end */
  flex-direction: column;
  z-index: 999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

#circle-overlay.show {
  display: flex !important;
  opacity: 1;
}

/* When content is on the RIGHT */
#circle-overlay.layout-right {
  justify-content: flex-end;
}

/* When content is on the LEFT */
#circle-overlay.layout-left {
  justify-content: flex-start;
}

#overlay-content {
  max-width: 43vw;
  padding: 0;
  color: white;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

/*
Testing purposes only 
#overlay-content { border: 2px solid red; }
.circle-page { border: 2px solid green; }
.columns-separated { border: 2px solid blue; }
.column { border: 2px solid orange; }
*/

#overlay-content.show {
  opacity: 1;
  transform: translateY(0);
}

#overlay-close {
  position: fixed;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1002; /* ensure it sits on top of everything */
}

.circle-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}


.circle-page.show {
  opacity: 1;
  visibility: visible;
}


.columns-separated {
  display: flex;
  gap: 1.5rem;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.column {
	flex: 1 1 0;
	overflow-y: auto;
	min-height: 0;
	min-width: 0;
	padding-top: 1rem;
	padding-bottom: 2rem;
	scrollbar-width: none;
	-ms-overflow-style: none;
	box-sizing: border-box;
}

.column::-webkit-scrollbar {
  display: none;
}

/* Add a new class for the special column */
.column.one-third {
  flex: 0 0 25%;
  max-width: 25%;
}

.columns {
  column-count: 2;
  column-gap: 1.5rem;
  flex: 1;
  padding: 0.5rem;
  overflow-y: auto;
  max-height: 100vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.newspaper {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 1rem;
}

.page-title {
  flex-shrink: 0; /* fixed size */
  margin: 0;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(241, 90, 36, 1);
}

.page-image {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  border-radius: 0px; /* optional */
}

.page-portrait {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  margin-top: 1rem;
  display: block;
  border-radius: 50%; /* optional */
  border: 2px solid rgba(241, 90, 36, 1);
}

.ticket {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  /*border: 1px solid #ccc;*/
  /*border-radius: 8px;*/
  /*background-color: #fff;*/
  /*max-width: 400px;*/
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ticket-image {
  flex-shrink: 0;
}

.ticket-image img {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(241, 90, 36, 1);
  display: block;
}

.ticket-text {
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket-text h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.ticket-text h4 {
  margin-top: 0;  /* much tighter */
  margin-bottom: 0;
}




/*AUDIO PLAYER */
.audio-player {
  flex-shrink: 0; /* fixed size */
}

.player-box {
  /*border: 1px solid rgba(241, 90, 36, 1);*/
  /*background-color: rgba(241, 90, 36, 0.01);*/
  display: flex;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  gap: 15px;
}

.cover {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  margin-bottom: 8px;
  font-family: Merriweather, serif;
  font-weight: 300;
}

.waveform {
  width: 100%;
  height: 6px;
  background: rgba(241, 90, 36, 0.2);
  position: relative;
  border-radius: 3px;
}

.wave-progress {
  height: 100%;
  width: 0%;
  background: rgba(241, 90, 36, 1);
  position: absolute;
  top: 0;
  left: 0;
}

.controls {
  display: flex;
  align-items: center;
}

.play-btn {
  background: none;
  border: 1px solid rgba(241, 90, 36, 1);
  color: rgba(241, 90, 36, 1);
  padding: 5px 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Ambient Sounds */

#bird-toggle {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(241, 90, 36, 1);
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: opacity 0.3s;
}

#bird-toggle:hover {
  opacity: 1;
}

#bird-toggle img {
  width: 32px;
  height: 32px;
  pointer-events: none;
  filter: brightness(0) saturate(100%) invert(56%) sepia(91%) saturate(2294%)
    hue-rotate(353deg) brightness(95%) contrast(98%);
}