html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ddd;
    line-height: 1.5;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    background-image: radial-gradient(circle at center, rgba(80, 0, 0, 0.5), rgba(30, 0, 0, 0.5), rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(10px);
}

#loader-overlay {
    position: fixed;
    z-index: 9999;
    background: #1e1e1e;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

#loader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner-container {
    position: relative;
    width: 160px;
    height: 160px;
}

#loader-gif {
    width: 200px;
    height: 200px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#loader-gif.loaded {
    opacity: 1;
}

.spinner-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 5px solid transparent;
    border-top: 5px solid #8B0000;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    box-sizing: border-box;
    z-index: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Header Styles */
header {
    background-color: #1a1a1a;
    padding: 0.5rem 2rem;
    border-bottom: 2px solid #ff3c00;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.nav-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.2rem;
}

.brand {
    /* logo container on left */
}

.logo-image {
    height: 24px; /* smaller for the desired style */
    width: auto;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    white-space: nowrap;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    color: #ff3c00;
    text-shadow: 0 0 6px rgba(255, 60, 0, 0.5);
}

.user-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.welcome-message {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
}

.login-btn {
    background-color: #ff3c00;
    border: none;
    padding: 0.35rem 1rem;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.login-btn:hover {
    background-color: #e03500;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.faq-wrapper {
    max-width: 900px;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

h1 {
    font-size: 2rem;
    color: #ff3c00;
    margin-bottom: 1rem;
    text-align: center;
}

.faq-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.language-boxes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lang-box {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #222;
    color: #ddd;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.lang-box:hover {
    background-color: #ff3c00;
    color: #fff;
}

.faq-section {
    margin-bottom: 2rem;
}

.faq-section h2 {
    font-size: 1.4rem;
    color: #ff3c00;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff3c00;
    padding-bottom: 0.5rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1rem;
    border-left: 4px solid #ff3c00;
    background: rgba(42, 42, 42, 0.7);
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    transition: background 0.2s;
}

.faq-question:hover, .faq-question[aria-expanded="true"] {
    background-color: rgba(255, 60, 0, 0.2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    padding: 0 1rem;
    background-color: rgba(42, 42, 42, 0.6);
}

.faq-answer.show {
    max-height: 1000px;
    padding: 1rem;
}

.faq-question::after {
    content: "\25BC";
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.help-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
    }

    .language-boxes {
        flex-direction: column;
        align-items: center;
    }
}

.login-confirm-overlay {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.login-confirm-overlay.fade-out {
    animation: fadeOut 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.login-confirm-box {
    background: rgba(24, 24, 24, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 60, 0, 0.35);
    text-align: center;
    animation: slideUp 0.5s ease;
    max-width: 400px;
    width: 90%;
    color: white;
}

.login-confirm-box h2 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.login-confirm-box h3 {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.login-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.confirm-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirm-checklist li {
    margin: 1rem 0;
    font-size: 1rem;
}

.confirm-checklist a {
    color: #66b3ff;
    text-decoration: underline;
}

.confirm-checklist a:hover {
    color: #fff;
}

.confirm-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.confirm-actions button {
    background-color: #ff3c00;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.confirm-actions button:hover {
    background-color: #ff5c26;
}

#confirm-accept:disabled {
    background-color: #333;
    color: #888;
    cursor: not-allowed;
    border: 1px solid #444;
}

.confirm-checklist input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 0.5rem;
    accent-color: #ff3c00;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

footer {
    background-color: #000;
    color: #888;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #333;
    position: relative;
    z-index: 1;
}
