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

html {
    font-size: 62.5%
}

body {
    font-family: Inter,sans-serif;
    background-color: rgb(255, 247, 243)
}

.header {
    background-color: rgb(250, 208, 196);
    padding: 5rem
}

.header-title {
    text-align: center;
    font-size: 4rem
}

.form {
    display: flex;
    justify-content: center;
    gap: 10rem;
    margin-top: 5rem
}

@media screen and (max-width: 44em) {
    .form {
        flex-direction:column;
        gap: 4rem;
        justify-content: center
    }

    button {
        margin-top: 1rem;
        margin-left: .3rem;
    }
}

.form-container-label {
    display: inline-block;
    font-weight: 710;
    font-size: 2.1rem;
    margin-bottom: 1rem;
}

.form-input {
    font-size: 1.7rem;
    font-family: inherit;
    text-align: center;
}

.form-input::placeholder {
    color: rgb(197, 153, 182);
    font-style: italic;
    font-size: 1.5rem;
}

button,
.form-input {
    font-family: inherit;
    font-size: 2rem;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 1.7rem;
    font-weight: 600;
}

button {
    background-color: rgb(197, 153, 182);
    color: rgb(255, 247, 243);
    cursor: pointer;
}

.results-container {
    max-width: 1220px;
    margin: 5rem auto;
}

@media screen and (max-width: 44em) {
    .results-container {
        max-width: 400px;
    }
}

.spinner {
  border-top: 15px solid rgb(197, 153, 182);
 border-bottom: 15px solid rgb(197, 153, 182);
border-left: 15px solid rgb(250, 208, 196);
    border-right: 15px solid rgb(250, 208, 196);
  border-radius: 50%;
  width: 15rem;
  height: 15rem;
  margin: .2rem auto;
}

.spinner:active {
    display: block;
    animation: spin 1s linear infinite
}

@keyframes spin {
  0% { 
    transform: rotate(0deg); 
}
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}


ol {
    display: flex;
    flex-direction: column;
    gap: 2.1rem;
    max-width: 900px;
    margin: 2rem auto;
}

li {
    font-size: 2rem;
}

.error {
  color: rgb(176, 0, 32);
  background-color: rgb(233, 209, 209);
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 14px;
  text-align: center;
}

.hidden {
  display: none;
}

.display-error {
  display: block;
}



.img-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    justify-content: center;
    align-items: center;
}

img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 1px;
}
