/* ================================
   RESET & BASE STYLES
================================ */
* {
    box-sizing: border-box;
}

:focus {
    outline: 0;
}

body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
}

/* ================================
   CONTAINER & BOX
================================ */
.container {
    margin: auto;
    padding: 20px;
    max-width: 650px;
    width: 100%;
    border: 0;
}

.boxed {
    position: relative;
    background: #fff;
    border: 3px solid #000;
    padding: 30px;
    text-align: center;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.boxed::before {
    content: "";
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid #000;
    pointer-events: none;
}

/* ================================
   NAVIGATION
================================ */
.nav h1 {
    margin-bottom: 30px;
    font-size: 35px;
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: underline;
    color: #333;
}

/* ================================
   STATISTICS SECTION
================================ */
.stats h1 {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
}

.stats svg {
    position: relative;
    top: 4px;
}

.stats .count {
    font-size: 25px;
    text-transform: uppercase;
    position: relative;
    top: 7px;
}

.stats td:first-child {
    width: 100px;
    text-align: center;
    border-right: 2px solid #000;
    padding-right: 10px;
}

.stats td:nth-child(2) {
    padding-left: 10px;
    text-align: center;
}

/* ================================
   INFO TABLE
================================ */
.info {
    width: 100%;
    margin-bottom: 20px;
}

.info td {
    padding: 7px;
    font-size: 14px;
    border-bottom: 2px dashed #000;
}

.info td:first-child {
    width: 80px;
}

.info td:nth-child(2) {
    width: 20px;
    text-align: center;
}

/* ================================
   BUTTONS
================================ */
button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #fff;
    background: #1c2333;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

button::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

button:hover {
    background: rgb(239, 223, 13);
    color: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ================================
   FILE UPLOAD
================================ */
.file-upload {
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.file-select {
    position: relative;
    display: block;
    overflow: hidden;
    text-align: left;
    line-height: 40px;
    border: 2px solid #000;
    background: #1c2333;
    height: 40px;
    color: #fff;
}

.file-select-button,
.file-select-name {
    display: inline-block;
    padding: 0 10px;
    line-height: 40px;
}

.file-select-button {
    background: #000;
    color: #fff;
    height: 40px;
}

.file-upload.active .file-select-button {
    background: #3fa46a;
    color: #fff;
    transition: .2s ease-in-out;
}

.file-select input[type=file] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 100;
}

.file-select:hover .file-select-button {
    background: rgb(239, 223, 13);
    color: #222;
    transition: .2s ease-in-out;
}

.file-select.file-select-disabled {
    opacity: .65;
}

.file-select.file-select-disabled:hover {
    background: #fff;
    border: 2px solid #1c2333;
    color: rgb(239, 223, 13);
    cursor: pointer;
    margin-top: 5px;
    height: 40px;
}

.file-select.file-select-disabled:hover .file-select-button {
    background: #1c2333;
    color: #666;
}

/* ================================
   PROGRESS BAR
================================ */
.progress-container {
    width: 100%;
    height: 20px;
    margin-bottom: 20px;
    border: 2px solid #000;
    background: #fff;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: rgb(239, 223, 13);
    transition: width 0.3s;
}

/* ================================
   TEXT HELPERS
================================ */
.ellipsis {
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#countdown {
    color: rgb(239, 223, 13);
    font-weight: 700;
}

/* ================================
   COMIC STRIP
================================ */
.comic-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #000;
    background: #f9f9f9;
}

.comic-item {
    margin: 10px;
    text-align: center;
    min-width: 100px;
}

.comic-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: bold;
}

/* Characters */
.computer-character,
.file-character {
    margin: 0 auto;
    position: relative;
    border: 2px solid #000;
    border-radius: 5px;
}

.computer-character {
    width: 60px; height: 60px;
    background: #fff;
}

.computer-character::before {
    content: 'Upload';
    position: absolute;
    top: 20px; left: 15px;
    font-size: 10px;
    color: #000;
}

.file-character {
    width: 50px; height: 60px;
    background: #e8f5e8;
    border-radius: 5px 5px 0 0;
}

.file-character::before {
    content: 'File';
    position: absolute;
    top: 20px; left: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* Dancing Figure */
.dance-figure {
    width: 60px; height: 80px;
    margin: 0 auto;
    position: relative;
}

.dance-head {
    width: 20px; height: 20px;
    margin: 0 auto 5px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    position: relative;
}

.dance-head::before {
    content: '^_^';
    position: absolute;
    top: 4px; left: 2px;
    font-size: 8px;
    font-weight: bold;
}

.dance-body {
    width: 2px; height: 20px;
    margin: 0 auto 5px;
    background: #000;
}

.dance-arms {
    width: 30px; height: 2px;
    margin: -15px auto 10px;
    background: #000;
    animation: dance 1s infinite;
}

.dance-legs {
    position: relative;
    width: 25px; height: 15px;
    margin: 0 auto;
}

.dance-leg-left,
.dance-leg-right {
    position: absolute;
    top: 0;
    width: 2px; height: 15px;
    background: #000;
    animation: kick 1s infinite;
}

.dance-leg-left { left: 6px; }
.dance-leg-right { right: 6px; animation-delay: 0.5s; }

/* Animations */
@keyframes dance {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(45deg); }
    75% { transform: rotate(-45deg); }
}

@keyframes kick {
    0%, 100% { transform: rotate(0); }
    50% { transform: rotate(30deg); }
}

/* ================================
   SUPPORT & FOOTER
================================ */
.support-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #000;
    background: #fff;
}

.support-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #666;
}

/* ================================
   UPLOAD PROCESS (Comic Style)
================================ */
.comic-upload-process {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #000;
    background: #f9f9f9;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%; right: -15px;
    transform: translateY(-50%);
    font-size: 20px;
}

.step-icon {
    margin: 0 auto 10px;
    width: 50px; height: 50px;
    border: 2px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-label {
    font-size: 12px;
    font-weight: bold;
}
