@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');


html {
    font-size: 14px;
    overflow-y: auto;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #313131;
}

body {
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    display: flex;
    align-items: center;
}

.container {
    width: 80vw;
    display: flex;
}

.m_container {
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* header */

header {
    height: 10vh;
    box-shadow: 0 0 10px rgba(0,0,0,.09);
    position: fixed;
    top: 0;
    z-index: 4;
    background-color: white;
}

.header_container {
    justify-content: space-between;
    align-items: center;
}

.logo_text, .logo_dif_text {
    font-size: 2rem;
}

.logo_dif_text {
    color: #3772ff;
}

nav {
    display: flex;
    align-items: center;
    gap: 2.6rem;
}

.nav_list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.6rem;
    list-style: none;
    font-weight: 600;
}


.nav_link {
    text-decoration: none;
}

.nav_item {
    font-size: 1.4rem;
}

.nav_link:hover {
    transform:scale(1.05);
    transition: ease .3s;
}

.nav_link:visited {
    color: #313131;
}

.try_it_item {
    background-color:#3772ff;
    padding: 8px 25px;
    border-radius: 40px;
    color: white;
    font-size: 1.4rem;
}

.try_it:hover {
    transform:scale(1.1);
    transition: ease .3s;
}


/* ask container */

.question_div {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    width: auto;
    padding: 40px 150px;
    border-radius: 50px;
    border-radius: 50px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.116);
    text-align: center;
}

.how_many_colors {
    font-size: 2rem;
    margin-bottom: 1rem
}

.quantity_input {
    padding: 12px 40px;
    border: none;
    border-radius: 200px;
    border-radius: 50px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.329);
}

.submit_button {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: none;
    background-color:#3772ff;
    padding: 10px 50px;
    border-radius: 40px;
    color: white;
    font-size: 1.4rem;
    cursor:pointer;
    font-weight: 600;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.205);
}

.submit_button:hover {
    transform: scale(1.1);
    transition: ease 0.4s;
}

.man_img {
    width: 400px;
}

a {
    text-decoration: none;
}


/* main */

main,.ask_div {
    z-index: 0;
    width: 100vw;
    height: 90vh;
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color:#b0c7fd;
}


.color_cards_container {
    width: 80vw;
    height: 60vh;
    padding: 25px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap:25px;
    overflow-y: auto;
}


.color_card {
    width: 300px;
    height: 350px;
    background-color: white;
    border-radius: 10px;
    box-shadow: -1px 1px 20px rgba(0, 0, 0, 0.178);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.color {
    width: 92%;
    height: 78%;
    border-radius: 10px;
}

.hex_code {
    font-size: 1.5rem;
    color: #313131;
    font-weight: 600;
    margin-top: 10px;
    
}

#reference_card {
    display: none;
}


/* menu media query */

#menu_icon {
    width: 35px;
    cursor: pointer;
    display: none;
}


@media (max-width: 1100px) {
    #menu_icon {
        display: block;
    }

    .nav_list {
        display: none;
    }
}

.open {
    z-index: 1;
    background-color: rgb(255, 255, 255);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 10vh;
    right: 0;
    width: 100vw;
    border-radius: 0px 0px 50px 50px;
    padding-bottom: 2rem;
    gap: 50px;
    animation: opacity .3s ease-in-out;
    display: flex;
}

@keyframes opacity {
    0% {
        opacity: 0;
    }

    100% {
        top: 100%;
    }
}


.hide {
    display: none;
}



/* loading effect */ 

.loading_div {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #b0c7fd;
    display: none;
}

.lds-hourglass {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }

  .lds-hourglass:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 32px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: lds-hourglass 1.8s infinite;
  }

  @keyframes lds-hourglass {
    0% {
      transform: rotate(0);
      animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    50% {
      transform: rotate(900deg);
      animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    100% {
      transform: rotate(1800deg);
    }
  }


/* scrollbar personalization */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #3772ff;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background-color: #fff;
    border-radius: 20px;
}


/* medias queries */

@media (max-width: 1050px) or (max-height: 750px){
    .question_div {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        padding: 20px 0px;
    }
}

@media (max-width: 700px) {
    .how_many_colors {
        padding: 0px 15px;
        font-size: 1.6rem;
    }
}

@media (max-width: 550px) {
    html {
        font-size: 12px;
    }
}

@media (max-width: 450px) {
    .man_img {
        width: 300px;
    }
}

@media (max-width: 300px) {
    .man_img {
        width: 200px;
    }

    html {
        font-size: 10px;
    }

    .quantity_input {
        width: 150px;
    }
}
