@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --radius: 6px;
    --bg: #E5E5E5;
    --foreground: #fff;
    --border: #D1D5DB;
    --text: #374151;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    font-family: "Inter", sans-serif;
    margin: 0 auto;
    color: var(--text);
}

header {
    text-align: center;
}

.color-picker-container {
    background-color: var(--foreground);
    max-width: 550px;
    aspect-ratio: 1 / 1;
    margin: auto;
    border-radius: var(--radius);
    box-shadow: 11px 12px 19px -11px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
}

/* controls */

.controls {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    min-height: 90px;
}

button,
#seed-colour,
#scheme {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

#seed-colour {
    min-width: 50px;
    height: auto;
}

#scheme {
    width: 100%;
    margin: 0 20px;
    max-width: 310px;
}

button {
    font-size: 0.75rem;
    background-color: transparent;
    padding: 0 10px;
    margin: 0;
    transition: 300ms;
}

button:hover {
    background-color: var(--bg);
    border: 1px solid var(--bg);
    cursor: pointer;
}

/* hide labels */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* colour scheme display */

.scheme-container {
    text-align: center;
    font-size: 0.75em;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#display-scheme {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.color-card {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}


.color-card img {
    width: 100%;
   flex: 1;
}


/* github link */
.github-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 18px;
    height: 18px;
    color: #111;
}

.github-button svg {
    fill: currentColor;
    width: 100%;
    height: 100%;
    transition: color 0.3s ease;
}

.github-button:hover {
    color: #0366d6;
}