@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

* {
    box-sizing: border-box;
    font-family: "Lexend Deca", sans-serif;
    margin: 0;
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    height: 100%;
    font-size: 16px;
    /*font-size-adjust: 0.6;*/
    --shade-0: hsl(0, 0%, 2%);
    --shade-1: hsl(0, 0%, 12%);
    --shade-2: hsl(0, 0%, 22%);
    --shade-3: hsl(0, 0%, 32%);
    --shade-4: hsl(0, 0%, 75%);
    --shade-5: hsl(0, 0%, 80%);
    --shade-6: hsl(0, 0%, 85%);
    --shade-7: hsl(0, 0%, 90%);
    --shade-8: hsl(0, 0%, 95%);
    --shade-9: hsla(0, 0%, 100%);
    background: var(--shade-8);
    color: var(--shade-0);
    --red-glass: rgba(255, 0, 0, 0.1);
}

body:has(.darkmode) {
    --shade-7: hsl(0, 0%, 2%);
    --shade-8: hsl(0, 0%, 12%);
    --shade-9: hsl(0, 0%, 22%);
    --shade-6: hsl(0, 0%, 32%);
    --shade-5: hsl(0, 0%, 75%);
    --shade-4: hsl(0, 0%, 80%);
    --shade-3: hsl(0, 0%, 85%);
    --shade-2: hsl(0, 0%, 90%);
    --shade-1: hsl(0, 0%, 95%);
    --shade-0: hsla(0, 0%, 100%);
}

button {
    cursor: pointer;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.flex.inline {
    display: inline-flex;
}

.flex.wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.flex.col {
    flex-direction: column;
}

.flex.row {
    flex-direction: row;
}

.flex.justify-center {
    justify-content: center;
}

.flex.align-center {
    align-items: center;
}

.flex.justify-stretch {
    justify-content: stretch;
}

.flex.justify-between {
    justify-content: space-between;
}

.flex.align-stretch {
    align-items: stretch;
}

.flex.gap-4 {
    gap: 4px;
}

.flex.gap-8 {
    gap: 8px;
}

.flex.gap-16 {
    gap: 16px;
}

label:has(input[type=checkbox]) {
    display: inline-flex;
    gap: 8px;
    user-select: none;
    cursor: pointer;
    font-size: clamp(12px, 1.2vw, 16px);
    color: rgba(255,255,255,1);
    transition: all 0.3s ease;
}

label:has(input[type=checkbox]:checked) {
    color: rgba(255,255,255,0.5);
}

input[type=checkbox] {
    appearance: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: var(--shade-9);
    border: 1px solid var(--shade-2);
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

input[type=checkbox]:checked {
    background-color: #333;
    border: 1px solid var(--shade-5);
    position: relative;
}

input[type=checkbox]:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.primary-color-text {
    color: var(--primary);
}

.danger-text {
    color: red;
}

.light-text {
    color: var(--shade-4);
}

.white-text {
    color: white;
}

.text-align-center {
    text-align: center;
}

h1 {
    font-size: clamp(28px, 3vw, 36px);
}

h2 {
    font-size: clamp(22px, 1.5vw, 28px);
}

h3 {
    font-size: clamp(18px, 1.2vw, 24px);
}

p {
    line-height: 1.5;
}

.error-message {
    color: #bb0000;
    font-size: 14px;
    line-height: 1;
    margin-top: 8px;
    border: 1px solid rgba(255, 0, 0, 0.5);
    background: rgba(255, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
}

.success-message {
    color: #009803;
    font-size: 14px;
    line-height: 1;
    margin-top: 8px;
    border: 1px solid #00980380;
    background: #0098031a;
    padding: 8px 16px;
    border-radius: 4px;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: var(--shade-8);
    border-radius: 4px;
    border: 1px solid var(--shade-1);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--shade-7);
    cursor: default;
}