* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

:root {
    --radius: 10px;
    --gap: 20px;
}

a {
    color: inherit;
    text-decoration: none
}

body {
    width: 100vw;
    height: 100vh;
    background: radial-gradient(100% 237.07% at 0% 0%, #FFB7B7 0%, #FFC6EF 100%);
}

.container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10vw;
}

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #fff;
    align-items: flex-end;
    margin: 20px 0 25px 0;
}

.title {
    font-size: 2rem;
    font-weight: bold;
}

.toggle {
    cursor: pointer;
}

.blur-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 10px;
    transition: background-color .2s ease-in-out;
}

main {
    flex: 1;
    height: 0;
    width: 100%;
    display: flex;
    gap: var(--gap);
}

.main-left {
    flex: 1;
    width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.content-input-container {
    flex: 1;
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow .25s ease-in-out;
}

#content-input {
    resize: none;
    border: none;
    font-size: 1.1rem;
    outline: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.content-input-container:focus-within {
    box-shadow: 0 0 8px rgba(255, 255, 255, .85);
}

.twemoji-preview {
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.twemoji-preview-container {
    display: none;
    width: 100%;
    flex: 1;
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.emoji-explain-container {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#emoji-explain {
    overflow-y: auto;
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
}

.emoji {
    height: 20px;
}

footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0 5px 0;
    color: #fff;
}

.placeholder {
    position: absolute;
    z-index: 2;
    color: #888;
    font-size: 1.1rem;
    user-select: none;
    transition: color .2s ease-in-out;
}

.scrollbar {
    scrollbar-color: rgba(0, 0, 0, .25) transparent;
    scrollbar-width: thin;
}

.scrollbar::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 4px;
    height: 4px;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: var(--radius);
}

.scrollbar::-webkit-scrollbar-thumb {
    cursor: pointer;
    background: rgba(0, 0, 0, .3);
    border-radius: var(--radius);
}

.scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .container {
        margin: 0 5vw;
    }

    .title {
        font-size: 1rem;
    }

    header {
        margin: 10px 0;
    }

    main {
        flex-direction: column;
    }

    .main-left {
        width: 100%;
        height: 0;
    }

    footer {
        margin: 5px 0;
    }

    :root {
        --gap: 10px;
    }
}

@media (max-width: 375px) {
    .title, .setting {
        font-size: .8rem;
    }
}

@media (prefers-color-scheme: dark) {
    .blur-container {
        background: rgba(0, 0, 0, 0.6);
    }

    .placeholder {
        color: #dcdcdc;
    }

    #content-input, .twemoji-preview, #emoji-explain {
        color: #fff;
    }

    .scrollbar {
        scrollbar-color: rgba(255, 255, 255, .7) transparent;
    }

    .scrollbar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, .7);
    }

    .scrollbar::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, .5);
    }

    .content-input-container:focus-within {
        box-shadow: 0 0 12px rgba(0, 0, 0, .5);
    }
}