@font-face {
    font-family: 'Figtree';
    src: url(fonts/Figtree/Figtree-VariableFont_wght.ttf);
}

:root {
    --font-family: 'Figtree', sans-serif;
    --header-bg: #1a1a1a;
    --footer-bg: #1a1a1a;
    --main-bg: #f0f2f5;
    --text-color: #1a1a1a;
    --btn-bg: #3498db;
    --link-color: #3498db;
    --panel-bg: #ffffff;
    --panel-border: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--main-bg);
    color: var(--text-color);
    scrollbar-width: none;
}

input,
button,
textarea,
select {
    font: inherit;
}

.header,
.footer {
    height: 8vh;
    background: var(--header-bg);
    color: white;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    font-size: clamp(0.5rem, 2vw, 1.2rem);
    font-weight: 500;
}

.main {
    min-height: 84vh;
    padding: 2rem;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content,
.panel,
.preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--panel-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.content__h1,
.preview h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.content__p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.content__link {
    color: var(--link-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content__link:hover {
    color: var(--btn-bg);
}

.content__btn {
    width: fit-content;
    padding: 0.8rem 1.2rem;
    background: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.content__btn:hover {
    opacity: 0.9;
}

.panel__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.panel__basecolor {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
}

.panel__inputs {
    display: none;
}

.panel__inputs .panel__label {
    justify-content: space-between;
}

.preview__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.preview {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.hex-code {
    font-family: monospace;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

@media (max-width:780px) {
    .wrapper {
        grid-template-columns: 1fr;
    }

    .preview {
        grid-row: 3;
        grid-column: 1 / 2;
    }
}