/* Reset some default browser styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: black;
  background-color: #fff;
}

main {
    background-color: lightblue;
    height: 100%;
}

/* game grid */
#game-grid {
    display: grid;
}

.game-grid-easy {
    grid-template-columns: repeat(10, 40px);
    grid-template-rows: repeat(10, 40px);
}

.game-grid-medium {
    grid-template-columns: repeat(16, 40px);
    grid-template-rows: repeat(16, 40px);
}
.game-grid-hard {
    grid-template-columns: repeat(30, 40px);
    grid-template-rows: repeat(16, 40px);
}


#game-grid button {
    display: inline-flex;           /* makes flexbox for centering */
    align-items: center;            /* vertical centering */
    justify-content: center;        /* horizontal centering */
  
    height: 40px;                   /* fixed height */
    width: 40px;
    overflow: hidden;             
    
    border-radius: 0;
    background-color: white;
    border: 1px solid grey;
  
    font-family: inherit;           /* match page font */
    font-size: 2rem;                /* predictable size */
    line-height: 1;                 /* prevents vertical shift */
}

.game-options {
  width: 400px;
  gap: 1em;
  padding: 1em;
  background-color: grey;
  height: 2.5em;
  align-items: center;
}
.game-options button , .game-options select, #mine-counter{
  padding: 8px;
  height: 1.8rem;
  border-radius: 3px;
  border: none;
  background-color: white;
}
.game-options button:active {
  background-color: lightgray;
}

.game-options select {
  padding: 4px;
}

.game-options select:focus {
  outline: none;
}

#mine-counter {
  display: flex;
  align-items: center;
}



/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }

/* Flex utilities */
.flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.start {margin-right: auto;}
.end { margin-left: auto; }
.middle { margin-left: auto; margin-right: auto;}
