/* GENERAL */

body {
    background-color: #232323;
    color: #e3e3e3;
    margin: 0;
    font-family: sans-serif;
}

a {
    color: #e3e3e3;
    text-decoration: none;
}

a:hover, a:active {
    color: #a526c4;
}

input[type=text],  input[type=password] {
    border: none;
    background-color: #434343;
    margin-bottom: 10px;
    padding: 10px;
    color: #e3e3e3;
    border-radius: 5px;
}

input[type=submit] {
    border: none;
    background-color: #636363;
    padding: 10px;
    color: #e3e3e3;
    border-radius: 5px;
}

input[type=submit]:hover {
    border: none;
    background-color: #e3e3e3;
    padding: 10px;
    color: #a526c4;
}

.checkbox {
    margin: 0px;
    margin-bottom: 5px;
}

.checkbox label{
    color: #a3a3a3;
}

code {
    background-color:#434343;
    padding: 3px;
    border-radius: 3px;
}

.helptip {
    margin-top: 3px;
    font-style: italic;
    color: #a3a3a3;
    font-size: .9em;
}

.warning {
    color: #f00;
}

hr {
    height: 3px;
    border:none;
    background-color: #636363;
    margin-top: 20px;
}

/* HEADER & MENU */

#header {
    background-color: #434343;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 45px;
    box-shadow: 0px 5px 5px rgba(0,0,0, 0.15);
}

#header p {
    margin: 0;
}

#refresh-button {
    position: absolute;
    top: 15px;
    left: 20px;
    border: none;
    padding: 5px;
    background-color: #e3e3e3;
    color: #a526c4;
    font-weight: 600;
    border-radius: 3px;
}

#refresh-button:hover {
    background-color: #fff;
}

#menu {
    display: block;
    position: absolute;
    top: 0px;
    right: 10px;
}

#menu ul {
    list-style: none;
    margin-top: 20px;
    margin-bottom: 20px;
}

#menu ul li {
  display: inline-block;
  position: relative;
  margin-right: 10px;
}

/* CONTENT */

#content {
  height: 100%;
  display: flex;
  flex-direction: row;
  overflow-x: hidden;
  width: 100%;
}

/* LOGIN */

#welcome {
    text-align: center;
}

#login {
    max-width: 1280px;
    margin-left:auto;
    margin-right:auto;
    
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}


/* CONTACT LIST */

#contacts {
    background-color: #333;
    padding: 10px;
    width: 20%;
    min-width: 200px;
    overflow: auto;
    height: 100%;
}

#contacts h2 {
    margin-top: 0;
}

#contacts ul {
    list-style: none;
    margin-top: 20px;
    margin-bottom: 20px;
}

#contacts ul li {
    margin-top: 20px;
}

.current-contact a {
    font-weight: 600;
    color: #a526c4;
}

/* TEXT LIST */

#texts {
    padding: 10px;
    padding-top: 30px;
    width: 80%;
    overflow: auto;
    height: 100%;
}

#texts h2 {
    margin-top: 0;
}

.single-text {
    background-color: #434343;
    padding: 20px;
    border-radius: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    box-shadow: 2px 5px 5px rgba(0,0,0, 0.3);
}

.from {
    margin-bottom: 3px;
}

.date {
    font-style: italic;
    font-size: .8em;
    margin-top: 0;
}

.delete-button {
    float: right;
    border: none;
    padding: 5px;
    background-color: #636363;
    color: #e3e3e3;
    border-radius: 3px;
}

.delete-button:hover {
    background-color: #a3a3a3;
}

.the-text a {
    color: #a526c4;
}

.the-text a:hover {
    color: #fff;
}

/* ACCOUNT */

#account {
    max-width: 1280px;
    margin-left:auto;
    margin-right:auto;
}

#user-url p {
    margin: 10px;
}

#user-url code {
    padding: 7px;
}

#account form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    border-top: solid 3px #636363;
    padding-top: 20px;
}

/* ADMIN */

#admin {
    max-width: 1280px;
    min-width: 400px;
    margin-left:auto;
    margin-right:auto;
}

#admin form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    border-top: solid 3px #636363;
    padding-top: 20px;
}

form#user-list {
    flex-direction: row;
}

form#user-list input {
    height: 100%;
    margin-right: 5px;
}