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

body {
    height: 100%;
    min-height: 100dvh;
}

.selection-container {
    padding: 1em 3em;
}
h1 {
    font-family: "Fascinate", system-ui;
    text-transform: uppercase;
    margin-bottom: 1em;
    text-align: center;
}

a {
    text-decoration: none;
    color: rgb(218, 54, 109)
}

.color-selection {
display: flex;
flex-wrap: wrap;
gap: 1em;
justify-content: space-around;
align-items: center;
}


input {
    padding: 0.2em;
    height: 40px;
}
select{
    width: 60%;
    padding: 1em 1.5em;
    border-radius: 5px;
}
button {
    padding: 1em 1.5em;
    border: 1px solid gray;
    border-radius: 5px;
    background-color: white;
}

.recommended-colors{
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
   margin-top: 1em;
   flex: 1 1 auto;
   min-height: 0;
}

.color-pick {
  height: 100%;                 
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 700;
}

#c1 {
background-color: red;
}
#c2 {
background-color: blue;
}
#c3 {
background-color: green;
}
#c4 {
background-color: purple;
}

#c5 {
background-color: orange;

}

.color-name {
    text-align: center;
}

@media (min-width: 768px) {

    body {
        display: flex;
    flex-direction: column;
    }

.recommended-colors{
   grid-template-columns: repeat(5, 1fr);
}
}

@media (min-width: 1280px){
  .selection-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2em 5em;
  }
  .color-selection {
    flex-wrap: nowrap;
    gap: 1rem;
    width: 40%;
  }

h1 {
    margin-bottom: 0;
}
}