@charset "utf-8";
/* CSS Document */
/* history-style.css */

:root {
    --primary-color: #6a1b9a;
    --secondary-color: #9c4dcc;
    --accent-color: #ffab00;
    --light-color: #f5f5f5;
    --dark-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f5ff 0%, #eef2ff 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background floating numbers */
.background-numbers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.number-bubble {
    position: absolute;
    background: rgba(106, 27, 154, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(10px) rotate(5deg); }
    50% { transform: translateY(10px) translateX(-15px) rotate(-5deg); }
    75% { transform: translateY(-15px) translateX(-10px) rotate(3deg); }
}

/* Header styles */
header {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.9) 0%, rgba(156, 77, 204, 0.9) 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="%23ffffff" stroke-width="2" fill="none" opacity="0.2"/><circle cx="20" cy="20" r="8" stroke="%23ffffff" stroke-width="1" fill="none" opacity="0.2"/></svg>');
    background-size: cover;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    color: white;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logo {
    width: 200px;
    height: 100px;
    cursor: pointer;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Feature Banner */
.feature-banner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem auto;
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 70px;
    position: relative;
    overflow: hidden;
}

.feature-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    gap: 15px;
}

.feature-item.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

/* Hamburger menu */
.hamburger {
    display: none; /* Hidden by default, shown on mobile */
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 0.5rem;
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: center;
    background-color: rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: 50px;
    max-width: 800px;
    margin: 1.5rem auto 0;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    margin: 0 0.2rem;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: -1;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav a:hover::before, nav a.active::before {
    transform: translateX(0);
}

/* Main content container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-header h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.results-header h2 {
    font-size: 1.6rem;
    color: var(--secondary-color);
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 1rem;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Navigation links at the bottom */
.navigation-links {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 0 1rem;
}

.navigation-links a {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.navigation-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.navigation-links a.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Footer styles */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 250px;
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
        border-radius: 0;
        z-index: 999;
        transition: right 0.3s ease;
        background: rgba(106, 27, 154, 0.95); /* Specific to this theme */
    }

    nav.active {
        right: 0;
    }

    nav a {
        width: 80%;
        text-align: center;
        margin: 0.5rem 0;
        padding: 1rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .feature-banner {
        height: 60px;
        padding: 0.5rem;
    }

    .feature-item {
        font-size: 1.1rem;
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    table th, table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

