body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333333;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    flex: 1;
}

h1 {
    color: white;
    text-align: center;
    font-size: 28px;
    margin: 40px 0;
    font-weight: 700;
}

.converter-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto 30px;
}

input[type="url"] {
    width: 70%;
    padding: 12px;
    border: 2px solid #afafaf;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
}

button {
    background-color: #000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

button:hover {
    background-color: #333;
}

#result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
    background-color: #2a2a2a;
    max-width: 800px;
    margin: 20px auto;
}

.success {
    background-color: #2a2a2a;
    color: white;
}

.error {
    background-color: #ff3333;
    color: white;
}

.download-button {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.download-button:hover {
    background-color: #cc0000;
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #ff0000;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

/* Description text */
.description {
    color: #ffffff;
    max-width: 800px;
    margin: 30px auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    input[type="url"] {
        width: 100%;
        margin-bottom: 10px;
    }

    button {
        width: 100%;
    }
}

.top-nav {
    background-color: #505050;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    color: #ff0000;
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.button-group {
    display: flex;
    gap: 5px;
}

.format-btn {
    background-color: #333;
}

.format-btn.active {
    background-color: #ff0000;
}

h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.converter-form h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
}

.description h2 {
    color: white;
    margin-top: 40px;
}

.instructions {
    text-align: left;
    margin: 30px auto;
    max-width: 600px;
}

.instructions h3 {
    color: white;
    margin-bottom: 20px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    color: #999;
    margin-bottom: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        align-items: center;
    }
    
    input[type="url"] {
        width: 90%;
        margin-bottom: 10px;
    }
    
    .button-group {
        width: 90%;
        justify-content: center;
    }
    
    .nav-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .converter-form {
        margin: 20px;
        padding: 20px;
    }
}

.footer {
    background-color: #1a1a1a;
    padding: 20px 0 10px;
    margin-top: 40px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
    gap: 30px;
}

.footer-section {
    margin: 0 15px 10px;
    min-width: 120px;
}

.footer-section h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff0000;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #666;
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: center;
        text-align: center;
        gap: 20px;
    }
    
    .footer-section {
        margin: 0 10px 15px;
    }
}
