@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --font: 'Poppins', sans-serif;
    --color-blue: #3635aa;
}

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

html {
    height: 100%;
}

body {
    padding: 0;
    margin: 0;
    background: rgb(6,210,156);
    background: linear-gradient(118deg, rgba(6,210,156,1) 11%, rgba(114,67,216,1) 81%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
}

header > a {
    font-family: var(--font);
    color: white;
    margin-left: 20px;
}

h1 {
    font-family: var(--font);
    color: white;
    text-align: center;
}

.open-more-info {
    margin-right: 20px;
}

.more-info {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    padding: 1rem;
    background-color: white;
    font-family: var(--font);
    font-size: 1.25rem;
    transition: right 0.2s ease;
}

.more-info.show {
    right: 0;
}

.more-info > div {
    margin-top: 1rem;
    word-wrap: break-word;
    word-break: break-all;
}

header > button,
article > button {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 0.5rem;
    font-family: var(--font);
    font-size: 1.25rem;
}

.main-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: white;
    margin: 0 20%;
    padding: 1rem 2rem;
    width: 60%;
    font-family: var(--font);
}

.target-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
    width: 100%;
    border: 2px solid black;
    font-family: inherit;
}

.target, .select-color-type {
    border: 1px solid rgba(0, 0, 0, 0.15);
    outline: none;
    padding: 5px 7px;
    border-radius: 0.75rem;
    color: rgb(44, 44, 44);
}

.target-color > button {
    font-family: inherit;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 1.25rem;
    padding: 8px 10px;
    margin-top: 1rem;
    background-color: var(--color-blue);
    color: white;
    transition: all 0.2s;
    transition-timing-function: ease-out;
}

.target-color > button:hover {
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.main-wrapper > div code {
    font-size: 1rem;
    background-color: rgba(147, 147, 147, 0.15);
}

.main-wrapper > div > p,
.main-wrapper > div {
    margin-bottom: 1rem;
}

.color-square {
    margin: 1rem 0;
    background-color: #000000;
    width: 3.5rem;
    height: 3.5rem;
}