:root {
    --button-height: 65px;
    --provider-label-text: 20px;
    --provider-selector: 45px;
}

body {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 599px) {
    body {
        margin: 0 15px;
    }
}
@media (min-width: 600px) {
    body {
        max-width: 600px;
        padding: 20px;
    }
}
.preview {
    width: 100%;
    height: auto;
    margin: 10px 0;
    cursor: pointer; /* Add pointer cursor to indicate clickability */
}
.map {
    width: 100%;
    height: 300px;
    border: none;
}
@media (min-width: 600px) {
    .map {
        height: 400px;
    }
}
.specs {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 5px;
    margin: 15px 0;
    word-wrap: break-word;
}
.download, .newsletter, .print-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-size: 1em;
    box-sizing: border-box;
    height: var(--button-height);
    margin: 0; /* Remove margin to prevent spacing issues */
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    width: 100%;
    line-height: 1.2; /* Ensure consistent line height */
}

.download div, .newsletter div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.download {
    background-color: #4CAF50;
}

.download:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.newsletter {
    background-color: #3498db;
}

.newsletter:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.button-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 5px;
    align-items: start; /* Align items at the top of their grid cells */
}

.print-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
}

@media (max-width: 600px) {
    .button-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .print-row {
        grid-template-columns: 1fr;
    }

    .download, .newsletter, .print-button {
        margin: 0; /* Remove margin */
        height: 50px;
    }
}
.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.model {
    border: 1px solid #ccc;
}
.tab {
    color: lightgray;
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    white-space: nowrap;
}
.tab.active {
    color: black;
    font-weight: bold;
    background-color: #f4f4f4;
}
.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: 15px;
    height: 180px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 12px 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;
    margin-block-start: 2;
    margin-block-end: 2;
}
@media (min-width: 600px) {
    h1 {
        font-size: 2em;
    }
}
.mastodon-embed {
   min-height: auto !important;
   padding: 0;
   margin: 0;
}
.exaggeration-control {
    margin: 10px 0;
    padding: 5px;
}

/* print on demand  CSS ========================================*/

.print-on-demand-container {
  display: contents; /* This allows the container to not create its own box */
  width: 100%;
}

.provider-wrapper {
  display: flex;
  flex-direction: column;
  height: var(--button-height);
}

.provider-label {
  font-size: 0.85em;
  margin-bottom: 3px;
  color: #333;
  height: var(--provider-label-text);
}

.provider-dropdown {
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  width: 100%;
  margin: 0;
  height: var(--provider-selector);
  background-color: #f0f0f0;
  box-sizing: border-box;
  color: #333;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

.provider-dropdown:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
}

.print-button.ready-to-order {
  background-color: orange;
}

.print-button.ready-to-order:hover:not(:disabled) {
    background-color: darkorange;
}

.print-button {
  background-color: #3498db;
  cursor: pointer;
  height: var(--button-height);
  margin: 0; /* Remove margin */
}

.print-button:hover:not(:disabled) {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.print-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

.loading {
  text-align: center;
  padding: 10px;
  color: #7f8c8d;
  font-style: italic;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin-top: 5px;
}

.status-message {
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9em;
}

.status-message.success {
  background-color: #FFA50033;
  color: #2F4F4F;
  border: 1px solid darkorange;
}


.status-message.error {
  background-color: #fdedec;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.status-message.success a {
    color:#2F4F4F;
    font-weight: bold;
    text-decoration: none;
}

.status-message a:hover {
  text-decoration: underline;
}

.close-status {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
}

.close-status:hover {
  color: #000;
}

.status-message {
  position: relative;
}

.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 */
}

.hidden {
    display: none;
}

.custom-credit {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.custom-credit p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
}
