*:not(#content) {
    user-select: none;
}

:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
    :root { font-family: InterVariable, sans-serif; }
}

body {
    margin: 0;
    color: #222;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}

body.dark .loginscreen, body.dark>div#inboxscreen.inboxscreen, body.dark .inboxscreen {
    background-color: rgba(0, 0, 0, 0.7);
    color: whitesmoke;
}

.bg { 
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    transform: translate(-50%, -50%);
    width: 100vw;  /* Set the width to 100% of the viewport width */
    height: 100vh; /* Set the height to 100% of the viewport height */
    object-fit: cover; /* Ensure the image covers the container while maintaining aspect ratio */
    user-select: none;
    -webkit-user-drag: none;
    display: block; /* Prevents any inline space */
}

.loginscreen {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; /* Set a fixed width */
    max-width: 90%; /* Ensure it is responsive */
    height: 80%; /* Set a fixed height */
    max-height: 90%; /* Ensure it is responsive */
    backdrop-filter: blur(5px); /* Add a slight blur to the contents background */
}

.loginscreen.main {
    transform: translateY(-50%);
    left: 10%;
}

.loginscreen input:not(.input input), .input {
    padding: 16px;
    width: -webkit-fill-available;
    border: 0;
    outline: 0;
    margin-bottom: 10px;
    background-color: white;
}

body.dark .loginscreen input, body.dark .input {
    background-color: #333;
    color: whitesmoke
}

.loginscreen .input {
    font-style: normal;
}

.loginscreen .input input {
    border: 0;
    outline: 0;
    text-align: left;
}

.loginscreen .input input:focus {
    font-style: normal;
}

.loginscreen input:not(.input input):focus {
    font-style: normal;
    outline: 4px solid #333;
}

body.dark .loginscreen .input {
    background-color: #333;
}

body.dark .loginscreen .input input {
    color: whitesmoke;
}

.loginscreen button {
    padding: 16px;
    border: 0;
    background-color: #3a96dd;
    color: whitesmoke;
    width: calc(50% - 16px - 16px);
    cursor: pointer;

    transition: cubic-bezier();
    transition-duration: 500ms;
}

.loginscreen button:hover {
    background-color: rgb(59, 153, 248);
}

.loginscreen button[disabled] {
    background-color: rgb(59, 59, 59);
    cursor: not-allowed;
}

.license {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(29, 29, 29, 0.7);
    color: whitesmoke;
    padding: 12px;
    margin: 0;
}

#error-label {
    color: red;
}


.inboxscreen {
    background-color: rgb(243, 243, 243, 0.7);
    position: fixed;
    top:10px;
    right:10px;
    left:10px;
    bottom:10px;
    backdrop-filter: blur(5px); /* Add a slight blur to the contents background */   
}

body.dark #inboxscreen {
    background-color: rgba(0, 0, 0, 0.7);
}

.toolbar {
    list-style-type: none;  /* Remove bullets */
    padding: 0;  /* Remove padding */
    margin: 0;  /* Remove margin */
    display: flex;  /* Optional: If you want the items to be displayed in a row */
    background-color: rgba(87, 87, 87, 0.534);
}

.toolbar li {
  display: flex;  /* Make the li a flex container */
  justify-content: left;  /* Center items horizontally */
  align-items: center;  /* Center items vertically */
  padding: 16px;
  background-color: transparent;
  color: whitesmoke;
  cursor: pointer;
  height: 24px;
  font-weight: 400;

  transition: cubic-bezier();
  transition-duration: 500ms;
}

.toolbar li:not(.btn) {
    width: 200px;
}

.toolbar li:not(.btn):hover {
    background-color: rgba(43, 43, 43, 0.712);
    font-weight: bold;
}

.toolbar li:not(.btn).activate {
    box-shadow: inset 0px -4px 0px 0 rgb(59, 153, 248);
    font-weight: 700;
}

.material-icons {
  font-size: 24px;  /* Adjust the size of the icon */
}
.toolbar li:not(:last-child) span:last-child {
    margin-left: 15px;
}
/*
.toolbar li:not(:last-child) span:last-child {
    opacity: 0;
    width: 0;
    height: 0;
    display: none;

    transition: cubic-bezier();
    transition-duration: 1500ms;
}
.toolbar li span.show {
    opacity: 1;
    width: fit-content;
    height: fit-content;
    margin-left: 12px;
}*/

#logoutButton {
    color: black;
}

.right {
    float: right;
}

.list {
    background-color: aliceblue;
    position: fixed;
    bottom: 0;
    top: 56px;
    width: 400px;
}

body.dark .list {
    background-color: rgba(0,0,0,0.6);
}

.list ul {
    margin:0;
    list-style-type: none;
    padding: 0;
    max-height: calc(100% - 40px);
    overflow-y: scroll;
}
.list ul li {
    padding: 20px;
    cursor: pointer;

    transition: cubic-bezier();
    transition-duration: 500ms;
}
.list ul li:hover {
    background-color: gray;
}
.email-show {
    position: fixed;
    top: 56px;
    left: 400px;
    right: 24px;
    display: none;
    height: 100%;
}

.email-show img {
    width: 500px;
}

.pa {
    background-color: rgb(170, 170, 170);
    padding: 12px;
    width: 100%;
    margin:0
}

body.dark .pa, body.dark .back-btn {
    background-color: rgb(12,12,12);
    color: whitesmoke;
}

#content {
    margin:0;
    padding: 16px;
    max-height: -webkit-fill-available;
    overflow-y: scroll;
    overflow-x: auto;
    position: absolute;
    left: 0;
    right: -23px;
    height: calc(100%)
}

/*#correosContainer div {
    height: 100%;
}*/

.search {
    width: 100%;
    background-color: rgb(204, 204, 204);
}

.search input {
    border: 0px;
    outline: 0px;
    padding: 12px;
    width: calc(100% - 24px);
    background-color: transparent;
}

body.dark .search {
    background-color: #111;
}

body.dark .search input {
    color: whitesmoke;
}

input:focus {
    outline: 4px solid #111;
    outline-offset: -4px;
}

.line {
    padding: 6px;
    background-color: rgb(175, 175, 175);
}

.line input {
    border:0;
    padding: 10px;
}

body.dark .line {
    background-color: rgb(12,12,12);
    color: whitesmoke;
}

body.dark .line input {
    background-color: #222;
    color: whitesmoke;
}

#correo-in {
    border: 0;
    outline: 0;
    resize: none;
    position: absolute;
    top: calc(48px + 48px + 52px);
    bottom: 0;
    left: 0;
    right: 0;
}

body.dark #correo-in {
    background-color: #222;
    color: whitesmoke;
}

button:disabled {
    cursor: not-allowed;
}

* {
    font-family: 'Inter', sans-serif;
}

.showeable {
    display: none;
    opacity: 0;
}

.back-btn {
    position: fixed;
    top:56px;
    right: 0;
    padding: 6px;
    border: 0;
    cursor: pointer;
    background-color: rgb(170, 170, 170);
}

.per-button {
    position: fixed;
    bottom: 5px;
    right: 5px;
    border: 0;
    background-color: #3a96dd;
    color: whitesmoke;
    padding: 6px;
    cursor: pointer;
    transition: cubic-bezier();
    transition-duration: 500ms;
}
.per-button:hover {
    background-color: rgb(59, 153, 248);
}

.close-btn {
    position: sticky;
    top: 0;
    right: 0;
    border: 0;
    cursor: pointer;
    padding: 10px;
    width: 37px;
    float: right;

    background-color: transparent;

    transition: cubic-bezier();
    transition-duration: 500ms;
}
.close-btn:hover {
    background-color: #333;
    color: whitesmoke;
}

body.dark .close-btn {
    color: whitesmoke;
}

.bg-select {
    border: 0;
    margin: 5px;
    background-color: #999;
    color: #333;
    padding: 15px;
    cursor: pointer;
}
.bg-select img {
    margin-top: 5px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

button.send-toolbar-btn {
    background-color: #3a96dd;
    border: 0;
    cursor: pointer;
    height: 40px;
    width: 40px;
}

@media only screen and (max-width: 850px) {
    html {
        background-image: url("../images/bg-mobile1.png");
        background-repeat: no-repeat;
        background-size: cover;
        overflow: scroll;
    }
    body {
        height: 100%;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.397);
     
        position: fixed;

        overflow: scroll;
    }

    .loginscreen {
        background: none;
        transform: none;
        position: fixed;
        top:0;
        left: 0;
        right: 0;
        bottom: 0;
        width: fit-content;
        height: 100vh;
        width: 100vh;
    }
    .loginscreen input:not(.input input), .input {
        width: 400px!important;
        display: block;
    }

    h1 {
        font-size: 20px;
    }

    .loginscreen .bel {
        position: fixed!important;
        bottom: 52px!important;
    }

    .inboxscreen {
        position: fixed;
        top:0;
        right:0;
        left:0;
        bottom:0;
    }

    .hideable {
        display: none;
        opacity: 0;
    }

    .showeable {
        opacity: 1;
        display: block;
    }

    .email-show-list, .email-show-email {
        transition: cubic-bezier();
        transition-duration: 500ms;
    }

    .email-show-list.visible {
        width: -webkit-fill-available;
        opacity: 1;
    }

    .email-show-list.hidden {
        width: 0px;
        opacity: 0;
    }

    .email-show-email.visible {
        position: unset;
        width: -webkit-fill-available;
        opacity: 1;
    }

    .email-show-email.hidden {
        width: 0px;
        opacity: 0;
    }

    #logoutButton {
        width: auto;
    }

    .per-button {
        display: none;
    }

    .toolbar li {
        width: unset;
        width: 22px!important;
        user-select: none;
        text-align: center;
    }

    .toolbar li span {
        margin: 0;
    }

    .hideable {
        display: none;
        content: none;
    }
}

.article {
    position: absolute;
    top: 100%;
}
.subarticle {
    padding: 100px 200px 100px 200px;
}

footer {
    background-color: #222;
    color: whitesmoke;
    padding: 100px 200px 100px 200px;
}