@font-face {
  font-family: 'PixelFontUniversity';
  src: url('font/PixelFontUniversity22.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-size: 22pt;
}

@font-face {
  font-family: 'PixelFontSans';
  src: url('font/PixelFontSans13.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-size: 16pt;
}

@font-face {
  font-family: 'PixelFontNewYork';
  src: url('font/PixelFontNewYork20.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-size: 20pt;
}

body {
    background: #E8F4F8;
    font-family: "Apple Garamond", "EB Garamond", Garamond, "Hoefler Text", Georgia, serif;
    font-size: 21px;
    line-height: 1.6;
    margin: 0px;
    color: #000000; /* Ensuring base text is black for maximum contrast */
}

p {
    margin-bottom: 1.2em;
    margin-top: 0;
}

.container {
    background: #FFFFFF;
    padding: 20px;
}

/* Increase margins on wider screens */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 20px 60px;
    }
}

@media screen and (min-width: 1600px) {
    .container {
        max-width: 1200px;
        padding: 20px 80px;
    }
}

@media screen and (min-width: 1920px) {
    .container {
        max-width: 1400px;
        padding: 20px 120px;
    }
}

h1, h2 {
    color: #0866A0; /* Darker blue for better contrast */
    text-align: center;
    font-family: "Apple Garamond", "EB Garamond", Garamond, "Hoefler Text", Georgia, serif;
    font-weight: bold;
}

h3 {
    color: #0A5991; /* Darker blue for better contrast */
    margin-top: 15px;
    margin-bottom: 10px;
    font-family: "Apple Garamond", "EB Garamond", Garamond, "Hoefler Text", Georgia, serif;
    font-weight: bold; /* Added for better visibility */
}

.marquee-container {
    position: relative;
    width: 100%;
    background: #A8D4E8;
}

.news-banner {
    display: none;
    background: #87C5E8;
    padding: 8px;
    text-align: center;
    color: #000000;
    font-weight: bold;
    font-family: "PixelFontSans", "Comic Sans MS", sans-serif;
}

.news-banner a {
    color: #000000;
    text-decoration: none;
}

.news-banner a:hover {
    text-decoration: underline;
}

/* Site navigation */
.site-nav {
    background: #E0F0FF;
    padding: 8px 15px;
    border-bottom: 1px solid #87C5E8;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-family: "PixelFontSans", "Comic Sans MS", sans-serif;
}

.site-nav a {
    display: inline-block;
    padding: 4px 10px;
    text-decoration: none;
    color: #0866A0;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.site-nav a.disabled {
    color: #a0a0a0;
    cursor: not-allowed;
    background: rgba(240, 240, 240, 0.5);
    text-decoration: none;
}

.site-nav a.disabled:hover {
    background: rgba(240, 240, 240, 0.5);
    border-color: transparent;
    text-decoration: none;
}

.site-nav a:hover, .site-nav a:focus {
    background: white;
    border-color: #87C5E8;
    text-decoration: none;
}

.site-nav a.active {
    background: white;
    border-color: #0866A0;
    font-weight: bold;
}

@media screen and (max-width: 480px) {
    .site-nav {
        padding: 4px 8px;
        gap: 6px;
    }

    .site-nav a {
        flex: 1;
        text-align: center;
        padding: 3px 6px;
        font-size: 0.85em;
    }
}


a {
    color: #0000EE; /* Standard blue with better contrast */
    text-decoration: underline;
    font-weight: 500; /* Slightly bolder for better visibility */
}

a:visited {
    color: #551A8B; /* Darker purple for better contrast */
}

hr {
    border: 1px solid #000000;
}

ul {
    list-style-type: disc;
}


.screenshot {
	image-rendering: auto;
    text-align: left;
    display: grid;
    grid-template-columns: minmax(auto, 55%) 1fr;
    grid-template-areas: "image text";
    gap: 4px;
    align-items: center;
}

.screenshot > .image {
    text-align: right;
}

.screenshot > .text {
    font-size: 1em;
    max-width: 80ch;
    padding-right: 10px;
}

.gallery-container {
    position: relative;
    display: inline-block;
    width: 90%;
}

.gallery-images-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for all images */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.gallery-image:not(.active) {
    display: none;
}

/* Adjust layout on narrow screens */
@media screen and (max-width: 768px) {
    .screenshot {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "text";
    }
    
    .gallery-container {
        width: 100%;
    }
}

.gallery-nav {
    margin-top: 2px;
    background: #E8F4F8;
    padding: 4px 8px;
    border-radius: 0;
    border: 1px solid #000;
    box-shadow: 2px 2px 0px #87C5E8;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "PixelFontSans", "Comic Sans MS", sans-serif;
}

.gallery-btn {
    background: #FFFFFF;
    border: 1px solid #000;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    color: #0866A0;
    font-family: "PixelFontSans", "Comic Sans MS", sans-serif;
    font-weight: bold;
    transition: all 0.1s ease;
}

.gallery-btn:hover {
    background: #87C5E8;
    transform: translate(-1px, -1px);
    box-shadow: 1px 1px 0px #000;
}

.gallery-btn:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.gallery-counter {
    font-size: 11px;
    color: #000;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.promo-box {
    text-align: center;
    background: none;
    padding: 20px 16px;
    position: relative;
    margin: 40px 0 50px 0;
    border: none;
}

/* Secondary CTA */
.secondary-cta {
    text-align: center;
    padding: 40px 20px;
    margin: 50px 0 40px 0;
}

.secondary-cta h2 {
    margin-bottom: 25px;
    font-size: 1.8em;
}

.purchase-option {
    margin: 20px 0;
    padding: 10px;
    border: 2px dashed #FFA500;
    background: #FFFFF0;
}

.info-box {
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #707070; /* Darker border for better contrast */
    background: #F0F0F0; /* Slightly darker background */
    max-width: 80%;
    font-size: 0.9em;
    color: #000000; /* Ensuring text is black for contrast */
}

@media screen and (max-width: 1024px) {
    .screenshot {
        display: block;
    }

    .screenshot > .text {
        font-size: 1em;
    }
    
    .promo-box {
		margin: 20px 0;
	}
	
	.info-box {
	    max-width: 100%;
	}

    .download-button {
        padding: 16px 30px;
        font-size: 1.3em;
    }
}

/* Marquee and audio container */
.marquee-container {
    position: relative;
    width: 100%;
    background: #A8D4E8;
}

/* Audio controls container */
.audio-controls-container {
    position: relative;
    width: 100%;
    background: #A8D4E8;
    padding: 5px 0;
    min-height: 30px;
}

/* Custom alert dialog */
.custom-alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    border: 4px ridge #00FFFF;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 400px;
    width: 80%;
    z-index: 1000;
    text-align: center;
    font-family: "PixelFontSans", "Comic Sans MS", sans-serif;
}

.custom-alert-header {
    margin-bottom: 15px;
}

.custom-alert-header img {
    display: block;
    margin: 0 auto 10px;
}

.custom-alert-content {
    margin-bottom: 20px;
}

.custom-alert-button {
    background: #E0F0FF;
    border: 2px solid #87C5E8;
    padding: 6px 15px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-alert-button:hover {
    background: #D4EEFF;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

/* Audio player styles */
.audio-player {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 5px;
    z-index: 10;
}

#audio-toggle {
    display: flex;
    align-items: center;
    background: #F0F0F0; /* Muted background color */
    border: 1px solid #C0C0C0; /* Subtle border */
    border-radius: 3px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 10px;
    color: #555555; /* Muted text color */
    font-weight: normal;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
    opacity: 0.8; /* Slightly transparent */
}

#audio-toggle:hover {
    background-color: #E8E8E8; /* Slightly lighter gray on hover */
    opacity: 1;
}

#audio-toggle:active {
    transform: scale(0.98);
}

#audio-toggle:focus {
    outline: 1px solid #0866A0;
    opacity: 1;
}

.play-icon {
    margin-right: 3px;
    font-size: 9px;
}

.pause-icon {
    font-size: 9px;
    margin-right: 3px;
}

.audio-label {
    font-family: Arial, sans-serif; /* Simple sans-serif font */
    font-size: 9px;
}

/* Inline styles moved to classes */
.right-aligned {
    text-align: right;
    font-family: Times;
}

.center-aligned {
    text-align: center;
}

.small-text {
    font-size: 40%;
}

.testimonials {
    font-family: "Apple Garamond", "EB Garamond", Garamond, "Hoefler Text", Georgia, serif;
    margin-top: 50px;
    padding: 30px 0;
}

.testimonials h2 {
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 1.8em;
    color: #0866A0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.testimonial-item {
    background: #FFFFFF;
    border: 2px solid #D4EEFF;
    padding: 20px;
    border-radius: 3px;
    box-shadow: 2px 2px 0px #E8F4F8;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.testimonial-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #87C5E8;
    margin-right: 0;
}

.testimonial-content {
    flex: 1;
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.85em;
    margin-top: 0;
    font-weight: bold;
}

.testimonial-author a {
    color: #0866A0;
    text-decoration: none;
    font-weight: bold;
}

.testimonial-author a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.pencil-container {
    display: flex; 
    width: 90%; 
    justify-content: center;
}

.subscribe-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.site-footer {
    margin-top: 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #0866A0;
    font-size: smaller;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-text {
    font-size: smaller;
}

.fine-print {
    font-size: 75%;
    color: #595959; /* Darker gray for better contrast */
    line-height: 1.4;
    font-weight: 500; /* Slightly bolder for better visibility */
}

/* FAQ styling with definition list */
.faq-list {
    padding: 0;
    margin: 1.5em 0;
}

#faq {
    margin-top: 25px;
}

.faq-item {
    margin-bottom: 1.3em;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 0.3em;
}

.faq-answer {
    margin: 0.3em 0 0 0;
    padding: 0;
}

/* Reset browser default dl margins and padding */
dl, dt, dd {
    margin: 0;
    padding: 0;
}

/* Download button styling - Retro style */
.download-button {
    display: inline-block;
    background: #FFFFFF;
    color: #0866A0;
    font-weight: bold;
    font-size: 1.3em;
    text-decoration: none;
    padding: 12px 28px;
    border: 3px solid #000000;
    border-radius: 0;
    box-shadow: 4px 4px 0px #000000;
    font-family: "PixelFontSans", "Comic Sans MS", sans-serif;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    position: relative;
}

.download-button:hover, .download-button.hover-active {
    background: #E0F0FF;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

.download-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}


.download-button-wrapper {
    position: relative;
    display: inline-block;
}

.download-subtext {
    margin-top: 15px;
    font-weight: normal;
    color: #555;
    font-size: 0.9em;
}

.homebrew-install {
    margin-top: 12px;
    text-align: center;
    opacity: 0.8;
}

.brew-subtext {
    margin: 0 0 4px 0;
    font-weight: normal;
    color: #666;
    font-size: 0.65em;
    font-family: "EB Garamond", Garamond, serif;
}

.brew-command {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 4px 8px;
    font-family: "Monaco", "Menlo", "Courier New", monospace;
    font-size: 0.65em;
    color: #00ff00;
    font-weight: normal;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brew-command:hover {
    background: #2a2a2a;
    border-color: #444;
    color: #00ff00;
}

.brew-command:active {
    background: #0a0a0a;
}

/* Section headers */
.section-header {
    text-align: center;
    margin: 20px 0 20px 0;
}

.section-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Hero tagline */
.hero-tagline {
    font-size: 2.2em;
    font-weight: bold;
    margin: 30px auto 25px;
    line-height: 1.3;
}

/* Intro text */
.intro-text {
    font-size: 1.5em;
    margin: 30px auto 40px;
    max-width: 700px;
    line-height: 1.6;
}

/* Screenshot showcase */
.screenshot-showcase {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 25px 0;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.showcase-image {
    width: 90%;
    max-width: 1000px;
    height: auto;
    min-height: 400px;
    object-fit: contain;
    cursor: pointer;
    border: 1px solid #D0D0D0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #F8F8F8;
}

.showcase-caption {
    text-align: left;
    width: 90%;
    max-width: 1000px;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Placeholder image */
.placeholder-image {
    width: 90%;
    max-width: 1000px;
    min-height: 400px;
    background: linear-gradient(135deg, #E8F4F8 0%, #D4EEFF 100%);
    border: 3px dashed #87C5E8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2em;
    color: #0866A0;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.placeholder-image p {
    margin: 0;
}

/* Features list */
.features-list {
    margin: 10px 0 25px 0;
}

.features-list ul {
    max-width: 100%;
    margin: 0;
}

.features-list li {
    margin-bottom: 0.8em;
}

/* Comprehensive features (And So Much More) */
.comprehensive-features-wrapper {
    position: relative;
}

.comprehensive-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 25px 0;
    padding: 25px;
    background: #F8FCFF;
    border: 3px solid #87C5E8;
    box-shadow: 5px 5px 0px #D4EEFF;
    position: relative;
}

.comprehensive-features::before {
    content: "✨";
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 24px;
    background: #E8F4F8;
    padding: 0 10px;
}

.comprehensive-features::after {
    content: "✨";
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 24px;
    background: #E8F4F8;
    padding: 0 10px;
}

/* Toggle features button - hidden by default */
.toggle-features-btn {
    display: none;
    margin: 15px auto 0;
    padding: 10px 20px;
    background: #FFFFFF;
    color: #0866A0;
    border: 2px solid #87C5E8;
    border-radius: 3px;
    font-family: "PixelFontSans", "Comic Sans MS", sans-serif;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px #D4EEFF;
}

.toggle-features-btn:hover {
    background: #E0F0FF;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #D4EEFF;
}

.toggle-features-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #D4EEFF;
}

.features-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-column li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 0.9em;
    line-height: 1.5;
}

.features-column li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #0866A0;
    font-weight: bold;
    font-size: 1.1em;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .comprehensive-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.4em;
    }

    .showcase-image,
    .placeholder-image {
        width: 100%;
        min-height: 300px;
    }

    .section-header {
        margin: 30px 0 15px 0;
    }

    .screenshot-showcase {
        gap: 20px;
    }

    .comprehensive-features {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
        max-height: 300px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        position: relative;
    }

    .comprehensive-features.collapsed::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(to bottom, transparent, #F8FCFF);
        pointer-events: none;
    }

    .comprehensive-features.expanded {
        max-height: none;
    }

    .comprehensive-features.expanded::after {
        display: none;
    }

    .toggle-features-btn {
        display: block;
    }

    /* Hero section mobile */
    .hero-tagline {
        font-size: 1.4em;
        line-height: 1.25;
        margin: 15px auto 12px;
    }

    .intro-text {
        font-size: 0.95em;
        padding: 0 10px;
        margin: 15px auto 25px;
    }

    .promo-box {
        margin: 25px 0 35px 0;
    }

    .secondary-cta {
        padding: 25px 15px;
        margin: 35px 0 25px 0;
    }

    .secondary-cta h2 {
        font-size: 1.3em;
    }

    .download-button {
        font-size: 1.1em;
        padding: 10px 24px;
    }
}

