/**-------------------------------------------------------------------------------------------------------------------
COLORS SETUP
-------------------------------------------------------------------------------------------------------------------**/


:root{
    --main-action-color: #ff7a00;
    --main-action-color-hover: #e56d01;

    --secondary-action-color: #393939;
    --secondary-action-color-hover: #1f1f1f;

    --auth-action-color: #6400ff;
    --auth-action-color-hover: #4f00cc;

    --delete-action-color: #ca0000;
    --delete-action-color-hover: #a40101;

    --error-color: #d50101;
}




/**-------------------------------------------------------------------------------------------------------------------
RESET DEFAULT CSS
-------------------------------------------------------------------------------------------------------------------**/



*{
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    /*word-break: break-word;*/
}

body{
    width: 100%;
    margin: 0;
}


a{
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

b{
    font-weight: 500;
}


button{
    border: none;
    outline: none;
    cursor: pointer;
    background: transparent;
    font-size: 1em;
    display: block;
}


table{
    border-collapse: collapse;
}


li{
    list-style: none;
}






/**-------------------------------------------------------------------------------------------------------------------
PAGE CONTENT
-------------------------------------------------------------------------------------------------------------------**/



#wrapper{
    font-size: 0.95em;
    /*overflow: hidden;*/
    width: calc(100vw - (100vw - 100%));
    width: calc(100dvw - (100dvw - 100%));
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}




#page_content{
    width: 100%;
}








/**-------------------------------------------------------------------------------------------------------------------
ICON
-------------------------------------------------------------------------------------------------------------------**/


.app_icon{
    width: 1.5em;
    min-width: 1.5em;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}








/**-------------------------------------------------------------------------------------------------------------------
CTA
-------------------------------------------------------------------------------------------------------------------**/


.cta_button{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding: 0.7em 1.5em;
    color: #ffffff;
    font-weight: 400;
    background: var(--main-action-color);
    transition: 0.15s background;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 0.25em;
}


.cta_button.disabled{
    background: #b6b6b6 !important;
    cursor: initial;
}


.cta_button .app_icon{
    width: 1.15em;
    fill: #ffffff;
}


.cta_button:not(.disabled):hover{
    background: var(--main-action-color-hover);
}


.cta_button.secondary{
    background: var(--secondary-action-color);
}

.cta_button.secondary:not(.disabled):hover{
    background: var(--secondary-action-color-hover);
}

.cta_button.auth{
    background: var(--auth-action-color);
}

.cta_button.auth:not(.disabled):hover{
    background: var(--auth-action-color-hover);
}




.cta_button.form_button{
    background: #3d3d3d;
}

.cta_button.form_button:not(.disabled):hover{
    background: #000000;
}




.cta_button.submit_button{
    background: var(--auth-action-color);
}

.cta_button.submit_button:not(.disabled):hover{
    background: var(--auth-action-color-hover);
}




.cta_button.delete{
    background: var(--delete-action-color);
}

.cta_button.delete:not(.disabled):hover{
    background: var(--delete-action-color-hover);
}



.button_loader{
    width: 1.5em;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 0.2em solid white;
    background: transparent;
    clip-path: polygon(0 0, 10% 0, 50% 50%, 90% 0, 100% 0, 100% 100%, 0 100%, 0 0);
    animation: animateButtonLoader 1s linear infinite;
}

@keyframes animateButtonLoader {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}




.button_text{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1em;
}











.colored_text{
    color: var(--main-action-color);
}
















/**-------------------------------------------------------------------------------------------------------------------
BADGE
-------------------------------------------------------------------------------------------------------------------**/

.badge{
    padding: 0.25em 0.5em;
    border-radius: 0.5em;
    background: #646464;
    color: #ffffff;
    border: 1px solid #6f6f6f;
    text-align: center;
    font-size: 0.8em;
    font-weight: 500;
    width: max-content;
}


.badge.success{
    background: #ecf9e6;
    color: #3cb00f;
    border: 1px solid #00b807;
}


.badge.warning{
    background: #febf003b;
    color: #eea207;
    border: 1px solid #eea207;
}


.badge.error{
    background: #d533001a;
    color: #df3500;
    border: 1px solid #d53300;
}


.badge.purple{
    background: #9c27b01f;
    color: #9C27B0;
    border: 1px solid #9C27B0;
}


.badge.gold{
    background: #e2a5001c;
    color: #d6a217;
    border: 1px solid #dea200;
}


.badge.blue{
    background: #0077ff29;
    color: #0077ff;
    border: 1px solid #0077ff;
}

















/**-------------------------------------------------------------------------------------------------------------------
CLOSE COMPONENT
-------------------------------------------------------------------------------------------------------------------**/




.closing_cross_container{
    position: relative;
}

.closing_cross{
    position: absolute;
    top:0.5em;
    right:0.5em;
    width: 2em;
    aspect-ratio: 1/1;
    cursor: pointer;
    padding: 0.5em;
}


.closing_cross.relative{
    position: relative;
    top: initial;
    right: initial;
}


.closing_cross>i{
    width: 100%;
    height: 1px;
    background: #1a1a1a;
    border-radius: 10em;
}

.closing_cross>i:first-of-type{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%) rotate(45deg);
}


.closing_cross>i:last-of-type{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%) rotate(-45deg);
}
















/**-------------------------------------------------------------------------------------------------------------------
POPUPS
-------------------------------------------------------------------------------------------------------------------**/



#popup_list{
    position: fixed;
    z-index: 12;
    top: 1em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.5em;
    width: auto;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}


.popup{
    display: none;
}

.popup:is(.error, .success){
    width: max-content;
    display:none;
}

.popup.visible:is(.error, .success){
    display: flex;
    margin: 1em;
    animation: popupAnimation 0.5s ease-out forwards;
}

@keyframes popupAnimation {
    0%{
        transform: translateX(-110%);
    }
    50%{
        transform: translateX(5%);
    }
    100%{
        transform: translateX(0);
    }
}



.popup.visible:is(.recap){
    display: flex;
}

.popup:is(.error, .success) .popup_content{
    width: max-content;
    position: relative;
}

.popup:is(.error, .success) .popup_content .content_container{
    width: 35em;
    max-width: 80vw;
    border-radius: 0.25em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2em;
    background: white;
}

.popup:is(.error, .success) .popup_content .content_container>*{
    max-width: 100%;
}

.popup.error .popup_content .content_container{
    background: white;
    color: #cb0303;
    box-shadow: 0 0 3px silver;
    border-left: 3px solid #cb0303;
}

.popup.success .popup_content .content_container{
    background: white;
    color: green;
    box-shadow: 0 0 3px silver;
    border-left: 3px solid green;
}




.popup:is(.error, .success) .popup_content .content_container .content{
    font-size: 1em;
}


.popup:is(.error, .success) .closing_cross{
    width: 1.25em;
    top: 0.75em;
    right: 0.75em;
    padding: 0.5em;
}



.popup.success .popup_title{
    color: green;
}

.popup.error .popup_title{
    color: #bd0707;
}

.popup.success .popup_content .content_container .content{
    color: green;
}

.popup.error .popup_content .content_container .content{
    color: #bd0707;
}




.popup .popup_subtitle{
    margin: 1.5em 0;
    font-size: 0.9em;
    color: black;
}

.popup .popup_title{
    font-size: 1.1em;
}












/**-------------------------------------------------------------------------------------------------------------------
CHECKMARK
-------------------------------------------------------------------------------------------------------------------**/

.checkmark_container{
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}


.checkmark_container input[type="checkbox"] {
    display: none;
}

.checkmark_container .checkmark{
    width: 1em;
    aspect-ratio: 1/1;
    box-shadow: 0 0 2px #3f3f3f;
    border-radius: 0.15em;
    background-color: white;
    cursor: pointer;
    padding: 0.15em;
}

.checkmark_container input[type="checkbox"]:checked ~ .checkmark {
    background-color: #0b57d0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.checkmark_container .checkmark>.check {
    display: none;
}


.checkmark_container input[type="checkbox"]:checked ~ .checkmark>.check {
    display: block;
    fill: white;
    font-size: 0.7em;
}














/**-------------------------------------------------------------------------------------------------------------------
HORIZONTAL SCROLLER
-------------------------------------------------------------------------------------------------------------------**/




.horizontal_scroller{
    width: 100%;
    user-select: none;
}



.horizontal_scroller .scroller_list_container{
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}


.horizontal_scroller .scroller_list_container .scroller_list{
    align-self: flex-start;
    display: flex  ;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 3em;
    width: max-content;
    min-width: 100%;
    padding: 0.5em 0;
}


.horizontal_scroller .scroller_list_container .scroller_list .any{
    margin: 5em auto;
    width: 100%;
    text-align: center;
    font-style: italic;
    font-size: 1.5em;
}


.horizontal_scroller .scroller_list_container .scroller_list .item:first-child{
    margin-left: 1.5em !important;
}

.horizontal_scroller .scroller_list_container .scroller_list .item:last-child{
    margin-right: 1.5em !important;
}



.horizontal_scroller .scroller_container{
    width: 15em;
    height: 1em;
    border-radius: 2em;
    border: 1px solid var(--main-action-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0.1em;
    margin-top: 5em;
}


.horizontal_scroller .scroller_container .cursor{
    width: 2em;
    height: 100%;
    border-radius: 2em;
    background: var(--main-action-color);
    position: relative;
    left: 0;
}













/**-------------------------------------------------------------------------------------------------------------------
DASHED LINE
-------------------------------------------------------------------------------------------------------------------**/


svg.dashed_line {
    position: absolute;
    height: 100%;
    left: 50%;
}

svg.dashed_line path{
    stroke: #858585;
    stroke-width: 0.05;
    stroke-dasharray: 0.2;
}


















/**-------------------------------------------------------------------------------------------------------------------
LOADER
-------------------------------------------------------------------------------------------------------------------**/


.loader_container{
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.loader{
    position: absolute;
    z-index: 999;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.loader.fixed{
    position: fixed;
}





.loader .spinner {
    width: min(10em, 30vw);
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: min(0.35em, 2vw) solid #808aae;
    background: transparent;
    clip-path: polygon(0 0, 10% 0, 50% 50%, 90% 0, 100% 0, 100% 100%, 0 100%, 0 0);
    animation: animateSpinner 1s linear infinite;
}

@keyframes animateSpinner {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}


















/**-------------------------------------------------------------------------------------------------------------------
FORM FIELD
-------------------------------------------------------------------------------------------------------------------**/


.field_container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5em;
    width: 100%;
}

.field_container .error{
    color: var(--error-color);
}


.field_container .label{
    font-size: 1em;
    font-weight: 300;
    color: #6c6c6c;
}

.field_container .field{
    font-size: 1em;
    padding: 0.75em;
    width: 100%;
    border-radius: 0.25em;
    border: 1px solid silver;
}
























/**-------------------------------------------------------------------------------------------------------------------
MEDIA QUERIES
-------------------------------------------------------------------------------------------------------------------**/





@media screen and (min-width: 800px) {

    #wrapper{
        font-size: 1em;
    }

}





@media screen and (min-width: 1000px) {

    #wrapper{
        font-size: 1em;
    }

}
