/* Fonts */
@font-face {
    font-family: robo;
    src: url(/RobotoMono.ttf);
    font-display: swap;
}

@font-face {
    font-family: cyber;
    src: url(/CyberGraphLight.ttf);
    font-display: swap;
}

/* Base Styles */
body {
    font-family: robo;
    font-size: 10pt;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Container */
.potree_container {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

#potree_render_area {
    background-color: black;
    transition: all 0.3s ease-in-out;
    right: 0;
    left: 0;
}

/* Menu */
#menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    /* center items */
    text-align: center;
    color: white;
    z-index: 1;
    cursor: pointer;
    padding: 20px 0;
}

#menu .item {
    display: inline-block;
    margin-right: 3px;
    text-decoration: underline;
}

#menu .title {
    font-family: cyber;
    display: inline-block;
    font-size: 14pt;
    text-shadow: 
        -1px -1px 5px black,
        1px -1px 5px black,
        -1px 1px 5px black,
        1px 1px 5px black,
        2px 2px 5px black,
        -2px -2px 5px black,
        2px -2px 5px black,
        -2px 2px 5px black,
        3px 3px 5px black,
        -3px -3px 5px black;
}

/* Game Info */
#game_info {
    color: black;
    background-color: rgba(255,255,255,1);
    font-size: 13pt;
    z-index: 2;
    position: absolute;
    padding: 10px 20px;
    margin: 10px;
    border: solid 20px rgb(50, 10, 43);
    bottom: 0;
    left: 0;
}

#game_info a {
    color: black;
    text-decoration: underline;
}

/* Loading Info */
#prettier_game_info {
    color: white;
    font-size: 18px;
    text-transform: none;
    position: relative;
    z-index: 2;
    margin: auto;
    top: 30%;
    width: 100%;
    max-width: 800px;
    padding: 10px;
    text-align: center;
}

.message-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.message-container.visible {
    display: flex;  /* Show when visible class is added */
}

.message-text {
    font-size: 1.2em;
    line-height: 1.5;
}

.progress-container {
    display: none;  /* Hidden by default */
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.progress-container.visible {
    display: block;  /* Show when visible class is added */
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: white;
    transition: width 0.1s ease-out;
    width: 0%;
}

.scroll-indicator {
    display: none;  /* Hidden by default */
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-family: Arial, sans-serif;
    margin-top: 150px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.scroll-text {
    font-size: 14px;
    opacity: 0.9;
}

.scroll-arrow {
    font-size: 24px;
    animation: bounce 2s infinite;
    opacity: 0.9;
    margin-top: 15px;
}

.begin-buttons-container {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;
}

.begin-button {
    padding: 15px 30px;
    font-size: 18px;
    font-family: 'cyber', Arial, sans-serif;
    color: white;
    background: transparent;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.begin-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.begin-button:active {
    transform: scale(0.95);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Labels */
#labels {
    z-index: 2;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
}

#labels .floating_text {
    position: absolute;
}

/* Reporting */
#reporting {
    color: black;
    background-color: rgba(255,255,255,0.7);
    font-size: 15px;
    position: absolute;
    z-index: 2;
    margin: auto;
    bottom: 0;
    padding: 2px;
    text-align: center;
    width: 100%;
}

/* Right Panel */
.right_boy {
    position: fixed;
    right: 20px;
    top: 100px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
}

/* Links */
.linky {
    display: inline-block;
    margin-right: 3px;
    text-decoration: underline;
    cursor: pointer;
    position: absolute;
    bottom: 22px;
    z-index: 2;
    color: white;
    padding: 15px;
}

#tips_link {
    left: 22px;
}

#comment_link {
    left: 80px;
}

/* Loading Placeholders */
.loading-placeholder {
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
    margin: 5px 0;
}

.loading-placeholder.title {
    height: 24px;
    width: 80%;
}

.loading-placeholder.meta {
    height: 16px;
    width: 60%;
}

.loading-placeholder.tags {
    height: 20px;
    width: 40%;
}

.loading-placeholder.content {
    height: 100px;
    width: 100%;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* Home Description */
.home-desc {
    display: none !important;
}

/* History and Saved Items */
.history-item, .saved-item {
    padding: 15px;
    margin: 10px 0;
    background: #f8f8f8;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.history-item:hover, .saved-item:hover {
    background: #f0f0f0;
}

.history-title, .saved-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.history-meta, .saved-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.history-content, .saved-content {
    font-size: 13px;
    color: #333;
}

.history-actions, .saved-actions {
    margin-top: 10px;
    text-align: right;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
}

.delete-btn:hover {
    color: #ff0000;
}

.clear-history-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s ease;
}

.clear-history-btn:hover {
    background: #ff0000;
}

.position-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(40, 40, 40, 0.8);
    color: #888;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    z-index: 999;
}

.position-display span {
    margin-right: 12px;
}

.position-display span:last-child {
    margin-right: 0;
}

/* autocomplete z-index */
.ui-menu {
    z-index: 5000;
}

/* Selected Annotation */
.selected-annotation {
    z-index: 99999999 !important;
}

/* Sidebar Toggle Base Styles */
.sidebar-toggle,
.paper-sidebar-toggle {
    position: fixed;
    top: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover,
.paper-sidebar-toggle:hover {
    background: #f8f8f8;
}

.sidebar-toggle i,
.paper-sidebar-toggle i {
    font-size: 16px;
    color: #666;
    transition: transform 0.3s ease;
}

/* Right Sidebar Toggle */
.sidebar-toggle {
    right: 0;
    border-radius: 50% 0 0 50%;
}

.sidebar-toggle i {
    transform: rotate(180deg);
}

/* Paper Sidebar Toggle */
.paper-sidebar-toggle {
    left: 440px;  /* Account for panel width (400px) + padding (20px * 2) */
    border-radius: 0 50% 50% 0;
}

.paper-sidebar-toggle i {
    transform: rotate(0deg);
}

.paper-details:not(:visible) + .paper-sidebar-toggle {
    display: none;
}

/* Celeste Helper styles moved to tour.css */

/* Intersection Instructions */
.intersection-instruction {
    height: 80px;
    text-align: left;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
}

.intersection-instruction strong {
    color: #333;
    font-weight: bold;
}