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

:root {
  --font-color: #f1f5f9;
  /* --primary-color: #274c43; */
  --primary-color: white;
}

body {
  font-family: 'Fredericka the Great', cursive;
  font-size: 1.5rem;
  background-color: var(--bg-color);
  color: var(--font-color);
  background: url('./assets/chalkboard-blue.jpg');
}

header {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.btn {
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: 2px solid #e74c3c;
  border-radius: 0.6em;
  color: #e74c3c;
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-self: center;
  -ms-flex-item-align: center;
  align-self: center;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  margin: 20px;
  padding: 1.2em 2.8em;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

.btn:hover,
.btn:focus {
  color: #fff;
  outline: 0;
}

.startButton {
  font-family: 'Fredericka the Great', cursive;
  font-size: 1.1rem;
  border-color: var(--primary-color);
  color: #fff;
  -webkit-transition: all 150ms ease-in-out;
  transition: all 150ms ease-in-out;
}

.startButton:hover {
  box-shadow: 0 0 10px 0 var(--primary-color) inset, 0 0 10px 4px var(--primary-color);
}

.players-input {
  display: flex;
  align-items: center;
  justify-content: center;
}

#player1,
#player2 {
  background-color: transparent;
  border: 1px solid;
  border-radius: .5rem;
  color: var(--font-color);
  font-size: 1.75rem;
  margin: 1%;
  padding: .1rem;
  text-align: center;
  width: 20%;
}

h2 {
  display: flex;
  justify-content: center;
  margin: 1rem;
}

#turnPlayer {
  margin-left: .5rem;
}

section {
  display: block;
  margin: 0 auto;
  max-width: 35rem;
  padding: 0 1.5rem 2.5rem;
}

#gameBoard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  height: 64vh;
}

#gameBoard span {
  background-color: transparent;
  display: grid;
  place-content: center;
  font-size: 5rem;
}

#gameBoard span.win {
  background-color: #39e85f;
}

.cursor-pointer {
  font-size: 100px;
  cursor: pointer;
}

.region-0,
.region-3 {
  border-right: solid 1px;
  border-bottom: solid 1px;
}

.region-1,
.region-4,
.region-2,
.region-5 {
  border-bottom: solid 1px;
  border-left: solid 1px;
}

.region-6 {
  border-right: solid 1px;
}

.region-8 {
  border-left: solid 1px;
}

@media screen and (max-width: 600px) {
  header {
    display: flex;
    flex-direction: column;
  }

  label {
    margin-left: 6px;
  }

  .players-input {
    display: flex;
    justify-content: space-between;
  }

  #player1,
  #player2 {
    width: 38%;
  }

  #player1::placeholder {
    font-size: 1rem;
  }

  #player2::placeholder {
    font-size: 1rem;
  }

  h2 {
    margin-top: 5px;
  }

  #start {
    margin: 5px;
    font-size: .8rem;
  }
}