/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --default-font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", 
                         "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
    font-family: var(--default-font-family);
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    /* padding: 20px;  */
}

/* Container styles */

.oneline{
    display: flex;
    justify-content: space-between; /* This spreads items evenly */
    align-items: center; /* Vertically center items */
    width: 100%; /* Ensure container takes full width */
    border-bottom-width: 2px;    /* Thickness */
    border-bottom-style: solid;  /* Line style */
    border-bottom-color: #ccc;   /* Color */
}

/* Some styles copied out of Dan's app - which are very good. */
/* For the index (item) lines */

/* for the search box */
#myInput {
  /* display: block; */
  flex: 1;
  width: 100%;
  padding: 1rem;
  padding-left: 2.5rem;
  color: #111827;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  font-size: 1.125rem;   /* 18px */
  line-height: 1.75rem;  /* 28px */
}

#myInput::placeholder {
  color: #6b7280;
}

#myInput:focus {
  border-width: 2px;
  border-color: #3b82f6;
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* for the line items in the index */
.item, .search-result {
  display: flex;
  align-items: center;
  font-weight: 700;
  padding: 1rem;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  display: flex;
  border-bottom-color: #a8a29e;
}
.itemNumber, .search-result-number {
  font-size: 0.875rem;  /* 14px */
  line-height: 1.25rem; /* 20px */
  margin-right: 1.25rem; /* 20px */
  color: #57534a;
}
.itemText, .search-result-text {
  font-size: 1.125rem;   /* 18px */
  line-height: 1.75rem;  /* 28px */
  color: #292524;
}

#lyricsArea {
  font-size: 1.5rem;   /* 24px */
  line-height: 2.5rem;  /* 40px */
  transition: font-size 0,3s ease, line-height 0.3s ease;
}

.lyricsAreaMargins {
  margin-left: 0rem;
  margin-right: 0rem; /* 16px */
}

@media (min-width: 1024px) {
  .itemText {
    font-size: 1.25rem;   /* 20px */
    line-height: 1.75rem; /* 28px */
  }
}

.hideme {
    display: none;
}

.hidemekeepspace {
    visibility: hidden;
}

.highlightme {
    /*background-color: rgb(129, 228, 246);
    transition: background-color 0.5s ease; */
    border: 4px solid yellow;
}

.indentme {
  /*text-indent: 1em;*/
  /*margin-left: 8px;*/
  /* hanging-indent */
  padding-left: 1em;      /* Creates space for the indent */
  text-indent: -1em;      /* Pulls first line back to left edge */
}

.doubleindentme {
  /*text-indent: 2em;*/
  margin-left: 2em;
}

/* Header styles */
h1 {
    color: #2c3e50;
    text-align: center;
}

/* Button styles */
.myButton {
    background-color: #8b9eab;
    color: white;
    padding: 4px 4px;
    border-color: black;
    border-style: double;
    border-radius: 20px;
    border-width: thick;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease-in-out;
    line-height: 1.5;


    width: 80px;          /* Fixed width */
    /*height: 50px;          /* Fixed height */
    /*min-width: 100px;      /* Minimum width */
    /*min-height: 40px;      /* Minimum height */
    /*max-width: 300px;      /* Maximum width */
    /*max-height: 60px;      /* Maximum height */
}

.myButton:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.myButton:active {
    transform: translateY(1px);
}

/* Dynamic content styles */
.content {
    padding: 15px 0px 60px 0px; /* top right bottom left - extra bottom padding for tab bar */
    /*
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
    width: auto;
    */
}

.dynamic-item {
    background-color: #ecf0f1;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease;
}

.dynamic-item:hover {
    transform: translateX(5px);
    background-color: #dfe6e9;
}

#lyricNumber {
    font-size: 40px;
    font-weight: 700;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 24px;
    }
}

/* Last line of verse to have bottom margin */
p.verseLastLine {
    margin-bottom: 40px;
}   

/* fuzzy search hightlighting */
.fuzzy-highlight {
    background: linear-gradient(120deg, #ffeb3b 0%, #ffeb3b 100%);
    color: #000;
    font-weight: bold;
    padding: 0 1px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.search-result {
    /*border: 1px solid #e0e0e0; */
    margin: 8px 0;
    padding: 12px;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.search-result:hover {
    background: #f0f0f0;
    border-color: #ccc;
    transform: translateY(-1px);
}

.result-score {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.result-field {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/*
Need to handle the search text field with search button
It needs to viewable when we have scrollable content
*/
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease; /* Smooth hide/show animation */
    display: flex;
    align-items: center;
    gap: 8px;
}

.searchIcon {
    display: inline-flex;
    align-items: center;
}

.bigtopmargin {
    margin-top: 80px; /* Increased margin when header is fixed */
}   

/* Navigation Arrows */
.nav-arrow {
    position: fixed;
    top: 85%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s ease;
    border: none;
    opacity: 0.6;
}

.nav-arrow:hover .arrow-circle{
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-arrow svg {
    width: 40px;
    height: 40px;
    fill: white;
}

#arrowLeft {
    left: 20px;
}

#arrowRight {
    right: 20px;
}

/* Hide arrows when not needed (optional) */
.nav-arrow.hidden {
    display: none;
}

/* The circular arrow icon */
.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; /* Circle size */
    height: 48px; /* Circle size */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black circle */
    border-radius: 50%; /* Makes it circular */
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;  /* Prevent content from expanding the container */
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    flex: 1;
}

.tab-btn.active {
    opacity: 1;
}

.tab-btn .icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.tab-btn .label {
    font-size: 12px;
    font-weight: 500;
}

@media screen and (min-width: 1200px) {
    .tab-btn.active:hover {
        opacity: 0.8;
    }
}

/* Container for the button group */
.fontButtonsClass {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Space between buttons */
    margin: 0 10px; /* Adjust spacing as needed */
    background-color: #f5f5f5; /* Optional background */
    border-radius: 4px; /* Rounded corners */
    padding: 4px;
    border: 1px solid #ddd; /* Light border */
}

/* Individual resize buttons */
.fontResizeBtn {
    width: 30px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box; /* Include border in height calculation */
}

/* Hover and active states */
.fontResizeBtn:hover {
    background-color: #e9e9e9;
    border-color: #999;
}

.fontResizeBtn:active {
    background-color: #ddd;
    transform: scale(0.95);
}

/* First and last buttons for better grouping appearance */
.fontResizeBtn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.fontResizeBtn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.fontResizeBtn:not(:first-child):not(:last-child) {
    border-radius: 0;
}


