body {
    font-family: 'Arial', sans-serif;
    background-color: rgba(0, 0, 0, 0.5);
    background: #000000 url('https://www.unitedaion.com/theme/images/body_background.jpg') no-repeat center top fixed;
    background-size: cover;
    color: #f2f2f2;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Links – match main site */
a {
    color: #25b2ff;
}
a:hover {
    text-decoration: underline;
}

/* Centered logo like the main site */
.ua-logo {
    text-align: center;
    margin: 20px 0 10px 0;
}
.ua-logo img {
    max-width: 260px;
    height: auto;
}

/* Aion-styled navbar instead of plain bootstrap bg-dark */
/* Top bar – transparent, only buttons visible */
.navbar.ua-navbar {
    background: transparent !important;
    border-bottom: none;
    padding-top: 10px;
    padding-bottom: 0;
    justify-content: center;
}

/* Hide brand text on the left (logo above is enough) */
.navbar.ua-navbar .navbar-brand {
    display: none;
}

/* Center the nav items */
.navbar.ua-navbar .navbar-nav {
    margin: 0 auto;
}

/* Make nav links look like small UI buttons */
.navbar.ua-navbar .nav-link {
    background: linear-gradient(135deg, #25b2ff, #4286f4) !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
    box-shadow: 0 0 6px rgba(0,0,0,0.35);
    transition: background 0.15s ease, transform 0.1s ease;
}

.navbar.ua-navbar .nav-link:hover {
    background: linear-gradient(135deg, #4cc8ff, #5aa4ff) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Active page – same style as hover */
.navbar.ua-navbar .nav-item.active > .nav-link,
.navbar.ua-navbar .nav-link.active {
    background: linear-gradient(135deg, #4cc8ff, #5aa4ff) !important;
    color: #ffffff !important;
}

.navbar.ua-navbar .navbar-text {
    font-size: 13px;
    color: #a9bad8;
}

/* Optional wrapper to center vote content */
.vote-main-container {
    max-width: 1100px;
    margin: 20px auto 40px auto;
}

.header {
    background-color: rgba(0, 0, 0, 0.5); /* Increased transparency */
    color: white;
    padding: 20px 0;
    text-align: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo h1 {
    margin: 0;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.nav ul li {
    display: inline;
}

.nav ul li a {
    color: #f2f2f2; /* Match main website nav link color */
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    background-color: rgba(76, 175, 80, 0.5); /* Increased transparency */
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav ul li a:hover {
    background-color: rgba(85, 85, 85, 0.5); /* Increased transparency */
}

.welcome {
    margin-left: 20px;
    font-style: italic;
}

.footer {
    background-color: rgba(0, 0, 0, 0.5); /* Increased transparency */
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
    color: #f2f2f2; /* Match main website text color */
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: #f2f2f2; /* Match main website link color */
    text-decoration: none;
}

.footer-links a:hover {
    color: #ccc; /* Match main website link hover color */
}

.social-links a {
    font-size: 1.5em;
    color: white;
}

.main-content {
    padding: 50px 0;
    text-align: center;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Match main website container background color */
    color: #f2f2f2; /* Match main website text color */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin-bottom: 20px;
    color: #EBD1B4; /* Match main website heading color */
}

p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.button, .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    background-color: rgba(76, 175, 80, 0.5); /* Increased transparency */
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button:hover, .btn-primary:hover {
    background-color: rgba(85, 85, 85, 0.5); /* Increased transparency */
}

.form-group {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: rgba(51, 105, 175, 0.5); /* Increased transparency */
    border-color: rgba(76, 175, 80, 0.5); /* Increased transparency */
}

.btn-primary:hover {
    color: #fff;
    background-color: rgba(85, 85, 85, 0.5); /* Increased transparency */
    border-color: rgba(85, 85, 85, 0.5); /* Increased transparency */
}

.btn-block {
    display: block;
    width: 100%;
}

/* === Modern Vote Panel Box Style === */
.top_banner {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.12);
    padding: 18px 16px;
    margin-bottom: 18px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Slight lift on hover */
.top_banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

/* Fix numbering title */
.top_banner .num_position {
    margin-bottom: 6px;
    font-weight: 600;
    color: #1c2b4a;
}

/* Vote site image */
.top_banner img {
    max-width: 180px;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.20);
}

/* Vote Credits text */
.top_banner font {
    color: #1a3769 !important; /* Deep Aion blue */
}

/* Bonus credits text */
.top_banner span {
    display: inline-block;
    margin-top: 4px;
    color: #444 !important;
}

/* Already Voted / Timer buttons remain readable */
.btn-voted,
.btn-timer {
    margin-top: 6px;
}

.top_banner .num_position {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.tops_listd {
    margin-bottom: 30px;
}

.jumbotron {
    background-color: rgba(0, 0, 0, 0.7); /* Match main website section background color */
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-radius: .3rem;
    color: #f2f2f2; /* Match main website section text color */
}

.jumbotron .btn-lg {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: .3rem;
}

.text-danger {
    color: red;
}

.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

#CountDownTimer {
    background: rgba(8, 16, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    margin: 12px auto 6px;
}

.social-links a {
    font-size: 1.5em;
    color: white; /* Ensure the icons are visible against the background */
    margin-right: 10px; /* Add margin between icons */
    text-decoration: none;
}

.social-links a:hover {
    color: #3369AF; /* Match main website link hover color */
}

.social-links {
    margin-top: 15px; /* Ensure there's some spacing above the social links */
    display: flex; /* Ensure the icons are displayed in a row */
    justify-content: center; /* Center the icons */
    align-items: center; /* Vertically center the icons */
}

.bold-text {
    font-weight: bold;
}

/* === Vote panel action buttons (modern theme) === */

/* Shared button base */
.vote-btn {
    display: inline-block;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-align: center;
    text-decoration: none !important;
}

/* Already Voted (disabled style) */
.btn-voted {
    background: rgba(160, 175, 185, 0.55) !important;
    color: #ffffff !important;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

/* Check Time Button (primary action) */
.btn-timer {
    background: linear-gradient(135deg, #25b2ff, #4286f4) !important;
    color: #ffffff !important;
    margin-left: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.btn-timer:hover {
    background: linear-gradient(135deg, #4cc8ff, #5aa4ff) !important;
    transform: translateY(-2px);
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.error {
    color: red;
    margin-top: 10px;
}

.recaptcha-error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

/* === United Aion block layout (borrowed from main site) === */

/* Two-column layout for main content */
.container_main {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    display: flex;
    gap: 20px;
}

.container_left {
    flex: 3;
}

.container_right {
    flex: 1.2;
}

/* Generic white/light panels */
.block {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.10);
    margin-bottom: 16px;
    color: #333;
}

.block_title {
    background: url("https://www.unitedaion.com/theme/images/container_top_background.jpg")
                no-repeat center center;
    background-size: cover;
    padding: 10px 14px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px 4px 0 0;
    color: #fff;
}

.block .block_title span {
    color: #fff;
}

.block .block_content {
    padding: 12px 14px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.block .block_content p {
    margin: 0 0 8px 0;
}

.block .block_content ul {
    margin: 0;
    padding-left: 18px;
}

/* Support / Social sidebar styles */
.social-icons-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.social-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 40, 40, 0.85);
    color: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.social-circle:hover {
    background: #25b2ff;
    color: #fff;
    text-decoration: none;
}

.social-circle i {
    font-size: 16px;
}

.support-discord {
    text-align: center;
    padding: 10px 0;
}

.shugo-discord-img {
    width: 220px;
    height: auto;
    display: inline-block;
    cursor: pointer;
    transition: transform .2s ease-in-out;
}

.shugo-discord-img:hover {
    transform: scale(1.05);
}

/* Auth / login layout */

.auth-input {
    font-size: 15px;
    padding: 10px;
    border-radius: 4px;
}

.auth-block {
    max-width: 700px;
    width: 100%;
}

.auth-block .block_content {
    padding: 20px 28px;
}

.auth-intro {
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
}

.auth-main-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.auth-main-left {
    flex: 1;
}

.auth-main-right {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shugo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}

.auth-bottom-links {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
}

.auth-bottom-links a {
    color: #25b2ff;
}

/* Login button style similar to main site */
.btn-auth-submit {
    margin-top: 12px;
    width: 100%;
    background: linear-gradient(135deg, #25b2ff, #4286f4) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    padding: 10px 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #4cc8ff, #5aa4ff) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

/* United Aion vote panel footer – light like main site */
.ua-footer {
    background: transparent;              /* no big black bar */
    border-top: none;
    margin-top: 25px;
}

.ua-footer-inner {
    max-width: 1100px;
    margin: 0 auto 10px;
    padding: 6px 8px 10px;
    font-size: 11px;
    text-align: center;
    color: #5d6c8e; /* sharper, cleaner */
}

.ua-footer-inner a {
    color: #6b88d6;
}

.ua-footer-inner a:hover {
    text-decoration: underline;
}

.timer-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.timer-back-btn {
    margin-top: 16px;
}

/* Light-themed timer wrapper */
.timer-box {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    padding: 20px 20px 15px;
    text-align: center;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto 20px;
    width: 740px;
}

/* Info text */
.timer-info {
    color: #1c2b4a;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Responsive: stack columns on small screens */
@media (max-width: 960px) {
    .container_main {
        flex-direction: column;
    }

    .auth-main-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-main-right {
        order: -1;
        margin-bottom: 12px;
    }

    .auth-main-right .auth-shugo {
        max-width: 120px;
        margin: 0 auto;
    }
}
