@import url('https://fonts.googleapis.com/css?family=Kodchasan:400,700');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #222;
    font-family: 'Kodchasan', sans-serif;
}

h1 {
    font-size: 1.4em;
    text-transform: uppercase;
}

.app {
    background: #f7f7f7;
    position: fixed;
    height: 500px;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

#palette-display {
    display: flex;
}

.box {
    position: relative;
    height: 99vh;
    width: 200px;
    flex: 1 1 auto;
}

.box p {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    color: #eee;
    background: #222;
    font-size: 1.4em;
}


fieldset {
    border: none;
    position: relative;

}

legend,
.label {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
}

.input-group{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.column {
    flex-direction: column;
    align-items: center;
}

.input-wrap {
    position: relative;
    height:  5rem;
    width:  5rem;
    margin: 0.5rem;
}

#colorNum {
    height: 3rem;
    width: 3rem;
    margin-top: 10px;
    border: 2px solid #cecece;
    border-radius: 5px;
    font-size: 2rem;
    text-align: center;
    font-family: 'Kodchasan', sans-serif;
}

#colorNum::-webkit-inner-spin-button, 
#colorNum::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

#submit {
    border: 2px solid #cecece;
    height: 3rem;
    width: 50%;
    padding: 5px;
    border-radius: 5px;
    background: #fff;
    font-family: 'Kodchasan', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
}

#submit:hover {
    cursor: pointer;
    background: #cecece;
    color: #222;

}

/*START Radio Button Styling */
.radio-button {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    cursor: pointer;
}

.radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 2px solid #cecece;
    background: #fff;
    border-radius: 5px;
    padding: 1rem;
    transition: transform 300ms ease;
}

.radio-label {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.radio-button:checked + .radio-tile {
    border: 2px solid #cecece;
    transform: scale(1.1, 1.1);
}

.red:checked + .radio-tile { 
    background: linear-gradient(217deg, rgba(255,0,0,.8), rgba(255,0,0,0) 70.71%),
                linear-gradient(127deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
                linear-gradient(336deg, rgba(255,0,0,.8), rgba(255,0,0,0) 70.71%); 
}
.orange:checked + .radio-tile { 
    background: linear-gradient(217deg, rgba(244, 105, 24,.8), rgba(244, 105, 24,0) 70.71%),
                linear-gradient(127deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
                linear-gradient(336deg, rgba(244, 105, 24,.8), rgba(244, 105, 24,0) 70.71%); 
}
.yellow:checked + .radio-tile { 
    background: linear-gradient(217deg, rgba(244, 200, 24,.8), rgba(244, 200, 24,0) 70.71%),
                linear-gradient(127deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
                linear-gradient(336deg, rgba(244, 200, 24,.8), rgba(244, 200, 24,0) 70.71%);
}
.green:checked + .radio-tile { 
    background: linear-gradient(217deg, rgba(9, 135, 17,.8), rgba(9, 135, 17,0) 70.71%),
                linear-gradient(127deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
                linear-gradient(336deg, rgba(9, 135, 17,.8), rgba(9, 135, 17,0) 70.71%);
}
.blue:checked + .radio-tile { 
    background: linear-gradient(217deg, rgba(0, 0, 255,.8), rgba(0, 0, 255, 0) 70.71%),
                linear-gradient(127deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
                linear-gradient(336deg, rgba(0, 0, 255,.8), rgba(0, 0, 255, 0) 70.71%);
}
.purple:checked + .radio-tile { 
    background: linear-gradient(217deg, rgba(87, 15, 132,.8), rgba(87, 15, 132, 0) 70.71%),
                linear-gradient(127deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
                linear-gradient(336deg, rgba(87, 15, 132,.8), rgba(87, 15, 132, 0) 70.71%);
}
.pink:checked + .radio-tile {
    background: linear-gradient(217deg, rgba(255, 7, 238,.8), rgba(255, 7, 238, 0) 70.71%),
                linear-gradient(127deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
                linear-gradient(336deg, rgba(255, 7, 238,.8), rgba(255, 7, 238, 0) 70.71%);
}
.mono:checked + .radio-tile { 
    background: linear-gradient(217deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
                linear-gradient(127deg, rgba(145,145,145,.8), rgba(145,145,145,0) 70.71%),
                linear-gradient(336deg, rgba(0,0,0,.8), rgba(0,0,0,0) 70.71%);
}
.lighter:checked + .radio-tile { 
    background: linear-gradient(217deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
                linear-gradient(127deg, rgba(145,145,145,.8), rgba(145,145,145,0) 70.71%),
                linear-gradient(336deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%);
}
.darker:checked + .radio-tile { 
    background: linear-gradient(217deg, rgba(0,0,0,.8), rgba(0,0,0,0) 70.71%),
                linear-gradient(127deg, rgba(145,145,145,.8), rgba(145,145,145,0) 70.71%),
                linear-gradient(336deg, rgba(0,0,0,.8), rgba(0,0,0,0) 70.71%);
}
.random-color:checked + .radio-tile {
    background: linear-gradient(217deg, rgba(255,0,0,.8), rgba(255,0,0,0) 70.71%),
                linear-gradient(127deg, rgba(0,255,0,.8), rgba(0,255,0,0) 70.71%),
                linear-gradient(336deg, rgba(0,0,255,.8), rgba(0,0,255,0) 70.71%);
}
/*END Radio Button Styling */

