﻿:root {
    --text-color: #000;
    --header-footer-height: 8%;
    --warning-color: #dddd00;
    --comment-color: #888;
    --checkbox-size: 20px;
}

* {
    font-family: sans-serif;
    color: var(--text-color);
}

header, footer {
    height: var(--header-footer-height);
    align-items: center;
    display: flex;
    width: 100%;
}

body, html {
    margin: 0;
    width: 100%;
    height: 100%;
}

p {
    font-size: 0.8rem;
}


header {
    border-bottom: 1px solid #808080;
}

header > div{
    margin: 1rem;
    display:flex;
    height: 100%;
    width: auto
}

h1{
    margin: 0;
    display:flex;
    align-items:center;
}

footer {
    border-top: 1px solid #808080;
    position:absolute;
    bottom: 0px;
    justify-content: center;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

.button {
    background: #ffb807;
    display:flex;
    justify-content:center;
    align-items: center;
    cursor: pointer;
    transition: .2s ease-in-out all;
}

.button:hover{
    background: #e69f0c;
}

.radius {
    border-radius: 10px;
    padding: 1rem;
    height: min-content;
}

.center-container {
    display:flex;
    height: calc(100% - 2 * var(--header-footer-height));
    justify-content: center;
    align-items: center;
}

main > div{
    width: 500px;
    max-width: 100%;
}

#question{

}

.warning{
    color: var(--warning-color);
    font-weight: bold;
    font-style:italic;
}

.category {
    padding: 10px;
    width: calc(100% - 20px);
    height: 2rem;
    border: 1px solid #888;
    border-radius: 13px;
    display: flex;
    cursor:pointer;
    transition: ease-in-out 0.2s all;
    align-items:center;
    margin-bottom: 15px;
}

.box-shadow {
    box-shadow: 0px 0px 33px -7px rgba(0, 0, 0, 0.31);
}

.category:hover{
    transform:scale(1.01);
}

.category span {
    font-weight: bold;
    font-size: 1.7rem;
    margin: 0 7px;
}

.italic {
    font-style: italic;
    font-family: serif;
}

.category-title {
    color: #777;
}

.category div{
    flex-grow: 1;
}

.category-size {
    font-size: 1rem !important;
}

.choose-category{
    width: 80%;
}

.can-hide {
    transition: ease-in-out 0.5s all;
}

.hide{
    opacity:0;
}

.hidden{
    opacity:0;
    display: none;
}

.category:has(input:checked){
    background: #ddd;
    transform: scale(1.02);
}

.choose-category > div{
    margin: 15px 0;
}

.inactive {
    cursor: not-allowed;
    opacity: 0.5;
    user-select:none;
}

.inactive.button{
    background:#aaa;
}

.inactive.button:hover{
     background: #aaa;
 }

.comment{
    color: var(--comment-color);
    font-size: 0.75rem;
    display:flex;
    justify-content:center;
    font-weight:bold;
}

input[type="checkbox"] {
    width: var(--checkbox-size);
    height: var(--checkbox-size);
    margin: 10px;
    cursor: pointer;
    border: 2px solid #333;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 0px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    border-radius: 1px;
    transform: rotate(45deg);
}

label {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.quiz, .answerPage{
    width: 60%;
}


.submit > * {
    margin: 10px 0;
    width: stretch;
}

input[type=text]{
    border: 1px solid #808080;
    font-size: 1.1rem;
}

.word {
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    margin: 5px;
}

.example-span{
    font-weight: bold;
    font-style: italic;
}

.example {
    font-size: 0.85rem;
}

.blue {
    background: #3fa6fc;
}

.blue:hover{
    background: #2e8edd;
}

.ok {
    color: #26c119;
}

.bad {
    color: #c31818;
}

.result{
    display:flex;
    justify-content: center;
}