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

}

#header-area {
    width: 100vw;
    height: 10vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

#logo {
    width: 5%;
    margin-right: 1rem;
    display: inline-block;
}
#yada-name {
    display: inline-block;
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 2em;
}
.bold-text {
    font-weight: 800;
}

#main-area {
    font-family: 'Lexend', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.container {
    background: white;
    width: 90%;
    padding: 3rem;
}

.accent-pink {
    font-weight: 900;
    color: #F2B1BC
}
.accent-blue {
    font-weight: 900;
    color: #54B7EE
}

h1 {
    color: #11162c;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Lexend', sans-serif;
    font-weight: 900;
    font-size: 5.5rem;
}

.title {
    color: #668;
    text-align: center;
    margin-bottom: 10px;
    font-size: 4rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
}
.subtitle {
    color: #668;
    text-align: center;
    margin-bottom: 10px;
    font-size: 3rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
}

#hero-image-section {
    margin-top: 0;
    width: 100%;
    margin-bottom: 4rem;
}

#hero-image {
    width: 70%;
    display: block;
    margin-left: 12%;
    margin-right: 0;
}

.section-divider {
    width: 100%;
    height: 10vh;
    background-image: url("webpage-graphics/section-divider3.png");
    background-repeat: repeat-x;
}

#description-section {
    width: 80%;
    display: flex;
    justify-content: center;
    margin: 7rem auto 5rem auto;
}
.process-step {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #668;
    font-size: 1.2rem;
}

#input-section {
    margin: 30px auto;
    width: 80%;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.tab.active {
    background: linear-gradient(135deg, #51B4ED 0%, #06486e 100%);;
    color: white;
    border-color: #51B4ED;
}

.tab:hover:not(.active) {
    border-color: #51B4ED;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #51B4ED;
}

.file-upload {
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: #51B4ED;
    background: #f8f9ff;
}

.file-upload.dragover {
    border-color: #51B4ED;
    background: #f0f3ff;
}

input[type="file"] {
    display: none;
}

.word-count {
    text-align: right;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

.word-count.warning {
    color: #ff6b6b;
}

.generate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #51B4ED 0%, #06486e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-section {
    display: none;
    margin-top: 30px;
    text-align: center;
    padding: 40px;
}

.loading-section.active {
    display: block;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #51B4ED;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    color: #51B4ED;
    font-weight: 600;
}

.loading-subtext {
    margin-top: 10px;
    color: #999;
}

.video-preview {
    display: none;
    margin-top: 30px;
}

.video-preview.active {
    display: block;
}

video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.download-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #51B4ED 0%, #06486e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.download-btn:hover {
    background: #51B4ED;
    transform: translateY(-2px);
}

.error-message {
    display: none;
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #c62828;
}

.error-message.active {
    display: block;
}

.text-input {
    display: block;
}

.file-upload-section {
    display: none;
}

.file-upload-section.active {
    display: block;
}

footer {
    min-height: 100px;
    max-height: 150px;
    background-color: rgb(239, 239, 247);
    text-align: center;
    padding-top: 2rem;
}
footer p {
    font-family: 'Manrope', sans-serif;
    color: #668;
}
a {
    text-decoration: none;
    color: rgb(40, 40, 68);
    font-weight: 700;
}

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 2.2rem;
    }
    
    #hero-image {
        width: 85%;
        margin-left: 7.5%;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    #header-area {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    #logo {
        width: 10%;
    }
    
    #yada-name {
        font-size: 1.5em;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    #hero-image-section {
        margin-bottom: 2rem;
    }
    
    #hero-image {
        width: 100%;
        margin-left: 0;
    }
    
    .section-divider {
        height: 5vh;
        background-size: contain;
    }
    
    #description-section {
        flex-direction: column;
        width: 100%;
        margin: 3rem auto 2rem auto;
    }
    
    .process-step {
        width: 100%;
        margin-bottom: 2rem;
        align-items: center;
    }
    
    .step-img {
        max-width: 150px;
    }
    
    #input-section {
        width: 100%;
        margin: 20px auto;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
    }
    
    textarea {
        min-height: 150px;
        font-size: 0.9rem;
    }
    
    .generate-btn {
        font-size: 1rem;
        padding: 15px;
    }
    
    .download-btn {
        font-size: 1rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    footer p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    #logo {
        width: 12%;
    }
    
    #yada-name {
        font-size: 1.2em;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .process-step {
        font-size: 1rem;
        align-items: center;
    }
    
    .step-img {
        max-width: 120px;
    }
}
