*{
    /* outline: 1px solid red; */

    /* --background: white;
    --text: black;
    --textinvert: white;
    --accent: blue;
    --notactive: rgba(128, 128, 128, 0.301);

    --green: green;
    --red: red; */

    
    --background: #1a1a1a;
    --text: white;
    --textinvert: #000000;
    --accent: rgb(0, 191, 255);
    --notactive: rgba(128, 128, 128, 0.644);

    --green: greenyellow;
    --red: rgb(255, 0, 0); 
   
}

html{
    /* background-color: rgb(27, 27, 27); */
    display: grid;
    place-items: center;
    align-items: center;
    height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    background-image: url("wallpaper.jpg");
    background-position: center;
    background-size: cover;

    
}

button{
    cursor: pointer;
}


.page1{
    z-index: 10;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(15px);

    color: white;

    display: grid;
    place-items: center;
}

.page2{
    z-index: 9;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(15px);
    color: white;

    display: grid;
    place-items: center;
}

.page1 button, .page2 button{

    width: 120px;
    height: 50px;
    border: 0;
    outline: 0;
    border-radius: 10px;

    font-weight: bolder;

    background-color: var(--accent);
    color: var(--text);
    font-size: large;
}

.contentPage span{
    color: var(--accent);
}

.contentPage{
    width: 500px;
    text-align: center;
}

.contentPage ul{
    margin-left: 10%;
}

.contentPage li{
    text-align: left;
    font-weight: bold;
}


.card{
    /* background-color: var(--background); */
    background-color: rgba(1, 23, 47, 0.856);
    max-width: 400px;
    width: 100%;
    aspect-ratio: .6;
    border-radius: 10px;
    /* overflow: hidden; */

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    position: relative;
}

.gehalt{
    /* background-color: var(--background); */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
}

.gehaltcon{
    width: 150px;
    height: 150px;
    /* background-color: red; */
    border-radius: 510%;
    padding: 1rem;

    color: var(--text);

    display: flex;
    flex-direction: column;
    align-items: center;

    /* border: 20px solid blue; */

    border-bottom-color: transparent;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;

    /* border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px; */

}

.gehaltcon span{
    margin-top: -30px;
    font-weight: bolder;
}

#gehalt{
    color: var(--green);
    font-weight: bolder;
    text-align: center;
    font-size: 4.5ch;
    margin-top: -1px;
}

/* --------------------------------- */
/* Steuern */
.abzug{
    /* background-color: var(--background); */
    height: 380px;
    margin-top: -120px;
    padding-top: 2rem;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;

    text-align: right;

    font-weight: bolder;

    color: var(--text);

    /* border-bottom: 5px solid black; */
}

.abzug span{
    color: var(--red);
    text-align: left;
    padding-left: 1rem;
    width:  calc(40% - 1rem);
}

.abzug p{
    width: 40%;
    margin: 0;
}

.abzug span::before{
    content: '- ';
}

.abzug span::after{
    content: '€';
}

/* --------------------------------- */
/* Restliches Geld */
.rest{
    padding: .7rem;
    /* background-color: var(--background); */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-weight: bold;

    /* border-bottom: 5px solid black; */
}

.bar{
    width: 300px;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.barfill{
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, var(--background) 0%, red, orange, yellow, greenyellow, var(--background) 100%);
}

.barhide{
    position: absolute;
    right: -0%;
    top: 0px;
    background-color: var(--background);
    height: 100%;
}

#rest{
    color: var(--green);
    font-size: xx-large;
}

/* --------------------------------- */
/* Ausgabe Hinzufügen */
.ausgabe{
    height: 60px;
    /* background-color: var(--background); */

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.ausgabe input{
    /* border-radius: 10px 0px 0px 10px; */
    padding: .5rem;

    border: 0px;
    outline: 0;
    /* outline: 3px solid var(--accent); */

    border-bottom: 3px solid var(--accent);
    background-color: transparent;
    color: var(--text);
}

.ausgabe input::after{
    content: '€';
}

.ausgabe button{
    height: 28px;
    border-radius: 0px 10px 10px 0px;
    background-color: var(--accent);
    border: 3px solid var(--accent);
    outline: 0;
    color: var(--textinvert);
    font-weight: bolder;
    outline: 3px solid var(--accent);
    cursor: pointer;
}

#reset{
    background-color: transparent;
    color: var(--text);
    text-decoration: underline;
    border: 0;
    outline: 0;
    width: 100%;
    height: 0px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------- */
/* Button Top */
.openButton{
    width: 35px;
    height: 35px;
    border-radius: 100%;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    /* border: 3px solid var(--accent); */
    background-color: transparent;

    background-image: url("assets/edit.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    outline: 0;
    border: 0px solid;
}

.closeButton{
    width: 35px;
    height: 35px;
    border-radius: 100%;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 12;
    /* border: 3px solid var(--accent); */
    background-color: transparent;

    background-image: url("assets/close.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    outline: 0;
    border: 0px solid;
}

.reloadBut{
    position: absolute;
    top: 10px;
    left: 10px;

    width: 35px;
    height: 35px;

    background-color: transparent;
    border-radius: 100%;
    border: 0;
    outline: 0;
}

.debug{
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: red;
    color: white;
    border: 0;
    outline: 0;
    border-radius: 5px;
    font-weight: bold;
}

/* --------------------------------- */
/* Edit Page */
.editpage {
    position: absolute;
    width: 100%; /* Adjust the width as needed */
    height: 100%;
    /* background-color: var(--background); */
    background-color: rgba(1, 23, 47, 0.856); /* Adjust the color and transparency as needed */

    /* Adding a box-shadow for a similar effect to blur */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Adjust the shadow properties as needed */
    
    /* transition: right 0.3s ease; */
    z-index: 10;

    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    /* background-color: red; */

    border-radius: 0px 10px 10px 0px;
}



.editpage input{
    border: 0;
    outline: 0;

    width: 10%;
    margin-right: 10%;

    height: 20px;

    background-color: transparent;

    /* transition: 0.2s ease-in-out 0s; */
}

.editpage input[type="number"]{
    border: 0;
    outline: 0;

    width: 60%;
    margin-right: 10%;

    border-bottom: 3px solid var(--notactive);
    color: var(--notactive);
    height: 20px;

    font-weight: bold;

    transition: 0.2s ease-in-out 0s;
}

.editpage input[type="number"]:focus{
    height: 35px;
}

#gehaltcheck:checked + #gehaltin{
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}
#steuercheck:checked + #steuerin{
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}
#mietecheck:checked + #mietein{
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}
#versicherungcheck:checked + #versicherungin{
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}
#stromcheck:checked + #stromin{
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}
#heizungcheck:checked + #heizungin{
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}
#wassercheck:checked + #wasserin{
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}
#internetcheck:checked + #internetin{
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}
#handycheck:checked + #handyin{
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}

.inputBut{
    border: 2px solid var(--accent);
    border-radius: 5px;
    background-color: transparent;
    padding: 1rem;
    font-weight: bold;
    font-size: large;
    transition: 0.3s ease 0s;
    color: var(--text);
}

.inputBut:hover{
    background-color: var(--accent);
    color: var(--textinvert);
    /* box-shadow: 0px 0px 1px 5px var(--accent); */
}

.defaultVal{
    border: 2px solid var(--red);
    border-radius: 5px;
    background-color: transparent;
    color: var(--text);
    padding: 1rem;
    font-weight: bold;
    font-size: large;
    transition: 0.3s ease 0s;
}

.defaultVal:hover{
    background-color: red;
    color: var(--textinvert);
    /* box-shadow: 0px 0px 1px 5px var(--accent); */
}