/* Sino-Type specific styles */
.hero {
    padding: 1rem;
}

.hero-description {
    margin-bottom: 0;
}

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

/* Language filters */
.languages {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgb(250, 230, 170);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(60, 20, 0, 0.1);
}

.filter-label {
    font-family: Choko, sans-serif;
    font-size: 1.2rem;
    color: rgb(60, 20, 0);
    margin: 0;
    font-weight: normal;
}

.languages label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-family: Dosis, sans-serif;
    font-weight: 500;
    color: rgb(60, 20, 0);
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.languages label:hover {
    transform: translateY(-2px);
}

.languages input[type="checkbox"] {
    appearance: none;
    margin-right: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 4px;
    border: 2px solid rgb(60, 20, 0);
    background-color: transparent;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.languages input[type="checkbox"]:checked {
    background-color: rgb(60, 20, 0);
    border: 2px solid rgb(60, 20, 0);
    position: relative;
}

.languages input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Main tool interface */
#boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-container,
.output-container {
    display: flex;
    flex-direction: column;
}

.box-title {
    font-family: Choko, sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: rgb(60, 20, 0);
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: rgb(250, 230, 170);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(60, 20, 0, 0.1);
    position: relative;
}

.textareas {
    color: rgb(60, 20, 0);
    padding: 1.5rem;
    border: 2px solid rgb(60, 20, 0);
    border-radius: 12px;
    background-color: rgb(250, 230, 170);
    font-family: Dosis, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    min-height: 200px;
    box-shadow: 0 4px 12px rgba(60, 20, 0, 0.1);
    transition: all 0.3s ease;
}

.textareas:focus {
    border-color: rgb(80, 40, 20);
    outline: none;
    box-shadow: 0 6px 16px rgba(60, 20, 0, 0.15);
}

#input-area {
    position: relative;
    z-index: 2;
    background-color: transparent;
}

#output-area {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
    position: relative;
    z-index: 2;
}

.output_div {
    display: flex;
    align-items: center;
    background-color: rgb(250, 230, 170);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}



/* Copy button */
#copy-button {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    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;
}

#copy-button:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-50%);
}

/* Options section */
.options-section {
    background-color: rgb(250, 230, 170);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(60, 20, 0, 0.1);
}

.box-title3 {
    font-family: Choko, sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: rgb(60, 20, 0);
    margin-bottom: 1.5rem;
    text-align: left;
}

#options-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.options label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-family: Dosis, sans-serif;
    font-weight: 500;
    color: rgb(60, 20, 0);
    margin: 0;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 6rem;
    justify-content: center;
}

.options label:hover {
    background-color: rgb(226, 199, 140);
    border-color: rgb(60, 20, 0);
    transform: translateY(-2px);
}

input[type="radio"] {
    appearance: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-image: url("../img/steamer.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="radio"]:checked {
    background-image: url("../img/filled_steamer.png");
    transform: scale(1.1);
}

/* Utility classes */
span {
    background-color: rgb(226, 199, 140);
}

/* Highlight classes */
.word-highlight {
    background-color: rgb(226, 199, 140) !important;
    transform: translateY(-2px);
    border: 2px solid rgb(60, 20, 0) !important;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(60, 20, 0, 0.2);
}

.input-word-highlight {
    background-color: rgb(255, 235, 120) !important;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(60, 20, 0, 0.15);
    border: 1px solid rgb(60, 20, 0);
}

.word-hoverable {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

    .languages {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
        padding: 1rem;
    }

    .filter-label {
        font-size: 1.5rem;
        text-align: center;
    }

    .languages label {
        font-size: 1.2rem;
        justify-content: center;
    }

    .languages input[type="checkbox"] {
        width: 1.5rem;
        height: 1.5rem;
    }

    #boxes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .box-title {
        font-size: 1.8rem;
    }

    .textareas {
        font-size: 1.5rem;
        padding: 1rem;
        min-height: 150px;
    }

    .output_div {
        font-size: 1.5rem;
        padding: 0.8rem 1.2rem;
    }

    #copy-button {
        width: 3rem;
        height: 3rem;
    }

    .options-section {
        padding: 1.5rem;
    }

    .box-title3 {
        font-size: 1.8rem;
    }

    .options label {
        font-size: 1.2rem;
        padding: 0.8rem 1.2rem;
        min-width: 8rem;
    }

    input[type="radio"] {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .languages label {
        font-size: 1.4rem;
    }

    .languages input[type="checkbox"] {
        width: 1.8rem;
        height: 1.8rem;
    }

    .box-title {
        font-size: 2rem;
    }

    .textareas {
        font-size: 1.8rem;
        min-height: 120px;
    }

    .output_div {
        font-size: 1.8rem;
        padding: 1rem 1.5rem;
    }

    .options label {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
        min-width: 10rem;
    }

    input[type="radio"] {
        width: 3rem;
        height: 3rem;
    }
}