*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
}

:root{
    --title-font-family: 'Segoe UI', sans-serif;
    --main-font-family: 'Courier New', Courier, monospace;
    --primary: rgb(255,240,240);
    --secondary: rgb(255, 99, 71);
}

h1, button{
    font-family: var(--title-font-family);
}

p{
    font-family: var(--main-font-family);
    font-size: calc(2vmin + 2vw);
    text-align: center;
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--secondary);
    flex-wrap: wrap;
    height: 45px;
    padding: 0 10px;
}

form label{
    font-size: 16px;
}

form p{
    display: flex;
    font-family: var(--title-font-family);
}

form p + p{
    margin-left:10px;
}

body{
    width: 100%;
    height: 100vh;
    background: var(--primary);
    display: grid;
    place-items: center;
}

.container{
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    padding: 2%;
    width: 90%;
    height: 90vh;
    border: 1px solid var(--secondary);
}

.title{
    color: var(--secondary);
    text-align: center;
    font-size: calc(1vmin + 4vw);
}

.opt{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 40px;
    width: 60%;
    min-width: 280px;
    height: auto;
}

.opt__type{
    min-height: 45px;
    height: auto;
    width: calc(100% - 160px);
    min-width: 280px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    border: 1px solid var(--secondary);
    position: relative;
}

.opt__type::before{
    content: 'Scheme Types';
    position: absolute;
    top:-25px;
    color: var(--secondary);
    font-family: var(--title-font-family);
}

button{
    border: none;
    width: 120px;
    height: 45px;
    background: transparent;
    border: 1px solid var(--secondary);
    cursor: pointer;
    position: relative;
    transition:outline .3s ease-in-out;
}

button p{
    font-size: 1.5em;
    color: var(--secondary);
    font-family: var(--title-font-family);
    margin-bottom: 2px;
    transition: color .3s ease-in-out;
}

button::after{
    content: '';
    position: absolute;
    height: 105%;
    width: 101%;
    transform-origin: left;
    transform: scaleX(0);
    background: var(--secondary);
    left: -1px;
    top: -1px;
    z-index: -1;
    transition: transform .4s ease-in-out;
}

button:hover p{
    color: white;
}

button:hover::after{
    transform: scaleX(1);
}

button:focus{
    outline: none;
    box-shadow: 2px 2px 10px rgba(255, 99, 71, .5);
}

[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}
[type="radio"]:checked + label,
[type="radio"]:not(:checked) + label
{
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
}
[type="radio"]:checked + label:before,
[type="radio"]:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--secondary);
    border-radius: 100%;
    background: #fff;
    margin-top: 1px;
}
[type="radio"]:checked + label:after,
[type="radio"]:not(:checked) + label:after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--secondary);
    position: absolute;
    top: 4px;
    left: 3px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
[type="radio"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}
[type="radio"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}


.color{
    min-height: 250px;
    height: fit-content;
    height: -webkit-fit-content;
    width:fit-content;
    width:-webkit-fit-content;
    min-width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-auto-flow: column;
    grid-template-rows:repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.color__container{
    min-width: 100px;
    min-height: 150px;
    max-height: 150px;
    background: transparent;
    border: 1px solid var(--secondary);
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 30px;
}

.color__name{
    max-width: 80%;
    background: white;
    color:var(--secondary);
    padding: 3px 6px;
    font-size: 100%;
}

footer{
    height: 10%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p{
    font-size: 1em;
}

footer a{
    color: var(--secondary);
}

@media (max-width: 1086px){
    form{
        margin-top: 15px;
    }
}