:root {
    --darker: #222222;
    --border: #666666;
    --grey: #e8e8e8;
    --bg: #eeeeee;
    --navyblue: #00008C;
    --blue: #0099ff;
    --blue2: #4070b0; 
    --yellow: #ffff00;
}

html { height: 100%; scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, Arimo;
    background-color: #333333;
    color: var(--blue);
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

section {
    padding: 10px 5%;
    margin: 30px;
}

.login, menu { padding: 20px; }
.login { text-align: center; }
.login input[type=text], input[type=password] {
    border-radius: 5px;
    padding: 12px;
    margin: 5px 0 22px 0;
    display: inline-block;
    border: none;
    background: #f5f5f5;
}

button, .n {
   font-family: DejaVu Sans;
   padding: 12px;
   margin: 10px;
   margin-left: 5px;
   margin-right: 5px;
   box-sizing: border-box;
   border: none;
   border-radius: 5px;
   text-decoration: none;
   text-align: center;
   font-size: 14px;
   cursor: pointer;
}

button:disabled {
   opacity: 0.6;
   background-color: var(--grey);
}

header {
    background-color: #ffffff;
    background-image: url('/mailcentro/webboxlogo.jpg'), url('/mailcentro/banner1.png');
    background-position: left top, right top;
    background-repeat: no-repeat, no-repeat;
    min-height: 60px;
    max-height: 60px;
    margin: 0px;
}

footer {
    background-color: #222222;
    text-align: center;
    padding: 30px;
    position: relative;
    bottom: 0px;
}

.logo {
    width: 55px;
    height:50px;
    margin:5px;
    background-image: url('/mailcentro/wblogo_premium.gif');
    background-position: right top;
    background-size: cover;
}

main, .flex-frame, .spacer, .sect { flex: 1; }

.link:hover, menu:hover { color: var(--yellow); }
.link,menu { 
    color: var(--blue);
    transition: color 2s;
}

.flex-container {
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
    color: var(--blue);
    justify-content: space-around;
}

.flex-item:hover { background-color: rgba(34, 34, 34, 0.5); }
.flex-item {
    border: 1px solid var(--border);
    border-radius: 5px;
    background-color: transparent;
    font-weight: bold;
    line-height: 1.5;
    margin: 20px;
    padding: 20px;
    text-decoration: none;
    text-align: center;
    flex-wrap:wrap;
    color: var(--yellow);
}

.flex-frame {
    color: var(--blue);
    background-color: rgba(34, 34, 34, 0.5);
    text-align: right;
    padding: 50px 15%;
    margin:10px;
    flex-wrap:wrap-reverse;
    display: flex;
}

.flex-form { display: flex; }
.text {
    color: var(--blue);
    font-weight: bold;
    line-height: 1.5;
    font-size: large;
}

.separator {
    background-color: var(--border);
    margin: 20px;
    width: 2px;
}

nav {
    padding-right: 5px;
    display: flex;
    border-radius: 7px;
    background-color: #ffffff;
}

form.logout {
    position: relative;
    right: 0px;
    background-color: transparent;
    padding: 0px;
    border: 0px;
}

.tabs {
    display: flex;
    background: #333333;
    min-width: 200px;
}

.n {
    color: #222222;
    height: 40px;
    min-width: 90px;
}

.tabs .n { background: var(--grey); }
.tabs .n:hover { text-decoration: underline; }
.tabs .n.active {
    background: #828282;
    color: white;
}

.panel {
    border-radius: 10px;
    flex: 1;
    border: none;
}

.strip {
    height: 140px;
    background-image: url('/mailcentro/backgrounds/background_left.jpg'), url('/mailcentro/backgrounds/background_right.jpg'), url('/mailcentro/backgrounds/background_filler.jpg');
    background-repeat: no-repeat, no-repeat, repeat;
    background-position-x: 0px, 284px, 568px;
    border: 3px solid #222222;
    text-align: right;
}

.spacer {
    max-height: 60px;
    background-color: transparent;
}

.section {
    flex: 1;
    display: flex;
    flex-direction: row;
    background-color: var(--bg);
}

.sect {
    color: #222222;
    padding: 20px;
}

#list.sect {
   padding-top: 10px;
   max-width: 600px
}

.sect time::before { content: attr(datetime); }
.delete { color: #ee5f5b !important; }

dialog {
    background-color: var(--bg);
    padding: 20px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    outline: none;
}

dialog[open], dialog[open]::backdrop {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

@media screen and (max-width: 510px) {
    header {
        background-position: left top, left top;
        overflow-y: hidden;
        overflow-x: visible;
    }
}

@media screen and (max-width: 700px) {
    nav {
        cursor: pointer;
        display: block;
        position: absolute;
    }

    nav .n { display: none; }
    nav.is-open .n {
        margin-left: 10px;
        display:block;
    }
}

@media screen and (max-width: 850px) {
    .login, menu { max-width: 350px; }
}
