:root {
    --bg: #faeee7;
    --text: #594a4e;
    --sub-bg: #fffffe;
    --sub-text: #33272a;
    --card-bg: #ffc6c7;
    --hl-text: #ff8ba7;

    font-family: system-ui, —apple-system, Segoe UI, Rototo, Emoji, Helvetica, Arial, sans-serif;
}

@font-face {
    font-family: Emoji;
    src: local("Apple Color Emojiji"), local("Segoe UI Emoji"), local("Segoe UI Symbol"), local("Noto Color Emoji");
    unicode-range: U+1F000-1F644, U+203C-3299;
}

body, html {
    position: relative;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

#app {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}


h1,
h2 {
    padding-left: 10px;
    padding-right: 10px;
}

input {
    background: var(--sub-bg);
    padding: 5px;
    border: 1px var(--sub-text) solid;
    border-radius: 4px;
    color: var(--text)
}

select {
    background: var(--sub-bg);
    padding: 4px;
    border: 1px var(--sub-text) solid;
    border-radius: 4px;
    color: var(--text);
    font-weight: bold;
}

details summary {
    font-size: larger;
    font-weight: bold;
}

details[open] summary {
    margin-bottom: 0.6em;
}

details[open] summary~* {
    animation: sweep .5s ease-in-out;
}

@keyframes sweep {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


.icon {
    width: 2.6em;
    height: 2.6em;
    background: hsla(0,0%,80%,.14);
    border-radius: 50%;
    vertical-align: middle;
    object-fit: cover;
    object-position: top;
}

.button-group {
    padding: 0 .5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* flex-wrap: wrap; */
}

.button-group>div,
.button-group-item {
    height: 2em;
    padding: 0 1em;
    font-weight: bold;

    text-align: center;
    border-radius: 4px;
    margin: 0.3em;
    cursor: pointer;
    line-height: 2em;
    width: 100%;
    background-color: var(--hl-text);
    white-space: nowrap;

    transition: all 0.6s;
}

.button-group>div:focus {
    background: hsla(0, 0%, 80%, .14);
}

.button-group>div:hover {
    color: var(--text-hover);
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.hide {
    display: none;
}

.bottom {
    padding-bottom: 1em;
    margin: 2em 0;
}

.links {
    display: flex;
    text-align: center;
    flex-direction: column;
}

.links>a {
    color: var(--hl-text);
    transition: all 0.6s;
    letter-spacing: 0.06ch;
}

.links>a:hover {
    font-size: large;
    letter-spacing: 0.2ch;
}

#mask {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: #333;
    display: none;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s;
    z-index: 50;
}

:root *::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: var(--bg);
}

:root *::-webkit-scrollbar {
    width: 12px;
    background-color: var(--bg);
}

:root *::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: var(--hl-text);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #242629;
        --bg-focus: #3d4046;
        --text: #fffffe;
        --text-hover: #fffffed2;
        --sub-bg: #16161a;
        --sub-text: #fffffe;
        --card-bg: #7f5af0;
        --hl-text: #2cb67d;
        --hl-text-hover: #2cb67dd2;
        --placeholder: #696f7a;
    }
}

@media screen and (max-width: 650px) {
    summary {
        padding-left: 0.2em;
    }
    
    .bottom {
        padding-bottom: 4em;
    }
}