html,
body
{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
}

#game
{
    width: 100%;
    height: 100%;
}

@font-face
{
    font-family: "Monogram";
    src: url("../assets/fonts/monogram.ttf") format("truetype");
}

/* MESSAGE DIALOG BOX */

#message-dialog,
#share-dialog,
#color-dialog,
#repeat-dialog,
#back-dialog
{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.6);
    z-index: 100;
}

.dialog-hidden
{
    display: none !important;
}

.message-dialog-box
{
    width: 360px;
    padding: 20px;
    background: #c9c9c9;
    border: 4px solid #1a1a1a;
    font-family: "Monogram";
}

.message-dialog-title
{
    margin-bottom: 10px;
    font-size: 28px;
    color: #1a1a1a;
}

#message-dialog-input
{
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 5px 10px;
    border: 3px solid #1a1a1a;
    outline: none;
    background: #fffdf5;
    color: #1a1a1a;
    font-family: "Monogram";
    font-size: 28px;
}

.message-dialog-counter
{
    margin-top: 4px;
    text-align: right;
    font-size: 20px;
    color: #555555;
}

.message-dialog-buttons
{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.message-dialog-buttons button
{
    min-width: 80px;
    height: 38px;
    border: 3px solid #1a1a1a;
    background: #555555;
    color: #fffdf5;
    font-family: "Monogram";
    font-size: 20px;
    cursor: pointer;
}

.message-dialog-buttons button:hover
{
    background: #1a1a1a;
}

/* SHARE DIALOG BOX */

.share-dialog-box
{
    width: 430px;
}

#share-dialog-link
{
    box-sizing: border-box;
    width: 100%;
    height: 100px;
    padding: 8px 10px;
    resize: none;
    border: 3px solid #1a1a1a;
    outline: none;
    background: #fffdf5;
    color: #1a1a1a;
    font-family: "Monogram";
    font-size: 20px;
}

#share-dialog-copy
{
    min-width: 160px;
}

/* COLOR DIALOG BOX */

.color-dialog-box
{
    width: 330px;
}

#color-dialog-options
{
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.color-option
{
    width: 42px;
    height: 42px;
    padding: 0;
    border: 4px solid #1a1a1a;
    cursor: pointer;
    image-rendering: pixelated;
}

.color-option:hover
{
    transform: scale(1.1);
}

.color-option[data-color="blue"]
{
    background: #bee8ff;
}

.color-option[data-color="orange"]
{
    background: #fdd0ac;
}

.color-option[data-color="pink"]
{
    background: #ffc2f0;
}

.color-option[data-color="purple"]
{
    background: #e0bbff;
}

.color-option[data-color="yellow"]
{
    background: #f6e58d;
}

.color-option[data-color="random"]
{
    background: #555555;
    color: #fffdf5;
    font-family: "Monogram";
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* REPEAT DIALOG BOX */

.repeat-dialog-box
{
    width: 330px;
}

.repeat-field
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
    font-family: "Monogram";
    font-size: 24px;
    color: #1a1a1a;
}

.repeat-field input
{
    width: 55px;
    height: 40px;
    border: 3px solid #1a1a1a;
    background: #fffdf5;
    color: #1a1a1a;
    font-family: "Monogram";
    font-size: 26px;
    text-align: center;
}

#repeat-dialog-preview
{
    margin-top: 15px;
    min-height: 26px;
    text-align: center;
    font-family: "Monogram";
    font-size: 20px;
    color: #555555;
}

/* BACKGROUND DIALOG BOX */

#back-dialog-options
{
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.back-option
{
    width: 42px;
    height: 42px;
    padding: 0;
    border: 4px solid #1a1a1a;
    cursor: pointer;
    image-rendering: pixelated;
}

.back-option:hover
{
    transform: scale(1.1);
}

.back-option[data-color="blue"]
{
    background: #8dd6ff;
}

.back-option[data-color="orange"]
{
    background: #ff9039;
}

.back-option[data-color="pink"]
{
    background: #ff90e5;
}

.back-option[data-color="purple"]
{
    background: #c07bfb;
}

.back-option[data-color="yellow"]
{
    background: #e6b84a;
}

.back-option[data-color="random"]
{
    background: #555555;
    color: #fffdf5;
    font-family: "Monogram";
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
