* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: inconsolata;
    src: url(/fonts/Inconsolata-VariableFont_wdth,wght.ttf);
}

:root {
    --h1-font-size: 3rem;
    --body-font-size: 1rem;
}

body,
html {
    width: 100%;
    min-height: 100vh;
    font-family: inconsolata, ui-sans-serif, Arial, sans-serif;
    background-color: #1c1b1a;
    font-size:var(--body-font-size);
}
header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-left:10px;
    margin-right:10px;
    margin-bottom:10px;
    color: #fffcf0;
}

h1 a {
    color: #fffcf0;
    text-decoration: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.quiz-btn {
    background-color: #fffcf0;
    color: #1c1b1a;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inconsolata, ui-sans-serif, Arial, sans-serif;
    font-size: var(--body-font-size);
    transition: opacity 0.2s;
    font-weight:bold;
}

.quiz-btn:hover, h1 a:hover {
    opacity: 0.9;
}

.quiz-mode .color-label {
    display: none;
}

h1 {
    font-weight:900;
    font-size:36px;
    margin: 0;
}

p {
    margin: 0;
    text-align: left;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    width: 100%;
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
    header {
        display: block;
    }
}
.color-box {
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
    z-index: 1;
}
@media (hover: hover) {
    .color-box:hover {
        transform: scale(1.1);
        z-index: 10;
        border-radius: 6px;
    }
}
.color-label {
    position: absolute;
    font-size: var(--body-font-size);
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    padding: 6px;
    border-radius: 4px;
}
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    padding: 20px;
}
.fullscreen h1 {
    font-size: var(--h1-font-size);
    font-weight: bold;
    margin-bottom: 5px;
}
.description {
    font-size: var(--body-font-size);
    font-weight: normal;
    opacity: 0.8;
    margin-bottom: 10px;
}
.blend-head {
    width:80%;
    text-align:left;
    max-width: 500px;
}
.blend-table {
    margin-top: 20px;
    margin-bottom: 20px;
    border-collapse: collapse;
    width: 80%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #333;
}
.blend-table td {
    padding: 10px;
    text-align: left;
    color: #000;
    font-weight: bold;
    position: relative;
    cursor: pointer;
}
.blend-table .copy-icon {
    margin-left: 8px;
    font-size: 1rem;
    opacity: 0.8;
    transition:
        opacity 0.2s,
        transform 0.1s;
}
.blend-table .copy-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--body-font-size);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
}
.tooltip.show {
    opacity: 1;
}
