:root {
    --font-copy: 'Plus Jarkata Sans', sans-serif;
    --font-written: 'Edu SA Beginner', sans-serif;
    --font-pop: 'Agu Display', serif;
    --color-accent: oklch(75.47% 0.16209 71.392);
    --color-copy: oklch(0% 0 0);
    --color-copy-inverse: oklch(100% 0 0);
    --color-neural: oklch(75% 0 0); 
    --color-affirmative: oklch(60.238% 0.101 197.435);
    --color-negative: oklch(48.649% 0.17901 30.19);
    --padding: 1.5rem;
    --shadow: 2px 2px 2px oklch(from var(--color-copy) l c h / 25%);
}

.bg-gray {
    background-color: oklch(75% 0 0);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-copy);
    font-optical-sizing: auto;
    background-color: var(--color-accent);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button:hover {
    cursor: pointer;
}

.control-button{
    position: fixed;
    top: 0;
    right: 0;
    border-bottom-left-radius: 1rem;

    background-color: var(--color-copy);
    color: var(--color-copy-inverse);
    outline: none;
    border: none;
    padding: 1rem;
}

/*
    Vocab Table
*/
.vocab-wrapper {
    padding: 2rem;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch
}

.vocab-table {
    border-collapse: collapse;
    color: var(--color-copy-inverse);
    width: 100%;
    box-shadow: var(--shadow);
}

.vocab-table td {
    padding: .5rem 1rem;
    text-align: center;
}

.vocab-table td:first-child {
    text-align: left;
}

.vocab-table th {
    padding: 1rem 2rem;
    background-color: var(--color-copy);
}

/* 
    Quiz Cards
*/
@property --progress {
    syntax: '<percentage>';
    inherits: true;
    initial-value: 0%;
}

.quiz-card {
    padding: var(--padding) 2rem;
    user-select: none;
    border-radius: 1rem;
    font-family: var(--font-copy);
    background-color: var(--color-copy-inverse);
    margin: 2rem;
    box-shadow: oklch(39.546% 0.03079 18.463 / 0.125) 0 0 10px 10px;
    padding-bottom: calc(2 * var(--padding));
    background:
        linear-gradient(var(--color-copy) 0 0)
            bottom left / var(--progress) var(--padding) no-repeat,
        linear-gradient(oklch(from var(--color-copy) .9 c h) 0 0)
            bottom left / 100% var(--padding) no-repeat,
        var(--color-copy-inverse);
    transition: --progress 400ms ease;
    position: relative;
}

.quiz-card:hover {
    cursor:pointer;
}

.quiz-card-name {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0;
}

.quiz-card-type {
    margin-top: 0;
    margin-bottom: .5rem;
    font-style: italic;
    color: oklch(from var(--color-copy) .6 c h);
}

.quiz-card-results {
    margin: 0;
    font-weight: bold;
}

.quiz-card-alt-results {
    color: oklch(from var(--color-copy) .6 c h);
    font-weight: normal;
}

/* 
    Quiz Start Button
*/
.quiz-start-button {
    --height: 3rem;
    position: absolute;
    right: 2rem;
    top: calc(50% - (var(--height) / 2) - (var(--padding) / 2));
    height: var(--height);
    width: calc(2 * var(--height));
    background-color: var(--color-affirmative);
    color: var(--color-copy-inverse);
    font-weight: bold;
    border: none;
    box-shadow: 2px 2px 2px oklch(from var(--color-copy) l c h / 25%);
    text-transform: uppercase;
}

/* 
    Quiz Summary
*/
.quiz-summary {
    margin: 2rem;
    box-shadow: var(--shadow);
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction:column;
}

.quiz-summary-item {
    margin: 0;
    padding:.5rem .25rem;
    background-color: var(--color-copy);
    color: var(--color-copy-inverse);
}

.quiz-summary-correct {
    background-color: var(--color-affirmative);
}

.quiz-summary-incorrect {
    background-color: var(--color-negative);
}

.quiz-summary-item::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-inline-start: 0.25rem;
  vertical-align: -0.25rem;
}

.quiz-summary-correct::before {
  background-color: currentColor;
  mask: url("/assets/icons/check.svg") no-repeat center / contain;
}

.quiz-summary-incorrect::before {
  background-color: currentColor;
  mask: url("/assets/icons/x.svg") no-repeat center / contain;
}

/* 
    Quiz
*/
.quiz-wrapper {
    height: 100vh;
    display: flex;
    flex-direction:column;
    gap:1rem;
    align-items: center;
    justify-content: center;
}

.quiz-controls-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-items: center;
}

.quiz-control-button {
    display:flex;
    flex-direction:row;
    gap:1rem;
    align-items: center;
    padding: 1rem;
    font-size: 1.25rem;
    color: var(--color-copy-inverse);
    background-color: var(--color-copy);
    width: 9rem;
    border: none;
    box-shadow: 2px 2px 2px rgba(125, 125, 125, .5);
    justify-content: space-between;
}

.quiz-control-button-icon,
.quiz-control-button-active-icon {
    height: 2.5rem;
}

.quiz-control-button:not([data-active]) > .quiz-control-button-active-icon {
    display:none;
}

.quiz-control-button[data-active] > .quiz-control-button-icon {
    display: none;
}

#word {
    font-family: var(--font-written);
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    height: 10rem;
    font-size: 4rem;
    color: oklch(from var(--color-copy) l c h / 0%);
    user-select: none;
    align-content: center;
}

#word.reveal {
    color: var(--color-copy);
}

.eval-buttons-wrapper {
    display:flex;
    flex-direction:row;
}

.eval-button {
    padding: 4rem;
    font-size: 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-transform: uppercase;
    gap: 1rem;
    border: none;
    border-radius: 3rem;
    font-weight: bold;
    color: var(--color-copy-inverse);
    box-shadow: 2px 2px 2px oklch(from var(--color-copy) l c h / 25%);
}

.eval-button img {
    height: 5rem;
}

.eval-button:first-child {
    background-color: var(--color-affirmative);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.eval-button:last-child {
    background-color: var(--color-negative);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}