/* Global Styles */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    /* Backgrounds are set in HTML or specific page classes */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Language Selection - Common */
.language-select {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.language-select select {
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    width: 150px;
    cursor: pointer;
}

.language-select img {
    width: 20px;
    margin-right: 5px;
}

/* Landing Page Specifics (Dark Theme) */
body.landing-page {
    /* Replicating removed Tailwind classes: flex flex-col min-h-screen text-white bg-black bg-opacity-50 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: white;
    background-color: black;
    /* Fallback */

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Ensure it covers even on scroll */
}

.landing-page .language-select select {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.landing-page header {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
}

.landing-page header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    word-break: break-word;
}

.landing-page header h2 {
    font-size: 1.2rem;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.8);
    word-break: break-word;
}

.landing-page main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.frame-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.frame-link {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    display: block;
    margin-bottom: 10px;
}

.frame-link:hover {
    transform: scale(1.05);
}

.frame-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-title {
    font-size: 1.1rem;
    font-weight: bold;
    word-break: break-word;
}

.frame-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-word;
}

.landing-page footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.7);
}

/* Generator Page Specifics (Light/Overlay Theme) */
body.generator-page {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    display: flex;
    /* Added for sticky footer */
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    color: white;
    /* Default text color for headers/labels */
}

.generator-page .language-select select {
    border: 1px solid #aaa;
    background-color: white;
    color: #333;
}

.generator-page .language-select select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.container {
    max-width: 500px;
    margin: auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.generator-page input,
.generator-page button,
.generator-page select.control {
    /* Differentiate from lang select if needed, or use specific selectors */
    width: 80%;
    max-width: 400px;
    display: block;
    margin: 10px auto;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Specific button styles from palette */
.generator-page button {
    background: #27ae60;
    color: white;
    cursor: pointer;
    font-weight: bold;
    border: none;
}

.generator-page button.reset {
    background: #e74c3c;
    color: white;
}

.generator-page button.other-frames {
    background: #3498db;
    color: white;
}

canvas {
    width: 100%;
    margin-top: 20px;
    display: none;
    border-radius: 10px;
}

.generator-page footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    width: 100%;
    font-size: 16px;
    color: #eee;
    text-align: center;
    box-sizing: border-box;
    border-top: 1px solid #333;
    position: fixed;
    bottom: 0;
    left: 0;
    margin-top: auto;
}

.alert {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 10px;
    border: 1px solid #ef5350;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.generator-page a {
    color: #4299e1;
}

.generator-page a:hover {
    text-decoration: underline;
}

/* Utilities */
.hidden {
    display: none !important;
}