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

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a2e;
    color: #eee;
    padding: 20px;
    line-height: 1.6;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

/* Input View */
#input-view {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #16213e;
    background-color: #f39c12;
    padding: 20px;
    border-radius: 8px;
}

.input-section,
.output-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #f39c12;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #16213e;
    border-radius: 5px;
    font-size: 16px;
    background-color: #0f3460;
    color: #eee;
    resize: vertical;
}

textarea::placeholder {
    color: #888;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #f39c12;
    color: #16213e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e67e22;
}

button:active {
    transform: scale(0.98);
}

#process-btn {
    background-color: #27ae60;
    color: #fff;
}

#process-btn:hover {
    background-color: #229954;
}

#clear-btn {
    background-color: #e74c3c;
    color: #fff;
}

#clear-btn:hover {
    background-color: #c0392b;
}

.hidden {
    display: none;
}

/* Display View */
#display-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #1a1a2e;
    z-index: 1000;
}

#display-view.active {
    display: flex;
}

#fullscreen-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.2em;
    color: #f39c12;
    padding: 40px;
    word-wrap: break-word;
}

#answer-display {
    font-size: 2rem;
    color: #2ecc71;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.controls button {
    min-width: 150px;
}

@media (max-width: 768px) {
    #fullscreen-display {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        width: 100%;
    }

    .controls button {
        width: 100%;
        margin: 0;
    }
}
