
:root{

    --white_frst: hsl(0, 0%, 100%);
    --white_scnd: hsl(0 0% 90%);
    
    --black_frst: hsl(0 0% 0%);
    --black_scnd: hsl(231 2% 10%);
    --black_thrd: hsl(231 2% 20%);
    --black_frth: hsl(231 2% 30%);
    --black_ftfth: hsl(231 2% 60%);
    --black_sxth: hsl(231 2% 90%);
    
    --green_frst: hsl(128 83.3% 90.6%);
    --green_scnd: hsl(128, 28%, 58%);
    --green_thrd: hsl(130, 21%, 40%);
    --green_frth: hsl(130, 21%, 30%);

    --dark_green_frst: hsl(130, 3%, 20%);

    --blue_frst: hsl(211, 100%, 89%);
    --blue_scnd: hsl(224, 100%, 77%);
    --blue_thrd: hsl(224, 65%, 55%);
    --blue_frth: hsl(224, 100%, 30%);

    --red_frst: hsl(0, 17%, 70%);
    --red_scnd: hsl(0, 70%, 64%);
    --red_thrd: hsl(0, 80%, 40%);

}

@font-face { font-family: starspace; src: url('/frontend/general/starspace-custom.ttf'); }

body{
    font-family: starspace;
}

*{
    box-sizing: border-box;
    font: inherit;
}

a{
    text-decoration: none;
    color: inherit;
}

.global{
    font-size: 16px;
}


.content{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    flex-grow: 1; 
    z-index: 2;
}


.loading_container{
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}


.loading_animation {
    width: 30px;
    height: 30px;
    transform-origin: 50% 50%;
    animation: spin 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(160deg) scale(0.8);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.info{
    display: flex;
    font-size: 1rem;
    width: 100%;
    padding: 5px;
    justify-content: center;
    min-width: 0;
}

.info.debug{
    color: grey;
}
.info.info{
    color: black;
}
.info.warn{
    color: red;
}
.info.error{
    color: violet;
}

.problem{
    outline-style: solid !important;
    outline-color: red !important;
}

.loading{
    pointer-events: none;
}

.loading_inactive{
    display: none !important;
}

.on_button{
    pointer-events: none;
}

.submit{
    border-radius: 0;
    align-self: stretch;
    border-style: solid;
    border-color: var(--black_scnd);
    padding: 10px;
    background: var(--black_scnd);
    color: var(--green_frst);
    stroke: var(--green_frst);
}
@media (hover:hover) and (pointer:fine){
	.submit:hover{
	    background: none;
	    color: var(--black_scnd);
	}
}
.submit:active{
    background: none;
    color: var(--black_scnd);
}

.navbar{
    display: flex;
    position: fixed;
    top: 0px;
    left: 0px;
    align-items: center;
    z-index: 3;
    cursor: default;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    padding: 15px;
    padding-top: 10px;
    background: var(--black_frst);
    color: var(--white_frst);
    stroke: var(--white_frst);
}

.navbar_name{

    font-size: 2rem;
    color: inherit;
    z-index: 2;
    text-decoration: none;
}

.navbar_option_container{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 30px;
    color: inherit;
}

.navbar_link_container{

    color: inherit;
    position: relative;
}

.navbar_dropdown{
    color: inherit;
    position: absolute;
    top: 50%;
    font-size: 1.5rem;
    visibility: hidden;
    display: flex;
    z-index: -1;
    gap: 20px;
    box-sizing: border-box;
    padding: 20px;
    padding-top: 30px;
    left: -20px;
    max-width:  40ch;
    flex-direction: column;
    background: var(--black_frst);
    transition: top 0.1s ease 0s;
    border-radius: 5px;
}

.navbar_dropdown.active{
    top: 100%;
    visibility: visible;
}

.navbar_dropdown_option{
    flex-grow: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: padding 0.2s ease;
    text-decoration: none;
    color: inherit;
}

@media (hover:hover) and (pointer:fine){
	.navbar_dropdown_option:hover{
	    padding-left: 5px;
	}
}
.navbar_dropdown_option:active{
    padding-left: 5px;
}

.navbar_link{
    color: inherit;
    text-decoration: none;
    font-size: 1.4rem;
    display: flex;
    flex-direction: row;
    gap: 3px;
}


.navbar_account{

    color: inherit;
    height: 40px;
}

.navbar_account_icon{
    color: inherit;
    display: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    stroke: inherit;
    z-index: 2;
}
.navbar_account_icon.active{
    display: inline-block;
}

.navbar_account_initials{
    color: inherit;
    display: none;
    position: relative;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    stroke: inherit;
    z-index: 2;
}

.navbar_account_initials.active{
    display: inline-block;
}

.navbar_account_initials_letters{
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    font-size: 20px;
    color: inherit;
}

/* general object */

.icon{
    stroke: inherit;
    width: 20px;
    pointer-events: none;
}

.small_icon_button{
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border-radius: 1000px;
    border-style: none;
    border-color: var(--black_scnd);
    stroke: var(--black_scnd);
    box-sizing: border-box;
    width: 35px;
    height: 35px;
}
@media (hover:hover) and (pointer:fine){
	.small_icon_button:hover{
	    background: var(--black_scnd);
	    stroke: var(--green_frst);
	}
}
.small_icon_button:active{
    background: var(--black_scnd);
    stroke: var(--green_frst);
}

.background_blur{
    position: fixed;
    left: 0;
    top: 0;
    display: none; 
    bottom: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
    overflow: scroll;
    padding: 5px;
}
.background_blur.active{
    display: flex;
}

.floating_window{
    margin: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 15px;
    width: 100%;
    max-width: 900px;
    height: 100%;
    max-height: 700px;
    align-self: stretch;
    background: var(--white_frst);
    box-shadow: 0px 0px 40px 10px var(--black_scnd);
    border-radius: 10px;
    color: var(--black_scnd);
    overflow: scroll;
}

.floating_window_divider{
    background: var(--white_scnd);
}


.floating_window.confirm{
    width: 500px; 
    height: 900px;
}

.floating_window_header{
    display:flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.floating_window_title{
    font-size: 1.5rem;
}

.floating_window_x{
    color: inherit;
    font-size: 1.2rem;
    background: none;
    border-style: none;
    border-radius: 15px;
    height: 30px;
    width: 30px;
}
@media (hover:hover) and (pointer:fine){
	.floating_window_x:hover{
	    background: var(--black_scnd);
	    color: var(--green_frst);
	}
}
.floating_window_x:active{
    background: var(--black_scnd);
    color: var(--green_frst);
}

.floating_window_introducer{
    margin-top: 20px;
    margin-bottom: 10px;
    color: inherit;
}

.floating_window_textarea{
    background: none;
    resize: none;
    border-radius: 10px;
    color: inherit;
    border-style: none;
    outline-style: none;
    box-sizing: border-box;
    padding: 10px;
    flex-grow: 1;
    overflow: scroll;
    border-color: var(--white_scnd);
    font-size: 1.1rem;
    outline-width: 2px;
    margin-bottom: 20px;
    min-height: 100px;
}
.floating_window_textarea:focus{
    border: none;
    outline-style: solid;
    overflow: scroll;
}

.floating_window_submit{
    border-radius: 10px;
    background: none;
    border-style: solid;
    border-color: var(--black_scnd);
    margin-top: 20px;
    color: var(--black_scnd);
    stroke: var(--black_scnd);
    font-size: 20px;
    padding: 10px;
}
@media (hover:hover) and (pointer:fine){
	.floating_window_submit:hover{
	    color: var(--green_frst);
	    background: var(--black_scnd);
	}
}
.floating_window_submit:active{
    color: var(--green_frst);
    background: var(--black_scnd);
}

.floating_window_input{
    width: 100%;
    background: none;
    border-radius: 5px;
    padding: 10px;
    border-style: none;
    box-sizing: border-box;
    min-width: 0;
    color: inherit;
    font-size: 1.1rem;
    outline-width: 2px;
}
.floating_window_input:focus{
    outline: none;
}

.floating_window_button{
    flex-grow: 0;
    max-width: 1000px;
    background: none;
    border-color: var(--black_scnd);
    border-style: solid;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    color: var(--black_scnd);
    align-items: center;
    padding: 5px;
    padding-right: 10px;
    padding-left: 10px;
    height: 4ch;
    stroke: var(--black_scnd);
}
@media (hover:hover) and (pointer:fine){
	.floating_window_button:hover{
	    color: var(--green_frst);
	    background: var(--black_scnd);
	    stroke: var(--green_frst);
	}
}
.floating_window_button:active{
    color: var(--green_frst);
    background: var(--black_scnd);
    stroke: var(--green_frst);
}

.floating_window.confirm_window{
    height: auto;
    max-width: 600px;;
    max-height: auto;
}

.floating_window_confirm_description{
    max-width: 60ch;
    margin-top: 20px;
    font-size: 1.1rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
    overflow: hidden;
    hyphens: auto;
}

.floating_window_confirm_container{
    width: 100%;
    display: flex;
    justify-content: end;
}

.floating_window_confirm{
    background: none;
    border-radius: 10px;
    border-style: solid;
    border-color: var(--back_scnd);
    box-sizing: border-box;
    padding: 5px;
    color: var(--black_scnd);
    margin-top: 20px;
    font-size: 1.1rem;
    outline: none;
    stroke: var(--black_scnd)
}
@media (hover:hover) and (pointer:fine){
	.floating_window_confirm:hover{
	    background: var(--black_scnd);
	    color: var(--green_frst);
	    border-color: var(--black_scnd);
	    stroke: var(--green_frst);
	}
}
.floating_window_confirm:active{
    background: var(--black_scnd);
    color: var(--green_frst);
    border-color: var(--black_scnd);
    stroke: var(--green_frst);
}

.fake_input{
    flex-grow: 1;
    background: none;
    border-radius: 1000px;
    border-style: solid;
    border-color: var(--blue_scnd);
    box-sizing: border-box;
    padding: 7px;
    color: var(--blue_scnd);
    text-align: start;
    font-size: 1.2rem;
    padding-left: 15px;
}
@media (hover:hover) and (pointer:fine){
	.fake_input:hover{
	    background: var(--blue_scnd);
	    color: var(--green_frst);
	}
}
.fake_input:active{
    background: var(--blue_scnd);
    color: var(--green_frst);
}


@media only screen and (max-width: 1500px){
    .content{
        padding: 5px;
    }
}


@media only screen and (max-width: 1200px){
    .navbar_option_container{
        position: static;
        transform: none;
        left: auto;
    }
    .navbar_dropdown{
        position: fixed;
        top:0;
        right: 0;
        max-width: none;
        left: 0;
    }
    .navbar_dropdown.active{
        top: auto;     
    }
}

@media only screen and (max-width: 1200px), (max-height: 1200px) {
}

@media only screen and (max-width: 800px){
    .icon{
        width: 17px;
    }
    .fake_input{
        font-size: 1rem;
    }
}


@media only screen and (max-width: 600px) {
    .navbar_name{
        font-size: 1.4rem;
    }
    .navbar_link{
        font-size: 1rem;
    }
    .navbar{
        padding-top: 5px;
        height: 3.5rem;
        padding-bottom: 0;
        align-items: center;
    }
    .navbar_account_icon{
        width: 25px;
        height: 25px;
    }
    .navbar_account_initials{
        width: 25px;
        height: 25px;
    }
    .navbar_account_initials_letters{
        font-size: 13px;
        top: 5px;
    }
    .navbar_option_container{
        gap: 15px;
    }
    .navbar_dropdown{
        padding-top: 40px;
        font-size: 1.2rem;
        gap: 30px;
    }
}





