body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    font-size: 30px;
    text-align: center;
    background-color: gainsboro;
    font-family: 'Poppins', sans-serif;
}
main {
    padding: 28px 30px;
    border-radius: 10px;
    width: 1000px;
}
#output-text-box,
#output-gen-box {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#output-gen,
#output-text {
    flex: 1;
    margin-left: 10px;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    margin: 10px 0 20px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

label {
    display: block;
    font-weight: bold;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: white;
    outline: none;
}

/* Buttons */
button {
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #45a049;
}

#stop-button {
    background: #d9534f;
}

#stop-button:hover {
    background: #c9302c;
}

#info {
    margin-top: 30px;
    text-align: left;
    width: 700px;
    background-color: #C0C0C0;
    border: 1px solid black;
    border-radius: 50px;
    padding: 50px;
}
@media (max-width: 600px) {
    body {
        flex-direction: column;
        font-size: 16px; /* smaller but still readable */
        padding: 10px;
    }

    main {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
        border-radius: 0; /* full width looks better on phones */
    }

    #output-text-box,
    #output-gen-box {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    #output-gen,
    #output-text {
        margin-left: 0;
        margin-top: 8px;
        font-size: 14px;
    }

    input[type="text"] {
        font-size: 14px;
        padding: 10px;
        /*box-sizing:  border-box;*/
    }

    button {
        width: 100%;
        margin: 8px 0;
        font-size: 14px;
    }

    label {
        text-align: left;
        margin-bottom: 5px;
        font-size: 14px;
    }

    input[type="range"] {
        width: 100%;
    }

    #info {
        width: 300px;
    }
}