/*
Theme Name:     ScrollTicker Basic
Theme URI:      https://scrollticker.com/
Description:    A custom, lightweight theme for ScrollTicker.com.
Author:         Your Name
Author URI:     https://scrollticker.com/
Version:        1.0.0
*/
/*--------------------------------------------------------------
# General Layout Styles
--------------------------------------------------------------*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1; /* This pushes the footer to the bottom */
}
#content {
    flex: 1;
}
/*--------------------------------------------------------------
# General Page Styles
--------------------------------------------------------------*/
/* Dashboard Links */
.dashboard-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.dashboard-link {
    display: inline-block;
    padding: 20px 40px;
    background-color: #df3030;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}
.dashboard-link:hover {
    background-color: #b72525;
}
/*--------------------------------------------------------------
# Header and Navigation
--------------------------------------------------------------*/
#site-header {
    background-color: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}
.site-title a {
    text-decoration: none;
    color: #333;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.main-navigation ul li a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
}
/*--------------------------------------------------------------
# Dropdown Menu Styles
--------------------------------------------------------------*/
.main-navigation ul li {
    position: relative;
}
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 99;
    border: 1px solid #eee;
    padding: 10px 0;
}
.main-navigation ul li:hover > ul {
    display: block;
}
.main-navigation ul ul li {
    display: block;
    border-bottom: 1px solid #eee;
}
.main-navigation ul ul li:last-child {
    border-bottom: none;
}
.main-navigation ul ul a {
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    display: block;
}
.main-navigation ul ul a:hover {
    background-color: #f9f9f9;
}
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#site-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ccc;
    background-color: #f9f9f9;
}
#site-footer a {
    color: #0073e6;
    text-decoration: none;
}
/*--------------------------------------------------------------
# Ticker Styles (Continuous Scroll)
--------------------------------------------------------------*/
#ticker-bar {
    overflow: hidden;
    width: 100%;
    background-color: #df3030;
    color: #fff;
    padding: 10px 0;
    font-family: sans-serif;
    bottom: 0;
    left: 0;
    z-index: 1000;
}
#ticker-content {
    display: flex;
    width: fit-content;
    animation: scroll-left linear infinite;
    animation-duration: 30s;
}
.ticker-group {
    display: flex;
    white-space: nowrap;
}
.ticker-icon {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 5px;
}
@keyframes scroll-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
/*--------------------------------------------------------------
# General Page Styles for About Us and Privacy Policy
--------------------------------------------------------------*/
.page-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    line-height: 1.6;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}
.page-container h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    border-bottom: 2px solid #df3030;
    padding-bottom: 5px;
}
.page-container h3 {
    color: #df3030;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.page-container p {
    margin-bottom: 20px;
}
.page-container ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}
.page-container li {
    margin-bottom: 10px;
}
/* Make form inputs stack vertically */
.page-container form label,
.page-container form input {
    display: block;
    width: 100%;
}
/*--------------------------------------------------------------
# Form Styles
--------------------------------------------------------------*/
form {
    max-width: 400px;
    margin: 20px auto 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 5px;
}
.form-group.checkbox-group {
    display: flex;
    align-items: center;
    gap: 5px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Specific styling for the color input field */
input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    height: 40px; /* Adjust this value to make it taller */
    padding: 2px;
    box-sizing: border-box;
}
/* Style the color swatch within the color input */
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
input[type="color"]:focus {
    outline: none;
    border-color: #df3030;
    box-shadow: 0 0 0 3px rgba(223, 48, 48, 0.2);
}
input[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #df3030;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
    background-color: #b72525;
}
/* Styling for validation messages */
#message-container {
    margin-bottom: 20px;
    text-align: center;
}
.error-message {
    color: red;
    background-color: #ffe6e6;
    border: 1px solid red;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
.success-message {
    color: green;
    background-color: #e6f9e6;
    border: 1px solid green;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}
.password-requirements {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: block;
}
.password-requirements h4 {
    margin-top: 0;
    margin-bottom: 10px;
}
.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.password-requirements li {
    margin-bottom: 5px;
}
.unverified-message {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}
.account-links .divider {
    color: #ccc;
    margin: 0 10px;
}
/*--------------------------------------------------------------
# Ticker Theme Settings Page
--------------------------------------------------------------*/
.theme-options-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
    text-align: left;
}
.theme-options-left {
    flex: 1;
    min-width: 200px;
}
.theme-options-right {
    flex: 2;
    min-width: 300px;
}
.theme-options-right h3 {
    margin-top: 0;
    text-align: center;
}
.theme-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.theme-list li {
    margin-bottom: 10px;
}
/*--------------------------------------------------------------
# Ticker Theme Selector
--------------------------------------------------------------*/
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}
.theme-option {
    display: block;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #555;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.theme-option.coming-soon, .theme-option.premium {
    opacity: 0.6;
    cursor: not-allowed;
}
.theme-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70px;
    border-radius: 8px;
}
/* Individual Theme Previews */
.default-preview {
    background-color: #df3030;
}
.manual-preview {
    background-color: #555;
}
.golden-preview {
    background-color: #FFD700;
}
.green-preview {
    background-color: #008000;
}
.led-preview {
    background-color: #333;
}
.teleprompter-preview {
    background-color: #000;
}
.animated-preview {
    background-image: linear-gradient(90deg, #df3030, #b72525, #df3030);
    animation: pulse-bg 2s infinite;
    background-size: 200% 100%;
}
@keyframes pulse-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Style the theme name text inside the preview */
.theme-preview .theme-name {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    padding: 5px;
    display: block;
}
/* The fix to make the text visible */
.theme-option .theme-name {
    display: block;
    line-height: normal; /* Added to center text vertically */
}
.theme-option[data-option="golden"] .theme-name,
.theme-option[data-option="animated"] .theme-name,
.premium-badge {
    color: #333;
}
.coming-soon-badge, .premium-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #df3030;
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    transform: none;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 0px 8px 0px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.premium-badge {
    background-color: #FFD700;
    color: #333;
}
/*--------------------------------------------------------------
# Live Ticker Preview
--------------------------------------------------------------*/
#theme-preview-container {
    margin-top: 10px;
    text-align: center;
}
.live-ticker-preview {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
}
.ticker-preview {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ticker-preview-content {
    white-space: nowrap;
    animation: preview-scroll-left linear infinite;
    animation-duration: 15s;
    display: inline-block;
}
.ticker-preview-content span {
    display: inline-block;
    padding: 0 10px;
}
.ticker-preview-icon {
    width: auto;
    vertical-align: middle;
    margin-right: 5px;
}
@keyframes preview-scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
/* Manual Edit Checkbox */
.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}
.form-group .image-size-options {
    margin-top: -10px; /* Adjusts the spacing above the radio buttons */
    margin-left: 20px; /* Indents the radio buttons */
}

.form-group .image-size-options label {
    display: block; /* Makes each radio option a new line */
    margin-bottom: 5px; /* Adds a small space between options */
}

.form-group:last-of-type {
    margin-bottom: 20px;
}
/*--------------------------------------------------------------
# Header and Navigation
--------------------------------------------------------------*/
#site-header {
    background-color: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}
.site-title a {
    text-decoration: none;
    color: #333;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.main-navigation ul li a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
}

/* My Ticker - Logo Image Styles */
.site-branding .site-logo {
    max-width: 250px; /* Adjust this value to set the logo's max width */
    height: auto;    /* This maintains the aspect ratio */
}
.free-plan-alert {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}