:root {
    --main-color: darkred;
    --highlight-color: red;
    --background-color: black;
    transition: all 500ms;
}

input::placeholder {
    color: rgb(104, 1, 1);
}

.banner{
    height:5%;
}

.banner_image {
    height: 120px;
    width: 120px;
}

#mainarea{
    display: flex;
    height: 95%;
    width: 100%;
    gap: 10px;
    flex-direction: column;
}
#mainarea > #mgmtarea,#currentarea,#historyarea {
    flex: 3;
    width: 100%;
    height: 100%;
    border: 1px solid darkred;
    border-radius: 20px;
}
#mgmtarea{
    flex: 1 !important;
    text-align: center;
    display: flex;
    flex-direction: row;
    width: 100%;

}
#mgmtarea > div {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 50px;
}
#mgmtarea > * > img {
    height: 100px;
    width: 100px;
}

#currentarea {
    flex: 1 !important;
    display:flex;
    flex-direction:row;
    width:100%;
    height:100%;
}
#currentarea > div {
    flex: 1;
}

table,th,td,tr {
    border-collapse: collapse;
    border: 2px solid darkred;
}
th {
    background-color: darkred;
    color: whitesmoke
}

#ink, #paper {
    display: flex;
    gap: 50px;
    flex-direction: row;
}

#ink > img, #paper > img {
    width:100px;
    height:100px;
}

#historyarea {
    overflow-y: scroll;
    display:flex;
    flex-direction: column;
}
.historycard{
    display: flex;
    gap: 20px;
    height:160px;
    margin-inline: 20px;
    margin-block: 5px;
    border:1px solid darkred;
    border-radius: 20px;
}
.historycard > img {
    height: 150px;
    width: 150px;
    margin: 3px;
}

.historycard.ink {
    background-color:darkslateblue;
}
.historycard.paper {
    background-color: darkolivegreen;
}



.login {
    right: 0;
    top: 0;
    height: 50px;
    width: 50px;
    position: absolute;
}
.login-modal{
    right: 0;
    top: 0;
    position: absolute;
    background-color: black;
    width: 50%;
}
.login-modal-items{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.login-modal-items > input {
    height: 60px;
    width: 80%;
}
.login-modal-items > label {
    text-align: left;
}

.login-modal-buttons {
    display: flex;
    width: 100%;
    height: 50px;
    flex-direction: row;
    justify-content: center;
}
.login-modal-buttons > button {
    width: 50%;
}
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}
.popup {
    position: absolute;
    top: 0px;
    left: 0px;
    font-size: 20px;
    color: green;
    opacity: 1;
    transition: all 2000ms cubic-bezier(0.335, 0.010, 0.030, 1.360);

}
.popup-anim{
    opacity : 0;
    transform: translateX(-75px);
}



/*------------------------------------*/
/* Styles assigned to common elements */
/*------------------------------------*/
.bordered {
    border: 2px solid var(--main-color);
    border-radius: 30px;
}

.logged-in {
    --main-color : green !important;
    --highlight-color: rgb(7, 206, 0)!important; 
}

.disabled {
    --main-color : rgb(80, 80, 80) !important;
    --highlight-color: rgb(173, 170, 170) !important; 
}

.inverted-bordered {
    border: 2px solid var(--main-color);
    background-color: var(--main-color);
    color: var(--background-color);
    border-radius: 30px;
}

.highlightable:hover, .highlightable:focus {
    color: var(--highlight-color);
    border-color: var(--highlight-color);
}

.inverted-bordered.highlightable:hover, .inverted-bordered.highlightable:focus {
    color: var(--background-color);
    background-color: var(--highlight-color);
}
