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

body {
    font-family: 'Courier New', Courier, monospace;
    background: rgb(53, 59, 64);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

canvas {
    position: absolute;
    -webkit-transform:rotateY(180deg); /* Safari and Chrome */
    -moz-transform:rotateY(180deg); /* Firefox */
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
}

button, input{
    z-index:10;
}

.dark-mode {
    background-color: rgb(53, 59, 64);
    color: #EAE2CCff;
}

.flex-container {
    display: flex;
}

.flex-child {
    flex: 1;
    border: 2px solid yellow;
}  

.flex-child:first-child {
    margin-right: 20px;
} 

#video {
    position: absolute;
    transform: rotateY(180deg);
    -webkit-transform:rotateY(180deg); /* Safari and Chrome */
    -moz-transform:rotateY(180deg); /* Firefox */
    -moz-border-radius:90px;
    -webkit-border-radius:90px;
    border-radius:90px;
    filter: blur(3px);
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    top: 0;
}

iframe {
    border: 0px;
}

.bottom-center { 
    float: center; 
    height: 85%; 
    display: flex; 
    align-items: flex-end; 
    shape-outside: inset(calc(80% - 100px) 0 0); 
} 

.pulse {
    animation: opacityPulse 3s ease-out;
    animation-iteration-count: infinite; 
    opacity: .8;
}

.top-center {
    height: 5%; 
    display: flex;
    justify-content: center
}

@keyframes opacityPulse {
    0% {opacity: 0.0;}
    50% {opacity: 1.0;}
    100% {opacity: 0.0;}
}


/******************************************************************************
START Glitch hello-app default styles

The styles in this section do some minimal CSS resets, set default fonts and 
colors, and handle the layout for our footer and "Remix on Glitch" button. If
you're new to CSS they may seem a little complicated, but you can scroll down
to this section's matching END comment to see page-specific styles.
******************************************************************************/

a {
    color: #EAE2CCff;
  }
  a:link { 
    text-decoration: none; 
  } 
  a:visited { 
    text-decoration: none; 
  } 
  a:hover { 
    text-decoration: none;
    cursor:help;
  } 
  a:active { 
    text-decoration: none; 
  }

.grayscale {
    filter: grayscale(100%);
}

#title {
    color: rgb(235, 191, 157);
    display: none; /* Hidden initially */
    z-index: 10;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 100;
    font-style: italic;
}

#title.ready-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 32px;
    line-height: 1.2;
    max-width: 90%;
    pointer-events: auto;
    cursor: pointer;
    color: rgb(235, 191, 157);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: readyPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

#title.ready-message:hover {
    transform: translate(-50%, -50%) scale(1.05);
    color: rgb(255, 200, 170);
}

#title.ready-message i {
    font-size: 28px;
    font-style: normal;
    display: block;
    margin: 10px 0;
    opacity: 0.8;
}

#title.ready-message p {
    font-size: 20px;
    margin: 5px 0;
    opacity: 0.7;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    #title.ready-message {
        font-size: 28px;
        max-width: 95%;
        padding: 0 10px;
    }
    
    #title.ready-message i {
        font-size: 30px;
        font-style: italic;
        margin: 8px 0;
    }
    
    #title.ready-message p {
        font-size: 18px;
        margin: 4px 0;
    }
}

@media (max-width: 480px) {
    #title.ready-message {
        font-size: 24px;
        max-width: 98%;
        padding: 0 5px;
    }
    
    #title.ready-message i {
        font-size: 20px;
        margin: 6px 0;
    }
    
    #title.ready-message p {
        font-size: 16px;
        margin: 3px 0;
    }
}

#ready-message {
    display: none;
    font-size: 40px;
    color: rgb(235, 191, 157);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: readyPulse 2s ease-in-out infinite;
}

@keyframes readyPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

#bottomNote {
    z-index: 10;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 100;
    font-style: italic;
    color: rgb(235, 191, 157);
}

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

body {
    font-family: 'Courier New', Courier, monospace;
    background: rgb(53, 59, 64);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    color: rgb(53, 59, 64);
    margin-bottom: 30px;
    font-size: 2rem;
}

h2 {
    text-align: center;
    color: rgb(53, 59, 64);
    margin-bottom: 30px;
    font-size: 1rem;
}

.upload-area {
    border: 3px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: rgb(53, 59, 64);
    background-color: #f8f9ff;
}

.upload-icon {
    font-size: 3rem;
    color: rgb(53, 59, 64);
    margin-bottom: 15px;
}

.upload-area.dragover .upload-icon {
    color: rgb(53, 59, 64);
}

.upload-text {
    color: rgb(53, 59, 64);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

#fileInput {
    display: none;
}

.file-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: none;
}

.file-info.show {
    display: block;
}

.upload-btn {
    font-family: 'Courier New', Courier, monospace; 
    background: rgb(53, 59, 64);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: transform 0.2s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    background: rgb(43, 49, 54);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
    display: none;
}

.progress-bar.show {
    display: block;
}

.progress-fill {
    height: 100%;
    background: rgb(53, 59, 64);
    width: 0%;
    transition: width 0.3s ease;
}

.status-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    display: none;
}

.status-message.show {
    display: block;
}

.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    display: none;
}

.result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.url-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
}

.url-link {
    word-break: break-all;
    color: rgb(53, 59, 64);
    text-decoration: none;
    font-weight: bold;
}

.url-link:hover {
    text-decoration: underline;
}

.copy-btn {
    background: rgb(53, 59, 64);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;
}

.copy-btn:hover {
    background: rgb(43, 49, 54);
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline;
    }
}

@media (min-width: 601px) {
    .desktop-only {
        display: inline;
    }
    
    .mobile-only {
        display: none;
    }
}