body {
    font-family: Arial, sans-serif;
    background-color: #F0F7FF; /* Marian Sky Blue Background */
    color: #2c3e50;
    margin: 0;
    padding: 0;
    /* Optimization: Ensures the body background fills the entire unclipped screen space */
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    /* Keeps your 20px padding, but adds extra space at the top if a status bar overlaps it */
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 20px 20px;
    text-align: center;
    min-height: calc(100vh - 100px);
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0047AB; /* Marian Blue */
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #0047AB; /* Marian Blue */
}

p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Buttons updated to Marian Blue and Gold */
button, .button, .download-button {
    background-color: #0047AB;
    color: #fff;
    border: 1px solid #D4AF37; /* Gold Border */
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover, .download-button:hover {
    background-color: #003380;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    color: #D4AF37; /* Gold text on hover */
}

.section {
    margin: 20px 0;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.1);
    border-top: 4px solid #D4AF37; /* Gold Accent top */
}

footer {
    /* Uses the safe area padding at the bottom for Android gesture navigation */
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)) 20px;
    background-color: #fff;
    border-top: 1px solid #D4AF37;
    margin-top: 40px;
    text-align: center;
}

/* Tracker Styles (Monthly and Yearly) */
.tracker-container {
    margin: 20px 0;
}

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 350px;
    margin: 0 auto;
}

.day-header {
    font-size: 14px;
    color: #333;
    text-align: center;
}

.tracker-day {
    width: 30px;
    height: 30px;
    background-color: #ebedf0;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: relative;
}

.tracker-day.past-no-activity {
    background-color: #ff0000;
    color: #fff;
}

.tracker-day.listened {
    background-color: #2ea043;
    color: #fff;
}

.tracker-day.today {
    border: 2px solid #90EE90;
}

.tracker-day:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Print Styles */
@media print {
    body { background-color: #fff; color: #000; }
    .container { max-width: 100%; padding: 10px; min-height: auto; }
    .menu, footer, button { display: none; }
    h1 { font-size: 24pt; color: #000; }
    .tracker-container { border: 1px solid #ccc; box-shadow: none; }
    .tracker-day { width: 25px; height: 25px; font-size: 10pt; border: 1px solid #000; }
    .tracker-day.past-no-activity { background-color: #666; }
    .tracker-day.listened { background-color: #999; }
    .tracker-day.today { border: 2px solid #000; }
    .tooltip { display: none; }
}

/* Custom styles for the features list in about.html */
.section ul {
    list-style-type: disc; /* Ensures bullets are visible if somehow removed */
    padding-left: 20px;   /* Adjust this value as needed to control indentation of bullets */
    margin-left: auto;    /* Center the list if max-width is set on ul */
    margin-right: auto;   /* Center the list if max-width is set on ul */
    max-width: fit-content; /* Helps center the list and keep items together */
    text-align: left; /* Align text within list items to the left */
}

.section ul li {
    margin-bottom: 5px; /* Adds a small space between list items */
    font-size: 18px;    /* Matches the font-size of your <p> tags for consistency */
    line-height: 1.5;   /* Matches the line-height of your <p> tags for consistency */
}

.share-result {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}
.share-result.success {
  color: #2ea043;
}
.share-result.error {
  color: #ff0000;
}

.vid-container {
  max-width: 514px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.vid-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
} 
.vid-container iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

 #ytFrame::-webkit-scrollbar {
    display: none;
  }

 .logo {
  float: right;
  margin-left: 15px;
  width: 100px;
  height: 100px;  
}