:root {
    --main-color: darkred;
    --highlight-color: red;
    --background-color: black;
    transition: all 500ms;
}

input::placeholder {
    color: rgb(104, 1, 1);
}

.banner{
    height:15%;
}

.banner_image {
    height: 120px;
    width: 120px;
}

.mainarea{
    display: flex;
    height: 80%;
    width: 100%;
    gap: 10px;
}

.mainarea > div {
    flex: 3;
    width: 100%;
    height: 100%;

}

.mainarea > div:first-child {
    flex: 1;

}

.mainarea > div:nth-child(2) {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.buttonarea > * {
    width: 100%;
}

.button{
    width: 100%;
    text-decoration: none;
    height: 10vh;
}

.cardarea{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cardlist > div::-webkit-scrollbar {
    display: none;
    width: 0; 
}

.cardlist{
    scrollbar-width: none;
    display:flex;
    height: 100%;
    overflow: auto;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.cardlist > div {
    width: 100%;
    user-select: none;
    color: black;
}

.cardlist > div:nth-child(even){
    background-color:grey;
}

.cardlist > div:nth-child(odd){
    background-color:darkgrey;
}

.cardlist > div.custom{
    background-color: darkred;
}

input{
    background-color: black;
    margin-left: 20px;
    color: red;
    height: 100%;
    width: calc(100% - 40px);
    border: none;
    filter: none;
    margin-bottom: 20px;
}

::placeholder{
    color: red;
}

textarea:focus, input:focus{
    outline: none;
}

.printarea{
    overflow: auto;
    display: grid;
    --card-width: 132px;
    --card-height: calc(var(--card-width)*1.46);
    grid-template-columns: repeat(auto-fill, var(--card-width));
    grid-auto-rows: var(--card-height);
}

.grid-item{
    height: auto; 
    width: auto;
    max-width: var(--card-width);
    border: 2px solid black;
    transform:scale(1);

}

.grid-item:hover {
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0 0 20px white;
    transform:scale(1.1);
    z-index: 99;
}

.alts{
    position: absolute;
    left: 5px;
    bottom: 5px;
    user-select: none;
    border: 2px solid black;
    font-weight: bold;
    border-radius: 10px;
    background-color: white;
    padding-inline: 4px;
    z-index: 100;
}

.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);
}
