html,
body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;

    font-family: var(--main-font);
}

body {
    background: url('/static/img/background_image.jpg');
    background-size: 100% 100%;
    overflow: hidden;
}

#top {
    min-height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#top #top-left {
    width: var(--left-bar-width);
    /*background: var(--background-primary);*/
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    margin-left: 30px;
}

#top #top-left .light{
    color: #FD73EB;
    font-size: 30px;
    font-family: Audiowide;
}

#top #top-left .dark{
    color: #FF05DE;
    font-size: 30px;
    font-family: Audiowide;
}

#top #top-left .space{
    width: 0.5px;
}

#top #top-right {
    width: 250px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    padding: 10px;
}

#top #top-right span {
    color: #C077FC;
    font-size: 20px;
    text-align: center;
    margin-right: -30px;
}

#bottom {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: calc(100% - 150px);
}

#mail {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#left-bar {
    width: var(--left-bar-width);
    display: flex;
    flex-direction: column;
    /*background-color: var(--background-secondary);*/
    font-size: 25px;
    margin-top: 40px;
}

#centre-bar {
    width: var(--centre-bar-width);
    background-color: var(--inactive-mail-background);
    /*background-color: var(--background-primary);*/
    height: 100%;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    margin-top: 20px;
    overflow-y: scroll;
}


#centre-bar-bottom {
    flex-grow: 1;
    border-left: 2px solid var(--mail-border-color);
    border-bottom: 2px solid var(--mail-border-color);
    border-right: 2px solid var(--mail-border-color);
}

#right-bar {
    width: calc(100% - var(--centre-bar-width) - var(--left-bar-width));
    background-color: var(--inactive-mail-background);
    color: var(--mail-text-color);
    padding: 20px;
    box-sizing: border-box;
    margin-top: 20px;
    height: 100%;
    margin-right: 15px;
}

.listings {
    list-style: none;
    display: flex;
    flex-direction: column;

    padding: 0;
    margin: 0;
}

.folder-listings li a {
    display: block;
    width: 100%;
    height: 50px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: var(--accent-color);
    text-decoration: none;

    box-sizing: border-box;

    font-family: var(--heading-font);
    font-weight: 500;
}

.folder-listings li.active a {
    color: #ffffff;
}

.folder-listings li a span {
    text-transform: uppercase;
}

.mail-listings li a {
    display: block;
    width: 100%;
    height: 112px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
;
    text-decoration: none;

    box-sizing: border-box;

    padding-left: 16px;
    padding-right: 16px;

    border: none;
    font-size: 16px;

    transition: transform 0.2s ease, background 0.2s ease;
}

.mail-preview .sender{
    font-weight: bold;
    color: #FD73EB;
}

.mail-preview .subject{
    color: #bebebe;
}

.mail-listings li:not(:last-child) a {
    margin-bottom: 2px;
}

.mail-listings li a:hover {
    background-color: var(--active-mail-background);
    transform: scale(1.02);
    cursor: pointer;
    
}

.mail-listings li.active a {
    background-color: var(--active-mail-background);
    padding-left: 16px;
}

.mail-listings li a span:nth-child(1) {
    font-family: var(--subheading-font);
    text-transform: uppercase;
    font-weight: bold;
}

.mail-listings li a span:nth-child(2) {
    font-weight: bold;
}

.mail-listings li a span:nth-child(3) {
    font-weight: normal;
}

#mail-content-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
}

#mail-header-left {
    color: #FD73EB;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
}

#mail-header-left span {
    font-weight: bold;
}

#mail-header-left span:nth-child(1) {
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: bold;
}


#mail-header-left span {
    font-size: 16px;
    font-weight: normal;
}

#mail-header-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20%;
    color: var(--accent-color);
    margin-right: 10px;
}

#mail-header-right #buttons {
    display: flex;
    flex-direction: row;
    max-height: 30%;
    justify-content: right;
    margin-top: 10px;
    margin-right: 20px;
}

#mail-header-right #buttons svg {
    fill: var(--accent-color);
    padding-left: 10px;
}

#attachments {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
}

#attachments .attachment {
    width: 50%;
    box-sizing: border-box;
    border: 1px solid var(--background-primary);
    background-color: var(--background-primary);
    display: flex;
    flex-direction: row;
    max-height: 50px;
}

#attachments .attachment .attachment-left {
    border-right: 1px solid var(--background-primary);
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#attachments .attachment .attachment-left img {
    width: auto;
    height: 100%;
}

#attachments .attachment .attachment-right {
    border-right: 1px solid var(--background-primary);
    width: 75%;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: row;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mail-content-body {
    overflow-y: scroll;
    max-height: 75%;
    padding: 10px;
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
    background: #031020;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 15px;
}

/* Scrollbar Thumb */
::-webkit-scrollbar-thumb {
    background-color: rgba(239, 190, 193, 0.8); /* Darker blue */
    border-radius: 10px;
    border: 2px solid #031020;
}
