@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400;500;700;900&display=swap');

html {
    --text-color: white;
    --bg-color-1: #000000;
    --bg-color-2: #ffffff0f;
    --border-color-1: #ffffff38;
    --scrollbar-color-1: #ffffff;
    --scrollbar-color-2: #393939;
    --invert-state: 0;
    scrollbar-color: var(--scrollbar-color-1) var(--scrollbar-color-2);
    scrollbar-width: thin;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track-piece {
    background-color: var(--scrollbar-color-2);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-color-1);
}


body {
    position: relative;
    margin: 0;
    font-family: "Source Sans Pro";
    color: var(--text-color);
    background: var(--bg-color-1);
    font-weight: 200;
    text-shadow: 0px 0px 5px var(--bg-color-1);
    width: 100vw;
    height: 100vh;
}

#container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
}

#bottom-statusbar {
    position: absolute;
    bottom: 0;
    width: calc(100% - 32px);
    display: flex;
    padding: 16px;
}

#words {
    margin-bottom: 32px;
    border: 1px var(--border-color-1) solid;
    border-radius: 32px;
    display: flex;
    flex-wrap: wrap;
}

#word-container {
    position: absolute;
    left: 100px;
    top: 100px;
    padding-bottom: 100px;
    width: calc(100% - 200px);
    animation: loadIn 150ms ease;
}

.word-container {
    background: var(--bg-color-2);
    padding: 32px;
    border-radius: 32px;
    margin: 32px;
    animation: loadIn 150ms ease;
}

.word {
    font-size: 128px;
}

#senses {
    margin-top: 32px;
    border: 1px var(--border-color-1) solid;
    border-radius: 32px;
    display: flex;
    flex-wrap: wrap;
    animation: loadIn 150ms ease;
}

.sense-container {
    background: var(--bg-color-2);
    padding: 32px;
    border-radius: 32px;
    margin: 32px;
    animation: loadIn 150ms ease;
}

.sense-types {
    font-size: 32px;
}

#current-date {
    margin: auto;
}

#settings-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    left: 50%;
    width: 400px;
    height: 400px;
    text-align: center;
    background: var(--bg-color-2);
    backdrop-filter: blur(16px);
    padding: 32px;
    border-radius: 32px;
    animation: loadInSettings 150ms ease;
}

#settings-disclaimer-label {
    margin-top: 32px;
}

#home-link {
    position: absolute;
    top: 40px;
    right: 40px;
    animation: loadIn 150ms ease;
}

#home-link-a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 32px;
    font-weight: 400;
}

#settings-link {
    position: absolute;
    top: 40px;
    right: 92px;
    /* 40+32+20 */
    animation: loadIn 150ms ease;
}

#settings-link-a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 32px;
    font-weight: 400;
}

#theme-toggle-link {
    position: absolute;
    top: 40px;
    right: 144px;
    /* 20+32+40+32+20 */
    animation: loadIn 150ms ease;
}

#theme-toggle-link-a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 32px;
    font-weight: 400;
}

#previous-link {
    position: absolute;
    top: 40px;
    left: 40px;
    animation: loadIn 150ms ease;
}

#previous-link-a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 32px;
    font-weight: 400;
}

#next-link {
    position: absolute;
    top: 40px;
    left: 92px;
    animation: loadIn 150ms ease;
}

#next-link-a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 32px;
    font-weight: 400;
}

.icon {
    filter: invert(var(--invert-state));
    width: 32px;
    height: 32px;
}

@media (pointer:coarse) {
    #word-container {
        position: absolute;
        left: 25px;
        top: 100px;
        width: calc(100% - 50px);
        padding-bottom: 64px;
    }
    .word-container {
        margin:16px;
    }
    .sense-container {
        margin:16px;
    }
    .word {
        font-size: 64px;
    }
}

@keyframes loadIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

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

}

@keyframes loadInSettings {
    0% {
        opacity: 0;
        transform: translateY(calc(-50% + 10px)) translateX(-50%);
    }

    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(-50%);
    }

}