/* Import home page styles */
@import url('home.css');

/* Typewanese specific styles */

/* Tool section */
.tool-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Main form container */
.main-form-container {
    background-color: rgb(250, 230, 170);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(60, 20, 0, 0.1);
    margin-bottom: 2rem;
}

/* Input area */
.input-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#text_box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border: 2px solid rgb(60, 20, 0);
    border-radius: 12px;
    padding: 1rem;
    min-height: 60px;
    flex: 1;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(60, 20, 0, 0.1);
    transition: all 0.3s ease;
}

#text_box:focus-within {
    border-color: rgb(80, 40, 20);
    box-shadow: 0 6px 16px rgba(60, 20, 0, 0.15);
}

#black {
    font-family: Dosis, sans-serif;
    font-size: 1.2rem;
    color: rgb(60, 20, 0);
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    outline: none;
    flex: 1;
    line-height: 1.6;
}

#red {
    font-family: Dosis, sans-serif;
    font-size: 1.2rem;
    color: #dc3545;
    background: none;
    border: none;
    outline: none;
    resize: none;
    flex: 1;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 1.2rem;
}

.copy {
    width: 2rem;
    height: 2rem;
    background-image: url("../img/copy.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin-left: 0.5rem;
}

.copy:hover {
    opacity: 1;
    transform: scale(1.1);
}

.search-button {
    background-color: rgb(60, 20, 0);
    color: rgb(250, 230, 170);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: Dosis, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
}

.search-button:hover {
    background-color: rgb(80, 30, 0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 20, 0, 0.3);
}

/* Options container */
#options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.option-button {
    color: rgb(60, 20, 0);
    font-family: Dosis, sans-serif;
    background-color: white;
    border: 2px solid rgb(60, 20, 0);
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(60, 20, 0, 0.1);
    line-height: 1.6;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.option-button:hover {
    background-color: rgb(250, 230, 170);
    border-color: rgb(80, 40, 20);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(60, 20, 0, 0.15);
}

/* Hidden form elements */
.hidden-inputs {
    display: none;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(250, 230, 170, 0.3);
    border-radius: 50%;
    border-top-color: rgb(250, 230, 170);
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive design */
@media (max-width: 768px) {
    .tool-section {
        padding: 1rem;
    }

    .main-form-container {
        padding: 1.5rem;
    }

    .input-area {
        flex-direction: column;
        gap: 1rem;
    }

    #text_box {
        width: 100%;
        max-width: none;
        min-height: 80px;
    }

    #black,
    #red {
        font-size: 1.4rem;
    }

    .copy {
        width: 2.5rem;
        height: 2.5rem;
    }

    .search-button {
        width: 100%;
        font-size: 1.3rem;
        padding: 1.2rem 2rem;
    }

    .option-button {
        font-size: 1.3rem;
        padding: 1.2rem;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .main-form-container {
        padding: 1rem;
    }

    #text_box {
        min-height: 100px;
    }

    #black,
    #red {
        font-size: 1.6rem;
    }

    .copy {
        width: 3rem;
        height: 3rem;
    }

    .search-button {
        font-size: 1.5rem;
        padding: 1.5rem 2.5rem;
    }

    .option-button {
        font-size: 1.5rem;
        padding: 1.5rem;
        min-height: 120px;
    }
}