:root {
    --md-sys-color-primary: #ecd24e;
    --md-outlined-button-outline-color: #ecd24e;
    --md-outlined-button-hover-state-layer-color: #ecd24e;
    --md-assist-chip-outline-color: #ecd24e;
    --md-assist-chip-label-text-color: #ecd24e;
    --md-assist-chip-hover-state-layer-color: #ecd24e;
    --md-assist-chip-hover-label-text-color: #ecd24e;
    --md-assist-chip-focus-state-layer-color: #ecd24e;
    --md-assist-chip-focus-label-text-color: #ecd24e;
    --md-assist-chip-pressed-state-layer-color: #ecd24e;
    --md-assist-chip-pressed-label-text-color: #ecd24e;
}

html, body {
    font-family: "Calibri";
    margin: 0;
}

#main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    color: #4e2683;
    background: rgba(78, 38, 131, 0.1);
}

.user-setting-button {
    background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

#filters {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0px 15px 0px;
}

#filters div {
    border-radius: 10px;
    box-shadow: 0 3px 10px 0 rgba(78, 38, 131, 0.15), 0 2px 4px 0 rgba(78, 38, 131, 0.15);
}

#filters div button {
    background-color: #ecd24e;
    border: none;
    border-right: solid 1px white;
	color: white;
    padding: 10px 18px;
    font-weight: bold;
    transition: 0.3s;
}

#filters div button:hover {
	color: white;
    background-color: #4e2683;
}

#filters div button:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

#filters div button:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-right: none;
}

#filters div button:disabled {
    color: rgba(0, 0, 0, 0.2);
    background-color: rgba(78, 38, 131, 0.1);
}

#filters div button:active {
    color: rgba(0, 0, 0, 0.4);
    background-color: rgba(78, 38, 131, 0.2);
}

#filters div button:disabled:active {
    color: rgba(0, 0, 0, 0.2);
    background-color: rgba(78, 38, 131, 0.1);
}

a {
    text-decoration: none;
    color: #4e2683;
    font-weight: bold;
}

nav h1 {
    margin: 0;
}

#notification {
    color: #ecd24e;
    display: flex;
    justify-content: center;
}

#notification div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 250px;
    height: auto;
    margin-top: 15px;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    border: solid 1px #ecd24e;
}

#notification p {
    margin: 0;
    overflow-wrap: break-word;
}

#notification a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

header {
    text-align: center;
    color: #4e2683;
}

header h1 {
    margin-top: 50px;
}

#feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#feed article {
    display: flex;
    flex-direction: column;
    width: 400px;
    border: solid 1px rgba(236, 210, 78, 0.7);
    margin-bottom: 15px;
    padding: 15px 10px 15px 10px;
    box-shadow: 0 2px 4px 0 rgba(78, 38, 131, 0.3), 0 3px 10px 0 rgba(78, 38, 131, 0.3);
    border-radius: 10px;
}

#feed article footer {
    display: flex;
    justify-content: space-between;
}

#feed article footer p {
    margin: 0;
}

#feed article footer {
    color: rgba(78, 38, 131, 0.5);
    font-size: 0.6em;
    font-weight: bold;
}

#feed article:nth-child(1) {
    margin-top: 15px;
}

.card div div {
    display: flex;
    justify-content: space-between;
}

.card h2 {
    color: rgba(236, 210, 78, 0.7);
    margin: 0;
}

.card p {
    max-height: 100px;
    overflow: hidden;
}

.card a {
    display: flex;
    justify-content: left;
    align-items: center;
    text-decoration: none;
}

.star {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
}

.star a {
    margin-left: 5px;
}

#auth-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#auth-form div {
    display: flex;
    justify-content: center;
}

#auth-form p {
    margin-top: 0;
}

md-chip-set {
    margin-bottom: 15px;
    max-width: 300px;
}

.searchbar {
    position: relative;
}

.searchbar ul {
    position: absolute;
    top: 40px;
    left: 50px;
    z-index: 10;
    padding: 0;
    background-color: rgba(78, 38, 131, 0.3);
    border: solid 1px rgba(118, 115, 123, 0.8);
    border-radius: 5px;
    background-color: white;
    list-style-type: none;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3), 0 3px 10px 0 rgba(0, 0, 0, 0.3);
    max-height: 200px;
    overflow-y: scroll;
}

.searchbar li {
    padding: 4px 8px 4px 8px;
    color: rgba(78, 38, 131, 0.8);
    transition: 0.3s;
}

.searchbar li:hover{
    background-color: rgba(78, 38, 131, 0.5);
    color: rgb(255, 255, 255);
}

md-outlined-button {
    margin-right: 5px;
    border-color: #ecd24e;
}

md-outlined-text-field {
    width: 300px;
    margin-bottom: 15px;
}

.filterTags {
    position: relative;
}

.filterTags md-outlined-text-field {
    margin-top: 5px;
    margin-bottom: 5px;
}

.filterTags ul {
    position: absolute;
    top: 40px;
    left: 50px;
    z-index: 10;
    padding: 0;
    background-color: rgba(78, 38, 131, 0.3);
    border: solid 1px rgba(118, 115, 123, 0.8);
    border-radius: 5px;
    background-color: white;
    list-style-type: none;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3), 0 3px 10px 0 rgba(0, 0, 0, 0.3);
    max-height: 200px;
    overflow-y: scroll;
}

.filterTags li {
    padding: 4px 8px 4px 8px;
    color: rgba(78, 38, 131, 0.8);
    transition: 0.3s;
}

.filterTags li:hover{
    background-color: rgba(78, 38, 131, 0.5);
    color: rgb(255, 255, 255);
}

#button-send-filters {
    height: 56px;
    background-color: #ecd24e;
    border: none;
    border-right: solid 1px white;
	color: white;
    padding: 10px 18px;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 5px;
}

#button-send-filters:hover {
	color: white;
    background-color: #4e2683;
}

#button-send-filters:active {
    color: rgba(0, 0, 0, 0.4);
    background-color: rgba(78, 38, 131, 0.2);
}

#new-post-button {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 15px;
}

#new-post-button div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1em;
}

.pagination {
    display: inline-block;
    margin-bottom: 15px;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination a.active {
    background-color: #4e2683;
    color: white;
    border-radius: 5px;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
    border-radius: 5px;
}

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

.view header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.view header h6 {
    color: rgba(0, 0, 0, 0.2)
}

.view header h4 {
    margin-bottom: 0;
    color: rgba(78, 38, 131, 0.5);
    font-size: 0.9em;
    font-weight: bold;
}

.view p {
    max-width: 800px;
    margin-left: 25px;
    margin-right: 25px;
}

.view-menu {
    position: absolute;
    right: 0px;
    margin-right: 15px;
    margin-top: 15px;
}

.error {
    display: flex;
    justify-content: center;
}

.error div h2 {
    font-size: 60px;
    margin-bottom: 30px;
}

.error div h4 {
    font-size: 40px;
    font-weight: normal;
    margin: 0;
}

.error div p {
    font-size: 25px;
    margin-top: 0;
}

#settings-body {
    display: flex;
    flex-direction: column;
}

#settings-body div {
    display: flex;
    flex-direction: row;
}

#settings-body button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
	color: white;
    padding: 10px 18px;
    margin-right: 15px;
    font-weight: bold;
    border-radius: 15px;
    transition: 0.3s;
}

#settings-body div button:last-child {
    margin-right: 0px;
}

#settings-body button#reset-password {
    background-color: #ecd24e;
}

#settings-body button#delete-account {
    background-color: #cc3333;
    padding: 10px 24px;
}

#settings-body button#delete-account:hover,
#settings-body button#reset-password:hover {
	color: white;
    background-color: #4e2683;
}

#settings-body button#delete-account:active,
#settings-body button#reset-password:active {
    background-color: rgba(78, 38, 131, 0.2);
}

table {
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

tr td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tr td:first-child {
    width: auto;
}

tr td:nth-child(2) {
    width: auto;
    max-width: 200px;
}

tr td:nth-child(3) {
    width: auto;
    max-width: 300px;
}

tr td:nth-child(4) {
    width: auto;
    max-width: 150px;
}

tr td:nth-child(5) {
    width: auto;
}

tr td button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 5px;
    padding: 3px 3px;
    background-color: #cc3333;
}

tr td button:hover {
	color: white;
    background-color: #4e2683;
}

tr td button:active {
    background-color: rgba(78, 38, 131, 0.2);
}
