*{
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    font-size: x-large;
    font-size: clamp(0.8rem, 1vw, 1.3rem);
}

h1, h2, h3, h4, h5, h6{
    display: block;
    width: 100%;
    padding: 0.1rem;
    margin: 0;
}

body{
    background: #ddd;
    margin: auto;
    text-align: center;
}


.input_large{
    width:80vw;
    display: inline-block;
}

#input_budget{
    width:80%;
    display: inline-block;
}

#root{
    display: none;
}

input, button{
    padding: 0.5rem;
    width: clamp(100px, 100%, 400px);
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

button{
    background: #090;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
}

label{
    width:100%;
    width: clamp(100px, 100%, 400px);
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}


input[type=checkbox] {
    width: 30px;
    height: 30px;
}


#show_pass{
    margin-top: 20px;
}

#label_show_pass{
    text-align: left;
    margin-left: 10px;
    transform: translate(0px, -7px);
}




@keyframes load_main {

    0%{
        box-shadow:#333 0px 0px 0px;
        border: 4px solid #fff;
        background: #ddd;
        
    }

    50%{
        box-shadow:#333 0px 0px 0px;
        border: 4px solid #fff;
        background: #ddd;
    }

    100%{
        box-shadow:#333 0px 0px 50px;
        border: 4px solid #aaa;
        background: #eee;
    }    
}

main{
    
    background: #ddd;
    margin: auto;
    min-height: 100vh;
    width: 90vw;
    width: clamp(90vw, 100%, 1200px);
    padding: clamp(0.5rem, 1.5rem, 40px);
    
    animation-name: load_main;
    animation-delay: 0.5s;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;

    overflow-x: auto;

}


.row{
    width: 100%;
    display: flex;
}

nav, nav ul{
    display: flex;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
    list-style: none;
    margin-bottom: 1rem;
    text-align: right;
    justify-content: flex-end;
    width: 90vw;
    
}

nav li{
    display: inline-block;
    margin: 0.2em;
}


nav li a{
    display: inline-block;
    background:#000;
    margin: auto;
    padding: 0.5rem;
    color: #fff;
    text-decoration: none;
}

#bg_li_small{
    display: flex;
    width: 100vw;
    justify-content: space-around;
}

#bg_li_small input, #bg_li_small button{
    display: inline-block;
    width: 34%;
}

@media screen and (min-width:750px) 
{
    #bg_li_small{
        display: flex;
        width: 50vw;
        justify-content: space-around;
        transform: translate(0px, 60px);
        
    }
}




#bg_li_small button{
    display: inline-block;
    width: 70px;
}

#bg_li_small b{
    font-size: 1.4rem;
    margin-top: 20px;
}


footer{
    background-color: #000;
    color: #fff;
    min-height: 20vw;
    background: linear-gradient(27deg,#151515 5px,transparent 5px) 0 5px,linear-gradient(207deg,#151515 5px,transparent 5px) 10px 0,linear-gradient(27deg,#222 5px,transparent 5px) 0 10px,linear-gradient(207deg,#222 5px,transparent 5px) 10px 5px,linear-gradient(90deg,#1b1b1b 10px,transparent 10px),linear-gradient(#1d1d1d 25%,#1a1a1a 25%,#1a1a1a 50%,transparent 50%,transparent 75%,#242424 75%,#242424);
    background-color: #131313;
    background-size: 20px 20px;

    margin-top: 20px;
}

footer section{

    
    width: min(100%, 300px);
    /*width, max-width */


    display: inline-block;
    margin: 1rem;
}

footer section a{
    color: #fff;
    text-decoration: none;
    
}

.bg_li{
    width: clamp(200px, 100%, 400px);
    display: inline-block;
    min-height: 300px;
    padding: clamp(0.5rem, 1rem, 2rem);
    background:#fffd;
    border-radius: 5px;
    box-shadow: #222 0px 0px 10px;
}


.box_50{
    width:clamp(300px , 50%, 100%);
    
    
    display: inline-block;

}

.warning{
    background: #f90;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    border:2px solid #f30;
}

.okay{
    background: #0f0;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    border:2px solid #090;
}

table{
    border:1px solid #444;
    border-radius: 5px;
    padding: 0.5rem;
    min-width: 800px;
}







table th{
    background:#057;
    color: #fff;
}

table th a{
    color: #f90;
}

table td{
    margin: 0;
    padding: 0.2rem;
    border-bottom: 1px solid #000;
}

table a{
    text-decoration: none;
    color: #930;
}

.td_kurs{
    background:#ccc;
}

.td_ziel_kurz{
    background:#ccf;
}

.td_per_kurz, .td_x_kurz{
    background:#090;
}

.td_x_lang, .td_kurs_lang{
    background:#444;
    color: #fff;

    
}
.td_kurs_lang{
    border-left:3px solid #000;
}


table tr:hover{
    background:#aaf;
}

table tr:hover td{
    background: none;
}

.ico_up, .ico_down{
    
    display: inline-block;
    background-color: #ccc;
    border: 1px solid #000;
    margin: 0;
    margin-right: 0.5rem;
    font-size: 0;
    padding: 10px;
    border-radius: 90px;
    transform: translate(0px,-5px);
}


.ico_up{
    background: #0c0;    
}

.ico_down{
    background: #c00;    
}


#show_chart{
    
    display: block;
    width: 100vw;
    height: auto;
    position: absolute;
    
    left:0px;
    right: 0px;
    z-index:4;
    

}

.show_chart{
    cursor: pointer;
    padding: 0.5rem;
}

#bg_content{
    background:#0005;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    display: inline-block;
    z-index: 1;
}

#show_chart #chart_pic{
    max-width: 70vw;
    max-height: 70vh;
    position: relative;
    z-index: 5;
}

.link_ready{
    font-size: 2rem;
    color: #000;
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 1rem;
    background:#090;
    color: #fff;
}

#surch_form{
    width: 80vw;
    display: inline-block;
    margin: 1rem;
}

.font-red{
    color: #f00;
}

.font-green{
    color: #090;
}

.font-red{
    color: #f00;
}

.x-green{
    color: #0a0;
    font-size: 1rem;
    border-bottom: 2px solid #0f0;
    display: inline-block;
    background: #0f0;
    padding: 5px;
    border-radius: 5px;
}

.kurs_old{
    font-size: 0.7rem;
    background-color: #f30;
    display: inline-block;
    padding: 5px;
    color: #fff;

    border-radius: 5px;
    margin-left: 10px;
}


#form_new_borse{
    width: 100%;
    margin: 0;
    padding: 0;
}

#form_new_borse input::placeholder
{
    color: #444;
    opacity: 1; /* Firefox */
    font-style: italic;
}

#form_new_borse button{
    width: 100px;
}



.menu_boerse{
    margin-right: 0.2rem;
    text-decoration: none;
    color:#000;
    font-size: 1rem;
    font-weight: normal;
    border-bottom: 1px solid #000;
    display: inline-block;
}

.surch_asset_list{
    width: 80vw;
    background-color:#057 ;
    padding: 0.2rem;
    margin: 0.2rem;
    display: inline-block;
    color:#fff;
    font-size: 1.2rem;
    cursor: pointer;

}

.surch_asset_list:hover{
    background-color:#079 ;
}

#front_action{
    display: block;
    width: 80vw;
    min-height: 80vh;
    background-color: #fff;
    border:4px solid #000;
    position: absolute;
    top:10vh;
    left: 10vw;
    z-index: 3;
    color: #000;
}

#bg_action{
    display: block;
    width: 100vw;
    min-height: 100vh;
    background-color: #0004;
    
    position: fixed;
    top:0px;
    left:0px;
    z-index: 2;
}

.bg_budget{
    margin-bottom:1em;
}

.budget{
    border: none;
}

.sub_nav{
    
    margin-bottom: 0.5em;
}

.sub_nav a{
    font-size: 1.2rem;
    text-decoration: none;
    border:none;
    background-color: #f90;
    color:#fff;
    padding:0.5em;
}

.buy_asset{   
    font-size: 1.2rem;
    text-decoration: none;
    border:none;
    background: #090;
    color:#fff;
    padding:0.2em;
    margin: 0;
    display: inline-block;
    min-width: 100px;
    width: 90%;
    cursor: pointer;
}

.position{
    background:none;
    border:none;
    width: 100%;
}

.position th, .position td{
    background:none;
    border:1px solid #000;
    color: #000;
}

.position th{
    background-color: #000;
    color: #fff;
}


.color_green{
    color:#0a0;
}

.color_red{
    color:#f00;
}



@keyframes blink_green {

    0%{
        background: #090;
    }

    50%{
        background: #ddd;
    }

    100%{
        background: #090;
    }    
}

@keyframes blink_red {

    0%{
        background: #900;
    }

    50%{
        background: #ddd;
    }

    100%{
        background: #900;
    }    
}

.action_wait{
    font-size: 1.5em;
    background: #000;
    color: #fff;
    display: inline-block;

    padding: 0.2em;
    border-radius: 5px;
}


.action_buy{
    font-size: 1.5em;
    background: #090;
    color: #fff;
    animation: blink_green 1s infinite;
    display: inline-block;

    padding: 0.2em;
    border-radius: 5px;
}


.action_sale{
    font-size: 1.5em;
    background: #900;
    color: #fff;
    animation: blink_red 1s infinite;
    display: inline-block;
    padding: 0.2em;
    border-radius: 5px;

}


.bg_boersen{
    border:1px solid #000;
    margin: 1rem;
    border-radius: 5px;
    width: 100%;
}




.bg_assets{
    border:2px solid #000;
    margin: 0.5em;
    background: #ddf;
    border-radius: 8px;
}

.sale_pos, .del_pos{
    cursor: pointer;
}


a[class="del_pos"]
{
    display: block;
}

a[class="del_pos"][data-confirm="okay"]
{
    background:#900;
}

a[class="del_pos"][data-confirm="pending"]
{
    background:#000;
}

#buy_over_view{
    width: 100%;
    background:#000;
    color:#fff;
}

#warten, #kaufen, #verkaufen{
    width: calc(33% - 1em);
    display:inline-block;
    padding: 0.5em;
    font-size: 1.2em;
}


.too_old, .too_old td{
    filter: grayscale(1) blur(0.2px);
}