*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    filter: saturate(4) hue-rotate(20deg);
    box-shadow: inset 0 0 0 8px #ccd0da;
    transition: box-shadow 0.15s;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: #eff1f5;
    padding: 40px;

    transition: padding 0.15s;
}

input {
    width: 100%;
    height: 40px;
    border: 2px solid #9ca0b0;
    box-shadow: 0 0 0 4px #ccd0da;
    border-radius: 20px;
    border-top-left-radius: 0;
    text-align: center;
    vertical-align: middle;
    background-color: #eff1f5;
    color: #4c4f69;
}

input::placeholder {
    color: #ccd0da;
}

input:hover {
}

img {
    height: 40px;
    border-radius: 4px;
    filter: contrast(0.33) brightness(1.45) saturate(0.5) hue-rotate(-25deg);
    margin-top: -24px;
    transform: scaleX(-1);
}

#content {
    display: flex;
    flex-flow: column nowrap;
    width: 100%;
    min-width: 300px;
    max-width: 600px;
    padding: 40px;
    /* padding-top: 20px; */
    gap: 20px;
    border: 2px solid #ccd0da;
    border-radius: 20px;
    background-color: #e6e9ef;
    align-items: center;
    margin: auto;
}

#title {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

#title-en {
    font-size: 1rem;
    font-weight: 500;
    color: #acb0be;
}

#title-ti {
    /* position: absolute; */
    font-family: "Tiiliitian";
    font-size: clamp(2rem, 9vw, 3rem);
    margin: 0 -10px;
    /* color: #acb0be; */
    color: #9ca0b0;
}

.bubble {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    gap: 12px;
}

#input {
    font-size: 1.25rem;
    font-weight: 500;
}

#output {
    font-family: "Tiiliitian";
    font-size: 2rem;
    padding-top: -8px;
}

#output-buttons {
    display: flex;
    flex-flow: row wrap;
    gap: 12px;
    align-self: flex-end;
    justify-content: flex-end;
    width: 100%;
    /* margin-top: -8px; */
}

.button {
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #acb0be;
    padding: 4px 8px;
    border-radius: 8px;
    border: none;
    background-color: #dce0e8;
    transition: 0.15s;
}

.button:active {
    transform: scale(0.9);
    transition: 0.15s;
}

.button:focus-visible,
.button:not(.success):hover {
    color: #9ca0b0;
    background-color: #ccd0da;
    transition: 0.15s;
}

.button.success {
    filter: hue-rotate(-100deg);
}

@media screen and (max-width: 640px) {
    html {
        box-shadow: inset 0 0 0 4px #ccd0da;
        transition: box-shadow 0.15s;
    }

    body {
        padding: 20px;
        transition: padding 0.15s;
    }
}

@media screen and (max-width: 440px) {
    body {
        padding: 0;
        transition: padding 0.15s;
    }

    #content {
        border-radius: 0;
        /* height: 100vh; */
        transition: border-radius 0.15s height 0.25s;
        padding: 20px;
    }
}

::selection {
    background-color: #ccd0da;
    color: #4c4f69;
}
