* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

body {
    font-family: 'Anton', sans-serif;
    background: transparent;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 600;
    -webkit-text-stroke-width: 2px;
    stroke-width: 2px;
    -webkit-text-stroke-color: #000;
    stroke: #000;
    text-shadow: 4px 4px 0px #000000;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.input-section {
    background: #d07005;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#textInput {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
   
    transition: all 0.3s ease;
}

#textInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#generateBtn {
    padding: 10px 15px 10px 15px;
    border-style: solid;
    border-width: 4px 4px 4px 4px;
    border-color: #020101;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 4px 4px 0px 0px #000000;
    font-size: 1.1rem;
    font-weight: 400;
    background: #b31942;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#generateBtn:hover {
    transform: translateY(-2px);
}

#generateBtn:active {
    transform: translateY(0);
}

#generateBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.error {
    background: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #c33;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.result {
    background:#d07005;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.meme-container {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

#memeCanvas {
    max-width: 100%;
    height: auto;
   
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn {
    padding: 10px 15px 10px 15px;
    border-style: solid;
    border-width: 4px 4px 4px 4px;
    border-color: #020101;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 4px 4px 0px 0px #000000;
    font-size: 1.1rem;
    font-weight: 400;
    background: #b31942;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.new-meme-btn {
    padding: 10px 15px 10px 15px;
    border-style: solid;
    border-width: 4px 4px 4px 4px;
    border-color: #020101;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 4px 4px 0px 0px #000000;
    font-size: 1.1rem;
    font-weight: 400;
    background: #b31942;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-meme-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .input-section {
        padding: 20px;
    }

    #textInput, #generateBtn {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }
}

