html,
body {
    margin: 0;
    padding: 0;
    background: #ECE9E6;
    background: -webkit-linear-gradient(to right, #FFFFFF, #ECE9E6);
    background: linear-gradient(to right, #FFFFFF, #ECE9E6);
    font-family: "Source Sans 3", sans-serif;
    color: #191919;
}

* {
    box-sizing: border-box;
    font-family: "Source Sans 3", sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

nav,
footer {
    background-color: white;
    padding: 0.8rem 1rem;
    margin: 0;
    text-align: center;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.163);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
}

.logo-img {
    width: 55px;
    height: 55px;
}

.logo-text {
    font-size: 1.5rem;
    margin: 0;
}

/* instructions */

.instructions {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 700px;
    align-items: center;
}

.instruction {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    margin: 0.8rem 0;
    width: 100%;
    max-width: 500px;
}

.ins-number {
    width: 90px;
    height: 90px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 12px;
    font-family: fantasy;
    color: white;
    text-shadow: 0px 0px 3px black;
}

.number-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.first {
    background: linear-gradient(to right, #a8e063, #56ab2f);
}

.second {
    background: linear-gradient(to right, #FFC371, #FF5F6D);
}

.third {
    background: linear-gradient(to right, #96DEDA, #50C9C3);
}

.instruction h4 {
    font-size: 1.2rem;
    margin: 0;
}

/* scheme section */

.scheme-header,
.scheme-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: white;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.163);
    width: 100%;
    max-width: 700px;
    padding: 1rem;
}

.scheme-header {
    flex-wrap: wrap;
}

input[type="color"] {
    padding: 0;
    margin: 0;
    border: none;
    height: 45px;
    width: 60px;
    border-radius: 8px;
    cursor: pointer;
}

select {
    cursor: pointer;
    appearance: none;
    width: 100%;
    max-width: 320px;
    height: 45px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    padding: 0.5rem;
    background: url('images/Icon.png') no-repeat right 0.7em center;
    background-size: 0.7rem auto;
    padding-right: 2.5em;
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

select:focus {
    outline: none;
}


.btn {
    background-color: white;
    border: 2px solid #E5E5E5;
    min-height: 45px;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
}

.btn:hover {
    background-color: whitesmoke;
}

.scheme-colors {
    display: flex;
    width: 100%;
    max-width: 700px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.163);
}

.color {
    flex: 1;
    height: 400px;
}

.scheme-footer {
    min-height: 60px;
    margin-bottom: 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.scheme-footer h3 {
    color: #191919;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.95rem;
    margin: 0.3rem;
}

/* footer */

footer {
    min-height: 70px;
    text-align: center;
    line-height: 1.6;
}

/* tablet */

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.3rem;
    }

    .instruction {
        max-width: 100%;
    }

    .ins-number {
        width: 75px;
        height: 75px;
        font-size: 2.5rem;
    }

    .instruction h4 {
        font-size: 1rem;
    }

    .color {
        height: 300px;
    }
}

/* mobile */

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 8px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .instruction {
        gap: 0.8rem;
        align-items: center;
    }

    .ins-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .instruction h4 {
        font-size: 0.95rem;
    }

    .scheme-header {
        padding: 0.8rem;
    }

    select,
    .btn {
        width: 100%;
        max-width: 100%;
    }

    .color {
        height: 220px;
    }

    .scheme-footer h3 {
        font-size: 0.8rem;
    }
}