#notes-container {

    max-width: 1100px;
    color: white;
    margin: 20px auto 20px;
    padding: 0px;
}

/* row layout */

.notes-row {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* both boxes */

.notes-box {
    flex: 1;
    min-width: 0;
}

/* labels */

.notes-box label {

    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}

/* textarea */

#notes-container textarea {
    width: 100%;
    min-width: 100%;
    height: 200px;

    padding: 18px;

    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);

    background: rgba(255, 255, 255, 0.1);
    color: white;

    font-size: 15px;

    resize: none;
}

#notes-container textarea:focus {

    outline: none;
    border: 1px solid #00ffb3;
    box-shadow: 0 0 8px rgba(0, 255, 179, 0.5);
}

/* output box */

.result-box {

    background: #0d0d20;
    color: #00d0ff;

    height: 200px;
    width: 100%;
    padding: 18px;

    border-radius: 12px;

    overflow-x: auto;
    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* headings */

.result-box h3 {

    margin-top: 12px;
    font-size: 16px;
    color: #00ffb3;
}

/* result text */

.result-box p,
.result-box pre {

    color: #ddd;
    font-size: 14px;
}

/* button container */

.notes-button {

    text-align: center;
    margin-top: 35px;
}

/* button */

#notes-container button {

    padding: 14px 38px;

    background: linear-gradient(135deg,
            #00ffb3,
            #00d4ff);

    border: none;

    border-radius: 30px;

    font-weight: 600;

    cursor: pointer;

    color: black;

    font-size: 15px;

    transition: 0.25s;

    box-shadow: 0 5px 20px rgba(0, 255, 179, 0.4);
}

#notes-container button:hover {

    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 179, 0.6);
}

.keyword-tag {

    display: inline-block;

    background: #00ffb3;

    color: black;

    padding: 4px 10px;

    margin: 4px;

    border-radius: 15px;

    font-size: 12px;

    font-weight: 500;
}

/* loader */

.loader {

    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #00ffb3;

    border-radius: 50%;

    width: 35px;
    height: 35px;

    animation: spin 1s linear infinite;

    margin: 20px auto;
}

@keyframes spin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

/* horizontal scrollbar */

.result-box::-webkit-scrollbar {
    height: 6px;
    width: 6px;
    /* small horizontal scrollbar */
}

/* scrollbar track */

.result-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* scrollbar handle */

.result-box::-webkit-scrollbar-thumb {
    background: #00ffb3;
    border-radius: 10px;
}

/* hover effect */

.result-box::-webkit-scrollbar-thumb:hover {
    background: #00e6a3;
}

.typing::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#summaryResult {
    white-space: pre-wrap;
}

/* ============================= */
/* Mobile Responsive Design */
/* ============================= */

@media screen and (max-width: 768px) {

    #notes-container {
        width: 100%;
        padding: 15px;
        margin: 10px auto;
    }

    /* stack layout */

    .notes-row {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }

    .notes-box {
        width: 100%;
    }

    .notes-box label {
        font-size: 15px;
        margin-bottom: 6px;
    }

    /* textarea */

    #notes-container textarea {

        width: 100%;
        height: 180px;

        padding: 14px;

        font-size: 14px;

        border-radius: 10px;
    }

    /* output */

    .result-box {

        width: 100%;
        height: 200px;

        padding: 14px;

        font-size: 13px;

        border-radius: 10px;
    }

    /* headings */

    .result-box h3 {

        font-size: 14px;
        margin-top: 6px;
    }

    /* result text */

    .result-box p,
    .result-box pre {

        font-size: 13px;
        line-height: 1.5;
    }

    /* button */

    .notes-button {
        margin-top: 25px;
    }

    #notes-container button {

        width: 100%;
        max-width: 260px;

        padding: 12px 20px;

        font-size: 14px;
    }

}