body {
    padding: 1rem;
    background-color: #d4d4d4;
    font-family: Consolas;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

label {
    width: 100px; 
    text-align: right;
    margin-right: 1rem;
}

input {
    width: 250px;
}

.smiley-img-idle {
    border-top: 3px solid white;
    border-left: 3px solid white;
    border-bottom: 3px solid #6d6d6d;
    border-right: 3px solid #6d6d6d;
    outline: 2px #6d6d6d solid;
    width: auto;
    height: auto;
    max-width: 38px;
    max-height: 38px;
    background-color: #c0c0c0;
}

.smiley-img-pressed {
    border-top: 3px solid #6d6d6d;
    border-left: 3px solid #6d6d6d;
    outline: 2px #6d6d6d solid;
    width: auto;
    height: auto;
    max-width: 38px;
    max-height: 38px;
    background-color: #c0c0c0;
}

.red-num {
    outline: black solid 3px;
    margin-left: 3px;
    background-color: black;
    width: auto;
    height: auto;
    max-width: 21px;
    max-height: 39px;
}

.outer-border {
    border-top: 5px solid white;
    border-left: 5px solid white;
    border-bottom: 5px solid #808080;
    border-right: 5px solid #808080;
    display: table;
    margin-top: 0;
    margin-bottom: 2rem;
}

#border2 {
    border: 10px solid #c0c0c0;
    background-color: #c0c0c0;
    display: table;
}

#border3 {
    padding: 1rem;
    border-top: 5px solid #6d6d6d;
    border-left: 5px solid #6d6d6d;
    border-bottom: 5px solid white;
    border-right: 5px solid white;
    background-color: #c0c0c0;
    display: table-row;
}

#border4 {
    border-top: 10px solid #c0c0c0;
}

#border5 {
    border-top: 5px solid #6d6d6d;
    border-left: 5px solid #6d6d6d;
    border-bottom: 5px solid white;
    border-right: 5px solid white;
    display: table;
}

.cover-tile {
    width: 24px;
    height: 24px;
    padding: 0px;
    margin: 0px;
    vertical-align: bottom;
    position: relative;
}

.tile {
    width: 24px;
    height: 24px;
    padding: 0px;
    margin: 0px;
    vertical-align: bottom;
    position: absolute;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.center-align {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.right-align {
    margin-left: auto;
    text-align: right;
}

.left {
    float:left;
}

.right {
    float:right;
}

/* Table styling */
table {
    margin-bottom: 3rem;
    width: 75%;

    /* Centers the table */
    margin-left: auto;
    margin-right: auto;

    border: 1px solid black;
    background-color: black;
    border-collapse: separate;
}

thead {
    margin-top: 2rem;
    margin-bottom: 3rem;
    background-color: #c0c0c0;
}

td {
    border-top: 5px solid white;
    border-left: 5px solid white;
    border-bottom: 5px solid #808080;
    border-right: 5px solid #808080;
    background-color: #c0c0c0;
}

/* Less padding around the categories */
td:not(.category) {
    padding: 1rem;
}

/* Needed for aligning the categories with the rankings */
.category {
    padding-left: 1rem;
}

/* Styling for the show and hide rankings button */
#show-rankings {
    padding-top: 5px;
    padding-bottom: 5px;
    width: auto;
    border: none;
    font-weight: bold;
    font-size: medium;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

/* Invert background and font color when hovered */
#show-rankings:hover {
    background-color: black;
    color: #d4d4d4;
}

/* Enclose the button text with <> */
#show-rankings::before {
    content: "<";
    color: red;
}
#show-rankings::after {
    content: ">";
    color: red;
}

/* Styling for the ranking difficulty buttons */
.rank-difficulty button {
    padding-top: 5px;
    padding-bottom: 5px;
    width: auto;
    border: none;
    /* background-color: #d4d4d4;
    color: red; */
    font-weight: bold;
    font-size: medium;    
    float: left; /* Float the buttons side by side */
}
  
/* Clear floats (clearfix hack) */
.rank-difficulty:after {
    content: "";
    clear: both;
    display: table;
}

/* Enclose the button text with <> */
.rank-difficulty button::after {
    content: ">";
    color: black;
}
.rank-difficulty button::before {
    content: "<";
    color: black;
}
 
/* Invert background and font color when hovered */
.rank-difficulty button:hover {
    background-color: red;
    color: #d4d4d4;
}

/* Styling for the ranking type buttons */
.rank-type button {
    padding-top: 5px;
    padding-bottom: 5px;
    width: auto;
    border: none;
    /* background-color: #d4d4d4;
    color: black; */
    font-weight: bold;
    font-size: medium;
    margin-bottom: 1rem;
}

/* Enclose the button text with <> */
.rank-type button::before {
    content: "<";
    color: red;
}
.rank-type button::after {
    content: ">";
    color: red;
}

/* Invert background and font color when hovered */
.rank-type button:hover {
    background-color: black;
    color: #d4d4d4;
}

/* Background and font colors when idle */
.lb-toggle-idle {
    background-color: #d4d4d4;
    color: black;
    margin-top: 2rem;
}
.rank-diff-idle {
    background-color: #d4d4d4;
    color: red;
}
.rank-type-idle {
    background-color: #d4d4d4;
    color: black;
}

/* Invert background and font color when clicked */
.lb-toggle-clicked {
    background-color: black;
    color: #d4d4d4;
    margin-top: 2rem;
}
.rank-diff-clicked {
    background-color: crimson;
    color: #d4d4d4;
}
.rank-type-clicked {
    background-color: black;
    color: #d4d4d4;
}

/* Sign up button styling */
#showSignUpBtn {
    border-radius: 20px;
    border-color: black;
    background-color: lightgreen;
    width: 100px;
    margin-top: 1rem;
}

/* Log in button styling */
#showLoginBtn {
    border-radius: 20px;
    border-color: black;
    background-color: lightgreen;
    width: 100px;
    margin-top: 1rem;
}

/* Welcome text styling */
#welcomeText {
    text-align: left;
    display: inline-block;
    margin-right: 4rem;
}

#logOutBtn {
    border-radius: 20px;
    border-color: black;
    background-color: yellowgreen;
    width: 100px;
    margin-top: 1rem;
}

/* Log in and sign up form styling */
#loginForm, #sign-up-dropdown {
    margin-top: 5rem;
}

#loginBtn, #signUpBtn {
    border-radius: 20px;
    border-color: black;
    background-color: skyblue;
    width: 100px;
    margin-top: 1rem;
}

#loginCancelBtn, #signUpCancelBtn {
    border-radius: 20px;
    border-color: black;
    background-color: crimson;
    width: 100px;
    margin-top: 1rem;
}

/* Difficulty button styling */
#diff-beg, #diff-int, #diff-exp {
    border: none;
    background-color: #d4d4d4;
    font-weight: bold;
}

#diff-beg:hover, #diff-int:hover, #diff-exp:hover {
    background-color: black;
    color: #d4d4d4;
}

#diff-beg::before, #diff-int::before, #diff-exp::before {
    content: "<";
    color: cornflowerblue;
}

#diff-beg::after, #diff-int::after, #diff-exp::after {
    content: ">";
    color: cornflowerblue;
}

/* Alignment buttons styling */
#left-align-btn, #center-align-btn, #right-align-btn {
    border: none;
    background-color: #d4d4d4;
    font-weight: bold;
}

#left-align-btn:hover, #center-align-btn:hover, #right-align-btn:hover {
    background-color: black;
    color: #d4d4d4;
}

#left-align-btn::before, #center-align-btn::before, #right-align-btn::before {
    content: "<";
    color: limegreen;
}
#left-align-btn::after, #center-align-btn::after, #right-align-btn::after {
    content: ">";
    color: limegreen;
}