:root {
    --primary-color: #2D3436;
    --accent-color: #0984E3;
    --background-light: #F5F6FA;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --spacing-unit: 1rem;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Beta banner */
.corner-beta-banner {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: -3.5rem;
    z-index: 1000;
    transform: rotate(45deg);
    width: 12rem;
    text-align: center;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    padding: 0.5rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.corner-beta-banner:hover {
    background: linear-gradient(135deg, #ffb700, #ffd700);
}

.corner-beta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.corner-beta-text {
    font-weight: 700;
    color: #856404;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.corner-beta-icon {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .corner-beta-banner {
        top: 1.5rem;
        right: -4rem;
        width: 11rem;
        padding: 0.3rem 0;
    }

    .corner-beta-text {
        font-size: 0.8rem;
    }

    .corner-beta-icon {
        font-size: 0.8rem;
    }
}

/* Common elements */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    max-width: 100%;
    box-sizing: border-box;
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--background-light), #fff);
    padding: 0rem 2rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.1;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* Features section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 2rem;
    background: var(--background-light);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Call to Action section */
.cta {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.beta-banner {
    display: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    margin-top: 1rem; /* Reduce top margin */
    margin-bottom: 1rem; /* Reduce bottom margin */
    box-shadow: 0 2px 4px rgba(133, 100, 4, 0.1);
}

.beta-text {
    font-weight: 600;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem; /* Add space between the cards and the beta banner */
}

.cta-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-header {
    padding: 2rem 2rem 1rem;
    position: relative;
}

.card-content {
    padding: 1rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure all card contents have the same height */
}

/* Ensure consistent text alignment in all cards */
.cta-card p {
    flex-grow: 1; /* Allow paragraphs to grow and align content */
}

/* Fix the layout of the step cards */
.step-card {
    display: flex;
    flex-direction: column;
}

/* Adjust the layout of the card content */
.step-card .card-content {
    display: flex;
    flex-direction: column;
}

/* Make sure the images are positioned consistently */
.step-card img {
    margin-top: auto; /* Push image to the bottom of available space */
}

.step-number {
    background: #3498db;
    color: white;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.bot-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.bot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.mastodon-button, .telegram-button {
    background-color: #4CAF50;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mastodon-button:hover, .telegram-button:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

@media (min-width: 768px) {
    .bot-options {
        flex-direction: row;
        justify-content: center;
    }
}

.file-format {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #f0f8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
}

.coming-soon-card {
    background: linear-gradient(135deg, #e8f5ff, #c8e6f3);
}

.coming-soon-badge {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.coming-soon-icon {
    font-size: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .cta {
        padding: 4rem 1rem;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .card-header, .card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .cta {
        padding: 2rem 1rem;
    }

    .step, .coming-soon {
        padding: 1.5rem;
    }
}

/* Make images respect column width in the CTA cards */
.cta-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Specifically target the step cards */
.step-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0 1rem 1rem; /* Add padding around the image */
    max-height: 300px; /* Limit the height of the image */
    object-fit: contain; /* Ensure the image maintains its aspect ratio */
}

/* Specifically target the printer image in the second card */
.cta-grid .cta-card:nth-child(2) img {
    max-height: 250px; /* Make the printer image smaller */
    margin-top: -20px; /* Move the image higher */
}

/* Specifically target the second card's image container */
.cta-grid .cta-card:nth-child(2) p:last-of-type {
    margin-top: auto;
    margin-bottom: 0;
}

/* Add general section spacing */
section {
    margin-bottom: 2rem;
}

/* Header */
header {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

header h1 {
    color: #333;
    margin: 0;
}
@media (min-width: 600px) {
    body {
//        max-width: 600px;
//        padding: 20px;
    }
}
.preview {
    width: 100%;
    height: auto;
    margin: 20px 0;
}
.map {
    width: 100%;
    height: 300px;
    border: none;
}
@media (min-width: 600px) {
    .map {
        height: 400px;
    }
}
.specs {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    word-wrap: break-word;
}
.download, .newsletter {
    display: inline-block;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
    width: calc(50% - 15px);
    box-sizing: border-box;
    vertical-align: top;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.download {
    background-color: #4CAF50;
    margin: 20px 10px 20px 0;
}

.newsletter {
    background-color: #3498db;
    margin: 20px 0 20px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.newsletter:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.button-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .download, .newsletter {
        width: 100%;
        margin: 10px 0;
        min-height: 60px;
    }

    .newsletter-content {
        justify-content: center;
    }

    .newsletter-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}


.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.model {
    border: 1px solid #ccc;
}
.tab {
    color: #ccc;
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}
.tab.active {
    color: #333;
    font-weight: bold;
    background-color: #f4f4f4;
    border-top: 2px solid #3498db;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
/* iframe { */
/*     width: 100%; */
/*     height: 300px; */
/*     border: none; */
/* } */
@media (min-width: 600px) {
    iframe {
        height: 800px;
    }
    .download {
        display: inline-block;
    }
}
.loading-message {
    text-align: center;
    padding: 20px;
    height: 200px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 20px 0;
}
@media (min-width: 600px) {
    .loading-message {
        height: 500px;
    }
}
.loading-message p {
    margin: 0;
    font-size: 1.1em;
    color: #666;
}
h1 {
    font-size: 1.5em;
    word-wrap: break-word;
}
@media (min-width: 600px) {
    h1 {
        font-size: 2em;
    }
}
/* Coming Soon Newsletter Button */
.coming-soon-newsletter {
    background-color: #3498db;
    color: white;
    margin-top: 20px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.coming-soon-newsletter:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.coming-soon-card .newsletter-content {
    justify-content: center;
}

.coming-soon-card .newsletter-icon {
    margin-right: 10px;
}

/* Footer */
footer, .footer {
    background-color: #f8f9fa;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    font-size: 0.9em;
    color: #666;
}

footer a, .footer a {
    color: #3498db;
    text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .features {
        padding: 1rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .cta {
        padding: 2rem 1rem;
    }

    .cta p:first-child {
        font-size: 1.5rem;
    }
}

/* Common elements */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Button styling */
.button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.button:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    text-decoration: none;
}


.button-selection-link {
    display: inline-block;
    background-color: gray;
    color: white;
    padding: 5px 5px;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.button-selection-link:hover {
    background-color: darkgray;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    text-decoration: none;
}


.mastodon-embed {
    min-height: auto !important;
    padding: 0;
    margin: 0;
}

/* FAQ Page Styles */
.faq-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.faq-container h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.faq-container h3:first-child {
    margin-top: 0;
}

.faq-container h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.faq-container ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-container li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.faq-container li strong {
    color: var(--accent-color);
}

.faq-container p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.faq-container a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: all 0.2s ease;
}

.faq-container a:hover {
    border-bottom: 1px solid var(--accent-color);
}

.back-to-home {
    text-align: center;
    margin: 2.5rem 0;
}

.back-to-home .button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(9, 132, 227, 0.2);
}

.back-to-home .button:hover {
    box-shadow: 0 6px 15px rgba(9, 132, 227, 0.3);
}

/* Site header styling */
.site-header {
    background-color: #f8f9fa;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-link {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.home-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.home-link:before {
    content: "←";
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 1.5rem;
    }

    .faq-container {
        padding: 1.5rem;
    }

    .faq-container h3 {
        font-size: 1.5rem;
    }

    .faq-container h4 {
        font-size: 1.2rem;
    }
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.faq-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.faq-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.faq-card ul {
    padding-left: 1.2rem;
    margin: 0;
}

.faq-card li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Examples section */
.examples {
    margin-top: 1rem;
    background-color: #fff;
}

.examples h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.example-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .example-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.example-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.example-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.example-card a {
    text-decoration: none;
    color: inherit;
}

.example-card img {
    width: 100%;
    margin-left: 5px;
    margin-right: 5px;
    object-fit: cover;
    transition: var(--transition);
}

.example-card h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.example-card p {
    padding: 0 1rem;
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.specs-preview {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: #666;
}

.specs-preview span {
    padding: 0.2rem 0.5rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
}



/// map styles

#map { height: 100vh; }

.search-control {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.search-control input {
    padding: 8px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 16px;
}

.search-results {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 8px;
    cursor: pointer;
    font-size: 16px;
}

.search-result-item:hover {
    background: #f0f0f0;
}
#overviewmap {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.hidden {
    display: none;
}



.example-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.topodisc-gallery {
  position: relative;
  width: 100%;
}


.gallery-images {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  margin-bottom: 10px;
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
  cursor: pointer; /* Add pointer cursor to indicate clickability */
}

.gallery-img.active {
  opacity: 1;
  display: block;
}

.zoom-control {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
}


.topodisc-info {
  padding:  0 1rem 0 0;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topodisc-info h3 {
  margin-top: 0;
  margin-bottom: 0.1rem;
}

.topodisc-info p {
  color: #666;
  flex-grow: 1;
  margin-bottom: 0px;
  min-height: 5ch;
}

.view-link-major {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 500;
  transition: background 0.2s ease;
  align-self: flex-end;
  margin-top: auto;
  margin-bottom: 1rem;
}

.view-link-major:hover {
    background: #2c80b4;
    text-decoration: none;
}


.view-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: lightgray;
  color: #333;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 500;
  transition: background 0.2s ease;
  align-self: flex-end;
  margin-top: auto;
  margin-bottom: 1rem;
}

.view-link:hover {
  background: darkgray;
}

.disclaimer {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 3px;
    padding: 0 5px;
    line-height: 1.3;
    text-align: left;
    grid-column: 1 / -1; /* Make the disclaimer span all columns */
}
