@font-face {
    font-family: 'NotoColorEmoji';
    src: url('./NotoColorEmoji.ttf');
    font-weight: 400;
    font-style: normal;
} 
:root {
    --text-color: black;
    --primary-color: #337ab7;
    --white-color: hsl(0, 0%, 98%);
}

*{
    box-sizing: border-box;
}

html {
  color: var(--text-color);
  font-family: 'Roboto', sans-serif;
}

.btn {
    text-decoration: none;
    background-color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
    color: var(--white-color);
    cursor: pointer;
    user-select: none;
}

.btn:hover {
    opacity: 0.9;
}

body {
    background-color: var(--white-color);
}

.main {
    width: 65%;
    margin: auto;
}

header {
    margin-bottom: 24px;
    margin-top: 24px;
    position: relative;
}

header h1 {
    display: block;
    opacity: 70%;
    font-size: 20px;
    font-weight: 400;
    
}

header .btn-info {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    line-height: 30px;
}

.func-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app .btn-change,
.app .btn-copy,
.app .btn-trans {
    line-height: 22px;
}

.app .input-btn {
    display: none;
}

.app label {
    display: inline-block;
    font-weight: 500;
    font-size: 15px;
}

.app textarea {
    width: 100%;
    height: 212px;
    display: block;
    padding: 5px 10px;
    border: 1px solid #CCCCCC;
    resize: none;
    border-radius: 4px;
    margin-bottom: 16px;
}

.app textarea:focus {
    outline: none;
    border:1px solid var(--primary-color);
}

.app #input-text {
    font-family: 'Roboto', san-serif;
}

.app #result-text {
    font-family: 'NotoColorEmoji', san-serif;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: none;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.inner {
    width: 300px;
    height: 300px;
    background-color: var(--white-color);
    margin: auto;
    position: relative;
    border-radius: 4px;
}

@media (max-width: 740px) {
    .main {
        width: 90%;
    }
    header h1 {
        width: 50%;
        text-align: center;
    }
    .app span {
        display: block;
    }

    .app .input-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .app .input-btn {
        display: inline-block;
    }

    .func-group {
        flex-direction: column;
        gap: 5px;
        align-items: unset;
    }

    .app textarea::selection {
        color: var(--white-color);
        background: #3390FF;
    }
}