/* verhindert Textauswahl */
*,
*::before,
*::after {
    box-sizing: border-box;
    user-select: none;        
    -webkit-user-select: none;
    -moz-user-select: none;
    outline: none;/* entfernt Fokus-Ring */
}

/* Chrome, Edge, Safari, passwort visibility toggle hide (gibt keinen in Firefox und in den anderen wirds jz auch versteckt) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.markable {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    outline: none;
}

/* Damit nicht alle <a> elemente unterschrichen werden */
a,
a:hover,
a:visited,
a:focus,
a:active {
  text-decoration: none !important;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #0a0a0a;
}
canvas#firewall-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
}

.notification-container {
    position: fixed;
    top: 45px;
    right: 20px;
    z-index: 5;
}

.notification {
    background-color: #5c5c5c;
    color: black;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.5s forwards, fadeOut 0.5s 7s forwards;
}

.notification.success {
    background-color: #4caf50;
}

.notification.error {
    background-color: rgb(194, 0, 0);/*#f44336;*/
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: black;
    background-image: url(/src/NotLoggedInBg.png);
    background-size: cover;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #80bfff;
    position: relative;
    @media (max-aspect-ratio: 3/4) {
        body {
            background-size: 100% 100%;
            background-attachment: scroll;
        }
    }
}

body.no-flex {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: black;/*linear-gradient(45deg, #002a40, #690000b0); /* Darker background */
    background-image: url(/src/NotLoggedInBg.png);
    background-size: stretch;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    display: block;
    color: #80bfff;
    position: relative;
    @media (max-aspect-ratio: 3/4) {
        body {
            background-size: 100% 100%;
            background-attachment: scroll;
        }
    }
}

h3 {
    color: red;
}

h2 {
    color: #ffffff;
}

h4 {
    color: lime;
}

.InputBox {
    text-align: center;
    color: #ffffff;
    padding-top: 10px;
    padding-right: 0;
    padding-bottom: 10px;
    padding-left: 5px;
    /*
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1)
    /*
    background: rgba(34, 34, 34, 0.568);
    box-shadow: 0 0 25px rgba(0, 195, 255, 0.226), 0 0 40px rgba(132, 0, 255, 0.658);
    */;
    animation: UnfoldAnimation 1s ease-out forwards;
    position: relative;
    display: grid;
    grid-template-columns: 30px 300px;
    gap: 1%;
    z-index: 0;
}

.SelectionBox {
    margin: 0;
    padding: 0;
    width: 20px;
}

.showBtnPWR,
.showBtn {
    width: 35px;
    height: 30px !important;
    margin-top: 15px !important;
    margin-left: 0 !important;
    padding: 0 !important;
    background-color: #7300b6 !important;
    border-radius: 10px 0 0 10px !important;
    transition: width 0.3s ease-out, transform 0.3s ease-out, height 0.3s ease-out, margin-top 0.3s ease-out !important;
    z-index: 0;
    position: relative;
    overflow: hidden;
}
.showBtnPWR {
    margin-top: 45px !important;
    background-color: #790000 !important;
}
.showBtnPWR:hover,
.showBtn:hover {
    box-shadow: none !important;
    background-color: #ff00ff7a !important;
    width: 135px;
    z-index: 1;
    transform: translateX(-100px);
}
.showBtnPWR:hover {
    background-color: #ac0000 !important;
    transform: translateX(-100px);
    height: 45px !important;
    margin-top: 30px !important;
}
.showBtnPWR p,
.showBtnPWR span,
.showBtn p,
.showBtn span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: #fbdcff;
    font-size: 18px;
    font-weight: normal;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.showBtnPWR:hover span,
.showBtn:hover span {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.showBtnPWR p,
.showBtn p {
    opacity: 1;
    color: #d400b8;
    margin: 0 !important;
    padding: 0 !important;
}

.showBtnPWR:hover p,
.showBtn:hover p {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
}
.showBtnPWR.ActiveRegister {
    background-color: #d40c58 !important;
}
.showBtn.ActiveRegister {
    background-color: #d400b8 !important;
}
.showBtnPWR.ActiveRegister p,
.showBtn.ActiveRegister p {
    color: #fbdcff;
}

#InputContainerBox {
    display: flex;
}

.InputContainer {
    text-align: center;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    background: rgb(28 28 28 / 0.85) !important;
    box-shadow: 0 0 25px rgba(0, 195, 255, 0.082), 0 0 40px rgba(101, 0, 216, 0.582);
    border: 1px solid rgba(255,255,255,0.1);
    animation: UnfoldAnimation 1s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.InputContainer form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Optional: Center align the items */
}

/* Input Styling */
input {
    box-sizing: border-box;
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    border-radius: 5px;
    /*border: none;*/
    outline: none;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.521);
    color: #ffffff;
}

@keyframes UnfoldAnimation {
    0% {
        transform-origin: center;
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform-origin: center;
        transform: scaleY(1);
        opacity: 1;
    }
}

.tableInput {
    padding: 10px;
    margin: 0;
    border-radius: 5px;
    /*border: none;
    min-width: 30%;*/
    outline: none;
    font-size: 18px;
    width: 100%;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.521);
    color: #ffffff;
}

/* Button Styling */
button {
    border: none;
    padding: 10px 25px;
    color: black;
    margin: 15px;
    font-size: 17px;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

/* Login Button */
.loginbtn, .SubmitLogin {
    background-color: #2ecc71;
}

/* Register Button */
.registerbtn {
    background-color: #3498db;
}

.MailBtn {
    padding: 0 10px;
}


.small-button {
    border: none;
    padding: 10px 15px;
    margin: 5px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.lockbtn {
    background-color: #2ecc71;
}

.unlockbtn {
    background-color: rgba(255, 0, 200, 0.808);
}

.verifybtn {
    background-color: #3498db;
}

.deletebtn {
    background-color: rgba(255, 0, 0, 0.61);
}


/* Tabelle */
table {
    width: 85%;
    border-collapse: collapse;
    margin: 20px auto; /* Center the table horizontally */
    box-shadow: 0 0 20px rgba(160, 160, 160, 0.774);
    animation: loadAnimation 1s ease-out forwards;
}
/* Tabellenkopf */
th {
    background-color: #4e4e4ed0;
    color: #ffffff;
    font-weight: bold;
}
/* Zellen */
td {
    padding: 7px;
    text-align: center;
    background-color: #303336e7;
}

/* Horizontale Tabellen */
table.horizontal {
    width: fit-content;
    border-collapse: collapse;
    margin: 20px auto; /* Center the table horizontally */
    box-shadow: 0 0 20px rgb(255, 255, 255);
    animation: loadAnimation 1s ease-out forwards;
}
/* Tabellenkopf */
th.horizontal {
    width: fit-content;
    padding: 15px;
    background-color: #303336be;
    /*color: #ff9203c0;*/
    font-weight: bold;
    text-align: left;
}
/* Zellen */
td.horizontal {
    width: fit-content;
    padding: 15px;
    background-color: #303336be;
    text-align: left;
}

/* Einstellungs layout */
.SettingsContainer {
    display: grid;
    grid-template-areas: 
        'KarteSperren Name Passwort'
        'NeueKarte Transaction Delete';
    grid-template-columns: 1fr 1fr 1fr;        
    position: absolute;
    height: 95%;
    width: 100%;
    top: 1.5cm;
    overflow-y: scroll;
}
.UeberweisungsContainerHolder{
    grid-area: Transaction;
}
.DeleteContainerHolder {
    grid-area: Delete;
}
.NeueKarteContainerHolder {
    grid-area: NeueKarte;
}
.PasswortContainerHolder{
    grid-area: Passwort;
}

/* Dashboard layout */
.DashboardContainer {
    display: grid;
    grid-template-areas: 
        'KontoInfoContainer UeberweisungsContainerHolder';
    grid-template-columns: 1fr 1fr;
    height: content-height;
    width: 100%;
    text-align: center;
    column-gap: 1cm;
    row-gap: 1cm;
}
.KontoInfoContainer {
    grid-area: KontoInfoContainer;
}
.UeberweisungsContainerHolder{
    grid-area: UeberweisungsContainerHolder;
}
.TrasactionContainer{
    grid-area: TrasactionContainer;
}


/* Subtile Animation beim Laden der Seite */
@keyframes loadAnimation {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigationbar */
nav {
    background: #222;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
}
nav ul {
    margin: 0;
    padding: 0 1em;
    list-style: none;
    display: flex;
    align-items: center;
    height: 48px;
}
nav ul li {
    position: relative;
}
nav ul li a, nav ul li .dropbtn {
    display: block;
    color: #fff;
    padding: 0 18px;
    text-decoration: none;
    line-height: 48px;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
}
nav ul li a:hover, nav ul li .dropbtn:hover {
    background: #444;
    border-radius: 10px;
}
nav ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #333;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    flex-direction: column;
    border-radius: 10px;
    z-index: 6;
}
nav ul li.dropdown.open .dropdown-content {
  display: flex;
}
/*
nav ul li.dropdown:hover .dropdown-content {
    display: block;
}*/
nav ul li.dropdown .dropdown-content a {
    color: #fff;
    padding: 0 18px;
    height: 48px;
    line-height: 48px;
    text-decoration: none;
    display: block;
    background: none;
}
nav ul li.dropdown .dropdown-content a:hover {
    background: #444;
}
nav ul li[style*="float: right"] {
    margin-left: auto;
}
#TableContainer {
    overflow-y: auto;
    width: 100%;
    text-align: center;
}

.NeighbourContainer {
    display: grid;

    grid-auto-flow: column;/* Erstellt automatisch neue Spalten, statt Zeilen */
    overflow-x: auto;
    /*
    grid-auto-columns: 200px;
    gap: 10px;
    */
}

/* Checkbox Styles */
.CheckboxContainer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0.1rem 0;
    font-family: 'Segoe UI', sans-serif;
}

.CheckboxContainer input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #555;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.CheckboxContainer input[type="checkbox"]:checked {
    background-color: #4caf50;
    border-color: #4caf50;
}

.CheckboxContainer input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.CheckboxContainer input[type="checkbox"]:checked::after {
    opacity: 1;
}

.CheckboxContainer label {
    cursor: pointer;
    font-size: 15px;
    color: #c0c0c0;
}

.CheckboxContainer input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.input-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
}

.toggle-visibility {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #80bfff;
    font-size: 20px;
    transition: color 0.3s ease;
}


/* standart dropdown menu */
.TableDropDown {
    padding: 10px 15px;
    border-radius: 5px;
    background-color: inherit;
    border: 2px solid #666666;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    text-align: left;
    color: #3498db;
    appearance: none; /* Entfernt den Standard-Pfeil des Browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.TableDropDown:focus {
    outline: none;
    border-color: #007bff;
    background-color: #868686dc;
}

.TableDropDown option {
    background-color: #503e3e;
    color: #80bdf7;
    font-weight: bold;
}
.TableDropDown option:hover {
    background-color: #1eff00;
    color: #f53100;
    font-weight: bold;
}

.TableDropDown::-ms-expand {
    display: none; /* Entfernt den Standard-Pfeil in IE */
}


/* custom dropdown menu */ 
.custom-select {
    position: relative;
    display: inline-block;
    border-radius: 5px;
    border: 2px solid #666;
    cursor: pointer;
    background-color: inherit;
}

.selected {
    background-color: inherit;
    color: #2ecc71;
    height: 100%;
    width: 100%;
    padding: 10px 15px;
    font-weight: bold;
}

.customDropDownOptions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 4;
    background: #333;
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-radius:5px;
    width:fit-content;
    width: -moz-fit-content;
}

.customDropDownOptions li {
    cursor: pointer;
    padding: 10px 15px;
    margin: 3px 5px;
    font-weight: bold;
}

.customDropDownOptions li:hover {
    background-color: #1a1a1a;
    color: #f0a500;
    border-radius:5px;
}


/* Hover-Effekt nur für Geräte mit Maus */
@media (hover: hover) and (pointer: fine) {
    button:hover {
        transform: scale(1.05);
        box-shadow: 0 0 10px #707070;/* #00bfff;*/
    }
}

/* Alle Geräte mit bildschirmbreite unter 500 */
@media (max-width: 500px) {
    nav ul {
        flex-direction: column;
        height: auto;
    }
    nav ul li {
        width: 100%;
    }
    nav ul li a, nav ul li .dropbtn {
        line-height: 44px;
    }
    nav ul li[style*="float: right"] {
        margin-left: 0;
    }

    .InputContainer {
        padding: 15px;
    }

    .CheckboxContainer label {
        font-size: 12px !important;
        color: #c0c0c0; /* oder eine andere Farbe, die du willst */
    }
    .CheckboxContainer input[type="checkbox"] {
        width: 12px !important;
        height: 12px !important;
    }

    button {
        font-size: 15px;
        color: black;
        width: 70%;
        max-width: 300px;
        padding: 15px 0;
    }

    input {
        width: 90%;
        margin: 0 auto;    /* mittig */
        display: block;    /* notwendig für margin:auto bei Input */
    }

    h1 {
        font-size: 24px;
        text-align: center;
    }
}
