* {
    box-sizing: border-box;
}

/* Outline grid */

body {
    font-family: Open Sans, sans-serif;
    margin: 0;
    color: #333;
    /* grid layout for the main content */
    display: grid;
    grid-template-areas: "header header"
        "nav main"
        "footer footer";
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    gap: 1rem;
    padding: 1rem;
}

header {
    grid-area: header;
}

nav {
    grid-area: nav;
}

main {
    grid-area: main;
    max-height: 100%;
    overflow: auto;
}

footer {
    grid-area: footer;

}

/* Header block */

header div {
    /* display images inline and vertically centred */
    display: flex;
    align-items: center;
    line-height: 1;
}

header,
header h1 {
    font-size: 2rem;
}

header a {
    text-decoration: none;
    height: 1em;
    width: 1em;
}

header a img {
    height: 100%;
    width: 100%;
    transition: transform 0.1s;
}

header a:hover img {
    transform: scale(1.1);
}

/* Footer block */

footer img {
    height: 1em;
    width: 1em;
}

footer div {
    /* display images inline and vertically centred */
    display: flex;
    align-items: center;
    line-height: 1;
}

footer div {
    /* align text to the right */
    justify-content: flex-end;
    /* get white-space right in flexbox */
    white-space: pre-wrap;
}


/* Hypotheses */

.hypotheses mdui-chip {
    display: table;
    margin-bottom: 0.2em;
}

mdui-button {
    margin-top: 0.2em;
}

/* Judgements */

.judgement-page {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
}

.judgement-page .evidence {
    height: 100%;
    overflow: auto;
}

th {
    position: sticky;
    background-color: #444;
    color: #ddd;
}

thead th {
    top: 0;
    z-index:1;
}

main tbody th {
    left: 0;
}

table {
    border-collapse: collapse;
    margin-top: 0;
}

th,
td {
    padding: 0.4em;
    border-right: 1px solid #ccc;
}

.evidence tr:nth-child(even) {
    background-color: #f9f9f9;
}

.evidence tr:nth-child(odd) {
    background-color: #fff;
}

.evidence tbody tr:nth-child(odd) th {
    background-color: #333;
}

/*
 * Results screen
 */

.VERY_INCONSISTENT {
   background-color: #f4cccc;
}
.CONSISTENT {
    background-color: #d9ead3;
}
.INCONSISTENT {
    background-color: #fce5cd;
}
.AMBIGUOUS {
    background-color: #efefef;
}

.results th, .results td {
    border: 1px solid #ccc;
}

/*
 * Documents/claims
 */

#document-claims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "document claims";
}

#document {
  grid-area: document;
}

#claims {
  grid-area: claims;
}

.status-box {
  text-align: center;
  border-radius: 5px;
  padding: 5em;
  margin: 1em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

blockquote {
    cursor: pointer;

}
blockquote:hover {
    background-color: #f9f9f9;

}

select #consistency{
  border: none;
}

.evidence_item_detail_link {
    cursor: pointer;

}

.evidence_item_detail_link:hover {
    filter: brightness(1.5);

}

.evidence_item_detail {
    position:relative;
    height:80vh;
    display:grid;
    grid-template-areas: 'header header' 'left right';
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
}

.evidence_item_detail h1 {
    grid-area:header;
}

.evidence_item_detail .left {
    grid-area:left;
    overflow:auto;
}

.evidence_item_detail .right {
    grid-area:right;
    overflow:auto;
}

.header-container{
  display: flex;
  align-items: center;
  justify-content: space-between;}

.admin-btn{
  border: none;
  width: 5rem;
  border-radius: 16px;
  color: white;
  background-color: purple;
  font-family: Open Sans, sans-serif;
  font-size: 16px;
  padding: 7px 8px 24px 8px;
  margin: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  text-align: center;
}

.logout-btn{
  border: none;
  border-radius: 16px;
  color: white;
  background-color: purple;
  font-family: Open Sans, sans-serif;
  font-size: 16px;
  padding: 4px 8px 4px 8px;
  margin: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.logout-btn:hover {
  border-color: purple;
}
