:root {
    --background-color: #151515;
    --black: #1e1e1e;
    --dark: #4b4b4b;
    --light: #d9d9d9;
    --accent: hsl(174, 100%, 39%);
    --zoom: 1.15;
    --deep: #2f3034;
}

#bgimage {
    /* background-image: url("home.png"); */
    background-size: calc(100% / var(--zoom)) auto;
    width: 1vw;
    height: 100vh;
    z-index: 1;
    position: fixed;
    top: 0px;
    left: 0px;
    border: none;
    padding: 0;
    opacity: 1;
}

html {
    transform: scale(var(--zoom));
    /* Critical: Forces the scaling anchor to the top-left */
    transform-origin: top left;
}

html,
body {
    font-family: "Lato";
    margin: 0px;
    padding: 0px;
    background-color: var(--background-color)
}

#entry {
    z-index: 100;
    position: fixed;
    top: 0px;
    left: 0px;
    padding: 12px 24px;
    color: var(--light);
    display: none;
    background: var(--background-color);
    width: calc(100vw / var(--zoom));
    box-sizing: border-box;
}

.navigation {
    display: flex;
    width: calc(100% + 9px);
    align-items: center;
    margin-left: -9px;
    font-size: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.navigation>div {
    display: flex;
    align-items: center;
}

.navigation>div>div {
      display: flex;
    align-items: center;
    width: 70px;
    font-size: 14px;
    justify-content: center;
    border: 1px solid grey;
    margin-left: 10px;
    padding: 3px;
}

.navigation>div>div>.material-symbols-outlined {
    font-size: 14px;
}

/*Main + 2 buttons => m2*/
.input-row-m2 {
    display: flex;
    width: 100%;
    margin-top: 14px;
    justify-content: space-between;
}

.input-row-m2 button {
    background-color: var(--black);
    border: none;
    width: 38px;
    border-radius: 4px;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 0px;
    height: 28px;
    align-items: center;
}

.input-row-m2>.action {
    width: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buttonField button {
    width: 100px;
    font-family: 'Lato';
    border: none;
    background-color: var(--accent);
    height: 32px;
    border-radius: 10px;
}

.input-row-m2 input {
    font-family: "Lato";
    width: calc(100% - 58px);
    outline: none;
    border-radius: 0px;
    border: none;
    border-bottom: 1px solid var(--dark);
    background-color: transparent;
    padding: 0px;
    padding-left: 6px;
    font-size: 18px;
    color: var(--light);
    padding-bottom: 4px;
}

.input-row-m2 input::placeholder {
    font-family: "Lato";
    font-size: 18px;
}

#currency {
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    -moz-appearance: none;
    border-radius: 0;
    font-family: "Lato";
    color: var(--light);
    font-size: 12px;
    font-weight: 600;

}

#clearAmountFields {
    --width: 75px;
    width: var(--width);
    height: 22px;
    font-size: 12px;
    font-family: 'Lato';
    background-color: var(--dark);
    color: white;
    margin-top: 10px;
    border: 0;
    margin-left: calc(100% - var(--width));
}

#paydate {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    color: white;
    font-family: 'Lato';
    border-bottom: 1px solid grey;
    padding: 5px;
    text-align: right;
    font-size: 14px;
}

.input-row-selector {
    display: flex;
    margin-top: 13px;
    width: calc(100%);
    margin-left: 0px;
    justify-content: space-between;
    align-items: center;
}

.input-row-selector>.title {
    font-size: 14px;
    width: 70px;
    color: var(--light);
    font-family: "Lato";
}

.btn-group {

    position: relative;
    overflow: hidden;
    height: 28px;
    width: calc(100% - 70px);
    border: none;
    display: flex;
    justify-content: space-evenly;
    background-color: var(--black);
    border-radius: 4px;

}

.btn-type {
    width: 100% !important;
}

.btn-type>button {
    width: calc((100%) / 4);
}

.btn-group>button {
    background-color: transparent;
    color: var(--light);
    border: none;
    font-family: "Lato";
    font-size: 12px;
    position: relative;
    z-index: 1;
    border-radius: 4px;
    font-weight: 400;
}

.btn-group>button.active {
    color: var(--black);
    font-weight: 600;
}

.btn-highlight {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--accent);
    border-radius: 4px;
    z-index: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, width;
}

.btn-payer button {
    width: calc((100%) / 3);
}

.btn-split button {
    width: calc((100%) / 3);
}

.split-details {
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
    align-items: flex-start;
    align-content: flex-start;
}

.split-details>.split-row {
    display: grid;
    grid-template-columns: 40px 1fr 35px 75px;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 100%;
    align-items: center;
    margin-bottom: 3px;
}

.split-row>.material-symbols-outlined {
    grid-area: 1 / 1 / 2 / 2;
    color: var(--accent);
    font-size: 22px;
}

.split-row>.name {
    grid-area: 1 / 2 / 2 / 3;
    font-size: 14px;
}

.split-row>.currency {
    grid-area: 1 / 3 / 2 / 4;
    font-size: 12px;
}

.split-row>.amount {
    --padding-right: 5px;
    grid-area: 1 / 4 / 2 / 5;
    font-family: "Lato";
    background-color: transparent;
    border: none;
    outline: none;
    text-align: right;
    font-size: 18px;
    border-bottom: 1px solid var(--dark);
    width: calc(100% - var(--padding-right));
    color: var(--light);
    padding-right: var(--padding-right);
    border-radius: 0px;
    padding-bottom: 0px;
}

input:focus {
    animation: blink_input_opacity_to_prevent_scrolling_when_focus 0.01s;
}

@keyframes blink_input_opacity_to_prevent_scrolling_when_focus {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

/* Remove the inner spin buttons (up/down arrows) */
input[type="date"]::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
}

/* Remove the clear ("x") button inside WebKit browsers */
input[type="date"]::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

#auth {
    display: flex;
    width: calc(100vw / var(--zoom));
    height: calc(100vh / var(--zoom));
    background-color: white;
    z-index: 100;
    position: absolute;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 10000;
    left: 0;
    top: 0;
    width: calc(100vw / var(--zoom));
    /* Full width */
    height: calc(100vh / var(--zoom));
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}