@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600;800&display=swap');
@import url('/css/colors.css');



div#main{
    width:  calc(100vw - 250px - 90px);
    min-height: calc(100vh - 140px);
    height: auto;

    background-color: var(--background);

    border-radius: 30px;
    margin: 30px;
    margin-left: 15px;

    padding: 40px;
}

#instructions{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#main-p {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;

    font-size: 60px;
    margin: 0px 30px -10px;

    color: var(--copy);

    text-shadow: 2px 2px 2px var(--shadow);
}

#under-p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;

    font-size: 20px;
    margin: 0;

    color: var(--copy-light);
}

#form {
    display: flex;
    justify-content: center;
}

#form-p{
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 30px;
    color: var(--copy);
    margin: 0; 
    margin-bottom: -8px;
    text-shadow: 2px 2px 2px var(--shadow);
}

#form-under-p ,
#form-under-p-1 ,
#form-under-p-2
{
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--copy-light);
    margin: 0;
    margin-bottom: 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
}



.counter{
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--copy);
    margin-left: 15px;
}

label{
    text-align: center;
    margin-top: 5px;
    margin-bottom: 2px;

    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--copy);
}

.fa-circle-question, .fa-circle-xmark{
    color: var(--copy-lighter);
}




#form-now {
    float: left;
    display: flex;
    flex-direction: column;

    width:  calc((100vw - 250px - 90px)/2 - 200px);
    margin: 30px;

    text-align: center;

    background-color: var(--foreground);
    box-shadow: 2px 2px 2px var(--shadow);
    border-radius: 10px;
    padding: 30px;
    
}

#form-goal {
    display: flex;
    flex-direction: column;

    width:  calc((100vw - 250px - 90px)/2 - 200px);
    margin: 30px;

    text-align: center;

    background-color: var(--foreground);
    box-shadow: 2px 2px 2px var(--shadow);
    border-radius: 10px;
    padding: 30px;
}

#form-end{
    display: flex;
    flex-direction: column;
    margin: auto;

    width:  calc((100vw - 250px - 90px) - 310px);
    text-align: center;

    background-color: var(--foreground);
    box-shadow: 2px 2px 2px var(--shadow);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}


#form-submit{
    width: 150px;
    height: 30px;

    border-radius: 10px;
    border: none;
    
    background-color: var(--primary);
    box-shadow: 2px 2px 2px var(--shadow);

    text-align: center;
}

#form-submit{
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    
    color: white;
    font-size: 16px;
    margin: 30px;
    margin-right: 15px;
    margin-bottom: 0;
    margin-top: 0;

    cursor: pointer;
}

div#form-last {
    display: flex;
    justify-content: center;
}

#form-reset{
    width: 150px;
    height: 30px;

    border-radius: 10px;
    border: none;
    
    background-color: var(--foreground);
    box-shadow: 2px 2px 2px var(--shadow);


    text-align: center;

    cursor: pointer;
}

#form-reset{
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    
    color: var(--copy-light);
    font-size: 16px;
    margin: 30px;
    margin-left: 15px;
    margin-bottom: 0;
    margin-top: 0;
}


.qe {
    display: flex;
    flex-direction: row;
    align-items: center;
}


.info-button {
    cursor: pointer;
    font-size: 18px;
    margin-left: 5px;
    align-items: center;
    justify-content: center;
    display: inline-block;
  }

  .info-img{
    width: 20px;
    display: block;
    margin: auto
  }
  
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

  #overlay-1,
  #overlay-2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  .info-box {
    display: none;
    position: fixed;
    width: 50vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
  }
  
  .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
  }
  .close-img{
    width: 20px;
  }
  

  .active {
    display: block !important;
  }

  .info-p{
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--copy-light);
    margin: 0;
    margin: 30px; 
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }


@media (max-width: 1200px) {
    #main{
        width:  calc(100vw - 160px) !important;
        margin-left: 30px !important;
        height: auto !important;}
        
        #main-p{
            font-size: 50px;
            margin-bottom: -5px;
            margin-top: 10px;
        }
        #under-p{
            font-size: 20px;
            margin-bottom: 15px;
        }

        .info-box {
            width: 60vw;
        }

        #form-now {
            float: none;
            width: calc((100vw - 80px) - 200px);
            margin: 5px;
            margin-bottom: 20px;
        }
    
        #form-goal {
            width: calc((100vw - 80px) - 200px);
            margin: 5px;
            margin-bottom: 20px;
        }

        #form-end{
            width: calc((100vw - 80px) - 200px);
            margin: auto;
            margin-bottom: 20px;
        }
    
    } 

@media(max-width: 660px) {
    #main{
        padding: 20px !important;
        margin: 20px !important;
        height: auto !important;

        width: calc(100vw - 80px) !important;
    }
    #main-p{
        font-size: 30px;
        margin-bottom: -5px;
        margin-top: 10px;
    }
    #under-p{
        font-size: 14px;
        margin-bottom: 25px;
    }

    .info-box {
        width: 70vw;
    }

    .info-p {
        margin: 10px;
        margin-top: 30px;
    }


    #form-p{
        margin-bottom: -10px;
        font-size: 25px;
    }

    #form-under-p{
        margin-bottom: 5px;
    }

    #form-under-p-1{
        margin-bottom: 5px;
    }
    #form-under-p-2{
        margin-bottom: 5px;
    }

    #form-now {
        float: none;
        width: calc((100vw - 80px) - 80px);
        margin: 5px;
        margin-bottom: 20px;
    }

    #form-goal {
        width: calc((100vw - 80px) - 80px);
        margin: 5px;
        margin-bottom: 20px;
    }

    #form-end {
        width: calc((100vw - 80px) - 80px);
        margin: auto;
        margin-bottom: 20px;
    }

    #form-submit{
        margin-top: 0;
    }
    #form-reset{
        margin-top: 0;
    }

    #form-last {
        margin: 20px 0;    
    }

}
