:root {
    --primary-color: #008CBA;
    --secondary-color: #4CAF50;
    --tertiary-color: #f44336;
    
    --text-color: white;
    --background-color: #7db38a;

    --game-details-color: #b39ca6;
    --game-color: #bfaab3;

    --board-color: #bdbdbd;
    --board-border-color: #7b7b7b;
    --odd-cell-color: #6c6c6c;
    --even-cell-color: #929292;
    --cell-hover-color: #b8b8b8;
    --cell-revealed-color: #d3d3d3;
    --mine-color: #ee639e;
    --flag-color: #739b7b;

    font-family: 'Helvetica Neue', sans-serif;

}

body {
    /* font-family: Arial, sans-serif; */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: var(--background-color);
}
.container{
    width: 100vw;
    height: 100vh;
    display: grid;

    grid-template-columns: [first] 15%      [line2] auto  [five] 20% [end];
    grid-template-rows:    [row1-start] 8% [row2] 65% [row1-end] auto [last-line]
}



.gameContainer {
    text-align: center;
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: last;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
/* 
    width: 50%;
    height: 100%; */
}

#board {
    display: inline-grid;
    gap: 5px;
    background-color: var(--board-color);
    padding: 5px;
    border: 2px solid var(--board-border-color);
    grid-template-columns: repeat(16, 30px);

    transition: transform 0.4s; 
}
.gameDetails{
    background-color: var(--game-details-color);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.game{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--game-color);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 15px;
    user-select: none;
}
.cell {
    width: 30px;
    height: 30px;
    border: none;
    /* font-weight: bold; */
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}
.oddCell {
    background-color: var(--odd-cell-color);
}
.evenCell {
    background-color: var(--even-cell-color);
}
/* 
.cell:nth-child(odd) {
    background-color: var(--odd-cell-color)
}

.cell:nth-child(even) {
    background-color: var(--even-cell-color)
} */


@media screen and (min-width: 700px) {
    .cell:hover {
        background-color: var(--cell-hover-color) !important;
    }
}
    
.revealed {
    background-color: var(--cell-revealed-color) !important;
}
.mine {
    /* background-color: #ff0000; */
    background-color: var(--mine-color) !important;
}
.flagged {
    /* background-color: #ffff00; */
    background-color: var(--flag-color) !important;
}

.gameSettings{
    display: flex;
    justify-content: space-between;
    /* top, left, bottom, right */
    padding: 5px 17px 10px 17px;
}
#new-game, #difficulty-select {
    /* margin: 10px; */
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}
#new-game {
    background-color: var(--primary-color);
    color: var(--text-color);
}
#difficulty-select {
    background-color: var(--secondary-color);
    color: var(--text-color);
}
#message {
    margin-top: 2.5%;
    font-size: 24px;
}

.gameInfo {
    /* display: flex; */
    /* top, left, bottom, right */
    padding: 14px 17px 5px 17px;
}
.topInfo {
    position: relative;
    display: flex;
    justify-content: space-between;
}
#timer, #score {
    font-size: 18px;
}
.bottomInfo{
    margin-top: 5px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    
}
#flagCounter {
    font-size: 18px;
}
.bomb-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* settings related */

.settingsContainer {

    grid-column-start: 3;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 4;

    
    background-color: var(--game-color);
    /*rgb(51, 51, 51);*/
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    width: 90%;
    height: 90%;
}

.settingsGrouping{
    /* width: 100%;
    height: 100%; */

    height: 100%; /* Add this line */
    /* flex: 1; */
    display: flex;
    /* flex-shrink: 1; */
    flex-direction: column;
    align-items: center;
}

.topContainer {
    width: 100%;
    height: 10%;
    /* padding: 20px; */
    border-bottom: rgb(49, 49, 49) 1px solid;
    /* margin-bottom: 10px; */
}
.topContainer .title {
    height: 40%;
    margin-bottom: 2px;
    margin-left: 5px;
}
.topButtons {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}
.topButtons #minimizeSettings {
    background-color: transparent;
    text-align: center;
    color: var(--text-color);
    border: none;
    width: 30px;
    /* height: 25px; */
    height: 60%;
    font-size: 21px;
    text-align: center;
}

.bottomContainer {
    width: 100%;
    height: 90%;
    padding: 10px 18px 5px 18px;
    /* overflow: scroll; */
    box-sizing: border-box;
}
.colorsContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* height: 85%; */
    height: calc(100% - 50px);
    overflow: scroll;
}
.colorDiv {
    display: flex;
    justify-content: space-between;
    /* text-align: left; */
    margin-bottom: 5px;
    padding-bottom: 3px;
    width: 100%;
    border-bottom: rgb(49, 49, 49) 1px solid;
}
.colorValue, .pickr, .pcr-button {
    position: static  !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 5px !important;
    cursor: pointer;
    padding: 0 !important;
    outline: orange 1px dashed;
    
    margin-right: 7px;
}
.pcr-button {
    outline: none !important;
}


.settingsContainer .buttonContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
}

.settingsContainer .buttonContainer button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #008CBA;
    color: var(--text-color);
    font-size: 15px;
    height: 30px;
}