* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body.modal-open {
    overflow: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

header {
    top: 0;
    left: 0;
    width: 100%;
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #36393f;
    padding: 10px 20px;
    align-items: center;
    color: white;
    z-index: 1;
}

.scoreboard {
    display: flex;
    justify-content: start;
    gap: 20px;
    border-bottom: black;
}

.board-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    background-color: #454850;
    padding: 8px;
    border-radius: 14px;
}

.b-item-image {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.success-state {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    border: 1px solid black;
    background-color: rgb(255, 50, 50);
}

.success-state.success {
    background-color: rgb(52, 220, 50);
}

.canvas-container {
    width: 100vw;
    position: relative;
}
img.canvas {
    width: 100%;
    object-fit: contain;
}

.context-menu {
    display: none;
    border: 1px solid black;
    position: absolute;
    padding: 4px;
    flex-direction: column;
    gap: 2px;
    background-color: #36393f;
    border-radius: 10px;
}

.context-menu.active {
    display: flex;
}

.menu-item {
    display: grid;
    place-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    color: #f0f0f0;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #5865f2;
}

.modal-container {
    background-color: rgba(90, 90, 90, 0.45);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 5;
    display: none;
}

.modal-open {
    display: block
}

.modal-body {
    padding: 20px;
    background-color: white;
    border-radius: 16px;
    margin: 0 auto;
    width: fit-content;
    margin-top: 200px;
    box-shadow: 0 0 3px 1px rgba(76, 76, 76, 0.5);
}

.start-modal, .end-modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.start-modal > button, .end-modal > button {
    padding: 6px 20px;
    outline: none;
    border: 1px solid black;
    border-radius: 8px;
    cursor: pointer;
}

.start-modal > button:active {
    filter: brightness(90%)
}