/* Neobrutalism CSS Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #ffffff;
    color: #000;
    line-height: 1.4;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.header {
    background-color: #ffff00;
    border: 5px solid #000;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 10px 10px 0px #000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0px #ff00ff;
    margin: 0;
    flex-shrink: 1;
    min-width: 0;
}

.header img {
    height: 60px;
    flex-shrink: 0;
}

.content {
    background-color: #00ff00;
    border: 5px solid #000;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: 8px 8px 0px #000;
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.button {
    background-color: #ff00ff;
    border: 4px solid #000;
    color: #000;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.1s ease;
    text-decoration: none;
    display: inline-block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    z-index: 100;
}

.button:hover {
    background-color: #00ffff;
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0px #000;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: #00ffff;
    border: 4px solid #000;
    padding: 20px;
    box-shadow: 5px 5px 0px #000;
}

.card:nth-child(even) {
    background-color: #ffff00;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

#visualization-container {
    border: 6px solid #000;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.word-input-container {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

#word-input {
    background-color: #00ffff;
    border: 4px solid #000;
    padding: 12px 15px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    box-shadow: 4px 4px 0px #000;
    flex: 1;
    color: #000;
    min-width: 0;
    max-width: 100%;
}

#word-input:focus {
    outline: none;
    background-color: #ffff00;
    box-shadow: 2px 2px 0px #000;
    transform: translate(2px, 2px);
}

#word-input::placeholder {
    color: #000;
    opacity: 0.7;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 15px;
    }
    
    .header {
        gap: 15px;
        padding: 15px 10px;
    }
    
    .header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .header img {
        height: 50px;
    }
    
    .word-input-container {
        gap: 10px;
    }
    
    #word-input {
        font-size: 1rem;
        padding: 10px 12px;
        min-width: 150px;
    }
    
    .button {
        padding: 12px 20px;
        font-size: 1rem;
        white-space: nowrap;
        min-height: 48px;
        min-width: 120px;
    }
    
    #add-word-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .word-input-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    #word-input {
        width: 100%;
        flex: none;
    }
    
    #add-word-btn {
        width: 100%;
    }
    
    .header {
        gap: 8px;
        padding: 15px 5px;
        flex-wrap: nowrap;
    }
    
    .header h1 {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
        text-align: center;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .header img {
        height: 35px;
        flex-shrink: 0;
    }
    
    .content p {
        font-size: 1rem;
    }
}
