:root {
    --primary-bg-color: #1c2331;
    --secondary-bg-color: #40BCF4;
    --hover-bg-color: #2CA6DC;
    --text-color: white;
    --accent-color: #61dafb;
    --tweet-color: #1DA1F2;
    --dark-overlay: rgba(0,0,0,0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg-color), #2c3e50);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.movie-spinner-container {
    width: 100%;
    padding: 2rem;
    text-align: center;
    background-color: rgba(40, 44, 52, 0.9);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.app-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.file-input-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.username-input {
    padding: 10px 15px;
    border: 2px solid var(--secondary-bg-color);
    border-radius: 8px;
    background-color: transparent;
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.username-input::placeholder {
    color: #aaa;
}

.username-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(96, 218, 251, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    width: auto;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-bg-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: var(--hover-bg-color);
    transform: scale(1.05);
}

.btn-tweet {
    background-color: var(--tweet-color);
    color: var(--text-color);
}

.btn-tweet:hover {
    background-color: #1991DA;
}

.btn:disabled {
    background-color: #888;
    cursor: not-allowed;
    transform: none;
}

.meme-container {
    width: 200px;
    height: 200px;
    border: 3px solid var(--text-color);
    border-radius: 50%;
    overflow: hidden;
    margin: 1.5rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

#martin_meme {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 3s ease-out;
}

#spin-button {
    margin-bottom: 1.5rem;
}

.movie-details {
    margin-top: 1.5rem;
    text-align: center;
    background-color: rgba(64, 188, 244, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.movie-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    text-align: center; /* Ensure text is centered horizontally */
    width: 100%; /* Take full width of the container */
}

.movie-year {
    color: #aaa;
    margin-bottom: 1.5rem;
    text-align: center; /* Ensure year is centered */
}

.action-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin: 0 auto;
}

.kofi-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer a {
    color: #FFFFFF;  
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer i {
    color: #ff4b4b;
    margin: 0 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .movie-details {
        max-width: 100%;
        padding: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        min-width: auto;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.5rem;
    }

    .username-input {
        font-size: 12px;
    }

    .btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .meme-container {
        width: 150px;
        height: 150px;
    }
}