:root {
  --clr-teal: #84A59D;
  --clr-pink: #F28482;
  --clr-yellow: #F29E18;
  --clr-yellow-hover: #F6BD60;
  --clr-text: #462521;
  --clr-bg: #F7EDE2;

  --square-size: 7rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  text-align: center;
  font-family: 'Acme', sans-serif;
}

main {
  width: 100vw;
  height: max-content;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  background-color: var(--clr-bg);
}

h1 {
  font-size: 2.5rem;
  color: var(--clr-text);
  text-transform: uppercase;
  margin-top: 2rem;
}

.game {
  width: calc(var(--square-size)*3);
  display: flex;
  flex-wrap: wrap;
  margin: 3rem;
}

.cell {
  width: var(--square-size);
  height: var(--square-size);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Indie Flower', cursive;
  font-size: 6rem;
  border: 2px solid var(--clr-text);
  cursor: pointer;

  /*disable select*/
  user-select: none; /* supported by Chrome and Opera */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
}

.cell:first-child,
.cell:nth-child(2),
.cell:nth-child(3) {
  border-top: none;
}

.cell:nth-child(3n + 1) {
  border-left: none;
}

.cell:nth-child(3n + 3) {
  border-right: none;
}

.cell:last-child,
.cell:nth-child(8),
.cell:nth-child(7) {
  border-bottom: none;
}

.x-marker {
  color: var(--clr-teal);
}

.o-marker {
  color: var(--clr-pink);
}

.cell.x-marker,
.cell.o-marker {
  cursor: default;
}

.commands {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.messages {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.player-turn,
.announcement {
  color: var(--clr-text);
  font-size: 1.4rem;
  text-transform: uppercase;
}

.reset-btn {
  font-family: 'Acme', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--clr-yellow);
  background: none;
  border: none;
  outline: none;
  padding: .5rem;
  cursor: pointer;
}

.reset-btn:hover {
  color: var(--clr-yellow-hover);
  text-decoration: underline;
}

.hide-display {
  display: none;
}

.hide-opacity {
  opacity: 0;
}

@media screen and (max-width: 400px) {
  html {
    font-size: 90%;
  }
}

@media screen and (min-width: 650px) and (min-height: 900px) {
  html {
    font-size: 125%;
  }
}