
*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --light-green : rgb(128, 130, 101);
    --light-red : rgb(198, 121, 121);
    --medium-red : rgb(198, 87, 87);
}
body{
    font-family: sans-serif;
}
.container{
    width: fit-content;
    margin: 0 auto 0;
    background-color: rgb(210, 210, 206);
    padding: 20px;
    border-radius: 20px;
}
.title-heading{
    text-align: center;
    color: #333;
    text-shadow: 1px 1px 5px rgba(0 0 0 / 0.6);
}
.number-of-player-form{
    margin: 20px 0;
    border: 1px solid rgb(19, 19, 10);
    border-left: 4px solid #443;
    padding: 10px;
    border-radius: 10px;
    & label{
        text-align: center;
    }
}
input{
    height: 30px;
    border-radius: 6px;
    padding-left: 5px;
    font-size: 1rem;
    transition: 400ms linear;
    border: none;
    border-bottom: 2px solid rgb(29, 80, 22);
    box-shadow: 0.3px 0.3px 3px rgba(0 0 0 / 0.5);
    &:focus{
        outline: 3px solid var(--light-green);
    }
}
dialog{
    transform-origin: 20px 0;
    border: none;
    border-radius: 10px;
    margin: 10px auto 0;
    transform: scale(0);
    transition: 400ms allow-discrete;
    &[open]{
        transition: 400ms;
        transform: scale(1);
    }
}
@starting-style{
    dialog[open]{
        transform: scale(0);
    }
}
.input-number-of-player{
    margin: 10px 0 0 40%;
}
.custom-name-con{
    & form{
        padding: 20px 10px;
        box-shadow: 1px 1px 5px rgba(0 0 0 /0.5);
        display: grid;
        border-radius: 10px;
        gap: 10px;
        & .custom-name-form{
            display: grid;
            gap: 10px;
        }
    & .remove-add-player{
        background-color: transparent;
        color: var(--light-red);
        border: none;
        box-shadow: none;
    }
    }
}
.control-button{
    margin: 0 auto 0;
    width: fit-content;
}

button{
    padding: 5px;
    box-shadow: 1px 1px 10px rgba(0 100 0 / 0.2);
    border: 1px solid rgb(70, 58, 15);
    border-radius: 5px;
    color: #020;
    font-weight: 600;
    background-color: rgb(191, 154, 101);
    max-width: 150px;
    padding: 10px;
    transition: 400ms;
    &:hover{
        opacity: 0.9;
    }
    &:active{
        opacity: 0.6;
        transform: scale(0.9);
    }
}
.reset-board{
    background-color: var(--light-red);
}
.reset-player{
    background-color: var(--medium-red);
}
.close-custom-name-form{
    background-color: rgb(189, 212, 147);
}
.reset-custom-name-form{
    background-color: var(--light-red);
}
.display-turn{
    text-align: center;
    padding: 20px;
    font-variant: small-caps;
    color: #333;
}
.cell-container{
    font-family: 'RubikGemstones', sans-serif;
    background-color: var(--light-green);
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    margin: 5px auto 0;
    color: rgb(236, 236, 2);
}
.cell{
    box-shadow: 2px 2px 10px rgba(0 0 0 / 0.5);
    background-color: green;
    border-radius: 10px;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 400ms;
    &:hover{
        background-color: rgb(31, 190, 31);
    }
    &:active{
        background-color: rgb(116, 219, 116);
    }
}
.display-result-dialog{
    position: relative;
}
.display-result{
    padding: 10px;
    box-shadow: 1px 1px 5px rgba(0 0 0 / 0.6);
    border: none;
    border-radius: 10px;
    background-color: rgb(101, 102, 8);
    max-width: 300px;
    overflow-x: hidden;
    text-overflow: ellipsis;
}
.remove-display-result{
    position: absolute;
    right: -13px;
    bottom: -15px;
    background-color: transparent;
    border: none;
    color: rgb(67, 39, 17);
    box-shadow: none;
}