
:root {
    --main-color: darkred;
    --highlight-color: red;
    --background-color: black;
    background-color: black;
    color: white;
    font-family: font;
}

.modal {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10%;
    overflow: hidden;

    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;

    position: absolute;
    top: 0;
    left: 0;

    background-color: black;
    color: red;
    font-family: font;
}

.error-modal {
    font-size: min(10vh, 4vw);
    display: none;
}

.content{
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    justify-content: center;
    align-items: center;
}

#title {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 32px;
    font-size: 32px;
    color: red;
}

#status {
    color: red;
}

/* RHS */
.controls{
    font-size: 22px;
    width:80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content:center;
    gap: 30px;

}
.card {
    display: grid;
    grid-template-columns: 1fr 2fr;
}
.card-full{
    display: grid;
    grid-template-columns: 1fr;  
}
.card-half {
    display: grid;
    column-gap: 5px;
    grid-template-columns: 1fr 1fr 1fr 1fr;  

}
.card-half > input {
    width : 50%;
    justify-self: end;
}

textarea{
    resize: vertical;
}

input[type="checkbox"]{
    width: 30px;
    height: 30px;
    background-color: red;
}

/* LHS */
.card-display{
    padding: 50px;
    width:80%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content:center;
}

.card-display > img {
    max-width: 100%;
    max-height: 100%;
}

#welcome_to_the_linkcube {
    width: 10%;
    display: grid;
    gap: 0px;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
}

.error{
    outline: 3px solid red;
}

.hidden{
    display: none;
}

.login {
    right: 0;
    top: 0;
    height: 50px;
    width: 50px;
    position: absolute;
}
.logged-in {
    --main-color : green !important;
    --highlight-color: rgb(7, 206, 0)!important; 
}
.login-modal{
    color: red;
    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);
}
.bordered {
    border: 2px solid var(--main-color);
    border-radius: 30px;
}
.highlightable:hover, .highlightable:focus {
    color: var(--highlight-color);
    border-color: var(--highlight-color);
}