@font-face {
    font-family: Overpass;
    src: url(../font/Overpass/Overpass-Medium.ttf)
}

:root {
    --yellow: #fbba07;
    --gray: #2c2c2c;
    --white: #ffffff;
    --creme: #f6f4f0;
    --blackXcreme: #DBD9D5;
    --whiteXgray: #434343;
    --yellow_blend: #fbba0770;
}

a {
    text-decoration: none;
    color: var(--gray);
    font-family: Overpass;
}

h2 {
    font-size: 30px;
    font-family: Overpass;
}

i {
    color: var(--gray);
    width: 20px;
}

label {
    font-family: Overpass;
    font-size: smaller;
    margin-bottom: -15px;
    margin-top: 10px;
}

.labelandinput {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: start;
}

input {
    font-family: Overpass;
    font-size: 19px;
    border: 0;
    border-bottom: var(--gray) solid 1px;
    background-color: transparent;
    color: var(--gray);
    padding: 10px;
    margin: 5px 0;
}

    input:focus {
        outline: none;
    }

    input::-ms-clear, input::-ms-reveal {
        display: none;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus {
        -webkit-text-fill-color: var(--gray);
        -webkit-box-shadow: 0 0 0px 1000px transparent inset;
        transition: background-color 5000s ease-in-out 0s;
    }

.input_icon {
    position: absolute;
    left: -30px;
    top: 20px;
}

.pointer {
    cursor: pointer;
    width: fit-content;
    height: fit-content;
}

.relative {
    position: relative;
}

.button {
    border: 0;
    border-radius: 3px;
    padding: 5px 15px;
    background-color: var(--yellow);
    font-family: Overpass;
    text-decoration: none;
    color: var(--gray);
    text-align: center;
    width: fit-content;
    height: fit-content;
}

    .button:hover {
        background-color: var(--yellow_blend);
    }

    .button:active {
        background-color: var(--yellow);
    }

.message {
    color: var(--yellow);
    font-size: 15px;
}

body {
    font-size: 19px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--creme);
    color: var(--gray);
    padding-top: 130px;
}

/*header*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: var(--white);
    box-shadow: 0px 1px 20px -10px black;
    padding: 10px;
    display: flex;
    flex-direction: row;
    z-index: 1;
}

.reiner_sct_logo {
    width: 200px;
    height: auto;
    position: absolute;
    left: 30px;
    top: 15px;
}

.lock {
    position: fixed;
    right: 250px;
    top: 18px;
    z-index: 1;
}

.fa-lock {
    color: var(--gray);
}

.susy_question {
    position: absolute;
    right: 50px;
    top: 18px;
}

/*footer*/
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: end;
    background-image: linear-gradient(rgba(0,0,0,0), var(--creme));
    height: 100px;
    pointer-events: none;
}

.footer_links {
    position: absolute;
    right: 40px;
    bottom: 20px;
    width: 300px;
    display: flex;
    justify-content: space-between;
    pointer-events: initial;
}

.let_me_scroll {
    /*    border: 5px solid green;
*/ height: 500px;
}

/*login*/
.new_login {
    background-color: var(--white);
    padding: 60px 90px;
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login_button {
    margin-top: 20px;
}

.login_error {
    position: relative;
    top: 25px;
    align-self: center;
}

.to_reg {
    margin: 10px;
    font-size: 15px;
}

/*registration*/
#reg_lang {
    display: flex;
    flex-direction: row;
    justify-content: start;
    margin-top: 7px;
    align-items: center;
}

.reg_lang_button {
    margin-left: 7px;
    background-color: var(--blackXcreme);
    font-size: 17px;
}

.reg_selected_lang {
    background-color: var(--yellow);
    padding: 12px 17px;
}

/*pages*/
.container {
    height: fit-content;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: left;
}

.menu {
    width: fit-content;
    margin-left: 15%;
    margin-right: 10%;
}

.setting {
    width: 250px;
    border: 3px solid var(--blackXcreme);
    padding: 3px;
    margin-bottom: 1px;
}

.active {
    border-color: var(--yellow);
}

.susy_icon {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-left: 3px;
    margin-right: 9px;
    margin-bottom: 3px;
}

.menu_icon {
    margin: 0 6px;
}

.dropdown-content {
    display: none;
}

.save_message {
    color: var(--yellow);
    font-size: 15px;
    position: absolute;
    top: 50px;
    right: 0px;
    cursor: default;
}

.delete_account {
    position: fixed;
    bottom: 20px;
    right: 380px;
    z-index: 1;
}

/*user*/
.new_user {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#profile_picture {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin-right: 70px;
    margin-bottom: 20px;
}

#user_pp_label {
    font-size: 19px;
}

#user_image_div {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    outline: 3px dashed var(--yellow);
    outline-offset: -3px;
    background-color: var(--white);
    overflow: hidden;
}

#user_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: center;
}

#browse_images {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 23px;
    opacity: 0;
}

.image_icon {
    position: absolute;
    top: 16px;
    left: 16px;
}

.personal_info {
    display: flex;
    flex-direction: column;
    width: 350px;
}

.change_button {
    width: 330px;
    height: fit-content;
    min-height: 40px;
    background-color: var(--blackXcreme);
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .change_button:hover {
        background-color: var(--yellow_blend);
    }

    .change_button:active {
        background-color: var(--blackXcreme)
    }

.lang_caret {
    position: absolute;
    left: -25px;
    top: 15px;
}

.chosen_language {
    padding: 10px;
    padding-bottom: 8px;
}

.lang_content {
    margin-left: 10px;
}

.save_changes {
    position: absolute;
    bottom: -100px;
    right: 30px;
}

/*devices and basestations*/
.new_devices {
    display: flex;
    flex-direction: column;
}

.caret {
    position: absolute;
    top: 11px;
}

.caret_b {
    position: absolute;
    top: 17px;
}

.name_text {
    width: 300px;
    position: relative;
    margin: 5px 0;
}

.name_susy {
    width: 360px;
    height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.trash {
    position: absolute;
    top: 7px;
    left: 350px;
}

.pencil {
    position: absolute;
    top: 7px;
    left: 310px;
}

.pencil_bs {
    position: absolute;
    top: 16px;
    left: 360px;
}

.susy_profilepicture {
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--yellow);
    object-fit: cover;
    margin-right: 10px;
}

.basestation_content {
    margin-left: 25px;
    width: fit-content;
}

.device_content {
    margin-left: 0px;
    width: 100%;
}

td {
    font-family: Overpass;
    color: var(--gray);
    padding-left: 30px;
    vertical-align: top;
    text-align: left;
    word-wrap: anywhere;
}

.basestation_content td:first-child {
    min-width: 180px;
    width: 180px;
}

.device_content td:first-child {
    min-width: 180px;
    width: 180px;
}

#buy_license {
    position: relative;
    top: 50px;
}

/* confirm delete/change password/email */
.confirm_box {
    display: none;
    background-color: var(--white);
    padding-top: 20vh;
    position: absolute;
    top: 0;
    /*    max-width: 350px;
*/ text-align: center;
    width: 100%;
    height: 100%;
}

#confirm_buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    width: 250px;
}

.appendError {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


@media screen and (max-width: 860px) {
    .footer_links {
        right: 2vw;
        width: 58vw;
        max-width: 300px;
        min-width: 260px;
    }

    .delete_account {
        left: 2vw;
        min-width: max-content;
    }

    .new_login {
        margin-top: 50px;
    }

    input {
        width: 90%;
    }

    .container {
        flex-direction: column;
        margin-left: -50px;
    }

    .new_user {
        margin-top: 20px;
        margin-left: 15%;
        flex-direction: column;
    }

    #profile_picture {
        margin-bottom: 10px;
    }

    .save_changes {
        left: 15%;
    }

    .new_devices {
        margin-top: 20px;
        margin-left: 19%;
    }

    .dropdown-content {
        margin-left: -60px;
    }

    .lang_content {
        margin-left: 10px;
    }

    .name_text {
        width: 260px;
    }

    .name_susy {
        width: 285px;
    }

    .trash {
        left: 300px;
    }

    .pencil {
        left: 260px;
    }

    .pencil_bs{
        left: 290px;
    }


    .confirm_box {
        padding-top: 45vh;
    }

    .basestation_content td:first-child {
        min-width: 130px;
        width: 130px;
    }

    .device_content td:first-child {
        min-width: 150px;
        width: 150px;
    }

    #buy_license {
        position: relative;
        top: 10px;
    }
}

@media screen and (max-width:560px) {
    .reiner_sct_logo {
        display: none;
    }
}


/*for darkmode*/
@media (prefers-color-scheme: dark) {
    a {
        color: var(--white);
    }

    i {
        color: var(--white);
    }

    input {
        border-color: var(--white);
        color: var(--white);
    }

        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        textarea:-webkit-autofill,
        textarea:-webkit-autofill:hover,
        textarea:-webkit-autofill:focus {
            -webkit-text-fill-color: var(--white);
            -webkit-box-shadow: 0 0 0px 1000px transparent inset;
            transition: background-color 5000s ease-in-out 0s;
        }

    body {
        background-color: var(--gray);
        color: var(--white);
    }

    /*header*/
    header {
        background-color: var(--gray);
    }

    /*footer*/
    footer {
        background-image: linear-gradient(rgba(0,0,0,0), var(--gray));
    }

    /*login*/
    .new_login {
        background-color: var(--whiteXgray);
    }

    .reg_lang_button {
        background-color: var(--white);
    }

    .reg_selected_lang {
        background-color: var(--yellow);
    }

    /*pages*/

    .setting {
        border: 3px solid var(--whiteXgray);
    }

    .active {
        border-color: var(--yellow);
        border-width: 5px;
        margin-left: -2px;
    }

    /*user*/

    #user_image_div {
        background-color: var(--whiteXgray);
    }

    .change_button {
        background-color: var(--whiteXgray);
    }

        .change_button:active {
            background-color: var(--whiteXgray);
        }

    /*devices and basestations*/
    td {
        color: var(--white);
    }

    /* confirm delete */
    .confirm_box {
        background-color: var(--whiteXgray);
    }
}
