/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* We want the body to take up the entire screen */
html, body {
    width: 100%;
    /* height: 100%; */
    min-height: 100vh; /* Usa min-height en lugar de height */
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: indigo;
    --button-color: #623198;
    --button-hover-color: #7a4db5;
    --link-color: #623198;
}

/* 
   The body as a Flex Container,
   centering .form-container vertically and horizontally
*/
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* horizontally center the container */
    align-items: center;     /* vertically center the container */
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    /* background: linear-gradient(120deg, #f0f0f0, #fafafa); */
    background: linear-gradient( 120deg, var(--primary-color), lightblue);
    color: #333;
    padding: 20px;
    box-sizing: border-box;
}

/* Centered or not, depends on your taste.
   If you want left-aligned text, you can remove text-align: center. */
h1, h3 {
    text-align: left;
}

form {
    width: 100%; /* Takes up the entire width of the container */
}

/* Margin classes if you need them */
.mt5  { margin-top: 5px; }
.mb5  { margin-bottom: 5px; }
.mt10 { margin-top: 10px; }
.mb10 { margin-bottom: 10px; }
.mt20 { margin-top: 20px; }
.mb20 { margin-bottom: 20px; }

/* .form-container: Column flex, aligned to the left */
.form-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center the container */
    box-sizing: border-box;
}

.form-container h1, .form-container h3 {
    text-align: center;
    margin: 0 auto;
}

/* "please wait" message */
#please_wait_message {
    display: none;
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
    padding: 10px;
    width: 80%;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin: 0 auto;
}

/* "please wait" message */
.model_message {
    background-color: #c0c6dd;
    color: #623198;
    font-weight: bold;
    padding: 10px;
    width: 80%;
    border: 1px solid #623198;
    border-radius: 4px;
    margin: 0 auto;
}
/* Styles for the model selector */
.model-selector {
    display: flex;
    flex-direction: column; /* Stack label and select vertically */
    align-items: flex-start; /* Align to the left */
    row-gap: 5px; /* Add spacing between label and select */
    width: 80%; /* Ensure it takes the full width of the container */
    margin: 0 auto;
}

.model-selector label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color, #333); /* Use a text color variable or fallback */
}

.model-selector select {
    width: 100%; /* Make the dropdown take the full width */
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;;
}

.model-selector select:focus {
    border-color: var(--button-color, #204cfe); /* Highlight border on focus */
    box-shadow: 0 0 5px rgba(32, 76, 254, 0.5); /* Add a subtle glow */
    outline: none; /* Remove default outline */
}

/* Large clickable area for drag & drop */
.drop-zone {
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 0.5rem auto 0.5rem auto;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 80%; 
}
.size-limit-warning {
    margin: 1rem auto 0.5rem auto;
    text-align: center;
    width: 80%;
}

.drop-zone:hover {
    background-color: #eee;
    border-color: #bbb;
}

.drop-zone.dragover {
    background-color: #eee;
    border-color: #999;
}

.drop-zone p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* Hide the original input */
.file-input {
    display: none;
}

/* Main button */
.upload-btn {
    background-color: var(--button-color);
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 15px auto 5px auto;
    display: block;
}

.upload-btn:hover {
    background-color: var(--button-hover-color);
    transform: translateY(-2px);
}
.upload-btn:active {
    transform: scale(0.98);
}

/* Styles for your links inside the form-container, 
   if you want them left-aligned */
.form-container a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bolder;
}

.bmc-btn-container a {
    color: #623198 !important;
    text-decoration: none !important;
}

.form-container a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 0.5rem auto;
    width: 80%;
    font-weight: bold;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.error-message i {
    margin-right: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.upload-btn:disabled {
    background-color: #b5a4c7;
    transform: none !important;
    cursor: not-allowed;
}

.bmc-btn {
    text-decoration: none;
}


.thank-you-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thank-you-message {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--button-color);
    text-align: center;
    margin: 10px 0;
}

.benefit-list {
    margin-left: 20px;
    color: #333;
}

.benefit-list li {
    margin-bottom: 5px;
}

.signature {
    margin-top: 10px;
    font-style: italic;
}

.return-link {
    margin-top: 25px;
    text-align: center;
}

.return-button {
    display: inline-block;
    background-color: var(--button-color);
    color: white !important;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none !important;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.return-button:hover {
    background-color: var(--button-hover-color);
    text-decoration: none !important;
    transform: translateY(-2px);
}

.return-button:active {
    transform: scale(0.98);
}

/* Upcoming features section */
.upcoming-features {
    width: 100%;
    padding: 15px;
    background-color: #f5f0ff;
    border-radius: 8px;
    border-left: 4px solid var(--button-color);
}
.upcoming-features-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.buy-me-a-coffee{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 5px auto 0 auto;
}
.upcoming-features h3 {
    color: var(--button-color);
    margin-bottom: 10px;
    text-align: left;
}

.feature-card {
    margin: 15px 0;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-card h4 {
    color: var(--button-color);
    margin-bottom: 5px;
}

.feature-card ul {
    padding-left: 1.25rem;
    margin: 0;
}

.feature-card li {
    margin-bottom: 8px;
    color: #333;
}

.support-message {
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
    color: #623198;
}

/* Grid layout for help cards */
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Responsive grid */
    gap: 20px; /* Space between cards */
    width: 100%;
}

/* Individual help cards */
.help-card {
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow */
    text-align: center; /* Center content */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Hover effect */
}

/* Hover effect for cards */
.help-card:hover {
    transform: translateY(-5px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

/* Title inside the card */
.help-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Links inside the card */
.help-card a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: normal;
    font-size: 0.95rem;
}

.help-card a:hover {
    text-decoration: underline;
}

.paypal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}
.pp-96GEXVM9RCTLS{
    text-align:center;
    border:none;
    border-radius:0.25rem;
    min-width:11.625rem;
    padding:0 1rem;
    height:2.5rem;
    font-weight:bold;
    background-color:#FFD140;
    color:#000000;
    font-family:"Helvetica Neue",Arial,sans-serif;
    font-size:1rem;
    line-height:1.25rem;
    cursor:pointer;
}

/* Success page styles */
.success-message {
    text-align: center;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.success-message p {
    font-size: 1.2rem;
    color: #333;
}

.download-info {
    font-weight: bold;
    color: var(--button-color);
}

.redirect-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.success-icon {
    color: #4CAF50;
    font-size: 64px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.button-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.manual-download {
    display: inline-block;
    background-color: #4CAF50;
    color: white !important;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: regular !important;
    text-decoration: none !important;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

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

.feature-word {
    font-weight: bold;
    color: var(--button-color);
}

.donation-suggestion {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.donation-suggestion p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.gh-star-btn {
    display: flex;
    margin: 0 auto;
    text-align: center;
    gap: 1rem;
}

.github-star {
    display: flex;
    padding: 10px 0;
    border-top: 1px solid #eee;
    gap: 1rem;
}

.github-star p {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

.github-star iframe {
    margin-top: 5px;
    display: inline-block;
}
