html {
    font-size: 16px;
}

* {
    padding: 1px;
    box-sizing: border-box;
    color: lightgray;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-decoration: none;
}

body {
    background-color: black;
}

.header {
    margin: 2rem 3rem 1rem 3rem;
    padding: .5rem;
}

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

h1 {
    font-weight: 200;
    font-size: 3rem;
    color: rgb(138,43,226);
    font-family: 'new', sans-serif;
    text-decoration: none;
}

.controls {
    display: flex;
    margin-top: 2rem;
}

form {
    font-size: 0;
    display: flex;
}

label {
    font-size: .75rem;
    margin: .3rem .5rem 0 0;
}

.input {
 color: #8707ff;
 border: 2px solid #8707ff;
 border-radius: 10px;
 padding: 10px 25px;
 background: transparent;
 max-width: 190px;
}

.input:active {
 box-shadow: 2px 2px 15px #8707ff inset;
}

button {
    outline: none;
    border: none;
    background-color: transparent;
}

.segmentedButton {
    height: 1.5rem;
    border: 2px solid grey;
    padding: 0 .75rem 0 .75rem;
    color: rgb(75, 75, 75);
}

.segmentedButton:first-of-type {
    border-radius: .5rem 0 0 .5rem;
    border-right: 1px solid royalblue;
}

.segmentedButton:nth-of-type(2) {
    border-radius: 0 .5rem .5rem 0;
    border-left: 1px solid royalblue;
}

.segmentedButton.selected {
    border-color: royalblue;
    color: lightgray;
}

.segmentedButton:hover {
    transition: color .2s;
    color: lightgray;
}

#sortReverse {
    position: absolute;
    margin-left: .25rem;
}

#sortReverse > i {
    transition: color .2s;
    font-size: 1.5rem;
}

#sortReverse:hover {
    color: royalblue;
}

.container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 3rem 3rem 3rem;
}

.colorSwatch {
    flex-basis: calc(25% - 1rem);
    height: 2rem;
    margin: .5rem;
    padding: 0 1rem 0 1rem;
    border-radius: 1rem;
    overflow: hidden;
    text-align: left;
    font-weight: 600;
}

.hexbutton {
    flex-basis: calc(25% - 1rem);
    height: 2rem;
    margin: .5rem;
    padding: 0 1rem 0 1rem;
    border-radius: 1rem;
    overflow: hidden;
    text-align: left;
    font-weight: 600;
	background-color: rgb(138,43,226);
	text-decoration: none;
}

.hexbutton:hover {
    flex-basis: calc(25% - 1rem);
    height: 2rem;
    margin: .5rem;
    padding: 0 1rem 0 1rem;
    border-radius: 1rem;
    overflow: hidden;
    text-align: left;
    font-weight: 600;
	background-color: white;
	text-decoration: none;
	color: black;
}

.material-icons {
    font-size: .75rem;
    color: inherit;
}

.toasterIcon {
    color: limegreen;
    font-size: 1rem;
}

.head-img-container {
   width: 100px;
   height: 100px;
   position: absolute;
   top: 0;
   left: 50%;
   transform: translateX(-50%);
   text-align: center;
}

.head-img {
   width: 100%;
   height: auto;
}

.toaster {
    position: fixed;
    background-color: white;
    color: black;
    width: 80%;
    margin-left: 10%;
    top: -3rem;
    height: 3rem;
    border-radius: .5rem;
    padding: .8rem 1rem 1rem 1rem;
    opacity: 0;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.5);
}

@keyframes toaster {
    0% {
        opacity: 0;
        top: -3rem;
    }
    5% {
        opacity: 1;
        top: 1rem;
    }
    90% {
        opacity: 0;
        top: 1rem;
    }
}

@media only screen and (max-width: 800px) {
    form {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
    }
    input {
        width: 14rem;
        margin-top: .25rem;
    }
    .segmentedButton, button > i {
        margin-top: .5rem;
    }
    .colorSwatch {
        flex-basis: calc((100%/3) - 1rem);
    }
}
  
@media only screen and (max-width: 600px) {
    .controls {
        display: block;
    }
    form {
        margin-bottom: 1rem;
    }
    .colorSwatch {
        flex-basis: calc(100% - 1rem);
    }
}