* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

button {
cursor: pointer;
border: none;
font-family: 'Inter', sans-serif;
transition: all 0.2s ease;
}

body {
font-family: 'Inter', sans-serif;
background: #faf9f9;
overflow-x: hidden;
display: flex;
justify-content: center;
}

body ::-webkit-scrollbar {
display: none; /* Chrome, Safari, Edge */
}

.bg-img {
position: absolute;
width: 100vw;
opacity: .05;
}

a {
    text-decoration: none;
    color: #303030;
}


main {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 150px;
}

h1 {
    color: #383838;
}

.content-container {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    overflow-y: scroll;
    padding-top: 3rem;
    gap: 3rem;
    max-width: 1200px;
}

.preview-container {
    display: flex;
    justify-content: center;
    color: #fff;
}


.preview-container.show {
    width: 50%;
}

.container {
display: flex;
background-color: #fff;
border: 1px solid rgba(128, 128, 128, 0.249);
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
border-radius: 12px;
padding: 48px;
width: 80%;
flex-direction: column;
transition: all 0.3s ease;
z-index: 50;
overflow-y: scroll;
}

.container.small {
    width: 50%;
}

.nav-menu {
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 20px 50px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
transition: all 0.3s ease;
background: transparent;
}

.nav-menu .nav-mobile {
margin-left: auto;
display: none;
}

.nav-menu .nav-mobile i{
font-size: 1.8rem;
color: #222;
}

.logo, .logo-mobile{
font-size: 1.5rem;
font-weight: bold;
color: rgb(4, 80, 156);
}

.nav-links {
display: flex;
gap: 30px;
list-style: none;
}

.nav-links a {
color: #333;
text-decoration: none;
font-size: 1rem;
transition: opacity 0.3s ease;
}

.nav-links a:hover {
opacity: 0.7;
}

.subtitle {
color: #393939;
margin-top: 12px;
font-size: 18px;
}

.method-indicator {
background: #f0fdf4;
border: 2px solid #86efac;
color: #166534;
padding: 12px;
border-radius: 10px;
margin-bottom: 20px;
font-size: 13px;
text-align: center;
display: none;
}

.method-indicator.show {
display: block;
}

.upload-area {
border: 3px dashed #667eea;
border-radius: 15px;
padding: 40px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
background: #f8f9ff;
}

.upload-area:hover {
border-color: #764ba2;
background: #f0f1ff;
}

.upload-area.dragover {
border-color: #764ba2;
background: #e8e9ff;
transform: scale(1.02);
}

.upload-icon {
font-size: 48px;
margin-bottom: 15px;
}

.upload-text {
color: #667eea;
font-size: 18px;
font-weight: 600;
margin-bottom: 5px;
}

.upload-subtext {
color: #999;
font-size: 14px;
}

input[type="file"] {
display: none;
}

.file-info {
background: #f8f9ff;
padding: 20px;
border-radius: 10px;
margin-top: 20px;
display: none;
}

.file-info.show {
display: block;
}

.file-name {
color: #333;
font-weight: 600;
margin-bottom: 5px;
word-break: break-word;
}

.file-size {
color: #666;
font-size: 14px;
}

.convert-btn {
background-color: #667eea;
color: white;
border: none;
padding: 15px 40px;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
width: 100%;
margin-top: 20px;
transition: all 0.3s ease;
display: none;
}

.convert-btn.show {
display: block;
}

.convert-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.convert-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}

.progress-container {
margin-top: 20px;
display: none;
}

.progress-container.show {
display: block;
}

.progress-bar {
background: #e0e0e0;
height: 8px;
border-radius: 10px;
overflow: hidden;
margin-bottom: 10px;
}

.progress-fill {
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
height: 100%;
width: 0%;
transition: width 0.3s ease;
}

.progress-text {
color: #666;
font-size: 14px;
text-align: center;
}

.download-btn {
background: #10b981;
color: white;
border: none;
padding: 15px 40px;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
width: 100%;
margin-top: 20px;
transition: all 0.3s ease;
display: none;
}

.download-btn.show {
display: block;
}

.download-btn:hover {
background: #059669;
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.video-preview {
display: none;
}

.video-preview.show {
display: block;
}

video {
width: 100%;
border-radius: 10px;
margin-top: 10px;
}

.error {
background: #fee;
color: #c33;
padding: 15px;
border-radius: 10px;
margin-top: 20px;
display: none;
}

.error.show {
display: block;
}

.quality-options {
background: #f8f9ff;
padding: 15px;
border-radius: 10px;
margin-top: 15px;
display: none;
}

.quality-options.show {
display: block;
}

.quality-label {
color: #333;
font-weight: 600;
margin-bottom: 10px;
font-size: 14px;
}

.quality-select {
width: 100%;
padding: 10px;
border: 2px solid #667eea;
border-radius: 8px;
font-size: 14px;
background: white;
cursor: pointer;
}

.logo-mobile {
    display: none;
}

.mobile-menu-wrapper {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #faf9f9;
    display: none;
    z-index: 1000;
    padding: 6rem 2rem;
    flex-direction: column;
}

.mobile-menu-wrapper a{
    color: #222;
    text-decoration: none;
    padding: 1rem 0;
    font-size: 20px;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.close-menu {
    position: absolute;
    color: #222;
    top: 20px;
    right: 17px;
    padding: 0;
    font-size: 22px;
}

.mobile-menu-logo {
    position: absolute;
    color: rgb(4, 80, 156);
    top: 20px;
    left: 20px;
    font-weight: 600;
    font-size: 22px;
}

.mobile-menu-wrapper .btn-mobile-nav{
    color: #242627;
    text-decoration: none;
    padding: 16px 0;
    font-size: 20px;
    margin-top: 40px;
    width: 100%;
    justify-content: center;
    text-align: center;
    background-color: #ECE9E6;
}

.mobile-menu-wrapper.show {
    display: flex;
}

.logo-mobile {
    display: none;
}


header .icons i {
display: none;
}


@media (max-width: 768px) {

.nav-menu {
    padding: 15px 20px;
}

h1 {
    text-align: center;
}


.nav-links a {
    font-size: 0.9rem;
}

.logo {
    font-size: 1.2rem;
}

.nav-menu .nav-mobile {
    display: flex;
}

.content-container {
    flex-direction: column;
    gap: 0;
    padding: 0;
    row-gap: 2rem;
}

.container {
    width: 100%;
    margin-top: 32px;
    padding: 15px;
}

.logo, .nav-links {
    display: none;
}

.logo-mobile {
    display: block;
}

.logo-mobile img, .mobile-menu-logo img{
    width: 2.2rem;
}

.preview-container {
    width: 100%;
}

.container.small {
    width: 100%;
}

.preview-container.show {
    width: 100%;
}
}