* {
    margin: 0;
    padding: 0;
    image-rendering: pixelated;
}

body {
    overflow-y: hidden;
    overflow-x: hidden;
    background-color: beige;
    font-family: 'Trebuchet MS', sans-serif;
}

canvas {
    transform-origin: top left;
}

a {*
    text-decoration: none;
    color: #6c6c6c;
    cursor: pointer;
}

a:hover {
    color: #000000;
}

input {
    width: 80%;
    max-width: 250px;
    margin-bottom: 1em;
}

label {
    display: none;
}

input {
    border: none;
    border-bottom: 1px solid #6c6c6c;
    background-color: transparent;
    color: #6c6c6c;
    font-size: 1.5em;
    font-family: 'Trebuchet MS', sans-serif;
    text-align: center;
    padding: 0;
}

input:hover {
    border-bottom: 1px solid #000000;
}

input:focus {
    outline: none;
    border-bottom: 1px solid #000000;
}

button {
    border: none;
    border-bottom: 1px solid #6c6c6c;
    background-color: transparent;
    color: #6c6c6c;
    font-size: 1.5em;
    font-family: 'Trebuchet MS', sans-serif;
    text-align: center;
    padding: 0;
    margin-bottom: 1em;
    cursor: pointer;
}

button:hover {
    border-bottom: 1px solid #000000;
    color: #000000;
}

img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    pointer-events: none;
}

img::selection {
    background: transparent;
}

.selector {
    display: none;
    transform-origin: top left;
    pointer-events: none;
}

.pixel-position {
    background-color: white;
    padding: 0.5em;
    border-radius: 0.5em;
    box-shadow: 0 0 0.5em black;
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translate(-50%, 0%);
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.color-bar-container {
    position: absolute;
    top: 90%;
    left: 0;
    width: 100%;
    height: 10%;
}

.buttons {
    position: absolute;
    display: inline-flex;
    justify-content: space-around;
    width: 7em;
    top: -40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#placement-timer {
    display: none;
    min-width: 100px;
    width: fit-content;
    text-align: center;
    position: absolute;
    top: -80%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.close-button {
    background-color: white;
    border-radius: 2em 2em 2em 2em;
    box-shadow: 0 0 0.5em black;
    height: 3em;
    width: 3em;
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.close-button:hover {
    background-color: #dedede;
}

.validate-button {
    background-color: white;
    border-radius: 2em 2em 2em 2em;
    box-shadow: 0 0 0.5em black;
    height: 3em;
    width: 3em;
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.validate-button:hover {
    background-color: #dedede;
}

.login-button {
    background-color: white;
    border-radius: 2em 2em 2em 2em;
    box-shadow: 0 0 0.5em black;
    height: 3em;
    width: 3em;
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.login-button:hover {
    background-color: #dedede;
}

#logout-button {
    background-color: white;
    border-radius: 2em 2em 2em 2em;
    box-shadow: 0 0 0.5em black;
    height: 3em;
    width: 3em;
    z-index: 1;
    position: relative;
    cursor: pointer;
}

#logout-button:hover {
    background-color: #dedede;
}

/*center message-container*/
#message-container {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    max-width: 500px;
    height: fit-content;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #be0039;
    color: #ffffff;
    padding: 0.5em;
    border-radius: 0.5em;
    box-shadow: 0 0 0.5em black;
    z-index: 2;
}

.color-list {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: #000000;
    box-shadow: 0 0 0.5em black;
    width: 100%;
    height: 100%;
    position: relative;
    list-style: none;
}

.color-item {
    background-color: red;
    border: 2px solid white;
    height: 3rem;
    width: 3rem;
}

.color-item:hover {
    background-color: red;
    border: 2px dotted #33dbff;
    height: 3rem;
    width: 3rem;
    cursor: pointer;
}

.active-color-item {
    border: 2px double #33dbff;
}

#block-screen {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.authentication-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 50%;
    z-index: 2;
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.authentication-container {
    width: 80%;
    height: 80%;
    background-color: white;
    padding: 0.5em;
    border-radius: 0.5em;
    box-shadow: 0 0 0.5em black;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 2;
}

#registration-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

#connection-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

#confirmation-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.inputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.description {
    font-size: 1em;
    color: #000000;
    text-align: center;
    padding: 1em;
}

.title {
    font-size: 1.5em;
    color: #000000;
    text-align: center;
    padding: 1em;
}

.user-container {
    margin: 1em;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

#user-name {
    font-size: 2em;
    color: #000000;
    margin-right: 1em;
}

