/* Local font definitions */
@font-face {
    font-family: 'Pixellari';
    src: url('Pixellari.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: url('background.png') center center / cover no-repeat;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Glass blur background layer */
/*
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.png') center center / cover no-repeat;
    filter: blur(8px);
    z-index: -2;
}
*/

/* Semi-transparent overlay */
/*
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}
*/

#abot-canvas {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    display: block;
    z-index: 1;
    transition: opacity 0.6s ease;
}

/* Top-right navigation (always visible) */
.top-nav {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: none; /* Initially hidden, shown after animation completes */
    gap: 20px;
}

.nav-item {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-item:hover {
    background: rgba(0, 150, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 0 20px #0096ff;
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.8);
    transform: translateY(-3px) scale(1.05);
}

.nav-item.active {
    background: rgba(0, 150, 255, 0.5);
    color: #ffffff;
    text-shadow: 0 0 15px #0096ff;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.6);
}

/* HOME interface content */
.home-content {
    position: relative;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.home-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Top-left coded by label - pixel style */
.coded-by {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 10;
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    display: none; /* Initially hidden */
}

/* Bottom paper information */
.paper-info {
    position: fixed;
    top: 68%;
    left: 15%;
    z-index: 10;
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 70%;
    text-align: left;
    line-height: 1.4;
    display: none; /* Initially hidden */
}

/* Paper title styles */
.paper-title {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    color: #ffffff;
    line-height: 1.4;
}

/* Paper venue information styles */
.paper-venue {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    color: #ffffff;
    line-height: 1.4;
}

/* Paper note styles - gray italic */
.paper-note {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 9px;
    color: #cccccc;
    font-style: italic;
    line-height: 1.4;
}

/* Bottom-right clock - pixel style */
.clock {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    display: none; /* Initially hidden */
}

/* Bottom-left version number - pixel style */
.version {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    display: none; /* Initially hidden */
}

/* Page logo styles */
.page-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 120px;
    height: 120px;
    z-index: 1000;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.page-logo:hover {
    opacity: 1;
}

/* ABOUT interface content */
.about-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 500;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
}

.about-content.active {
    visibility: visible;
    pointer-events: auto;
}

.about-content.active .glass-background {
    opacity: 1;
}

.about-content.active .about-text-content {
    opacity: 1;
}

/* IMAGE interface content */
.image-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 500;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
}

.image-content.active {
    visibility: visible;
    pointer-events: auto;
}

.image-content.active .glass-background {
    opacity: 1;
}

.image-content.active .image-text-content {
    opacity: 1;
}

/* PREDICTOR interface content */
.predictor-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 500;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
}

.predictor-content.active {
    visibility: visible;
    pointer-events: auto;
}

.predictor-content.active .glass-background {
    opacity: 1;
}

.predictor-content.active .predictor-text-content {
    opacity: 1;
}

/* Image text content */
.image-text-content {
    position: relative;
    z-index: 2;
    padding: 120px 60px 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

/* Predictor text content */
.predictor-text-content {
    position: relative;
    z-index: 2;
    padding: 120px 60px 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.predictor-title {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 28px;
    color: #00ff88;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.predictor-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
}

.feature-stats {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.stats-item {
    font-size: 12px;
    color: #ffffff;
    margin: 5px 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.stats-warning {
    font-size: 11px;
    color: #ff6b6b;
    margin: 8px 0;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    font-weight: bold;
}

.features-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-title {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 18px;
    color: #0096ff;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}

.features-subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.features-grid-unified {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.feature-category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-category h3 {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #00ff88;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.feature-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(0, 150, 255, 0.1);
    border: 1px solid rgba(0, 150, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
    min-height: 50px;
    justify-content: flex-start;
}

.feature-item:hover {
    background: rgba(0, 150, 255, 0.15);
    border-color: rgba(0, 150, 255, 0.4);
    transform: translateY(-1px);
}

.feature-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #00ff88;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-item input[type="checkbox"]:checked + .checkmark {
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.feature-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.feature-label {
    color: #ffffff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.predict-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.predict-btn, .reset-btn {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.predict-btn {
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.predict-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.reset-btn {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.reset-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.prediction-results {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-title {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 16px;
    color: #00ff88;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.result-item h3 {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    color: #0096ff;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(0, 150, 255, 0.3);
}

.result-value {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 24px;
    color: #00ff88;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    font-weight: bold;
}

.result-description {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.8;
    line-height: 1.4;
}

.total-result {
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.total-result h3 {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.total-result .result-value {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.model-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.model-info p {
    font-size: 10px;
    color: #ffffff;
    opacity: 0.7;
    margin: 5px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Disclaimer styles */
.disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
}

.disclaimer h4 {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #ffc107;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.disclaimer p {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0;
}

/* Glass blur background */
.glass-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* About text content */
.about-text-content {
    position: relative;
    z-index: 2;
    padding: 120px 60px 60px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s; /* Delay 0.3s start */
}

.about-title {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    letter-spacing: 2px;
}

.title-main {
    font-size: 28px;
    margin-bottom: 10px;
}

.title-sub {
    font-size: 18px;
    color: #cccccc;
}

.about-section {
    margin-bottom: 35px;
}

.about-section h2 {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 16px;
    color: #00ff88;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: bold;
}

.about-section p, .about-text {
    font-family: 'Pixellari', 'Orbitron', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    font-weight: 400;
}

.about-link {
    color: #00ff88;
    font-family: 'Pixellari', 'Orbitron', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-weight: 400;
}

.about-content-text {
    font-family: 'Pixellari', 'Orbitron', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
}

.about-item {
    margin-bottom: 20px;
}

.about-item-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Pixellari', 'Orbitron', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 18px;
    color: #ffffff;
}

.about-item-content {
    margin-left: 20px;
    font-family: 'Pixellari', 'Orbitron', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
}

.about-sub-content {
    margin-top: 8px;
    margin-left: 20px;
}

.about-sub-content div {
    margin-bottom: 5px;
}

/* Unified font and styles for all text elements on About page */
.about-section ul,
.about-section li,
.about-section table,
.about-section th,
.about-section td,
.about-section blockquote,
.about-section strong,
.about-section em {
    color: #ffffff !important;
    font-family: 'Pixellari', 'Orbitron', 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-weight: 400;
}

.about-section ul {
    font-size: 14px;
    line-height: 1.6;
}

.about-section li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.about-section table {
    font-size: 13px;
    line-height: 1.5;
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.about-section th,
.about-section td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Pixellari', 'Orbitron', 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 16px;
    color: #ffffff !important;
    font-weight: 400;
}

.about-section th {
    background: rgba(0, 255, 136, 0.1);
    font-weight: 700 !important;
    color: #00ff88 !important;
}

.about-section tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Force table font override */
.about-content table,
.about-content table *,
.about-content th,
.about-content td,
.about-content thead,
.about-content tbody,
.about-content tr {
    font-family: 'Pixellari', 'Orbitron', 'Consolas', 'Monaco', 'Courier New', monospace !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

/* New about page styles */
.section-title {
    font-family: 'Pixellari', monospace !important;
    color: #00cec9;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: left;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-family: 'Pixellari', monospace !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: rgba(0, 206, 201, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    text-align: left;
    color: #ffffff !important;
    font-family: 'Pixellari', monospace !important;
    font-size: 16px !important;
    font-weight: bold;
}

.comparison-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    color: #ffffff !important;
    font-family: 'Pixellari', monospace !important;
    font-size: 14px !important;
    line-height: 1.6;
    vertical-align: top;
}

.comparison-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dimension-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #00cec9;
}

.dimension-description {
    font-family: 'Pixellari', monospace !important;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-family: 'Pixellari', monospace !important;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-list li:before {
    content: "▶";
    color: #00cec9;
    position: absolute;
    left: 0;
}

.info-box {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    font-family: 'Pixellari', monospace !important;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
}

.citation-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    font-family: 'Pixellari', monospace !important;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    border-left: 4px solid #fd79a8;
}

.closing-message {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    font-family: 'Pixellari', monospace !important;
}

.table-container {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
}

/* Old download button styles removed, using unified styles below */

.about-section th,
.about-section td {
    font-size: 13px;
    line-height: 1.5;
}

.about-section blockquote {
    font-size: 14px;
    line-height: 1.6;
}

.about-section h3 {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: normal;
    color: #00ff88 !important;
}

.about-section strong {
    font-weight: bold;
}

.about-section em {
    font-style: italic;
}

/* IMAGE interface styles */
.image-title {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 28px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    letter-spacing: 2px;
}

/* Sort controls */
.sort-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.sort-label {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.sort-select {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    background: rgba(0, 150, 255, 0.2);
    border-color: #0096ff;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
}

.sort-select:focus {
    outline: none;
    background: rgba(0, 150, 255, 0.3);
    border-color: #0096ff;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.7);
}

/* Download controls */
.download-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.download-label {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.download-btn {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    color: #ffffff;
    background: rgba(0, 200, 0, 0.2);
    border: 2px solid rgba(0, 200, 0, 0.5);
    border-radius: 5px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(0, 200, 0, 0.3);
    border-color: #00c800;
    box-shadow: 0 0 15px rgba(0, 200, 0, 0.5);
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0);
}



.sort-select option {
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 5px;
}

/* Download selector styles - reference sort styles */
.download-select {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-select:hover {
    background: rgba(0, 200, 0, 0.2);
    border-color: #00c800;
    box-shadow: 0 0 15px rgba(0, 200, 0, 0.5);
}

.download-select:focus {
    outline: none;
    background: rgba(0, 200, 0, 0.3);
    border-color: #00c800;
    box-shadow: 0 0 20px rgba(0, 200, 0, 0.7);
}

.download-select option {
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 5px;
}

/* Image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* Fixed 8 columns */
    grid-template-rows: repeat(6, 1fr);    /* Fixed 6 rows */
    gap: 12px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.robot-image-item {
    position: relative;
    aspect-ratio: 4/3; /* Changed to 4:3 ratio, better for robot images */
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    /* Remove backdrop-filter to improve image clarity */
    transition: all 0.3s ease;
    cursor: pointer;
}

.robot-image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.6);
}

.robot-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain, ensure complete robot display */
    object-position: center;
    background: rgba(0, 0, 0, 0.1); /* Add light background */
    transition: all 0.3s ease;
}

.robot-image-item:hover img {
    transform: scale(1.1);
}

.robot-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 15px 10px 10px;
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 8px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.robot-image-item:hover .robot-image-overlay {
    transform: translateY(0);
}

/* Pagination controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.pagination-btn {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pagination-btn:hover {
    background: rgba(0, 150, 255, 0.3);
    text-shadow: 0 0 15px #0096ff;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.6);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.page-info {
    font-family: 'Press Start 2P', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Robot details popup styles */
.robot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.robot-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.robot-modal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.robot-modal-overlay.show .robot-modal {
    transform: scale(1) translateY(0);
}

.robot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.robot-modal-header h2 {
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.robot-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.robot-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.robot-modal-content {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.robot-modal-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-detail-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.robot-modal-right {
    flex: 1;
    color: #ffffff;
}

.robot-info h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    margin-bottom: 20px;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.robot-stats {
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stat-item.total-score {
    border-bottom: 2px solid #00ff88;
    font-weight: bold;
    margin-top: 10px;
}

.stat-label {
    font-family: 'Consolas', monospace;
    font-size: 14px;
}

.stat-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.total-score .stat-value {
    font-size: 14px;
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

/* Ranking and percentile styles */
.stat-ranking {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.rank-info {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
    min-width: 80px;
}

.percentile-bar {
    flex: 1;
    position: relative;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.percentile-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    border-radius: 10px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.percentile-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Consolas', monospace;
    font-size: 10px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Robot basic information styles */
.robot-basic-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.info-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    min-width: 100px;
}

.info-value {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    flex: 1;
}

.info-link {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #0096ff;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.3);
    transition: all 0.3s ease;
    flex: 1;
    word-break: break-all;
}

.info-link:hover {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    text-decoration: underline;
}

/* Medium screen responsive design */
@media (max-width: 1024px) and (min-width: 769px) {
    .image-grid {
        grid-template-columns: repeat(6, 1fr); /* Medium screen 6 columns */
        grid-template-rows: repeat(8, 1fr);    /* Medium screen 8 rows */
        gap: 10px;
    }
}

/* Small screen responsive design */
@media (max-width: 768px) {
    .about-content {
        height: 100vh;
    }

    .about-text-content {
        padding: 100px 30px 40px;
        transition: opacity 0.6s ease 0.3s; /* Keep delayed animation */
    }

    .about-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .about-section {
        margin-bottom: 25px;
    }

    .about-section h2 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .about-section p {
        font-size: 12px;
        line-height: 1.6;
    }

    .about-section ul,
    .about-section li {
        font-size: 12px;
    }

    .about-section table,
    .about-section th,
    .about-section td {
        font-size: 11px;
    }

    /* IMAGE interface responsive */
    .image-text-content {
        padding: 100px 30px 40px;
        transition: opacity 0.6s ease 0.3s;
    }

    .image-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .image-grid {
        grid-template-columns: repeat(4, 1fr); /* Mobile device 4 columns */
        grid-template-rows: repeat(12, 1fr);   /* Mobile device 12 rows */
        gap: 8px;
        max-width: 100%;
    }

    .sort-controls {
        flex-direction: column;
        gap: 10px;
    }

    .sort-select {
        font-size: 8px;
        padding: 6px 10px;
    }

    .download-controls {
        flex-direction: column;
        gap: 10px;
    }

    .download-btn {
        font-size: 8px;
        padding: 6px 12px;
    }

    .download-select {
        font-size: 8px;
        padding: 6px 10px;
    }

    .robot-image-overlay {
        font-size: 6px;
        padding: 10px 8px 8px;
    }

    .pagination-btn {
        font-size: 10px;
        padding: 10px 15px;
    }

    .page-info {
        font-size: 12px;
    }

    /* Paper information responsive */
    .paper-info {
        top: 73%;
        left: 10%;
        font-size: 8px;
        padding: 12px 15px;
        max-width: 80%;
        line-height: 1.3;
    }

    .paper-title {
        font-size: 8px;
    }

    .paper-venue {
        font-size: 8px;
    }

    .paper-note {
        font-size: 7px;
    }

    /* Robot details popup mobile styles */
    .robot-modal {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }

    .robot-modal-header {
        padding: 15px 20px;
    }

    .robot-modal-header h2 {
        font-size: 14px;
    }

    .robot-modal-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .robot-modal-left,
    .robot-modal-right {
        flex: none;
    }

    .robot-detail-image {
        max-height: 250px;
    }

    .robot-info h3 {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .stat-item {
        padding: 8px 0;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 10px;
    }

    .stat-ranking {
        gap: 10px;
        margin-top: 3px;
    }

    .rank-info {
        font-size: 10px;
        min-width: 60px;
    }

    .percentile-bar {
        height: 16px;
    }

    .percentile-text {
        font-size: 8px;
    }

    .total-score .stat-value {
        font-size: 12px;
    }

    .info-label {
        font-size: 9px;
        min-width: 80px;
    }

    .info-value {
        font-size: 11px;
    }

    .info-link {
        font-size: 10px;
    }

    /* PREDICTOR interface responsive */
    .predictor-text-content {
        padding: 100px 30px 40px;
        transition: opacity 0.6s ease 0.3s;
    }

    .predictor-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .predictor-description {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .features-container {
        padding: 20px;
    }

    .features-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .features-subtitle {
        font-size: 10px;
        margin-bottom: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .feature-category h3 {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .feature-items {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .feature-item {
        padding: 6px 8px;
        font-size: 9px;
    }

    .features-grid-unified {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        padding: 0 10px;
    }

    .checkmark {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }

    .predict-controls {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .predict-btn, .reset-btn {
        font-size: 10px;
        padding: 12px 20px;
    }

    .results-title {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .result-item {
        padding: 15px;
    }

    .result-item h3 {
        font-size: 8px;
        margin-bottom: 10px;
    }

    .result-value {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .result-description {
        font-size: 9px;
    }

    .model-info p {
        font-size: 8px;
    }
}

.fancy-title {
    font-size: 15vw;
    font-weight: bold;
    text-transform: uppercase;
    background-image: url('robot_picture/36_atlas.jpg'); /* Fallback image */
    background-size: cover;
    background-position: center;
    
    /* The magic */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    animation: image-slideshow 20s infinite cubic-bezier(0.6, 0, 0.4, 1);
}

@keyframes image-slideshow {
    0% {
        background-image: url('robot_picture/305_Optimus.jpg');
        background-position: 50% 50%;
    }
    20% {
        background-image: url('robot_picture/304_Spot.jpg');
        background-position: 40% 40%;
    }
    40% {
        background-image: url('robot_picture/306_Ameca.jpg');
        background-position: 60% 60%;
    }
    60% {
        background-image: url('robot_picture/62_Sophia.jpg');
        background-position: 55% 55%;
    }
    80% {
        background-image: url('robot_picture/18_aldebaran-pepper.jpg');
        background-position: 45% 45%;
    }
    100% {
        background-image: url('robot_picture/305_Optimus.jpg');
        background-position: 50% 50%;
    }
}

/* ABOUT interface specific scrollbar styles */
.about-content::-webkit-scrollbar {
    width: 12px;
}

.about-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 150, 255, 0.8), rgba(0, 100, 200, 0.9));
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
    transition: all 0.3s ease;
}

.about-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 150, 255, 1), rgba(0, 100, 200, 1));
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.8);
    transform: scaleY(1.1);
}

.about-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(0, 200, 255, 1), rgba(0, 150, 255, 1));
    box-shadow: 0 0 30px rgba(0, 200, 255, 1);
}

/* General scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.8);
}

/* ==================== PREDICTOR Three-Step Interface Styles ==================== */

/* Step indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
    color: #00ff88;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: white;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.step.completed .step-number {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.step-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: white;
    text-align: center;
    line-height: 1.4;
}

/* Step content */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

.step-content .section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step 1: Image upload styles */
.upload-area {
    max-width: 600px;
    margin: 0 auto;
}

.upload-zone {
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: rgba(0, 255, 136, 0.6);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-5px);
}

.upload-zone.dragover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.upload-text p {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: white;
    margin-bottom: 10px;
}

.upload-text small {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.uploaded-image {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
}

.uploaded-image img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.image-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: black;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00cc6a, #00ff88);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Step 3: Enhanced prediction result styles */
.results-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
}

.robot-image-result img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.results-summary h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: #00ff88;
    margin-bottom: 15px;
}

.results-summary p {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.results-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.result-item-enhanced {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.result-item-enhanced:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.result-item-enhanced.total-result {
    border-color: rgba(255, 215, 0, 0.3);
}

.result-item-enhanced.total-result:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.result-item-enhanced h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: white;
    margin-bottom: 20px;
}

.result-item-enhanced .result-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 36px;
    color: #00ff88;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.result-item-enhanced.total-result .result-value {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.result-item-enhanced .result-description {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 25px;
}

.percentile-section {
    margin-top: 20px;
}

.percentile-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 20px;
    margin-bottom: 10px;
    overflow: hidden;
}

.percentile-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.result-item-enhanced.total-result .percentile-fill {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.percentile-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 2;
    white-space: nowrap;
}

.rank-info {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        text-align: center;
    }

    .results-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .step-indicator {
        gap: 20px;
    }

    .step-label {
        font-size: 8px;
    }
}
