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

body{
    background-color: #0F172A;
    color: #F8FAFC;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    color: #0F172A;

    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}


/* Heading section */

h1{
    text-align: center;
    font-size: 50px;
    color: #7DD3FC;
    margin-top: 10px;
}

/* Main section starts from */

/* Upper box*/
.upper-box{
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Inner boxs */
.box{
    height: 200px;
    width: 100%;
    background-color:#1E293B;
    border-radius: 10px;
}

/* First box/ Input text box */
#first{
    height: 100px;
    background-color: #1E293B;
    /* border-radius: 10px; */
    margin-top: 40px;
}

#input-text{
    height: 100px;
    width: 100%;
    color: #F8FAFC;
    caret-color: #7DD3FC;
    background-color: #1E293B;
    border-radius: 10px;
    border: none;
    padding: 10px;
    resize: none;
    font-size: 15px;
    line-height: 1.5;
    overflow-y: auto;
    overflow-x: hidden;
}

textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-thumb {
    background: #debaba;
    border-radius: 10px;
}

textarea::-webkit-scrollbar-track {
    background: transparent;
}

#input-text::placeholder {
    color: #94A3B8;
    font-size: 15px;
}

/* Second box / Number of times box */
#second{
    margin-top: 40px;
    height: 50px;
    font-size: 30px;
    border-radius: 10px;
    background-color: #334155;
}

#times{
    height: 50px;
    width: 100%;
    color: #F8FAFC;
    caret-color: #7DD3FC;
    background-color: #334155;
    border: none;
    border-radius: 10px;
    padding: 10px;
}

#times::placeholder {
    color: #94A3B8;
    font-size: 15px;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Third box / Output box */
#third{
    height: 200px;
    margin-top: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background-color: #475569;
}


#third p{
    font-size: 16px;
    line-height: 1.6;
    background-color: #475569;
    padding: 5px 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#third::-webkit-scrollbar{
    width: 10px;
}

#third::-webkit-scrollbar-track{
    background: #1E293B;
}

#third::-webkit-scrollbar-thumb{
    background: #64748B;
    border-radius: 10px;
}

#third::-webkit-scrollbar-thumb:hover{
    background: #94A3B8;
}

/* Copy button */
#copy-button{
    height: 40px;
    width: 40px;
    background-color: rgba(125, 211, 252, 0.18);
    color: #7DD3FC;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

#copy-button:hover{
    background-color: rgba(125, 211, 252, 0.3);
}

/* Displaying text is copied */
#toast{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1E293B;
    border: 1px solid #06B6D4;
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

#toast.show{
    opacity: 1;
}

/* Footer */
footer{
    width: 100%;
    text-align: center;
    padding: 1.25rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid #334155;
    background-color: #0F172A;
}

footer p{
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.5;
}

footer span{
    color: #7DD3FC;
    font-weight: 600;
}

footer p:hover{
    color: #7DD3FC;
    transition: color 0.3s ease;
}


/* Tablets & large phones */
@media (max-width: 600px) {

    h1{
        font-size: 2rem;
    }

    .upper-box{
        padding: 0 15px;
    }
}

/* Small phones */
@media (max-width: 430px){

    h1{
        font-size: 1.7rem;
    }

    #second,
    #third{
        margin-top: 20px;
    }

    #copy-button{
        width: 35px;
        height: 35px;
        top: 8px;
        right: 8px;
    }

    #input-text,
    #times{
        font-size: 14px;
    }

    footer{
        padding: 1rem;
    }

    footer p{
        font-size: 0.8rem;
    }
}