* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    cursor: default;
}

@media (max-height: 900px) {
    body {
        justify-content: flex-start;
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: auto 0;
    max-width: 90vw;
}

.main-content.hidden {
    display: none;
}

h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.start-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.start-button:active {
    transform: translateY(-1px);
}

.start-button:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.start-button:disabled:hover {
    background: #ccc !important;
    transform: none !important;
}

.exit-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.exit-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Download Progress Bar Styles */
.download-progress-container {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.progress-text {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

.progress-percentage {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.progress-bar-wrapper {
    margin-bottom: 0.8rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.progress-loaded {
    font-weight: 500;
}

.progress-total {
    color: #888;
}

.vm-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.vm-progress .progress-text,
.vm-progress .progress-loaded,
.vm-progress .progress-total {
    color: #ffffff;
}

.vm-progress .progress-percentage {
    color: #667eea;
}

.status {
    margin-top: 1.5rem;
    color: #666;
    font-size: 1rem;
    min-height: 1.5rem;
}

.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 600px;
}

.faq-section h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-content {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.faq-item {
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.faq-item strong {
    color: #333;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.faq-item code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.disclaimer {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
}

.disclaimer p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.attribution {
    font-weight: 500;
}

.attribution a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.attribution a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.github-link {
    margin-top: 1rem;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #24292e;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(36, 41, 46, 0.2);
}

.github-btn:hover {
    background: #2f363d;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(36, 41, 46, 0.3);
}

.github-btn i {
    font-size: 1.1rem;
}

#randomEmoji {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.vm-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 1000;
    display: none;
}

.vm-container.active {
    display: block;
}

.vm-container.paused .pause-overlay {
    display: flex;
}

#screen_container {
    width: 100%;
    height: 100%;
    background: #000000;
    position: relative;
    cursor: none;
}

#screen_container canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block !important;
    cursor: none;
}

#screen_container div {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 16px;
    white-space: pre;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.vm-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: none;
}

.vm-container.active .vm-controls {
    display: block;
}

.info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.9rem;
    z-index: 1001;
    display: none;
}

.vm-container.active .info {
    display: block;
}

.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
}

.pause-dialog {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 1rem;
}

.pause-dialog h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pause-dialog p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.dialog-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dialog-buttons button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.dialog-buttons button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.dialog-buttons button.secondary {
    background: #f5f5f5;
    color: #333;
}

.dialog-buttons button.secondary:hover {
    background: #e5e5e5;
}

.iso-source-selection {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.iso-source-selection h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2em;
    text-align: center;
}

.source-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.toggle-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 8px;
}

.toggle-option.active {
    background: rgba(0, 122, 204, 0.1);
    color: #007acc;
}

.toggle-option:hover:not(.disabled) {
    background: rgba(0, 122, 204, 0.05);
}

.toggle-option.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.toggle-option.disabled:hover {
    background: transparent;
}

.toggle-icon {
    display: block;
    font-size: 2em;
    margin-bottom: 8px;
}

.toggle-label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.toggle-option.active .toggle-label {
    color: #007acc;
}

.toggle-description {
    display: block;
    font-size: 0.9em;
    color: #666;
    line-height: 1.3;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: #007acc;
}

.toggle-switch:disabled,
.toggle-switch[style*="cursor: not-allowed"] {
    cursor: not-allowed;
    opacity: 0.5;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

.local-file-section {
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    background: #fafafa;
}

.file-upload-area:hover {
    border-color: #007acc;
    background: #f0f8ff;
}

.upload-placeholder {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 2em;
    color: #007acc;
}

.upload-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.upload-hint {
    font-size: 0.9em;
    color: #666;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 12px;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 600;
    color: #333;
}

.file-size {
    color: #666;
    font-size: 0.9em;
}

.remove-file {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 12px;
    transition: background 0.2s ease;
}

.remove-file:hover {
    background: #ff3838;
}

@media (max-width: 768px) {
    .main-content {
        padding: 2rem;
        margin: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .start-button {
        padding: 0.75rem 2rem;
        font-size: 1.1rem;
    }

    .download-progress-container {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .progress-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
    
    .progress-percentage {
        text-align: center;
    }

    .vm-progress {
        margin: 1rem;
        padding: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .faq-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .faq-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .faq-content {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .faq-item {
        padding: 0.75rem;
    }

    .faq-item strong {
        font-size: 0.9rem;
    }

    .faq-item p {
        font-size: 0.85rem;
    }

    .disclaimer p {
        font-size: 0.85rem;
    }

    .pause-overlay .pause-dialog {
        padding: 1.5rem;
    }
    
    .pause-overlay .dialog-buttons {
        flex-direction: column;
    }
    
    .pause-overlay .dialog-buttons button {
        width: 100%;
    }

    .source-toggle-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .toggle-switch {
        order: -1;
        margin: 0 auto;
    }
    
    .iso-source-selection {
        padding: 20px;
        margin: 20px 0;
    }
    
    .file-upload-area {
        padding: 20px;
    }
    
    .upload-icon {
        font-size: 1.5em;
    }
    
    .toggle-option {
        padding: 8px;
    }
    
    .toggle-icon {
        font-size: 1.5em;
        margin-bottom: 4px;
    }

    .github-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
} 