/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');


/* RESETAR ARQUIVO */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body,html{
    background-color: #ccc;
}

main{
    width: 100%;
    max-width: 960px;
    margin: 20px auto;
}

.nav-links{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.nav-links .color{
    background: #fff;
    list-style: none;
    text-align: center;
    padding: 5px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    cursor: pointer;
    transition: transform .3s ease-in-out;
}

.nav-links .color.active{
    transform: scale(0.95);
}

.color .rect-box{
    width: 185px;
    height: 188px;
    background-color: blue;
    border-radius: 6px;
}

.color:hover .rect-box{
    filter: brightness(106%);
}

.color .hex-value{
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin: 10px 0 8px;
    text-transform: uppercase;
}

.generateColor{
    position: fixed;
    top: 20px;
    right: -10%;
    border: none;
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    background-color: #2d98da;
    cursor: pointer;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    transition: .3s all ease-in-out;
    display: flex;
    align-items: center;
    gap: 5px;
}

.generateColor:hover{
    right: 10px;
}

.generateColor .bx-loader-circle{
    transition: .5s all ease-in-out;
    font-size: 20px;
}

.generateColor:hover .bx-loader-circle{
    transform: rotate(360deg);
}

@media screen and (max-width:768px){

    main{
        margin: 20px auto 70px;
    }
    .generateColor{
        top: unset;
        right: unset;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
}